canyin-project/ybcy/views/channel/index/static/js/chunk-420d5a79.7e15abed.js

1 line
9.7 KiB
JavaScript
Raw Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-420d5a79"],{2968:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[e("div",{staticClass:"maintitle"},[t._v("微页面")]),e("div",{staticClass:"tabledata mar_t20"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[e("el-table-column",{attrs:{prop:"sort",label:"排序"}}),e("el-table-column",{attrs:{prop:"name",label:"页面名称"}}),e("el-table-column",{attrs:{prop:"name",label:"页面类型"}}),e("el-table-column",{attrs:{prop:"time",label:"修改时间"}}),e("el-table-column",{attrs:{prop:"display",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(e){return t.changeSwitch(n.row)}},model:{value:n.row.display,callback:function(e){t.$set(n.row,"display",e)},expression:"scope.row.display"}})]}}])}),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"flex"},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleEdit(n.row)}}},[t._v("编辑")]),e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleDelete(n.row)}}},[t._v("删除")])],1)]}}])})],1),e("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(n){return t.$set(t.page,"currentPage",n)},"update:current-page":function(n){return t.$set(t.page,"currentPage",n)},"current-change":t.handleCurrentChange}}),e("edit",{ref:"edit",on:{fetchData:t.fetchData}})],1)])},r=[],o=(e("96cf"),e("1da1")),u=e("5a4a"),c={data:function(){return{list:[],selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var e,a,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.listLoading=!0,n.next=3,Object(u["t"])({page:t.page.currentPage});case 3:e=n.sent,a=e.data,r=e.count,t.list=a,t.page.total=r,setTimeout((function(){t.listLoading=!1}),100);case 9:case"end":return n.stop()}}),n)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()}}},i=c,l=e("2877"),d=Object(l["a"])(i,a,r,!1,null,null,null);n["default"]=d.exports},"5a4a":function(t,n,e){"use strict";e.d(n,"B",(function(){return r})),e.d(n,"d",(function(){return o})),e.d(n,"G",(function(){return u})),e.d(n,"z",(function(){return c})),e.d(n,"r",(function(){return i})),e.d(n,"y",(function(){return l})),e.d(n,"W",(function(){return d})),e.d(n,"A",(function(){return s})),e.d(n,"F",(function(){return h})),e.d(n,"D",(function(){return f})),e.d(n,"f",(function(){return p})),e.d(n,"e",(function(){return m})),e.d(n,"g",(function(){return g})),e.d(n,"i",(function(){return b})),e.d(n,"w",(function(){return j})),e.d(n,"ab",(function(){return O})),e.d(n,"o",(function(){return v})),e.d(n,"Z",(function(){return y})),e.d(n,"C",(function(){return w})),e.d(n,"H",(function(){return x})),e.d(n,"q",(function(){return k})),e.d(n,"c",(function(){return _})),e.d(n,"h",(function(){return C})),e.d(n,"b",(function(){return P})),e.d(n,"u",(function(){return L})),e.d(n,"N",(function(){return D})),e.d(n,"m",(function(){return S})),e.d(n,"L",(function(){return z})),e.d(n,"x",(function(){return R})),e.d(n,"db",(function(){return T})),e.d(n,"j",(function(){return $})),e.d(n,"cb",(function(){return E})),e.d(n,"t",(function(){return J})),e.d(n,"J",(function(){return N})),e.d(n,"l",(function(){return q})),e.d(n,"I",(function(){return A})),e.d(n,"v",(function(){return B})),e.d(n,"S",(function(){return F})),e.d(n,"n",(function(){return G})),e.d(n,"R",(function(){return H})),e.d(n,"bb",(function(){return I})),e.d(n,"