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
6.7 KiB
1 line
6.7 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d4e75e4"],{"460b":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加链接")])],1),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[e("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"60"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"页面名称","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"url",label:"页面链接","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"param",label:"参数","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"category.name",label:"分组","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"add_time",label:"添加时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},i=[],a=e("f478"),o={name:"MerchantLink",data:function(){return{listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},mounted:function(){this.getList("")},methods:{getList:function(t){var n=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(a["E"])(this.tableFrom).then((function(t){n.tableData.data=t.data.list,n.tableData.total=t.data.count,n.listLoading=!1})).catch((function(t){n.listLoading=!1,n.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},onAdd:function(){var t=this;this.$modalForm(Object(a["b"])()).then((function(){return t.getList("")}))},edit:function(t){var n=this;this.$modalForm(Object(a["q"])(t.id)).then((function(){return n.getList("")}))},handleDelete:function(t,n){var e=this;this.$modalSure("删除该链接吗").then((function(){Object(a["h"])(t.id).then((function(t){var r=t.message;e.$message.success(r),e.tableData.data.splice(n,1)})).catch((function(t){var n=t.message;e.$message.error(n)}))}))}}},u=o,c=e("2877"),d=Object(c["a"])(u,r,i,!1,null,"5ac4a4c3",null);n["default"]=d.exports},f478:function(t,n,e){"use strict";e.d(n,"t",(function(){return i})),e.d(n,"y",(function(){return a})),e.d(n,"o",(function(){return o})),e.d(n,"n",(function(){return u})),e.d(n,"m",(function(){return c})),e.d(n,"l",(function(){return d})),e.d(n,"P",(function(){return l})),e.d(n,"O",(function(){return s})),e.d(n,"e",(function(){return f})),e.d(n,"A",(function(){return g})),e.d(n,"z",(function(){return m})),e.d(n,"w",(function(){return y})),e.d(n,"B",(function(){return p})),e.d(n,"J",(function(){return h})),e.d(n,"K",(function(){return b})),e.d(n,"c",(function(){return _})),e.d(n,"r",(function(){return v})),e.d(n,"L",(function(){return k})),e.d(n,"M",(function(){return w})),e.d(n,"i",(function(){return L})),e.d(n,"a",(function(){return x})),e.d(n,"p",(function(){return z})),e.d(n,"C",(function(){return F})),e.d(n,"D",(function(){return D})),e.d(n,"g",(function(){return C})),e.d(n,"d",(function(){return $})),e.d(n,"s",(function(){return j})),e.d(n,"j",(function(){return O})),e.d(n,"N",(function(){return S})),e.d(n,"b",(function(){return A})),e.d(n,"q",(funct
|