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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-3d4e75e4.5f24b656.js

1 lines
6.7 KiB

(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",(function(){return E})),e.d(n,"h",(function(){return J})),e.d(n,"E",(function(){return q})),e.d(n,"u",(function(){return B})),e.d(n,"f",(function(){return I})),e.d(n,"k",(function(){return M})),e.d(n,"I",(function(){return N})),e.d(n,"H",(function(){return G})),e.d(n,"G",(function(){return H})),e.d(n,"F",(function(){return K})),e.d(n,"x",(function(){return P}));var r=e("0c6d");function i(t){return r["a"].get("store/category/list",t)}function a(t){return r["a"].get("diy/product/lst",t)}function o(t,n){return r["a"].post("diy/create/".concat(t),n)}function u(t){return r["a"].get("diy/lst",t)}function c(t){return r["a"].get("diy/detail/".concat(t))}function d(t,n){return r["a"].delete("diy/delete/".concat(t),n)}function l(t){return r["a"].post("diy/status/".concat(t))}function s(t){return r["a"].get("diy/recovery/".concat(t))}function f(){return r["a"].get("/cms/category_list")}function g(t){return r["a"].get("diy/link/lst",t)}function m(t){return r["a"].get("diy/get_routine_code/".concat(t))}function y(){return r["a"].get("diy/user_index")}function p(t){return r["a"].post("diy/user_index",t)}function h(){return r["a"].get("diy/categroy/options")}function b(t,n){return r["a"].get("diy/link/getLinks/".concat(t),n)}function _(){return r["a"].get("diy/categroy/form")}function v(t){return r["a"].get("diy/categroy/".concat(t,"/form"))}function k(t){return r["a"].get("diy/categroy/lst",t)}function w(t,n){return r["a"].post("diy/categroy/status/".concat(t),{status:n})}function L(t){return r["a"].delete("diy/categroy/delete/".concat(t))}function x(){return r["a"].get("diy/mer_categroy/form")}function z(t){return r["a"].get("diy/mer_categroy/".concat(t,"/form"))}function F(t){return r["a"].get("diy/mer_categroy/lst",t)}function D(t,n){return r["a"].post("diy/mer_categroy/status/".concat(t),{status:n})}function C(t){return r["a"].delete("diy/mer_categroy/delete/".concat(t))}function $(){return r["a"].get("diy/link/form")}function j(t){return r["a"].get("diy/link/".concat(t,"/form"))}function O(t){return r["a"].delete("diy/link/delete/".concat(t))}function S(t){return r["a"].get("diy/link/lst",t)}function A(){return r["a"].get("diy/mer_link/form")}function E(t){return r["a"].get("diy/mer_link/".concat(t,"/form"))}function J(t){return r["a"].delete("diy/mer_link/delete/".concat(t))}function q(t){return r["a"].get("diy/mer_link/lst",t)}function B(){return r["a"].get("diy/store_street")}function I(t){return r["a"].post("diy/store_street",t)}function M(t){return r["a"].get("diy/copy/".concat(t))}function N(t,n){return r["a"].post("micro/create/".concat(t),n)}function G(t){return r["a"].get("micro/lst",t)}function H(t){return r["a"].get("micro/detail/".concat(t))}function K(t,n){return r["a"].delete("micro/delete/".concat(t),n)}function P(){return r["a"].get("diy/select")}}}]);