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-cd6ee6e2.41d3e160.js

1 line
8.7 KiB

12 months ago
(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=1