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.
1 line
14 KiB
1 line
14 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-775d5a1e"],{8246:function(t,e,n){"use strict";n.r(e);var i=n("d708"),r=n("b311"),o=n.n(r),a=n("f478"),c=(n("2f62"),{name:"devise_list",data:function(){return{roterPre:i.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:i.a.apiBaseURL.replace(/adminapi/,"")}},created:function(){this.getList()},mounted:function(){this.$nextTick((function(){var t=this;new o.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()}}}),s=n("2877"),l=Object(s.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("div",{staticClass:"button acea-row row-middle"},[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加")])],1)])],1)],1),n("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(e){var i=e.row;return e.index,[n("div",[t._v("/pages/annex/special/index?id="+t._s(i.id))])]}},{key:"action",fn:function(e){var i=e.row,r=e.index;return[n("a",{on:{click:function(e){return t.edit(i)}}},[t._v("编辑")]),1!=i.id?n("div",{staticStyle:{display:"inline-block"}},[n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(i,r)}}},[t._v("删除")])],1):t._e(),n("div",{staticStyle:{display:"inline-block"}},[n("Divider",{attrs:{type:"vertical"}}),n("a",{staticClass:"copy-data",attrs:{"data-clipboard-text":t.BaseURL+"pages/annex/special/index?id="+i.id}},[t._v("预览")])],1)]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("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=l.exports},b311:function(t,e,n){var i;i=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[
|