admin-api/public/system/js/chunk-bce2b004.a95e26c3.js

1 line
9.6 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bce2b004"],{c24a: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("el-card",[e("div",{staticClass:"container"},[e("el-form",{attrs:{inline:"",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"页面搜索:"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入页面名称/ID",size:"small"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList(1)}},model:{value:t.diyFrom.keyword,callback:function(n){t.$set(t.diyFrom,"keyword",n)},expression:"diyFrom.keyword"}},[e("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(n){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),e("el-row",{staticClass:"ivu-mt box-wrapper"},[e("el-row",[e("el-col",{staticClass:"table",attrs:{span:24}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("el-row",{attrs:{type:"flex"}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("div",{staticClass:"button acea-row row-middle"},[e("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",size:"small"},on:{click:t.add}},[e("i",{staticClass:"el-icon-plus",staticStyle:{"margin-right":"4px"}}),t._v("添加")])],1)])],1)],1)])],1),t._v(" "),e("el-row",[e("el-col",[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":"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(" "),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:{"page-sizes":[20,40,60,80],"page-size":t.diyFrom.limit,"current-page":t.diyFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)],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("5530"),c=e("bbcc"),a=e("83d6"),u=e("f478"),s=e("2f62"),d=e("658f"),l=e.n(d),f={name:"devise_list",computed:Object(o["a"])({},Object(s["d"])("layout",["menuCollapse"])),components:{VueQr:l.a},data:function(){return{grid:{sm:10,md:12,lg:19},loading:!1,theme3:"light",roterPre:a["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:{routineCode:function(t){var n=this;Object(u["B"])(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(u["O"])(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(a["roterPre"],"/setting/diy/index"),query:{id:t.id,name:t.template_name||"moren",types:0}})},add:function(){this.$router.push({path:"".concat(a["roterPre"],"/setting/diy/index"),query:{id:0,name:"首页",types:0}})},del:function(t,n){var e=this;this.$modalSure("删除模板吗").then((function(){Object(u["M"])(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("f784"),e("2877")),y=Object(g["a"])(m,r,i,!1,null,"5d900a36",null);n["default"]=y.exports},f478:function(t,n,e){"use strict";e.d(n,"t",(function(){return i})),e.d(n,"A",(function(){return o})),e.d(n,"o",(function(){return c})),e.d(n,"n",(function(){return a})),e.d(n,"m",(function(){return u})),e.d(n,"l",(function(){return s})),e.d(n,"Y",(function(){return d})),e.d(n,"W",(function(){return l})),e.d(n,"e",(function(){return f})),e.d(n,"v",(function(){return m})),e.d(n,"B",(function(){return g})),e.d(n,"x",(function(){return y})),e.d(n,"C",(function(){return p})),e.d(n,"Q",(function(){return h})),e.d(n,"R",(function(){return v})),e.d(n,"c",(function(){return _})),e.d(n,"r",(function(){return b})),e.d(n,"S",(function(){return w})),e.d(n,"T",(function(){return k})),e.d(n,"i",(function(){return x})),e.d(n,"a",(function(){return C})),e.d(n,"p",(function(){return z})),e.d(n,"D",(function(){return L})),e.d(n,"E",(function(){return O})),e.d(n,"g",(function(){return F})),e.d(n,"d",(function(){return S})),e.d(n,"s",(function(){return U})),e.d(n,"j",(function(){return $})),e.d(n,"U",(function(){return j})),e.d(n,"V",(function(){return I})),e.d(n,"b",(function(){return q})),e.d(n,"q",(function(){return D})),e.d(n,"h",(function(){return B})),e.d(n,"F",(function(){return P})),e.d(n,"G",(function(){return E})),e.d(n,"u",(function(){return J})),e.d(n,"f",(function(){return N})),e.d(n,"k",(function(){return R})),e.d(n,"P",(function(){return M})),e.d(n,"O",(function(){return Q})),e.d(n,"N",(function(){return T})),e.d(n,"M",(function(){return V})),e.d(n,"z",(function(){return W})),e.d(n,"K",(function(){return A})),e.d(n,"I",(function(){return G})),e.d(n,"H",(function(){return H})),e.d(n,"L",(function(){return K})),e.d(n,"J",(function(){return X})),e.d(n,"y",(function(){return Y})),e.d(n,"X",(function(){return Z}));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 a(t){return r["a"].get("diy/lst",t)}function u(t){return r["a"].get("diy/detail/".concat(t))}function s(t,n){return r["a"].delete("diy/delete/".concat(t),n)}function d(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 w(t){return r["a"].get("diy/categroy/lst",t)}function k(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 L(t){return r["a"].get("diy/mer_categroy/lst",t)}function O(t,n){return r["a"].post("diy/mer_categroy/status/".concat(t),{status:n})}function F(t){return r["a"].delete("diy/mer_categroy/delete/".concat(t))}function S(){return r["a"].get("diy/link/form")}function U(t){return r["a"].get("diy/link/".concat(t,"/form"))}function $(t){return r["a"].delete("diy/link/delete/".concat(t))}function j(t){return r["a"].get("diy/link/lst",t)}function I(t,n){return r["a"].post("diy/link/status/".concat(t),{status:n})}function q(){return r["a"].get("diy/mer_link/form")}function D(t){return r["a"].get("diy/mer_link/".concat(t,"/form"))}function B(t){return r["a"].delete("diy/mer_link/delete/".concat(t))}function P(t){return r["a"].get("diy/mer_link/lst",t)}function E(t,n){return r["a"].post("diy/mer_link/status/".concat(t),{status:n})}function J(){return r["a"].get("diy/store_street")}function N(t){return r["a"].post("diy/store_street",t)}function R(t){return r["a"].get("diy/copy/".concat(t))}function M(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(){return r["a"].get("diy/select")}function A(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 X(t){return r["a"].get("mer_diy/detail/".concat(t))}function Y(t){return r["a"].get("mer_diy/scope/".concat(t))}function Z(t,n){return r["a"].post("mer_diy/scope/".concat(t),n)}},f784:function(t,n,e){"use strict";e("c24a")}}]);