You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
12 KiB
8 lines
12 KiB
3 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-775d5a1e"],{8246:function(t,e,n){"use strict";n.r(e);var r=n("d708"),o=n("b311"),i=n.n(o),a=n("f478"),c={name:"devise_list",data:function(){return{roterPre:r.a.roterPre,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"页面ID",key:"id",minWidth:120},{title:"专题页名称",key:"title",minWidth:120},{title:"专题链接",slot:"link",minWidth:300},{title:"添加时间",key:"add_time",minWidth:120},{title:"更新时间",key:"update_time",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:300}],list:[],total:0,page:1,limit:15,BaseURL:r.a.apiBaseURL.replace(/adminapi/,"")}},created:function(){this.getList()},mounted:function(){this.$nextTick((function(){var t=this;new i.a(".copy-data").on("success",(function(){t.$Message.success("复制预览链接成功")}))}))},methods:{getList:function(){var t=this;this.loading=!0,Object(a.d)({type:2,page:this.page,limit:this.limit}).then((function(e){t.loading=!1,t.list=e.data.list,t.total=e.data.count}))},edit:function(t){this.$router.push({path:this.roterPre+"/pages/special/diy",query:{id:t.id,name:t.name,type:t.type}})},add:function(){this.$router.push({path:this.roterPre+"/pages/special/diy",query:{id:0,name:"首页",type:2}})},del:function(t){var e=this,n={title:"删除",num:2e3,url:"diy/del/"+t.id,method:"DELETE",data:{type:2}};this.$modalSure(n).then((function(t){e.getList()})).catch((function(t){e.$Message.error(t.msg)}))},setStatus:function(t){var e=this;Object(a.x)(t.id).then((function(t){e.$Message.success(t.msg),e.getList()}))},pageChange:function(t){this.page=t,this.getList()}}},u=n("2877"),s=Object(u.a)(c,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("div",{staticClass:"button acea-row row-middle"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加")])],1)])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.list,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"link",fn:function(n){var r=n.row;return n.index,[e("div",[t._v("/pages/annex/special/index?id="+t._s(r.id))])]}},{key:"action",fn:function(n){var r=n.row,o=n.index;return[e("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),1!=r.id?e("div",{staticStyle:{display:"inline-block"}},[e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,o)}}},[t._v("删除")])],1):t._e(),e("div",{staticStyle:{display:"inline-block"}},[e("Divider",{attrs:{type:"vertical"}}),e("a",{staticClass:"copy-data",attrs:{"data-clipboard-text":t.BaseURL+"pages/annex/special/index?id="+r.id}},[t._v("预览")])],1)]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.page,"show-elevator":"","show-total":"","page-size":t.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"c2bee3f4",null);e.default=s.exports},b311:function(t,e,n){
|
||
|
/*!
|
||
|
* clipboard.js v2.0.11
|
||
|
* https://clipboardjs.com/
|
||
|
*
|
||
|
* Licensed MIT © Zeno Rocha
|
||
|
*/
|
||
|
var r;r=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return x}});var r=n(279),o=n.n(r),i=n(370),a=n.n(i),c=n(817),u=n.n(c);function s(t){try{return document.execCommand(t)}catch(t){return!1}}var l=function(t){var e=u()(t);return s("cut"),e},f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var r=u()(n);return s("copy"),n.remove(),r},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=f(t.value,e):(n=u()(t),s("copy")),n};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,o=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?d(i,{container:r}):o?"cut"===n?l(o):d(o,{container:r}):void 0};function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n)}}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(c,o());var e,n,r,i=g(c);function c(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(n=i.call(this)).resolveOptions(e),n.listenClick(t),n}return e=c,r=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return l(t)}},{key:"isSupported",value:function(){var t=arguments.lengt
|