启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-7963c1f2.9feda32f.js

1 lines
9.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7963c1f2"],{1554:function(t,n,e){},c9e7: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("div",{staticClass:"selCard"},[e("el-form",{ref:"searchForm",attrs:{model:t.diyFrom,inline:"",size:"small","label-width":"85px"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"页面搜索:",prop:"keyword"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入页面名称/ID"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList()}},model:{value:t.diyFrom.keyword,callback:function(n){t.$set(t.diyFrom,"keyword",n)},expression:"diyFrom.keyword"}})],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(n){return t.getList()}}},[t._v("搜索")]),t._v(" "),e("el-button",{attrs:{size:"small"},on:{click:function(n){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),e("el-card",{staticClass:"mt14"},[e("el-button",{staticClass:"mb20",attrs:{type:"primary",size:"small"},on:{click:t.add}},[t._v("添加微页面")]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"tables",attrs:{data:t.list,size:"small"}},[e("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"页面名称","min-width":"200"}}),t._v(" "),e("el-table-column",{attrs:{prop:"add_time",label:"创建时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"100"},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(" "),n.row.status?e("el-button",{staticClass:"copy-data",attrs:{type:"text",size:"small"},on:{click:function(e){return t.preview(n.row)}}},[t._v("预览")]):t._e(),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.del(n.row.id,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{background:"","page-size":t.diyFrom.limit,"current-page":t.diyFrom.page,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),e("el-dialog",{attrs:{visible:t.modal,title:"预览",width:"300px"},on:{"update:visible":function(n){t.modal=n}}},[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"code"},[e("vue-qr",{staticClass:"bicode",attrs:{text:t.qrcodeImg,size:310}})],1)])],1)},i=[],o=e("db72"),c=e("bbcc"),u=e("83d6"),a=e("f478"),d=e("2f62"),s=e("658f"),l=e.n(s),f={name:"devise_list",computed:Object(o["a"])({},Object(d["d"])("layout",["menuCollapse"])),components:{VueQr:l.a},data:function(){return{grid:{sm:10,md:12,lg:19},loading:!1,theme3:"light",roterPre:u["roterPre"],list:[],imgUrl:"",modal:!1,BaseURL:c["a"].httpUrl||"http://localhost:8080",cardShow:0,loadingExist:!1,isDiy:1,qrcodeImg:"",diyFrom:{keyword:"",page:1,limit:20},total:0}},created:function(){this.getList()},mounted:function(){},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList()},routineCode:function(t){var n=this;Object(a["A"])(t).then((function(t){n.qrcodeImg=t.data.url})).catch((function(t){n.$message.error(t)}))},preview:function(t){this.modal=!0,this.routineCode(t.id)},getList:function(){var t=this,n=window.localStorage;this.imgUrl=n.getItem("imgUrl");var e=this;this.loading=!0,Object(a["N"])(this.diyFrom).then((function(r){t.loading=!1;var i=r.data;t.list=i.list,t.total=i.count;var o=1e3*(new Date).getTime(),c="".concat(e.BaseURL,"/pages/index/index?inner_frame=1&time=").concat(o);n.setItem("imgUrl",c),e.imgUrl=c}))},pageChange:function(t){this.diyFrom.page=t,this.getList()},handleSizeChange:function(t){this.diyFrom.limit=t,this.getList()},edit:function(t){this.$router.push({path:"".concat(u["roterPre"],"/setting/diy/index"),query:{id:t.id,name:t.template_name||"moren",types:0}})},add:function(){this.$router.push({path:"".concat(u["roterPre"],"/setting/diy/index"),query:{id:0,name:"首页",types:0}})},del:function(t,n){var e=this;this.$modalSure("删除模板吗").then((function(){Object(a["L"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))}}},m=f,g=(e("d252"),e("2877")),y=Object(g["a"])(m,r,i,!1,null,"2899c6c5",null);n["default"]=y.exports},d252:function(t,n,e){"use strict";e("1554")},f478:function(t,n,e){"use strict";e.d(n,"t",(function(){return i})),e.d(n,"z",(function(){return o})),e.d(n,"o",(function(){return c})),e.d(n,"n",(function(){return u})),e.d(n,"m",(function(){return a})),e.d(n,"l",(function(){return d})),e.d(n,"X",(function(){return s})),e.d(n,"V",(function(){return l})),e.d(n,"e",(function(){return f})),e.d(n,"v",(function(){return m})),e.d(n,"A",(function(){return g})),e.d(n,"x",(function(){return y})),e.d(n,"B",(function(){return p})),e.d(n,"P",(function(){return h})),e.d(n,"Q",(function(){return v})),e.d(n,"c",(function(){return _})),e.d(n,"r",(function(){return b})),e.d(n,"R",(function(){return k})),e.d(n,"S",(function(){return w})),e.d(n,"i",(function(){return x})),e.d(n,"a",(function(){return C})),e.d(n,"p",(function(){return z})),e.d(n,"C",(function(){return F})),e.d(n,"D",(function(){return L})),e.d(n,"g",(function(){return O})),e.d(n,"d",(function(){return $})),e.d(n,"s",(function(){return U})),e.d(n,"j",(function(){return j})),e.d(n,"T",(function(){return I})),e.d(n,"U",(function(){return q})),e.d(n,"b",(function(){return S})),e.d(n,"q",(function(){return D})),e.d(n,"h",(function(){return P})),e.d(n,"E",(function(){return R})),e.d(n,"F",(function(){return B})),e.d(n,"u",(function(){return E})),e.d(n,"f",(function(){return N})),e.d(n,"k",(function(){return J})),e.d(n,"O",(function(){return A})),e.d(n,"N",(function(){return Q})),e.d(n,"M",(function(){return T})),e.d(n,"L",(function(){return V})),e.d(n,"J",(function(){return W})),e.d(n,"H",(function(){return G})),e.d(n,"G",(function(){return H})),e.d(n,"K",(function(){return K})),e.d(n,"I",(function(){return M})),e.d(n,"y",(function(){return X})),e.d(n,"W",(function(){return Y}));var r=e("0c6d");function i(t){return r["a"].get("store/category/list",t)}function o(t){return r["a"].get("diy/product/lst",t)}function c(t,n){return r["a"].post("diy/create/".concat(t),n)}function u(t){return r["a"].get("diy/lst",t)}function a(t){return r["a"].get("diy/detail/".concat(t))}function d(t,n){return r["a"].delete("diy/delete/".concat(t),n)}function s(t){return r["a"].post("diy/status/".concat(t))}function l(t){return r["a"].get("diy/recovery/".concat(t))}function f(){return r["a"].get("/cms/category_list")}function m(t){return r["a"].get("diy/link/list",t)}function g(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(t){return r["a"].get("diy/categroy/options",t)}function v(t,n){return r["a"].get("diy/link/getLinks/".concat(t),n)}function _(){return r["a"].get("diy/categroy/form")}function b(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 x(t){return r["a"].delete("diy/categroy/delete/".concat(t))}function C(){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 L(t,n){return r["a"].post("diy/mer_categroy/status/".concat(t),{status:n})}function O(t){return r["a"].delete("diy/mer_categroy/delete/".concat(t))}function $(){return r["a"].get("diy/link/form")}function U(t){return r["a"].get("diy/link/".concat(t,"/form"))}function j(t){return r["a"].delete("diy/link/delete/".concat(t))}function I(t){return r["a"].get("diy/link/lst",t)}function q(t,n){return r["a"].post("diy/link/status/".concat(t),{status:n})}function S(){return r["a"].get("diy/mer_link/form")}function D(t){return r["a"].get("diy/mer_link/".concat(t,"/form"))}function P(t){return r["a"].delete("diy/mer_link/delete/".concat(t))}function R(t){return r["a"].get("diy/mer_link/lst",t)}function B(t,n){return r["a"].post("diy/mer_link/status/".concat(t),{status:n})}function E(){return r["a"].get("diy/store_street")}function N(t){return r["a"].post("diy/store_street",t)}function J(t){return r["a"].get("diy/copy/".concat(t))}function A(t,n){return r["a"].post("micro/create/".concat(t),n)}function Q(t){return r["a"].get("micro/lst",t)}function T(t){return r["a"].get("micro/detail/".concat(t))}function V(t,n){return r["a"].delete("micro/delete/".concat(t),n)}function W(t){return r["a"].get("mer_diy/lst",t)}function G(t,n){return r["a"].delete("mer_diy/delete/".concat(t),n)}function H(t){return r["a"].get("mer_diy/copy/".concat(t))}function K(t,n){return r["a"].post("mer_diy/create/".concat(t),n)}function M(t){return r["a"].get("mer_diy/detail/".concat(t))}function X(t){return r["a"].get("mer_diy/scope/".concat(t))}function Y(t,n){return r["a"].post("mer_diy/scope/".concat(t),n)}}}]);