启程易购后端代码
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 line
9.3 KiB

9 months ago
(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