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 lines
8.7 KiB
1 lines
8.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cd6ee6e2"],{"0a4c":function(t,e,n){},c9e7:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"页面搜索:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入页面名称/ID",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.diyFrom.keyword,callback:function(e){t.$set(t.diyFrom,"keyword",e)},expression:"diyFrom.keyword"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),n("el-row",{staticClass:"ivu-mt box-wrapper"},[n("el-row",[n("el-col",{staticClass:"table",attrs:{span:24}},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("el-row",{attrs:{type:"flex"}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"button acea-row row-middle"},[n("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",size:"small"},on:{click:t.add}},[n("i",{staticClass:"el-icon-plus",staticStyle:{"margin-right":"4px"}}),t._v("添加")])],1)])],1)],1)])],1),t._v(" "),n("el-row",[n("el-col",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"tables",attrs:{data:t.list,size:"small"}},[n("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"页面名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"add_time",label:"创建时间","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"update_time",label:"更新时间","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.edit(e.row)}}},[t._v("编辑")]),t._v(" "),e.row.status?n("el-button",{staticClass:"copy-data",attrs:{type:"text",size:"small"},on:{click:function(n){return t.preview(e.row)}}},[t._v("预览")]):t._e(),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.del(e.row.id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("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),t._v(" "),n("el-dialog",{attrs:{visible:t.modal,title:"预览",width:"300px"},on:{"update:visible":function(e){t.modal=e}}},[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"code"},[n("vue-qr",{staticClass:"bicode",attrs:{text:t.qrcodeImg,size:310}})],1)])],1)},i=[],o=n("db72"),a=n("bbcc"),c=n("83d6"),u=n("f478"),s=n("2f62"),l=n("658f"),d=n.n(l),f={name:"devise_list",computed:Object(o["a"])({},Object(s["d"])("layout",["menuCollapse"])),components:{VueQr:d.a},data:function(){return{grid:{sm:10,md:12,lg:19},loading:!1,theme3:"light",roterPre:c["roterPre"],list:[],imgUrl:"",modal:!1,BaseURL:a["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 e=this;Object(u["z"])(t).then((function(t){e.qrcodeImg=t.data.url})).catch((function(t){e.$message.error(t)}))},preview:function(t){this.modal=!0,this.routineCode(t.id)},getList:function(){var t=this,e=window.localStorage;this.imgUrl=e.getItem("imgUrl");var n=this;this.loading=!0,Object(u["H"])(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(),a="".concat(n.BaseURL,"/pages/index/index?inner_frame=1&time=").concat(o);e.setItem("imgUrl",a),n.imgUrl=a}))},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(c["roterPre"],"/setting/diy/index"),query:{id:t.id,name:t.template_name||"moren",types:0}})},add:function(){this.$router.push({path:"".concat(c["roterPre"],"/setting/diy/index"),query:{id:0,name:"首页",types:0}})},del:function(t,e){var n=this;this.$modalSure("删除模板吗").then((function(){Object(u["F"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},m=f,g=(n("f43e"),n("2877")),y=Object(g["a"])(m,r,i,!1,null,"52e5da1b",null);e["default"]=y.exports},f43e:function(t,e,n){"use strict";n("0a4c")},f478:function(t,e,n){"use strict";n.d(e,"t",(function(){return i})),n.d(e,"y",(function(){return o})),n.d(e,"o",(function(){return a})),n.d(e,"n",(function(){return c})),n.d(e,"m",(function(){return u})),n.d(e,"l",(function(){return s})),n.d(e,"P",(function(){return l})),n.d(e,"O",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"A",(function(){return m})),n.d(e,"z",(function(){return g})),n.d(e,"w",(function(){return y})),n.d(e,"B",(function(){return p})),n.d(e,"J",(function(){return h})),n.d(e,"K",(function(){return v})),n.d(e,"c",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"L",(function(){return _})),n.d(e,"M",(function(){return k})),n.d(e,"i",(function(){return x})),n.d(e,"a",(function(){return C})),n.d(e,"p",(function(){return z})),n.d(e,"C",(function(){return F})),n.d(e,"D",(function(){return L})),n.d(e,"g",(function(){return O})),n.d(e,"d",(function(){return $})),n.d(e,"s",(function(){return j})),n.d(e,"j",(function(){return I})),n.d(e,"N",(function(){return S})),n.d(e,"b",(function(){return U})),n.d(e,"q",(function(){return q})),n.d(e,"h",(function(){return D})),n.d(e,"E",(function(){return P})),n.d(e,"u",(function(){return B})),n.d(e,"f",(function(){return E})),n.d(e,"k",(function(){return J})),n.d(e,"I",(function(){return N})),n.d(e,"H",(function(){return H})),n.d(e,"G",(function(){return R})),n.d(e,"F",(function(){return A})),n.d(e,"x",(function(){return G}));var r=n("0c6d");function i(t){return r["a"].get("store/category/list",t)}function o(t){return r["a"].get("diy/product/lst",t)}function a(t,e){return r["a"].post("diy/create/".concat(t),e)}function c(t){return r["a"].get("diy/lst",t)}function u(t){return r["a"].get("diy/detail/".concat(t))}function s(t,e){return r["a"].delete("diy/delete/".concat(t),e)}function l(t){return r["a"].post("diy/status/".concat(t))}function d(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/lst",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(){return r["a"].get("diy/categroy/options")}function v(t,e){return r["a"].get("diy/link/getLinks/".concat(t),e)}function b(){return r["a"].get("diy/categroy/form")}function w(t){return r["a"].get("diy/categroy/".concat(t,"/form"))}function _(t){return r["a"].get("diy/categroy/lst",t)}function k(t,e){return r["a"].post("diy/categroy/status/".concat(t),{status:e})}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,e){return r["a"].post("diy/mer_categroy/status/".concat(t),{status:e})}function O(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 I(t){return r["a"].delete("diy/link/delete/".concat(t))}function S(t){return r["a"].get("diy/link/lst",t)}function U(){return r["a"].get("diy/mer_link/form")}function q(t){return r["a"].get("diy/mer_link/".concat(t,"/form"))}function D(t){return r["a"].delete("diy/mer_link/delete/".concat(t))}function P(t){return r["a"].get("diy/mer_link/lst",t)}function B(){return r["a"].get("diy/store_street")}function E(t){return r["a"].post("diy/store_street",t)}function J(t){return r["a"].get("diy/copy/".concat(t))}function N(t,e){return r["a"].post("micro/create/".concat(t),e)}function H(t){return r["a"].get("micro/lst",t)}function R(t){return r["a"].get("micro/detail/".concat(t))}function A(t,e){return r["a"].delete("micro/delete/".concat(t),e)}function G(){return r["a"].get("diy/select")}}}]); |