aaa
doum
2026-06-08 3ac279c9df7181c9f21d35a689a321b990b87b22
1
2
(function(e){function t(t){for(var r,n,o=t[0],l=t[1],c=t[2],d=0,m=[];d<o.length;d++)n=o[d],Object.prototype.hasOwnProperty.call(i,n)&&i[n]&&m.push(i[n][0]),i[n]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);u&&u(t);while(m.length)m.shift()();return s.push.apply(s,c||[]),a()}function a(){for(var e,t=0;t<s.length;t++){for(var a=s[t],r=!0,o=1;o<a.length;o++){var l=a[o];0!==i[l]&&(r=!1)}r&&(s.splice(t--,1),e=n(n.s=a[0]))}return e}var r={},i={app:0},s=[];function n(t){if(r[t])return r[t].exports;var a=r[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=r,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],l=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var u=l;s.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"0290":function(e,t,a){"use strict";a("794c")},"050b":function(e,t,a){},"05d8":function(e,t,a){e.exports=a.p+"static/img/pk_defult.6310fad4.png"},"073d":function(e,t,a){},"09df":function(e,t,a){"use strict";a("3443")},"0eb1":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:permission:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:permission:create","system:permission:delete"],expression:"['system:permission:create', 'system:permission:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:permission:create"],expression:"['system:permission:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaPermissionWindow.open("新建系统权限")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:permission:delete"],expression:"['system:permission:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",fixed:"left",width:"55"}}),a("el-table-column",{attrs:{prop:"code",label:"权限编码",fixed:"left","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"name",label:"权限名称",fixed:"left","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"remark",label:"权限备注","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px",sortable:"custom","sort-by":"perm.CREATE_TIME"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),e.containPermissions(["system:permission:update","system:permission:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"130",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.fixed?e._e():a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:permission:update"],expression:"['system:permission:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaPermissionWindow.open("编辑系统权限",r)}}},[e._v("编辑")]),r.fixed?e._e():a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:permission:delete"],expression:"['system:permission:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,3206117851)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"权限编码",prop:"code"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入权限编码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.code,callback:function(t){e.$set(e.searchForm,"code",t)},expression:"searchForm.code"}})],1),a("el-form-item",{attrs:{label:"权限名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入权限名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaPermissionWindow",{ref:"operaPermissionWindow",on:{success:e.handlePageChange}})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"权限编码",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入权限编码",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{attrs:{label:"权限名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入权限名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"权限备注",prop:"remark"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入权限备注",type:"textarea",rows:3,maxlength:"500"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m={name:"OperaPermissionWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){return{originPermissionCode:"",form:{id:null,code:"",name:"",remark:""},rules:{code:[{required:!0,message:"请输入权限编码"}],name:[{required:!0,message:"请输入权限名称"}]}}},methods:{open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.originPermissionCode=t.code,a.form)a.form[e]=t[e]})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null}))},confirm:function(){var e=this;null!=this.form.id&&""!==this.form.id?this.originPermissionCode!==this.form.code?this.$dialog.confirm("检测到您修改了权限编码,权限编码修改后前后端均可能需要调整代码,确认修改吗?","提示",{confirmButtonText:"确认修改",type:"warning"}).then((function(){e.__confirmEdit()})):this.__confirmEdit():this.__confirmCreate()}},created:function(){this.config({api:"/system/permission"})}},p=m,f=a("2877"),h=Object(f["a"])(p,l,c,!1,null,null,null),g=h.exports,b={name:"SystemPermission",extends:o["a"],components:{OperaPermissionWindow:g,TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchForm:{code:"",name:"",remark:""}}},created:function(){this.config({module:"权限",api:"/system/permission",sorts:[{property:"perm.CREATE_TIME",direction:"DESC"}]}),this.search()}},v=b,y=Object(f["a"])(v,r,i,!1,null,null,null);t["default"]=y.exports},"0f1b":function(e,t,a){"use strict";var r,i,s=a("b85c"),n=(a("d3b7"),a("ac1f"),a("841c"),a("99af"),a("a15b"),a("d81d"),a("e811")),o={name:"BaseTable",extends:n["a"],data:function(){return{api:null,module:"数据",configData:{"field.id":"id","field.main":"name"},isWorking:{search:!1,delete:!1,export:!1},tableData:{selectedRows:[],sorts:[],list:[],pagination:{pageIndex:1,pageSize:10,total:0}}}},methods:{config:function(e){if(null==e)throw new Error("Parameter can not be null of method 'config' .");if(null==e.api)throw new Error("Missing config option 'api'.");this.api=a("77ef")("./api"+e.api),e.module&&(this.module=e.module),e["field.id"]&&(this.configData["field.id"]=e["field.id"]),e["field.main"]&&(this.configData["field.main"]=e["field.main"]),this.tableData.sorts=e.sorts},search:function(){this.handlePageChange(1)},exportExcel:function(){var e=this;this.__checkApi(),this.$dialog.exportConfirm("确认导出吗?").then((function(){e.isWorking.export=!0,e.api.exportExcel({page:e.tableData.pagination.pageIndex,capacity:1e6,model:e.searchForm,sorts:e.tableData.sorts}).then((function(t){e.download(t)})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.export=!1}))})).catch((function(){}))},reset:function(){this.$refs.searchForm.resetFields(),this.search()},handleSizeChange:function(e){this.tableData.pagination.pageSize=e,this.search()},handleSelectionChange:function(e){this.tableData.selectedRows=e},handleSortChange:function(e){this.tableData.sorts=[],null!=e.order&&this.tableData.sorts.push({property:e.column.sortBy,direction:"descending"===e.order?"DESC":"ASC"}),this.handlePageChange()},handlePageChange:function(e){var t=this;this.__checkApi(),this.tableData.pagination.pageIndex=e||this.tableData.pagination.pageIndex,this.isWorking.search=!0,this.api.fetchList({page:this.tableData.pagination.pageIndex,capacity:this.tableData.pagination.pageSize,model:this.searchForm,sorts:this.tableData.sorts}).then((function(e){t.tableData.list=e.records,t.tableData.pagination.total=e.total})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.isWorking.search=!1}))},deleteById:function(e){var t=this,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.__checkApi();var r="确认删除".concat(this.module,"【").concat(e[this.configData["field.main"]],"】吗?");a&&null!=e.children&&e.children.length>0&&(r="确认删除".concat(this.module,"【").concat(e[this.configData["field.main"]],"】及其子").concat(this.module,"吗?")),this.$dialog.deleteConfirm(r).then((function(){t.isWorking.delete=!0,t.api.deleteById(e[t.configData["field.id"]]).then((function(){t.$tip.apiSuccess("删除成功"),t.__afterDelete()})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.isWorking.delete=!1}))})).catch((function(){}))},deleteByIdInBatch:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.__checkApi(),0!==this.tableData.selectedRows.length){var a="确认删除已选中的 ".concat(this.tableData.selectedRows.length," 条").concat(this.module,"记录吗?");if(t){var r,i=[],n=Object(s["a"])(this.tableData.selectedRows);try{for(n.s();!(r=n.n()).done;){var o=r.value;null!=o.children&&o.children.length>0&&i.push(o[this.configData["field.main"]])}}catch(l){n.e(l)}finally{n.f()}i.length>0&&(a="本次将删除".concat(this.module,"【").concat(i.join("、"),"】及其子").concat(this.module,"记录,确认删除吗?"))}this.$dialog.deleteConfirm(a).then((function(){e.isWorking.delete=!0,e.api.deleteByIdInBatch(e.tableData.selectedRows.map((function(e){return e.id})).join(",")).then((function(){e.$tip.apiSuccess("删除成功"),e.__afterDelete(e.tableData.selectedRows.length)})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.delete=!1}))})).catch((function(){}))}else this.$tip.warning("请至少选择一条数据")},__afterDelete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.tableData.list.length-e===0?this.handlePageChange(this.tableData.pagination.pageIndex-1===0?1:this.tableData.pagination.pageIndex-1):this.handlePageChange(this.tableData.pagination.pageIndex)},__checkApi:function(){if(null==this.api)throw new Error("The page is not initialized, you can use method 'this.config' to initialize this page.")}}},l=o,c=a("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["a"]=u.exports},"118d":function(e,t,a){},"123b":function(e,t,a){"use strict";a.r(t),a.d(t,"fetchTree",(function(){return i})),a.d(t,"fetchList",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"deleteByIdInBatch",(function(){return c}));var r=a("b775");function i(e){return r["a"].post("/system/position/tree",e)}function s(e){return r["a"].post("/system/position/list",e)}function n(e){return r["a"].post("/system/position/create",e)}function o(e){return r["a"].post("/system/position/updateById",e)}function l(e){return r["a"].get("/system/position/delete/".concat(e))}function c(e){return r["a"].get("/system/position/delete/batch",{params:{ids:e}})}},1242:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));a("498a");function r(e,t,a){null!=t&&""!==t.trim()?/^1\d{10}$/.test(t)?a():a(new Error("手机号码格式不正确")):a(new Error("手机号码不能为空"))}function i(e,t,a){null!=t&&""!==t.trim()?/^\S+@\S+\.\S+$/.test(t)?a():a(new Error("邮箱格式不正确")):a()}},1484:function(e,t,a){"use strict";a("a8f3")},1578:function(e,t,a){},"162a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:loginLog:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"","default-sort":{prop:"loginTime",order:"descending"}},on:{"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{prop:"loginUsername",label:"登录用户名","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"ip",label:"登录IP","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"location",label:"登录地址","min-width":"160px"}}),a("el-table-column",{attrs:{prop:"clientInfo",label:"客户端","min-width":"160px"}}),a("el-table-column",{attrs:{prop:"osInfo",label:"操作系统","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"platform",label:"登录平台","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"loginTime",label:"登录时间","min-width":"160px",sortable:"custom","sort-by":"LOGIN_TIME"}}),a("el-table-column",{attrs:{prop:"systemVersion",label:"系统版本","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"serverIp",label:"服务器IP","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"success",label:"状态","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("statusText")(a.success))+" ")]}}])}),a("el-table-column",{attrs:{prop:"reason",label:"失败原因","min-width":"160px"}})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"登录用户名",prop:"loginUsername"}},[a("el-input",{attrs:{placeholder:"请输入登录用户名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.loginUsername,callback:function(t){e.$set(e.searchForm,"loginUsername",t)},expression:"searchForm.loginUsername"}})],1),a("el-form-item",{attrs:{label:"登录IP",prop:"ip"}},[a("el-input",{attrs:{placeholder:"请输入登录IP"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.ip,callback:function(t){e.$set(e.searchForm,"ip",t)},expression:"searchForm.ip"}})],1),a("el-form-item",{attrs:{label:"服务器IP",prop:"serverIp"}},[a("el-input",{attrs:{placeholder:"请输入服务器IP"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.serverIp,callback:function(t){e.$set(e.searchForm,"serverIp",t)},expression:"searchForm.serverIp"}})],1),a("el-form-item",{attrs:{label:"是否登录成功",prop:"success"}},[a("el-select",{attrs:{placeholder:"请选择是否登录状态",clearable:""},on:{change:e.search},model:{value:e.searchForm.success,callback:function(t){e.$set(e.searchForm,"success",t)},expression:"searchForm.success"}},[a("el-option",{attrs:{value:"true",label:"登录成功"}}),a("el-option",{attrs:{value:"false",label:"登录失败"}})],1)],1),a("el-form-item",{attrs:{label:"登录时间",prop:"loginTime"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.handleSearchTimeChange},model:{value:e.searchDateRange,callback:function(t){e.searchDateRange=t},expression:"searchDateRange"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:e.exportExcel}},[e._v("导出")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1)},i=[],s=(a("ac1f"),a("841c"),a("0f1b")),n=a("aa1c"),o=a("d529"),l={name:"SystemLoginLog",extends:s["a"],components:{TableLayout:n["a"],Pagination:o["a"]},data:function(){return{searchDateRange:[],searchForm:{loginUsername:"",ip:"",serverIp:"",success:"",startTime:null,endTime:null}}},filters:{statusText:function(e){return e?"登录成功":"登录失败"}},methods:{handleSearchTimeChange:function(e){this.searchForm.startTime=null,this.searchForm.endTime=null,null!=e&&(this.searchForm.startTime=e[0],this.searchForm.endTime=e[1]),this.search()}},created:function(){this.config({module:"登录日志",api:"/system/loginLog","field.id":"id","field.main":"id",sorts:[{property:"LOGIN_TIME",direction:"DESC"}]}),this.search()}},c=l,u=a("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},"192d":function(e,t,a){e.exports=a.p+"static/img/3a.becb49c7.png"},"1a1a":function(e,t,a){"use strict";a("2b87")},"1a22":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:datapermission:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:datapermission:create","system:datapermission:delete"],expression:"['system:datapermission:create', 'system:datapermission:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:datapermission:create"],expression:"['system:datapermission:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaDataPermissionWindow.open("新建数据权限")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:datapermission:delete"],expression:"['system:datapermission:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"businessCode",label:"业务模块","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e._f("moduleText")(a.businessCode,e.modules)))]}}])}),a("el-table-column",{attrs:{prop:"roleId",label:"角色","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(a.role.name))]}}])}),a("el-table-column",{attrs:{prop:"type",label:"权限类型","min-width":"140px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e._f("typeText")(a.type,e.types)))]}}])}),a("el-table-column",{attrs:{prop:"disabled",label:"是否启用","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},on:{change:function(t){return e.switchDisabled(r)}},model:{value:r.disabled,callback:function(t){e.$set(r,"disabled",t)},expression:"row.disabled"}})]}}])}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"修改人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"修改时间","min-width":"140px"}}),e.containPermissions(["system:datapermission:update","system:datapermission:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:datapermission:update"],expression:"['system:datapermission:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaDataPermissionWindow.open("编辑数据权限",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:datapermission:delete"],expression:"['system:datapermission:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,3832490193)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"业务模块",prop:"businessCode"}},[a("DataPermModuleSelect",{attrs:{clearable:""},on:{change:e.search},model:{value:e.searchForm.businessCode,callback:function(t){e.$set(e.searchForm,"businessCode",t)},expression:"searchForm.businessCode"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"roleId"}},[a("RoleSelect",{attrs:{clearable:""},on:{change:e.search},model:{value:e.searchForm.roleId,callback:function(t){e.$set(e.searchForm,"roleId",t)},expression:"searchForm.roleId"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaDataPermissionWindow",{ref:"operaDataPermissionWindow",on:{success:e.handlePageChange}})],1)},i=[],s=a("1da1"),n=a("b85c"),o=(a("96cf"),a("99af"),a("b0c0"),a("d3b7"),a("ac1f"),a("841c"),a("0f1b")),l=a("aa1c"),c=a("d529"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"业务模块",prop:"businessCode",required:""}},[a("DataPermModuleSelect",{attrs:{disabled:null!=e.form.id,inline:!1},on:{change:e.handleBusinessChange},model:{value:e.form.businessCode,callback:function(t){e.$set(e.form,"businessCode",t)},expression:"form.businessCode"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"roleId",required:""}},[a("RoleSelect",{attrs:{disabled:null!=e.form.id,inline:!1},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}})],1),a("el-form-item",{attrs:{label:"权限类型",prop:"type",required:""}},[a("DataPermTypeSelect",{attrs:{module:e.form.businessCode,inline:!1},on:{change:e.handleTypeChange},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}})],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showCustomData,expression:"showCustomData"}],attrs:{label:"自定义数据",prop:"customData"}},[e.visible?a("CustomSelect",{attrs:{"business-code":e.form.businessCode},on:{change:e.handleCustomDataChange},model:{value:e.customData,callback:function(t){e.customData=t},expression:"customData"}}):e._e()],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"textarea",placeholder:"请输入备注",rows:3,maxlength:"500"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)},d=[],m=(a("1276"),a("a15b"),a("ae62")),p=a("5543"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{staticClass:"role-select",class:{select__block:!e.inline},attrs:{value:e.value,placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled},on:{change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}}},e._l(e.roles,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)},h=[],g=a("3528"),b={name:"RoleSelect",props:{value:{},placeholder:{default:"请选择角色"},inline:{default:!0},disabled:{},clearable:{default:!1}},data:function(){return{roles:[]}},created:function(){var e=this;Object(g["fetchAll"])().then((function(t){e.roles=t}))}},v=b,y=(a("dd38"),a("2877")),w=Object(y["a"])(v,f,h,!1,null,"613d5ebb",null),_=w.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{staticClass:"data-perm-module-select",class:{select__block:!e.inline},attrs:{value:e.value,placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled},on:{change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}}},e._l(e.modules,(function(e){return a("el-option",{key:e.businessCode,attrs:{value:e.businessCode,label:e.moduleName}})})),1)},k=[],C=a("4426"),I={name:"DataPermModuleSelect",props:{value:{},placeholder:{default:"请选择权限模块"},inline:{default:!0},disabled:{},clearable:{default:!1}},data:function(){return{modules:[]}},created:function(){var e=this;Object(C["fetchModules"])().cache().then((function(t){e.modules=t}))}},A=I,S=(a("a85a"),Object(y["a"])(A,x,k,!1,null,"0eea149e",null)),F=S.exports,B=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{staticClass:"data-perm-type-select",class:{select__block:!e.inline},attrs:{value:e.value,placeholder:e.placeholder,clearable:e.clearable,disabled:e.disabled},on:{change:function(t){return e.$emit("change",t)},input:function(t){return e.$emit("input",t)}}},e._l(e.filterTypes,(function(e){return a("el-option",{key:e.code,attrs:{value:e.code,label:e.remark}})})),1)},P=[],D={name:"DataPermTypeSelect",props:{value:{},module:{},placeholder:{default:"请选择权限类型"},inline:{default:!0},disabled:{},clearable:{default:!1}},data:function(){return{types:[]}},computed:{filterTypes:function(){if(null==this.module||""===this.module)return[];var e,t=[],a=Object(n["a"])(this.types);try{for(a.s();!(e=a.n()).done;){var r=e.value;0!==r.modules.length&&-1===r.modules.indexOf(this.module)||t.push(r)}}catch(i){a.e(i)}finally{a.f()}return t}},created:function(){var e=this;Object(C["fetchTypes"])().cache().then((function(t){e.types=t}))}},T=D,O=(a("410c"),Object(y["a"])(T,B,P,!1,null,"1458adbb",null)),N=O.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.component,{tag:"component",attrs:{value:e.values,inline:!1,multiple:""},on:{input:e.handleInput}})},L=[],W=(a("3ca3"),a("ddb0"),{name:"CustomSelect",props:{value:{},businessCode:{type:String,required:!0}},computed:{values:function(){if("DEPARTMENT"===this.businessCode||"POSITION"===this.businessCode){var e,t=[],a=Object(n["a"])(this.value);try{for(a.s();!(e=a.n()).done;){var r=e.value;t.push(parseInt(r))}}catch(i){a.e(i)}finally{a.f()}return t}return this.value},component:function(){return"DEPARTMENT"===this.businessCode?function(){return Promise.resolve().then(a.bind(null,"cc38"))}:"POSITION"===this.businessCode?function(){return Promise.resolve().then(a.bind(null,"a68c"))}:null}},methods:{handleInput:function(e){this.$emit("input",e),this.$emit("change",e)}}}),U=W,j=Object(y["a"])(U,E,L,!1,null,"1b0ef257",null),R=j.exports,G={name:"OperaDataPermissionWindow",extends:m["a"],components:{CustomSelect:R,RoleSelect:_,DataPermTypeSelect:N,DataPermModuleSelect:F,GlobalWindow:p["a"]},data:function(){return{customData:[],showCustomData:!1,form:{id:null,businessCode:"",roleId:"",type:"",remark:"",customData:""},rules:{businessCode:[{required:!0,message:"请选择业务模块"}],roleId:[{required:!0,message:"请选择角色"}],type:[{required:!0,message:"请选择权限类型"}]}}},methods:{open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.form)a.form[e]=t[e];a.customData=null==a.form.customData||""===a.form.customData?[]:a.form.customData.split(","),a.handleTypeChange()})):this.$nextTick((function(){a.customData=[],a.showCustomData=!1,a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null}))},handleBusinessChange:function(){this.form.customData="",this.customData=[],this.handleTypeChange()},handleTypeChange:function(){11!==this.form.type&&21!==this.form.type||null==this.form.businessCode||""===this.form.businessCode?this.showCustomData=!1:this.showCustomData=!0},handleCustomDataChange:function(e){this.form.customData=e.join(",")}},created:function(){this.config({api:"/system/dataPermission","field.id":"id"})}},z=G,q=Object(y["a"])(z,u,d,!1,null,null,null),M=q.exports,Q=function(e,t){var a,r=Object(n["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.businessCode===e)return i.moduleName}}catch(s){r.e(s)}finally{r.f()}return"未知"},H={name:"DataPermission",extends:o["a"],components:{RoleSelect:_,DataPermModuleSelect:F,TableLayout:l["a"],Pagination:c["a"],OperaDataPermissionWindow:M},data:function(){return{modules:[],types:[],searchForm:{businessCode:"",roleId:null,type:""}}},filters:{typeText:function(e,t){var a,r=Object(n["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.code===e)return i.remark}}catch(s){r.e(s)}finally{r.f()}return"未知"},moduleText:function(e,t){return Q(e,t)}},methods:{switchDisabled:function(e){var t=this;e.disabled?this.$dialog.disableConfirm("确认禁用 ".concat(Q(e.businessCode,this.modules),"/").concat(e.role.name," 数据权限吗?")).then((function(){t.__updateStatus(e)})).catch((function(){e.disabled=!e.disabled})):this.__updateStatus(e)},deleteById:function(e){var t=this;this.$dialog.deleteConfirm("确认删除【".concat(Q(e.businessCode,this.modules),"/").concat(e.role.name,"】数据权限吗?")).then((function(){t.isWorking.delete=!0,t.api.deleteById(e.id).then((function(){t.$tip.apiSuccess("删除成功"),t.__afterDelete()})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.isWorking.delete=!1}))})).catch((function(){}))},__updateStatus:function(e){var t=this;this.api.updateStatus({id:e.id,disabled:e.disabled}).then((function(){t.$tip.apiSuccess("修改成功")})).catch((function(a){e.disabled=!e.disabled,t.$tip.apiFailed(a)}))}},created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.config({module:"数据权限",api:"/system/dataPermission"}),t.next=3,e.api.fetchModules().then((function(t){e.modules=t}));case 3:return t.next=5,e.api.fetchTypes().then((function(t){e.types=t})).catch((function(e){console.log(e)}));case 5:e.search();case 6:case"end":return t.stop()}}),t)})))()}},K=H,V=Object(y["a"])(K,r,i,!1,null,null,null);t["default"]=V.exports},"1bfd":function(e,t,a){},"1de9":function(e,t,a){e.exports=a.p+"static/img/6a.617e8947.png"},"1e4b":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"home"})},i=[],s={name:"Index",data:function(){return{}}},n=s,o=(a("e117"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"68a52a72",null);t["default"]=l.exports},"1f0f":function(e,t,a){},"21ee":function(e,t,a){"use strict";a("e12c")},2331:function(e,t,a){},2813:function(e,t,a){"use strict";a("3f41")},"2a68":function(e,t,a){var r={"./views":"1e4b","./views/":"1e4b","./views/business/anchor":"c962","./views/business/anchor.vue":"c962","./views/business/brand":"57bc","./views/business/brand.vue":"57bc","./views/business/category":"5af4","./views/business/category.vue":"5af4","./views/business/goods":"95e6","./views/business/goods.vue":"95e6","./views/business/goodsImportTask":"4a98","./views/business/goodsImportTask.vue":"4a98","./views/business/order":"8e7f","./views/business/order.vue":"8e7f","./views/business/pageConfiguration":"f040","./views/business/pageConfiguration.vue":"f040","./views/business/pageConfigurationNew":"fa7f","./views/business/pageConfigurationNew.vue":"fa7f","./views/business/staff":"909c","./views/business/staff.vue":"909c","./views/index":"1e4b","./views/index.vue":"1e4b","./views/login":"dd7b","./views/login.vue":"dd7b","./views/no-permissions":"c852","./views/no-permissions.vue":"c852","./views/not-found":"63e6","./views/not-found.vue":"63e6","./views/system/data-permission":"1a22","./views/system/data-permission.vue":"1a22","./views/system/department":"9004","./views/system/department.vue":"9004","./views/system/dict":"6bce","./views/system/dict.vue":"6bce","./views/system/loginLog":"162a","./views/system/loginLog.vue":"162a","./views/system/menu":"5d8a","./views/system/menu.vue":"5d8a","./views/system/monitor":"9740","./views/system/monitor.vue":"9740","./views/system/permission":"0eb1","./views/system/permission.vue":"0eb1","./views/system/position":"38c8","./views/system/position.vue":"38c8","./views/system/role":"f982","./views/system/role.vue":"f982","./views/system/traceLog":"d1ff","./views/system/traceLog.vue":"d1ff","./views/system/user":"b979","./views/system/user.vue":"b979"};function i(e){return Promise.resolve().then((function(){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var i=r[e];return a(i)}))}i.keys=function(){return Object.keys(r)},i.id="2a68",e.exports=i},"2af7":function(e,t,a){e.exports=a.p+"static/img/8a.fd088657.png"},"2af9":function(e,t,a){},"2b87":function(e,t,a){},"2cb4":function(e,t,a){"use strict";a("2af9")},"2fa5":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAADodJREFUaEPtWglsFNcZ/t/MzuzsMetzbWNMjCObEHMFSwEHSglEFYqQQiENhKikKUnVEqKqISKqEhI5UjgMUkIcBYpsYgkVEsylhCOtORsIYLAbzBqMOc3tY/G9h3d3dqr/vX3r8WIDLkKtoqy0nt3Z2Tf/977///7vvTWBn9iD/MTwwM+A/t8Z/ZkhZEjXdVt5eTlYLBZrS0uLouu6nJqamnHz5k3icDjSfD6fHa8TRbHNZDK5zWZzZ2NjY5PT6Qw4nc6u0aNHhwgh3Y+CbbJp06bkhISEMQBgstvt6d3d3RIhJEHTtJRAICBYLJbMQCAgmkymREEQEvx+v0gISdI0jYiiqBJCzKFQCEHS+ARBiMaJ52LOBzRN6xRFEcG0ybLsCwQCNxVFCQaDwWuJiYlBURSvqKqqiaJ4LDs7u2agoMnq1asXa5q2QpIkQZZlUBSl19NkMuFMAx5jg9Y0jZ7j5yPsAQdICKHfJUQAQSAgyxKYzQodC+9jNpsB7ylJEh0jEAjQcw6HQ9c0bbbVat06YEBr1qxZ3NrauoIQIvDA8QZ4IyNA/hqPLEhC2cCn3W6nAWJQoihQAOFwGLq6usDr9YLH4wGfzweHDh2C5uZmGDZsGHR2dtLP/H4/8InB+164cAFWrlwJo0aNWiDL8t8GDGj9+vWLGxsbewHis4ZBciA4c8YZxZsjsJSUFBrQ0qVL4caNG/T+ONMYOAKJ1BKf+WhK2mw2wKeqqmC1WiE9PZ2O9+OPP8L06dNh7ty5C0RRHDig4uLihW63+zOsYUwFfHJAHIQxPfAcguGAnE4nFBQUwPfffw/BYJB+Nzk5GTo6Ouh7TD88x9MMmcUHjolg4uPj6VgWiwUSEhLg3LlzMHXqVHj11VcX2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NR+Yvsf8UC4u/R5uDW1dGjx6C+/ioFhLsynGVj2vUFDM8hw7jZPzRrKDiTnbin/c2cOXN+gzuhA2UmGjd/sXTp0jXhcHgBLqGNqRfLFAf0+eef0032oUMfh+PHj8GNG9ejMRi/z4HhhwgAd1gzh2bC0KwsGJyeDqrqoMtuq80KCfEJ386ePRu3pu9aiT4owOje6vLly9eGQqE/8V/j7gfq008/BUWxwBNPDIeDB5kYxD6w2aIlQgCPZWZC+qB0sNptdBuKqhzuH4TDENbC/i6Pp9aZlDR70aJF93TT9wMWBbR69erRDQ0N+NPkc7Isy/djatmyZZCTMwx8Pi/U1tZSVtFxpw8eTDfl8ZmYmAiyIoMYWVIbUk+XJKnZbFZ+UG22kqysrKrMzMy2nJych/4h+a6f9d96663hkiTNs1gscxRFeZxEqDIyhrO7a9cu+vMhAkhKToLB6YMpANEkRieRTwreRJLlNkmWKi2Ksj8tJe3w5MmTq7Kysvz3m/GBft7v/ym89tpriqqqv7Tb7a+Lovi8oigqHxwbKrqDw4cPw8tzXwZJNtMOj6LAfmelG4RdsixXSpJ8KNXp/NfIkSNPTZkypW2gAQ70+gf6x4uCgoIUj8fzotlsni9Jcp7FogjIzsmTlTDmqdFgtdpavT6Px5mS0mhRlL12Ne7AhPHjKydNmtQ60IAe9voHAsRvUlZWJrpcrtGybPrd6dM1U65cuVI7ZcqUCxMnTvxqxowZVwDATwhh/7DwP3oMCJAxRl3XhYeR10eF978G9KgCethxfwb0sDP4qL//k2PoP+8uZ4AIiIeWAAAAAElFTkSuQmCC"},3185:function(e,t,a){"use strict";a("1578")},3443:function(e,t,a){},3528:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"fetchAll",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"deleteByIdInBatch",(function(){return c})),a.d(t,"createRolePermission",(function(){return u})),a.d(t,"createRoleMenu",(function(){return d}));var r=a("b775");function i(e){return r["a"].post("/system/role/page",e)}function s(){return r["a"].get("/system/role/all")}function n(e){return r["a"].post("/system/role/create",e,{trim:!0})}function o(e){return r["a"].post("/system/role/updateById",e,{trim:!0})}function l(e){return r["a"].get("/system/role/delete/".concat(e))}function c(e){return r["a"].get("/system/role/delete/batch",{params:{ids:e}})}function u(e){return r["a"].post("/system/role/createRolePermission",e)}function d(e){return r["a"].post("/system/role/createRoleMenu",e)}},"365b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFX0lEQVR4AdxZfWhbVRQ/576uOC1++5+F2qQUXJmOCW4ykzdRxipzHdLCdEvaOjqm+0DrP8JgHSL4h8qwDvxa81HZoMo2YbVzIEsiOnET9keH0CYpWFDZVIZOWmvzrufUvOQ1eXlpkteXdo/7yz33vHvPOb+X9+6ngGV+5RGY/Hj93WMDGx4dD3t3jgc8fU4iHvT0jgW8T8VPeOoX+lznEeBgZ1bU/q4oyndCQlgIPOQkEPEtRcA5nMGfEmFvYCEkMgQSYc8ZDnYhjRypI6EzEfJOFPM1RyAZUneBxKcNla8DwmlNk4edBKA8ggCXIXs1EIkvssV8SUwE1HUS5Ef6LQT5nqyVq12+6Lamrlifk3D5Yi83+qNriMR+PR7KN8eD3h7KTZPQUPNn7qB8v9Ef2+feHpvM6KogEIl+TcONumtEeEWXc3MBiKuzSnEsK1dXauqKRCiCKwROzWMB9WEWckEEIEPgBtT+mFuhyuWo7l8BUMHkEiChTtc/5Dv3ty4vhZw6kGt6HBpod+qyMRfGwnKUb34C1A+PEuQioqKOw/If4KkFvVarCIuZuisxbkmABzEyrndlJC5KGqjEqiUBNuzyR1sIuIh4gf2YQsFEVi94XMgW05JI50sya/JFByVAq5TikfTAlhfnkibA0br90RF35/kfWDbDkidgDJpmzTuoN5wgZL6bZUMgHvLuo1nzIBFqIHQlg+pBymFZEIhTsAjwLgesQ6J8fSKsdpZAQG/qbD4eUFWkYM28alIGihKodHFPf/02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AZJREFUAwDp9iKdhVDDZwAAAABJRU5ErkJggg=="},"37f6":function(e,t,a){},"38c8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:position:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:create","system:position:delete"],expression:"['system:position:create', 'system:position:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:create"],expression:"['system:position:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaPositionWindow.open("新建岗位")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:delete"],expression:"['system:position:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"tree-props":{children:"children",hasChildren:"hasChildren"},"row-key":"id",stripe:"","default-expand-all":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",fixed:"left"}}),a("el-table-column",{attrs:{prop:"name",label:"岗位名称",fixed:"left","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"code",label:"岗位编码",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"userCount",label:"岗位人数","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),e.containPermissions(["system:position:update","system:position:query","system:position:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"310",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:update"],expression:"['system:position:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaPositionWindow.open("编辑岗位",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:update"],expression:"['system:position:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaPositionWindow.open("新增下级岗位",null,r)}}},[e._v("新增下级岗位")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:queryUsers"],expression:"['system:position:queryUsers']"}],attrs:{type:"text",icon:"el-icon-user-solid"},on:{click:function(t){return e.$refs.positionUserWindow.open(r.id,r.name)}}},[e._v("查看人员")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:position:delete"],expression:"['system:position:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,3059423194)}):e._e()],1)]},proxy:!0}])},[a("OperaPositionWindow",{ref:"operaPositionWindow",on:{success:e.handlePageChange}}),a("PositionUserWindow",{ref:"positionUserWindow"})],1)},i=[],s=(a("ac1f"),a("841c"),a("d3b7"),a("aa1c")),n=a("0f1b"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"上级岗位",prop:"parentId"}},[e.visible?a("PositionSelect",{attrs:{placeholder:"请选择上级岗位","exclude-id":e.excludePositionId,clearable:"",inline:!1},model:{value:e.form.parentId,callback:function(t){e.$set(e.form,"parentId",t)},expression:"form.parentId"}}):e._e()],1),a("el-form-item",{attrs:{label:"岗位编码",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入岗位编码",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{attrs:{label:"岗位名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入岗位名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1)},l=[],c=a("ae62"),u=a("5543"),d=a("a68c"),m={name:"OperaPositionWindow",extends:c["a"],components:{PositionSelect:d["default"],GlobalWindow:u["a"]},data:function(){return{excludePositionId:null,form:{id:null,parentId:null,code:"",name:""},rules:{code:[{required:!0,message:"请输入岗位编码"}],name:[{required:!0,message:"请输入岗位名称"}]}}},methods:{open:function(e,t,a){var r=this;if(this.title=e,this.visible=!0,null==t)return this.excludePositionId=null,void this.$nextTick((function(){r.$refs.form.resetFields(),r.form.id=null,r.form.parentId=null==a?null:a.id}));this.$nextTick((function(){for(var e in r.excludePositionId=t.id,r.form)r.form[e]=t[e]}))}},created:function(){this.config({api:"/system/position"})}},p=m,f=a("2877"),h=Object(f["a"])(p,o,l,!1,null,null,null),g=h.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{staticClass:"position-user-window",attrs:{width:"80%",title:e.positionName+"人员列表",visible:e.visible,"with-footer":!1},on:{"update:visible":function(t){e.visible=t}}},[a("TableLayout",{attrs:{"with-breadcrumb":!1},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80px","class-name":"table-column-avatar",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("img",{attrs:{src:null==t.avatar?"/static/avatar/man.png":t.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"realname",label:"姓名","min-width":"100px",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"用户名","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"empNo",label:"工号","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"department",label:"部门","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.department?"":a.department.name))]}}])}),a("el-table-column",{attrs:{prop:"position",label:"岗位","min-width":"120px","class-name":"table-column-strings"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.positions,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])}),a("el-table-column",{attrs:{prop:"sex",label:"性别","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("sex")(a.sex))+" ")]}}])}),a("el-table-column",{attrs:{prop:"mobile",label:"手机号码","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"birthday",label:"生日","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"birthday",label:"角色","min-width":"160px","class-name":"table-column-role"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.roles,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"80px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入用户名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.username,callback:function(t){e.$set(e.searchForm,"username",t)},expression:"searchForm.username"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"realname"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.realname,callback:function(t){e.$set(e.searchForm,"realname",t)},expression:"searchForm.realname"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入手机号码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.mobile,callback:function(t){e.$set(e.searchForm,"mobile",t)},expression:"searchForm.mobile"}})],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1)],1)],1)},v=[],y=a("d529"),w={name:"PositionUserWindow",extends:n["a"],components:{Pagination:y["a"],GlobalWindow:u["a"],TableLayout:s["a"]},data:function(){return{positionId:null,positionName:"",visible:!1,searchForm:{positionId:null,username:"",realname:"",mobile:""}}},methods:{open:function(e,t){this.positionId=e,this.positionName=t,this.searchForm.positionId=e,this.visible=!0,this.search()}},created:function(){this.config({api:"/system/user"})}},_=w,x=(a("b351"),Object(f["a"])(_,b,v,!1,null,"3c9c2ee4",null)),k=x.exports,C=a("123b"),I={name:"SystemPosition",extends:n["a"],components:{PositionUserWindow:k,OperaPositionWindow:g,TableLayout:s["a"]},methods:{handlePageChange:function(){var e=this;this.isWorking.search=!0,Object(C["fetchTree"])().then((function(t){e.tableData.list=t})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.search=!1}))}},created:function(){this.config({module:"岗位",api:"/system/position"}),this.search()}},A=I,S=(a("b21e"),Object(f["a"])(A,r,i,!1,null,"deb5cb0c",null));t["default"]=S.exports},"3a7e":function(e,t,a){"use strict";a("e02d")},"3aaf":function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"create",(function(){return s})),a.d(t,"companyCreateUser",(function(){return n})),a.d(t,"companyUpdUser",(function(){return o})),a.d(t,"updateById",(function(){return l})),a.d(t,"deleteById",(function(){return c})),a.d(t,"updUserStatus",(function(){return u})),a.d(t,"updPassword",(function(){return d}));var r=a("b775");function i(e){return r["a"].post("/system/user/page",e,{trim:!0})}function s(e){return r["a"].post("/system/user/companyCreateAnchor",e)}function n(e){return r["a"].post("/system/user/companyCreateUser",e)}function o(e){return r["a"].post("/system/user/companyUpdUser",e)}function l(e){return r["a"].post("/system/user/companyUpdAnchor",e)}function c(e){return r["a"].get("/system/user/delete/".concat(e))}function u(e){return r["a"].get("/system/user/updUserStatus",{params:e})}function d(e){return r["a"].post("/system/user/updPassword",e)}},"3b01":function(e,t,a){},"3dfc":function(e,t,a){e.exports=a.p+"static/img/404.5c17595f.png"},"3f41":function(e,t,a){},4057:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"create",(function(){return s})),a.d(t,"updateById",(function(){return n})),a.d(t,"deleteById",(function(){return o})),a.d(t,"deleteByIdInBatch",(function(){return l}));var r=a("b775");function i(e){return r["a"].post("/system/dictData/page",e)}function s(e){return r["a"].post("/system/dictData/create",e)}function n(e){return r["a"].post("/system/dictData/updateById",e)}function o(e){return r["a"].get("/system/dictData/delete/".concat(e))}function l(e){return r["a"].get("/system/dictData/delete/batch",{params:{ids:e}})}},"410c":function(e,t,a){"use strict";a("5341")},"41cf":function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"exportExcel",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l}));var r=a("b775");function i(e){return r["a"].post("/business/brand/page",e,{trim:!0})}function s(e){return r["a"].post("/business/brand/exportExcel",e,{trim:!0,download:!0})}function n(e){return r["a"].post("/business/brand/create",e)}function o(e){return r["a"].post("/business/brand/updateById",e)}function l(e){return r["a"].get("/business/brand/delete/".concat(e))}},"441f":function(e,t,a){},4426:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"fetchModules",(function(){return s})),a.d(t,"fetchTypes",(function(){return n})),a.d(t,"create",(function(){return o})),a.d(t,"updateById",(function(){return l})),a.d(t,"updateStatus",(function(){return c})),a.d(t,"deleteById",(function(){return u})),a.d(t,"deleteByIdInBatch",(function(){return d}));var r=a("b775");function i(e){return r["a"].post("/system/dataPermission/page",e,{trim:!0})}function s(){return r["a"].cache("DATA_PERMISSION_MODULES").get("/system/dataPermission/modules")}function n(){return r["a"].cache("DATA_PERMISSION_TYPES").get("/system/dataPermission/types")}function o(e){return r["a"].post("/system/dataPermission/create",e)}function l(e){return r["a"].post("/system/dataPermission/updateById",e)}function c(e){return r["a"].post("/system/dataPermission/updateStatus",e)}function u(e){return r["a"].get("/system/dataPermission/delete/".concat(e))}function d(e){return r["a"].get("/system/dataPermission/delete/batch",{params:{ids:e}})}},4436:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"exportExcel",(function(){return s}));var r=a("b775");function i(e){return r["a"].post("/system/loginLog/page",e,{trim:!0})}function s(e){return r["a"].post("/system/loginLog/exportExcel",e,{download:!0,trim:!0})}},"44fd":function(e,t,a){"use strict";a.r(t),a.d(t,"exportImportTemplate",(function(){return i})),a.d(t,"importExcelAsync",(function(){return s})),a.d(t,"fetchTaskPage",(function(){return n})),a.d(t,"fetchList",(function(){return o})),a.d(t,"fetchTaskById",(function(){return l})),a.d(t,"hasUnfinishedTask",(function(){return c}));var r=a("b775");function i(e){return r["a"].post("/business/goodsImportTask/exportTemplate",e,{trim:!0,download:!0})}function s(e){return r["a"].post("/business/goodsImportTask/importExcelAsync",e,{headers:{"Content-Type":"multipart/form-data"}})}function n(e){return r["a"].post("/business/goodsImportTask/page",e,{trim:!0})}function o(e){return n(e)}function l(e){return r["a"].get("/business/goodsImportTask/".concat(e))}function c(){return r["a"].get("/business/goodsImportTask/hasUnfinished")}},"46fa":function(e,t,a){"use strict";a("597d")},"4a28":function(e,t,a){"use strict";a("5cbe")},"4a61":function(e,t,a){"use strict";a("a4ec")},"4a98":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["business:goodsImportTask:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goodsImportTask:create"],expression:"['business:goodsImportTask:create']"}],attrs:{type:"primary",loading:e.uploading},on:{click:e.pickFile}},[e._v("提交异步导入")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:exportExcel"],expression:"['business:goods:exportExcel']"}],attrs:{loading:e.downloading},on:{click:e.downloadTemplate}},[e._v("下载异步导入模板")])],1)]),a("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx,.xls"},on:{change:e.uploadFile}}),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"id",label:"任务ID",width:"90"}}),a("el-table-column",{attrs:{prop:"fileName",label:"文件名","min-width":"180","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-tag",{attrs:{type:e.statusTagType(r.status),size:"small"}},[e._v(e._s(r.statusText))])]}}])}),a("el-table-column",{attrs:{label:"进度",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-progress",{attrs:{percentage:r.progress||0,status:e.progressStatus(r.status)}})]}}])}),a("el-table-column",{attrs:{prop:"totalRows",label:"总行数",width:"90"}}),a("el-table-column",{attrs:{prop:"successRows",label:"成功",width:"80"}}),a("el-table-column",{attrs:{prop:"failedRows",label:"失败",width:"80"}}),a("el-table-column",{attrs:{label:"创建时间","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e.formatDateTime(a.createDate)))]}}])}),a("el-table-column",{attrs:{label:"操作",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.showDetail(r)}}},[e._v("详情")])]}}])})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"任务状态",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"全部"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("el-dialog",{attrs:{title:"导入任务详情",visible:e.detailVisible,width:"720px","append-to-body":""},on:{"update:visible":function(t){e.detailVisible=t}}},[e.detail?[a("el-descriptions",{attrs:{column:2,border:"",size:"small"}},[a("el-descriptions-item",{attrs:{label:"任务ID"}},[e._v(e._s(e.detail.id))]),a("el-descriptions-item",{attrs:{label:"状态"}},[e._v(e._s(e.detail.statusText))]),a("el-descriptions-item",{attrs:{label:"文件名",span:2}},[e._v(e._s(e.detail.fileName))]),a("el-descriptions-item",{attrs:{label:"进度"}},[e._v(e._s(e.detail.progress)+"%")]),a("el-descriptions-item",{attrs:{label:"总行数"}},[e._v(e._s(e.detail.totalRows))]),a("el-descriptions-item",{attrs:{label:"成功"}},[e._v(e._s(e.detail.successRows))]),a("el-descriptions-item",{attrs:{label:"失败"}},[e._v(e._s(e.detail.failedRows))]),a("el-descriptions-item",{attrs:{label:"摘要",span:2}},[e._v(e._s(e.detail.errorMessage||"—"))])],1),e.errorLines.length?a("div",{staticClass:"error_detail"},[a("div",{staticClass:"error_detail_title"},[e._v("失败明细")]),e._l(e.errorLines,(function(t,r){return a("div",{key:r,staticClass:"error_detail_line"},[e._v(e._s(t))])}))],2):e._e()]:e._e()],2)],1)},i=[],s=(a("ac1f"),a("841c"),a("9129"),a("a9e3"),a("4d90"),a("99af"),a("d3b7"),a("0f1b")),n=a("aa1c"),o=a("d529"),l=a("44fd"),c={name:"GoodsImportTask",extends:s["a"],components:{TableLayout:n["a"],Pagination:o["a"]},data:function(){return{searchForm:{status:""},statusOptions:[{label:"待处理",value:0},{label:"处理中",value:1},{label:"成功",value:2},{label:"失败",value:3}],uploading:!1,downloading:!1,detailVisible:!1,detail:null,errorLines:[],pollTimer:null}},created:function(){this.config({module:"商品导入任务",api:"/business/goodsImportTask","field.id":"id","field.main":"fileName"}),this.search(),this.startPolling()},beforeDestroy:function(){this.stopPolling()},methods:{formatDateTime:function(e){if(!e)return"—";var t=new Date(e);if(Number.isNaN(t.getTime()))return e;var a=function(e){return String(e).padStart(2,"0")};return"".concat(t.getFullYear(),"-").concat(a(t.getMonth()+1),"-").concat(a(t.getDate())," ").concat(a(t.getHours()),":").concat(a(t.getMinutes()),":").concat(a(t.getSeconds()))},statusTagType:function(e){return 2===e?"success":3===e?"danger":1===e?"warning":"info"},progressStatus:function(e){return 2===e?"success":3===e?"exception":null},downloadTemplate:function(){var e=this;this.downloading=!0,Object(l["exportImportTemplate"])({}).then((function(t){return e.download(t)})).catch((function(t){return e.$tip.apiFailed(t)})).finally((function(){e.downloading=!1}))},pickFile:function(){var e=this;Object(l["hasUnfinishedTask"])().then((function(t){t?e.$message.warning("当前存在未完成的导入任务,请等待完成后再提交"):e.$refs.upload.click()})).catch((function(t){return e.$tip.apiFailed(t)}))},uploadFile:function(e){var t=this,a=e.target.files&&e.target.files[0];if(this.$refs.upload.value=null,a){var r=new FormData;r.append("file",a),this.uploading=!0,Object(l["importExcelAsync"])(r).then((function(){t.$message.success("导入任务已提交,请在列表中查看进度"),t.search(),t.startPolling()})).catch((function(e){return t.$message.error(e.message||"提交失败")})).finally((function(){t.uploading=!1}))}},showDetail:function(e){var t=this;Object(l["fetchTaskById"])(e.id).then((function(e){if(t.detail=e.data||e,t.errorLines=[],t.detail.errorDetail)try{var a=JSON.parse(t.detail.errorDetail);t.errorLines=Array.isArray(a)?a:[t.detail.errorDetail]}catch(r){t.errorLines=[t.detail.errorDetail]}t.detailVisible=!0})).catch((function(e){return t.$tip.apiFailed(e)}))},hasRunningTask:function(){return(this.tableData.list||[]).some((function(e){return 0===e.status||1===e.status}))},startPolling:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval((function(){e.hasRunningTask()&&e.handlePageChange()}),3e3)},stopPolling:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}}},u=c,d=(a("46fa"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"387a3867",null);t["default"]=m.exports},"503a":function(e,t,a){"use strict";a.r(t),a.d(t,"getCaptcha",(function(){return i})),a.d(t,"loginByPassword",(function(){return s})),a.d(t,"logout",(function(){return n})),a.d(t,"updatePwd",(function(){return o})),a.d(t,"getUserInfo",(function(){return l})),a.d(t,"brand",(function(){return c})),a.d(t,"category",(function(){return u})),a.d(t,"importExcel",(function(){return d})),a.d(t,"upload",(function(){return m}));var r=a("b775");function i(){return r["a"].get("/common/captcha")}function s(e){return r["a"].post("/system/login",e)}function n(e){return r["a"].post("/system/logout",e)}function o(e){return r["a"].post("/system/updatePwd",e)}function l(){return r["a"].get("/system/getUserInfo",{autoLogin:!1})}function c(e){return r["a"].post("/business/brand/list",e)}function u(e){return r["a"].post("/business/category/list",e)}function d(e){return r["a"].post("/business/goods/importExcel",e)}function m(e){return r["a"].post("/public/upload",e)}},"52e1":function(e,t,a){},5341:function(e,t,a){},5417:function(e,t,a){"use strict";a.r(t),a.d(t,"getByLogin",(function(){return i})),a.d(t,"getByLoginNew",(function(){return s})),a.d(t,"renew",(function(){return n})),a.d(t,"renewUpdate",(function(){return o})),a.d(t,"getByLoginAnchor",(function(){return l})),a.d(t,"renewAnchorUpdate",(function(){return c})),a.d(t,"updateAnchorPageVersion",(function(){return u}));var r=a("b775");function i(e){return r["a"].get("/business/webParam/getByLogin",{params:e})}function s(){return r["a"].get("/business/webParam/getByLoginNew")}function n(e){return r["a"].post("/business/webParam/renew",e)}function o(e){return r["a"].post("/business/webParam/renewUpdate",e)}function l(){return r["a"].get("/business/webParam/getByLoginAnchor")}function c(e){return r["a"].post("/business/webParam/renewAnchorUpdate",e)}function u(e){return r["a"].post("/business/webParam/updateAnchorPageVersion",e)}},"54c4":function(e,t,a){"use strict";a("a2f7")},5543:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",{staticClass:"global-window",attrs:{title:"title",visible:e.visible,"with-header":!0,size:e.width,"close-on-press-escape":!1,"wrapper-closable":!1,"append-to-body":!0},on:{close:e.close}},[a("div",{staticClass:"window__header",attrs:{slot:"title"},slot:"title"},[a("span",{staticClass:"header__btn-back",on:{click:e.close}},[a("i",{staticClass:"el-icon-arrow-left"})]),e._v(e._s(e.title)+" ")]),a("div",{staticClass:"window__body"},[e._t("default")],2),e.withFooter?a("div",{staticClass:"window__footer"},[e._t("footer",[a("el-button",{attrs:{loading:e.confirmWorking,type:"primary"},on:{click:e.confirm}},[e._v("确定")]),a("el-button",{on:{click:e.close}},[e._v("取消")])])],2):e._e()])},i=[],s={name:"GlobalWindow",props:{width:{type:String,default:"36%"},withFooter:{type:Boolean,default:!0},confirmWorking:{type:Boolean,default:!1},title:{type:String,default:""},visible:{type:Boolean,required:!0}},methods:{confirm:function(){this.$emit("confirm")},close:function(){this.$emit("update:visible",!1)}}},n=s,o=(a("a9b1"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"421a46eb",null);t["a"]=l.exports},"557f":function(e,t,a){e.exports=a.p+"static/img/Galanz@2x.765b343f.png"},"55f1":function(e,t,a){"use strict";a("aaf9")},5661:function(e,t,a){},"56d7":function(e,t,a){"use strict";a.r(t);var r=a("2909"),i=a("b85c"),s=a("1da1"),n=a("5530"),o=(a("e260"),a("e6cf"),a("cca6"),a("a79d"),a("d3b7"),a("c740"),a("99af"),a("d81d"),a("3ca3"),a("ddb0"),a("96cf"),a("2b0e")),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("router-view")},c=[],u=(a("5c0b"),a("2877")),d={},m=Object(u["a"])(d,l,c,!1,null,null,null),p=m.exports,f=(a("b0c0"),a("8c4f")),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-container",{staticClass:"app-layout"},[a("el-aside",{class:{collapse:e.menuData.collapse}},[a("Menu")],1),a("el-main",[a("header",[a("AppHeader")],1),a("main",[a("transition",{attrs:{name:"fade"}},[a("router-view")],1)],1)])],1)},g=[],b=a("2f62"),v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"main-header"},[a("div",{staticClass:"header"},[a("h2",[e.menuData.collapse?a("i",{staticClass:"el-icon-s-unfold",on:{click:function(t){return e.switchCollapseMenu(null)}}}):a("i",{staticClass:"el-icon-s-fold",on:{click:function(t){return e.switchCollapseMenu(null)}}}),e._v(" "+e._s(e.title)+" ")]),a("div",{staticClass:"user"},[a("span",{staticStyle:{"font-size":"13px"}},[e._v(e._s(e.userInfo.company.name))]),a("el-dropdown",{attrs:{trigger:"click"}},[a("span",{staticClass:"el-dropdown-link"},[null!=e.userInfo?a("img",{attrs:{src:null==e.userInfo.avatar?"@/assets/images/avatar/man.png":e.userInfo.avatar,alt:""}}):e._e(),e._v(e._s(e._f("displayName")(e.userInfo))),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(t){return e.changePwd(t)}}},[e._v("修改密码")]),a("el-dropdown-item",{nativeOn:{click:function(t){return e.logout(t)}}},[e._v("退出登录")])],1)],1)],1)]),a("GlobalWindow",{attrs:{title:"修改密码",visible:e.visible.changePwd},on:{"update:visible":function(t){return e.$set(e.visible,"changePwd",t)},confirm:e.confirmChangePwd,close:function(t){e.visible.changePwd=!1}}},[a("el-form",{ref:"changePwdDataForm",attrs:{model:e.changePwdData.form,rules:e.changePwdData.rules}},[a("el-form-item",{attrs:{label:"原始密码",prop:"oldPwd",required:""}},[a("el-input",{attrs:{type:"password",placeholder:"请输入原始密码",maxlength:"30","show-password":""},model:{value:e.changePwdData.form.oldPwd,callback:function(t){e.$set(e.changePwdData.form,"oldPwd",t)},expression:"changePwdData.form.oldPwd"}})],1),a("el-form-item",{attrs:{label:"新密码",prop:"newPwd",required:""}},[a("el-input",{attrs:{type:"password",placeholder:"请输入新密码",maxlength:"30","show-password":""},model:{value:e.changePwdData.form.newPwd,callback:function(t){e.$set(e.changePwdData.form,"newPwd",t)},expression:"changePwdData.form.newPwd"}})],1),a("el-form-item",{attrs:{label:"确认新密码",prop:"confirmPwd",required:""}},[a("el-input",{attrs:{type:"password",placeholder:"请再次输入新密码",maxlength:"30","show-password":""},model:{value:e.changePwdData.form.confirmPwd,callback:function(t){e.$set(e.changePwdData.form,"confirmPwd",t)},expression:"changePwdData.form.confirmPwd"}})],1)],1)],1)],1)},y=[],w=a("5543"),_=a("503a"),x={name:"Header",components:{GlobalWindow:w["a"]},data:function(){return{visible:{changePwd:!1},isWorking:{changePwd:!1},username:"bob",changePwdData:{form:{oldPwd:"",newPwd:"",confirmPwd:""},rules:{oldPwd:[{required:!0,message:"请输入原始密码"}],newPwd:[{required:!0,message:"请输入新密码"}],confirmPwd:[{required:!0,message:"请再次输入新密码"}]}}}},computed:Object(n["a"])(Object(n["a"])({},Object(b["c"])(["menuData","userInfo"])),{},{title:function(){return this.$route.meta.title}}),filters:{displayName:function(e){return null==e?"":e.username}},methods:Object(n["a"])(Object(n["a"])({},Object(b["b"])(["setUserInfo","switchCollapseMenu"])),{},{changePwd:function(){var e=this;this.visible.changePwd=!0,this.$nextTick((function(){e.$refs.changePwdDataForm.resetFields()}))},confirmChangePwd:function(){var e=this;this.isWorking.changePwd||this.$refs.changePwdDataForm.validate((function(t){t&&(e.changePwdData.form.newPwd===e.changePwdData.form.confirmPwd?(e.isWorking.changePwd=!0,Object(_["updatePwd"])({oldPwd:e.changePwdData.form.oldPwd,newPwd:e.changePwdData.form.newPwd}).then((function(){e.$tip.apiSuccess("修改成功"),e.visible.changePwd=!1})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.changePwd=!1}))):e.$tip.warning("两次密码输入不一致"))}))},logout:function(){var e=this;Object(_["logout"])().then((function(){e.setUserInfo(null),e.$router.push({name:"login"})})).catch((function(t){e.$tip.apiFailed(t)}))}})},k=x,C=(a("7862"),Object(u["a"])(k,v,y,!1,null,"751db2ea",null)),I=C.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"menu",class:{collapse:e.menuData.collapse}},[a("div",{staticClass:"logo"},[e._m(0),a("h1",{class:{hidden:e.menuData.collapse}},[e._v("预选清单查询系统")])]),a("scrollbar",[a("el-menu",{ref:"menu",attrs:{"default-active":e.activeIndex,"text-color":"#fff","active-text-color":"#fff",collapse:e.menuData.collapse,"default-openeds":e.defaultOpeneds,"collapse-transition":!1},on:{select:e.handleSelect}},e._l(e.menuData.list,(function(e){return a("MenuItems",{key:e.index,attrs:{menu:e,"is-root-menu":!0}})})),1)],1)],1)},S=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("img",{attrs:{src:a("cf05")}})])}],F=(a("8a79"),a("498a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return null==e.menu.children||0==e.menu.children.length?a("el-menu-item",{key:e.menu.index,attrs:{index:e.menu.index}},[a("i",{class:e.menu.icon}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.menu.label))])]):a("el-submenu",{attrs:{index:e.menu.index}},[a("template",{slot:"title"},[a("i",{class:e.menu.icon}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.menu.label))])]),e._l(e.menu.children,(function(e){return a("MenuItems",{key:e.index,attrs:{menu:e}})}))],2)}),B=[],P={name:"MenuItems",props:{menu:{type:Object,required:!0}}},D=P,T=Object(u["a"])(D,F,B,!1,null,null,null),O=T.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("vue-scroll",{attrs:{ops:e.options}},[e._t("default")],2)},E=[],L=a("77a0"),W=a.n(L),U={name:"Scrollbar",components:{VueScroll:W.a},data:function(){return{options:{bar:{background:"rgba(20,20,20,.3)"}}}}},j=U,R=Object(u["a"])(j,N,E,!1,null,null,null),G=R.exports,z={name:"Menu",components:{Scrollbar:G,MenuItems:O},computed:Object(n["a"])(Object(n["a"])({},Object(b["c"])(["menuData"])),{},{activeIndex:function(){var e=this.$route.path;e.endsWith("/")&&(e=e.substring(0,e.length-1));var t=this.__getMenuConfig(e,"url",this.menuData.list);return null==t?null:t.index},defaultOpeneds:function(){return this.menuData.list.map((function(e){return e.index}))}}),methods:{handleSelect:function(e){var t=this.__getMenuConfig(e,"index",this.menuData.list);try{a("a8c4")("./views"+t.url)}catch(r){this.$tip.error("未找到页面文件@/views"+t.url+".vue,请检查菜单路径是否正确")}t.url!==this.$route.path&&null!=t.url&&0!==t.url.trim().length&&this.$router.push(t.url)},__getMenuConfig:function(e,t,a){var r,s=Object(i["a"])(a);try{for(s.s();!(r=s.n()).done;){var n=r.value;if(n[t]===e)return n;if(null!=n.children&&n.children.length>0){var o=this.__getMenuConfig(e,t,n.children);if(null!=o)return o}}}catch(l){s.e(l)}finally{s.f()}return null}}},q=z,M=(a("f993"),a("21ee"),Object(u["a"])(q,A,S,!1,null,"4c7ca744",null)),Q=M.exports,H={name:"DefaultLayout",components:{AppHeader:I,Menu:Q},computed:Object(n["a"])({},Object(b["c"])(["menuData"]))},K=H,V=(a("6e9d"),Object(u["a"])(K,h,g,!1,null,"5a840602",null)),Y=V.exports,J=function(){return Promise.resolve().then(a.bind(null,"dd7b"))},X=function(){return Promise.resolve().then(a.bind(null,"c852"))},Z=function(){return Promise.resolve().then(a.bind(null,"63e6"))};o["default"].use(f["a"]);var $=new f["a"]({base:"/web#",mode:"hash",routes:[{name:"login",path:"/login",component:J},{name:"no-permissions",path:"/no-permissions",component:X},{name:"not-found",path:"/not-found",component:Z},{name:"layout",path:"",component:Y,children:[]}]});$.beforeEach((function(e,t,a){if("no-permissions"!==e.name&&"not-found"!==e.name)if("layout"!==e.name){var r=$.app.$options.store.state.userInfo;if(null!=r)return 0===r.permissions.length?void a({name:"no-permissions"}):"login"===e.name?void a({name:"index"}):void a();Object(_["getUserInfo"])().then((function(t){0!==t.permissions.length?($.app.$store.commit("setUserInfo",t),"login"!==e.name?a():a({name:"index"})):a({name:"no-permissions"})})).catch((function(t){"login"!==e.name?a({name:"login"}):a()}))}else a({name:"index"});else a()}));var ee=$;o["default"].use(b["a"]);var te={userInfo:null,homePage:null,menuData:{list:[],collapse:!1}},ae={switchCollapseMenu:function(e,t){e.menuData.collapse=null!=t?t:!e.menuData.collapse,window.localStorage.setItem("MENU_STATUS",e.menuData.collapse)},setUserInfo:function(e,t){e.userInfo=t},setHomePage:function(e,t){e.homePage=t},resetMenus:function(e){e.menuData.list=[]}},re={},ie={},se=new b["a"].Store({state:te,mutations:ae,actions:re,getters:ie}),ne=a("5c96"),oe=a.n(ne),le=(a("9b21"),a("4eb5")),ce=a.n(le),ue={inserted:function(e,t,a){var r=a.context.$store.state.userInfo;if(null!=r){var i=t.value;if(null!=i){if(!(i instanceof Array))throw new Error("v-permissions的值必须为一个数组");-1===i.findIndex((function(e){return r.permissions.findIndex((function(t){return t===e}))>-1}))&&e.parentNode&&e.parentNode.removeChild(e)}}else e.parentNode&&e.parentNode.removeChild(e)}},de={inserted:function(e,t,a){var r=a.context.$store.state.userInfo;if(null!=r){var i=t.value;if(null!=i){if(!(i instanceof Array))throw new Error("v-roles的值必须为一个数组");-1===i.findIndex((function(e){return r.roles.findIndex((function(t){return t===e}))>-1}))&&e.parentNode&&e.parentNode.removeChild(e)}}else e.parentNode&&e.parentNode.removeChild(e)}},me=(a("ac1f"),a("1276"),{inserted:function(e){var t=e,a=t.getAttribute("class")||"";null!=a&&(a=a.split(" ")),a.indexOf("el-input")>-1&&(t=t.querySelector("input")),a.indexOf("el-textarea")>-1&&(t=t.querySelector("textarea")),t.addEventListener("blur",(function(e){e.target.value=e.target.value.trim(),t.dispatchEvent(new Event("input"))})),a.indexOf("el-input")>-1&&t.addEventListener("keydown",(function(e){"Enter"===e.key&&(e.target.value=e.target.value.trim(),t.dispatchEvent(new Event("input")))}))}}),pe={install:function(e){e.directive("roles",de),e.directive("permissions",ue),e.directive("trim",me)}},fe=(a("4de4"),{install:function(e){e.filter("sex",(function(e){return"1"===e?"男":"0"===e?"女":"未知"})),e.filter("disabledText",(function(e){return e?"停用":"启用"}))}}),he={},ge=(a("c19f"),Object(n["a"])(Object(n["a"])({},ne["Message"]),{},{apiSuccess:function(e){ne["Message"].success(e)},apiFailed:function(e){if(e instanceof ArrayBuffer){var t=new Blob([e]),a=new FileReader;return a.readAsText(t,"utf-8"),void(a.onload=function(){ne["Message"].error(JSON.parse(a.result).message)})}ne["Message"].error(e.message)}})),be=Object(n["a"])(Object(n["a"])({},ne["MessageBox"]),{},{deleteConfirm:function(e){return ne["MessageBox"].confirm(e,"删除提醒",{confirmButtonText:"确认删除",cancelButtonText:"取消",type:"warning",confirmButtonClass:"el-button--danger"})},disableConfirm:function(e){return ne["MessageBox"].confirm(e,"禁用提醒",{confirmButtonText:"确认禁用",cancelButtonText:"取消",type:"warning"})},exportConfirm:function(e){return ne["MessageBox"].confirm(e,"导出提醒",{confirmButtonText:"确认导出",cancelButtonText:"取消",type:"warning"})}}),ve=a("63f0"),ye=a("19de"),we=a.n(ye),_e=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/octet-stream";if("application/json"===e.headers["content-type"]){var r=new Blob([e.data]),i=new FileReader;return i.readAsText(r,"UTF-8"),void(i.onload=function(){ge.apiFailed(JSON.parse(i.result))})}"0"!==e.headers["content-length"]?we()(e.data,t?decodeURI(e.headers["eva-download-filename"]):e.headers["eva-download-filename"],a):ge.error("无法下载文件,可能因为数据处理错误导致文件大小为0B")},xe={install:function(e){e.prototype.$consts=he,e.prototype.$tip=ge,e.prototype.$dialog=be,e.prototype.$cache=ve["a"],e.prototype.download=_e}},ke=a("a6dc");o["default"].config.productionTip=!1,o["default"].use(oe.a,{size:"small"}),o["default"].use(ce.a),o["default"].use(pe),o["default"].use(fe),o["default"].use(xe),new o["default"]({data:{loading:!1},router:ee,store:se,computed:Object(n["a"])({},Object(b["c"])(["userInfo","homePage"])),watch:{userInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null!=e.userInfo){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.initRoutes();case 4:case"end":return t.stop()}}),t)})))()}},methods:Object(n["a"])(Object(n["a"])({},Object(b["b"])(["switchCollapseMenu","setHomePage"])),{},{initLocalConfig:function(){var e=window.localStorage.getItem("MENU_STATUS");null!=e&&this.switchCollapseMenu("true"===e)},initRoutes:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.loading&&null!=e.userInfo){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,e.$store.commit("resetMenus"),a=e.$store.state.menuData.list,a.length>0&&null==e.homePage&&e.setHomePage(a[0]),t.next=8,Object(ke["fetchMenuTree"])().then((function(t){a.push.apply(a,t),e.__addRouters(a),ee.addRoute({path:"*",redirect:"/not-found"}),ee.addRoute({name:"index",path:"/",redirect:e.homePage.url}),"/"===e.$route.path&&e.$router.push(e.homePage.url)})).catch((function(e){throw e})).finally((function(){e.loading=!1}));case 8:case"end":return t.stop()}}),t)})))()},__addRouters:function(e){var t=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(null!=e&&0!==e.length){var n,o=ee.getRoutes(),l=Object(i["a"])(e);try{var c=function(){var e=n.value,i=JSON.parse(JSON.stringify(s));return i.push(e),null==e.url||""===e.url||o.findIndex((function(t){return t.path===e.url}))>-1?(t.__addRouters(e.children,i),"continue"):(null==t.homePage&&t.setHomePage(e),ee.addRoute("layout",{path:e.url,name:e.label,meta:{title:e.label,paths:[].concat(Object(r["a"])(s.map((function(e){return e.label}))),[e.label])},component:function(){return a("2a68")("./views"+e.url)}}),void t.__addRouters(e.children,i))};for(l.s();!(n=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}}}}),created:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null!=e.userInfo){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.initRoutes().catch((function(){}));case 4:case"end":return t.stop()}}),t)})))()},mounted:function(){this.initLocalConfig()},render:function(e){return e(p)}}).$mount("#app")},"56f2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAIjUlEQVR4Xu2bC1BTVxrH/+FhABcVCO9IeUp4CQstCyO2ULeAgl3ZDoOss84ybRWFzi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yhv/zGxEcEgwHx5+yQCzMLWBro9wOkVoAIMrfa78H4QPhrB7v7+8HASLsE0IoFFKbH2bmZpTBZPmUPUyMTeDk4ETb9WcE1QYAUYjMB73CXoyNjdE2RFtbm+r5tdZraddRuyEgq5BkSgKyT0BATExMzGuUhZkFZbyent6CjCeV1MoDZK0g2ePEE8Z+HINoVASRSEQlXpNTX0+fOpXdBZqLktoCWHCXKlnxKQBVfg0q2VlLIq6sB5AU8C+XRJMlapRstpD9Q3mH0gCcXZw/Pff+Ofr/ai2RYXSaJXnHbGv2UwCL6QH+9vb2nxd+VKgRHvBhwYfUcpmRkTGnwzx8+BCGhtQnOK0cSCJku3LlyoayL8vU+5dQj8ytrqrGVxVfSTdgH6dw48YNEpLrGR4eJj/tU3gQACsMDQ1bo7ZHsWXz9hXWVJEAyTINCw2Tm0ZHkqsqKysvdnV1vUJHxRk3IdGGhqzjWQjYGECnnkplysvKUcWvwq5du2blHCUkJODEiRNEt2cB1NBRUnacOLJYrOvstWw9F1cXAwMDA11MYxoMUHlrWgwtLWmDMrUYskNNQfks2ZnGGGSwzjFcaZS/+8678PLyIi4/UlBQoDMwMDAwOjr6F/J7QDrGzzVRkB3KbQBI+GXlY40sPLZFV5uFy10DUAegAsD3yjRDa6ZUpkFNk33iAfwfqW9eZ+Er7+QAAAAASUVORK5CYII="},"57bc":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["business:brand:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:brand:create"],expression:"['business:brand:create']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:brand:create"],expression:"['business:brand:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaBrandWindow.open("新建品牌")}}},[e._v("新建")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"",border:"","header-cell-style":e.rowStyle,"cell-style":e.rowStyle}},[a("el-table-column",{attrs:{prop:"name",label:"品牌名称","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"imgurl",label:"图标","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.imgurl?a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:r.imgfullurl,"preview-src-list":[r.imgfullurl],fit:"cover"}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"categoryName",label:"类型","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.type?a("span",[e._v("自定义")]):a("span",[e._v("系统")])]}}])}),a("el-table-column",{attrs:{prop:"sortnum",label:"排序码(升序)","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"createDate",label:"创建时间","min-width":"100px"}}),e.containPermissions(["business:brand:update","business:brand:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.type?[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:brand:update"],expression:"['business:brand:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.edit(r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:brand:delete"],expression:"['business:brand:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]:e._e()]}}],null,!1,2685156562)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"品牌名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入品牌名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"type"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaBrandWindow",{ref:"operaBrandWindow",on:{success:e.handlePageChange}})],1)},i=[],s=(a("ac1f"),a("841c"),a("b0c0"),a("0f1b")),n=a("aa1c"),o=a("d529"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"品牌名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"20",placeholder:"请输入,不超过20个字符"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"图标",prop:"imgurl"}},[a("el-upload",{attrs:{action:e.action,"file-list":e.form.fileList,data:{folder:"brand_img"},"list-type":"picture-card",limit:1,"on-success":e.fileSuccess,"on-exceed":e.exceed,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传图片格式,png格式,建议尺寸200*200px")])])],1),a("el-form-item",{attrs:{label:"排序码",prop:"sortnum"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入排序码"},model:{value:e.form.sortnum,callback:function(t){e.$set(e.form,"sortnum",t)},expression:"form.sortnum"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m={name:"OperaBrandWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){return{action:"/web_interface_v2/public/upload",form:{id:null,name:"",sortnum:"",imgurl:"",fileList:[]},rules:{name:[{required:!0,message:"不能为空",trigger:"blur"}]}}},created:function(){this.config({api:"/business/brand","field.id":"id"})},methods:{fileSuccess:function(e){this.form.fileList.push({imgaddr:e.data.imgaddr,url:e.data.url}),this.form.imgurl=e.data.imgaddr},handleRemove:function(){this.form.fileList=[],this.form.imgurl=""},exceed:function(){this.$message.warning({message:"只能上传一个图标"})}},watch:{visible:{handler:function(e,t){e||(this.form={id:null,name:"",sortnum:"",imgurl:"",fileList:[]})}}}},p=m,f=a("2877"),h=Object(f["a"])(p,l,c,!1,null,null,null),g=h.exports,b={name:"Brand",extends:s["a"],components:{TableLayout:n["a"],Pagination:o["a"],OperaBrandWindow:g},data:function(){return{searchForm:{name:"",type:""},typeList:[{name:"自定义",id:0},{name:"系统",id:1}]}},created:function(){this.config({module:"品牌",api:"/business/brand","field.id":"id","field.main":"name"}),this.search()},methods:{rowStyle:function(){return"text-align:center"},edit:function(e){var t={id:e.id,name:e.name,sortnum:e.sortnum,imgurl:e.imgurl,fileList:e.imgfullurl?[{url:e.imgfullurl}]:[]};this.$refs.operaBrandWindow.open("编辑品牌",t)}}},v=b,y=Object(f["a"])(v,r,i,!1,null,null,null);t["default"]=y.exports},"597d":function(e,t,a){},"5af4":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["business:category:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:create"],expression:"['business:category:create']"}],staticClass:"toolbar"},[a("li",[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaCategoryWindow.open("新建类别")}}},[e._v("新建一级类别")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,"tree-props":{children:"children",hasChildren:"hasChildren"},"row-key":"id",stripe:"",border:"","default-expand-all":"","header-cell-style":e.rowStyle,"cell-style":e.rowStyle}},[a("el-table-column",{attrs:{prop:"imgurl",label:"图标","min-width":"90px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.imgurl?a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.categoryImgUrl(r),fit:"cover"}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"name",label:"类别名称","min-width":"140px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.parentId?a("span",[e._v("└ "+e._s(r.name))]):a("span",[e._v(e._s(r.name))])]}}])}),a("el-table-column",{attrs:{label:"级别","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(a.parentId?"二级类别":"一级类别"))]}}])}),a("el-table-column",{attrs:{prop:"sortnum",label:"排序码","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"createDate",label:"创建时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-value":0,"inactive-value":1},on:{change:function(t){return e.changeStatus(r)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"220px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.parentId?[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:update"],expression:"['business:category:update']"}],attrs:{type:"text"},on:{click:function(t){return e.$refs.operaSubCategoryWindow.open("编辑子类别",{id:r.parentId},r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:delete"],expression:"['business:category:delete']"}],staticClass:"btn-delete",attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteSub(r)}}},[e._v("删除")])]:[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:update"],expression:"['business:category:update']"}],attrs:{type:"text"},on:{click:function(t){return e.edit(r.id)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:create"],expression:"['business:category:create']"}],attrs:{type:"text"},on:{click:function(t){return e.$refs.operaSubCategoryWindow.open("新建子类别",r)}}},[e._v("新增子类别")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:category:delete"],expression:"['business:category:delete']"}],staticClass:"btn-delete",attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteParent(r)}}},[e._v("删除")])]]}}])})],1)]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"类别名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入类别名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loadTree(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("el-form-item",{attrs:{label:"类型",prop:"type"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.loadTree}},[e._v("搜索")]),a("el-button",{on:{click:e.resetSearch}},[e._v("重置")])],1)],1),a("OperaCategoryWindow",{ref:"operaCategoryWindow",on:{success:e.loadTree}}),a("OperaSubCategoryWindow",{ref:"operaSubCategoryWindow",on:{success:e.loadTree}})],1)},i=[],s=a("5530"),n=(a("d3b7"),a("d81d"),a("b0c0"),a("aa1c")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking,width:"50%"},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-alert",{attrs:{title:"如果从平台选择商品进行直播,建议类别选择从平台库选择,系统已做数据关联;",type:"warning",effect:"dark",closable:!1}}),a("h3",{staticStyle:{margin:"20px 0 10px 0"}},[e._v("基本信息")]),a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"类别来源",prop:"type"}},[a("el-radio-group",{attrs:{disabled:!!e.form.id},on:{change:e.changeRadio},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:1}},[e._v("从平台库选择")]),a("el-radio",{attrs:{label:0}},[e._v("企业自建")])],1)],1),1==e.form.type?a("el-form-item",{attrs:{label:"选择类别",prop:"platCateId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},on:{change:e.changeCategory},model:{value:e.form.platCateId,callback:function(t){e.$set(e.form,"platCateId",t)},expression:"form.platCateId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),a("el-form-item",{attrs:{label:"类别名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入类别名称,不超过6个字",maxlength:"6"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"图标",prop:"imgurl"}},[a("el-upload",{class:{hide:e.hideUpload},attrs:{action:e.action,"file-list":e.form.fileList,data:{folder:"category_img"},"list-type":"picture-card",limit:1,"on-success":e.fileSuccess,"on-exceed":e.exceed,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传图片格式,png格式,建议尺寸120*120px")])])],1),a("el-form-item",{attrs:{label:"排序码(升序)",prop:"sortnum"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入排序码"},model:{value:e.form.sortnum,callback:function(t){e.$set(e.form,"sortnum",t)},expression:"form.sortnum"}})],1),a("div",{staticStyle:{margin:"20px 0 10px 0",height:"30px",display:"flex","justify-content":"space-between"}},[a("h3",{staticStyle:{display:"flex","align-items":"flex-end"}},[e._v("参数属性配置"),a("h6",{staticStyle:{"margin-left":"10px"}},[e._v("配置当前类别的产品参数名")])]),0==e.form.type?a("el-button",{staticStyle:{display:"inline-block"},attrs:{type:"primary"},on:{click:e.addItem}},[e._v("+ 新增")]):e._e()],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.form.tableData,border:""}},[a("el-table-column",{attrs:{label:"参数名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{placeholder:"请输入名称"},model:{value:t.row.name,callback:function(a){e.$set(t.row,"name",a)},expression:"scope.row.name"}})]}}])}),a("el-table-column",{attrs:{label:"设置为选项"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},on:{change:function(a){return e.changeIsselect(a,t.row)}},model:{value:t.row.isselect,callback:function(a){e.$set(t.row,"isselect",a)},expression:"scope.row.isselect"}})]}}])}),a("el-table-column",{attrs:{label:"是否显示"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:t.row.isshow,callback:function(a){e.$set(t.row,"isshow",a)},expression:"scope.row.isshow"}})]}}])}),0==e.form.type?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.handleDelete(t.$index)}}},[e._v("删除")])]}}],null,!1,924318560)}):e._e()],1),a("h3",{staticStyle:{margin:"20px 0 10px 0",display:"flex","align-items":"flex-end"}},[e._v("预算区间配置"),a("h6",{staticStyle:{"margin-left":"10px"}},[e._v("配置当前类别的预算区间筛选值,上限和下限不能同时为空")])]),a("el-form-item",{attrs:{label:"预算区间",prop:"attrSecond"}},e._l(e.form.budgetList,(function(t,r){return a("div",{key:r,staticStyle:{display:"flex","align-items":"center","margin-bottom":"10px"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"number",placeholder:"下限"},on:{input:function(t){return e.changeInput(1,r)}},model:{value:t.minamount,callback:function(a){e.$set(t,"minamount",a)},expression:"item.minamount"}}),a("span",{staticStyle:{margin:"0 20px"}},[e._v(" ~ ")]),a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"number",placeholder:"上限"},on:{input:function(t){return e.changeInput(2,r)}},model:{value:t.maxamount,callback:function(a){e.$set(t,"maxamount",a)},expression:"item.maxamount"}}),0===r?a("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.add}},[e._v("增加区间")]):a("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger"},on:{click:function(t){return e.dele(r)}}},[e._v("删除区间")])],1)})),0)],1)],1)},l=[],c=(a("159b"),a("a434"),a("ae62")),u=a("5543"),d=a("a859"),m={name:"OperaCategoryWindow",extends:c["a"],components:{GlobalWindow:u["a"]},data:function(){return{action:"/web_interface_v2/public/upload",hideUpload:!1,categoryList:[],form:{id:null,type:1,platCateId:"",name:"",sortnum:"",paramList:[],imgurl:"",tableData:[],budgetList:[{maxamount:"",minamount:""}],fileList:[]},rules:{name:[{required:!0,message:"不能为空",trigger:"blur"}]},dialogVisible:!1}},created:function(){this.config({api:"/business/category","field.id":"id"})},methods:{changeIsselect:function(e,t){var a=0;this.form.tableData.forEach((function(e){1===e.isselect&&(a+=1)})),a>2&&(t.isselect=0,this.$message.warning({message:"只能设置两个选项"}))},addItem:function(){this.form.tableData.push({name:"",isselect:0,isshow:1})},handleDelete:function(e){this.form.tableData.splice(e,1)},changeRadio:function(e){this.form.name="",this.form.platCateId="",this.form.sortnum="",this.form.tableData=[],this.form.imgurl="",this.form.fileList=[],this.form.budgetList=[{maxamount:"",minamount:""}]},confirm:function(){var e=this;this.$refs.form.validate((function(t){if(t)if(e.isWorking=!0,e.form.id){var a=[];e.form.budgetList.forEach((function(e){(e.maxamount||e.minamount)&&a.push(e)})),Object(d["companyUpdateById"])({id:e.form.id,paramList:e.form.tableData,type:e.form.type,sortnum:e.form.sortnum,platCateId:e.form.platCateId,name:e.form.name,imgurl:e.form.imgurl,budgetList:a}).then((function(){e.visible=!1,e.$tip.apiSuccess("编辑成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))}else{var r=[];e.form.budgetList.forEach((function(e){(e.maxamount||e.minamount)&&r.push(e)})),Object(d["companyCreate"])({paramList:e.form.tableData,type:e.form.type,sortnum:e.form.sortnum,platCateId:e.form.platCateId,name:e.form.name,imgurl:e.form.imgurl,budgetList:r}).then((function(){e.visible=!1,e.$tip.apiSuccess("新建成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))}}))},changeCategory:function(e){var t=this;this.categoryList.forEach((function(a){if(a.id===e){t.form.name=a.name,t.form.sortnum=a.sortnum;var r=[];a.baseCateParamList.forEach((function(e,t){r.push({name:e.name,baseCateParamId:e.id,isselect:0,isshow:1})})),t.form.tableData=r,t.form.imgurl=a.imgurl,t.form.fileList=[{url:a.imgfullurl}]}}))},changeInput:function(e,t){if(1===e){if(!this.form.budgetList[t].minamount)return;/^[0-9]*[1-9][0-9]*$/.test(this.form.budgetList[t].minamount)||(this.$message.warning({type:"warning",message:"预算只能输入正整数"}),this.form.budgetList[t].minamount="")}else{if(!this.form.budgetList[t].maxamount)return;/^[0-9]*[1-9][0-9]*$/.test(this.form.budgetList[t].maxamount)||(this.$message.warning({type:"warning",message:"预算只能输入正整数"}),this.form.budgetList[t].maxamount="")}},exceed:function(){this.$message.warning({message:"只能上传一个图标"})},close:function(e,t){1===t?this.form.attrFirstList.splice(e,1):2===t?this.form.attrSecondList.splice(e,1):3===t&&this.form.paramList.splice(e,1)},confirmVal:function(e){if(1===e){if(!this.form.attrFirst1)return;this.form.attrFirstList.push({name:this.form.attrFirst1}),this.form.attrFirst1=""}else if(2===e){if(!this.form.attrSecond1)return;this.form.attrSecondList.push({name:this.form.attrSecond1}),this.form.attrSecond1=""}else if(3===e){if(!this.form.parameter)return;this.form.paramList.push({name:this.form.parameter}),this.form.parameter=""}},fileSuccess:function(e){this.form.fileList.push({imgaddr:e.data.imgaddr,url:e.data.url}),this.form.imgurl=e.data.imgaddr},handleRemove:function(){this.form.fileList=[],this.form.imgurl=""},add:function(){this.form.budgetList.push({minamount:"",maxamount:""})},dele:function(e){1!==this.form.budgetList.length&&this.form.budgetList.splice(e,1)}},watch:{visible:{handler:function(e,t){var a=this;e?Object(d["baseCategoryList"])({}).then((function(e){a.categoryList=e})):this.form={id:null,name:"",type:1,platCateId:"",tableData:[],sortnum:"",imgurl:"",budgetList:[{maxamount:"",minamount:""}],fileList:[]}}}}},p=m,f=a("2877"),h=Object(f["a"])(p,o,l,!1,null,null,null),g=h.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"子类别名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"30",placeholder:"请输入子类别名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"排序码",prop:"sortnum"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"number",placeholder:"升序排列"},model:{value:e.form.sortnum,callback:function(t){e.$set(e.form,"sortnum",t)},expression:"form.sortnum"}})],1),a("el-form-item",{attrs:{label:"图标"}},[a("el-upload",{attrs:{action:e.action,"file-list":e.form.fileList,data:{folder:"category_img"},"list-type":"picture-card",limit:1,"on-success":e.fileSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-switch",{attrs:{"active-value":0,"inactive-value":1},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}})],1)],1)],1)},v=[],y={name:"OperaSubCategoryWindow",components:{GlobalWindow:u["a"]},data:function(){return{title:"",visible:!1,isWorking:!1,action:"/web_interface_v2/public/upload",form:{id:null,parentId:null,name:"",sortnum:1,imgurl:"",status:0,fileList:[]},rules:{name:[{required:!0,message:"不能为空",trigger:"blur"}]}}},methods:{open:function(e,t,a){if(this.title=e,this.visible=!0,a){var r=a.imgurl&&a.prefixUrl?a.prefixUrl+a.imgurl:a.imgurl&&0===a.imgurl.indexOf("http")?a.imgurl:"";this.form={id:a.id,parentId:a.parentId,name:a.name,sortnum:a.sortnum||1,imgurl:a.imgurl||"",status:null!=a.status?a.status:0,fileList:r?[{url:r,name:a.imgurl}]:[]}}else this.form={id:null,parentId:t.id,name:"",sortnum:1,imgurl:"",status:0,fileList:[]}},fileSuccess:function(e){e&&e.data&&(this.form.imgurl=e.data.imgaddr,this.form.fileList=[{url:e.data.url,name:e.data.imgname||e.data.imgaddr}])},handleRemove:function(){this.form.imgurl="",this.form.fileList=[]},confirm:function(){var e=this;this.$refs.form.validate((function(t){if(t){e.isWorking=!0;var a=e.form.id?d["updateSub"]:d["createSub"];a(e.form).then((function(){e.$message.success("操作成功"),e.visible=!1,e.$emit("success")})).finally((function(){e.isWorking=!1}))}}))}}},w=y,_=Object(f["a"])(w,b,v,!1,null,null,null),x=_.exports,k={name:"Category",components:{TableLayout:n["a"],OperaCategoryWindow:g,OperaSubCategoryWindow:x},data:function(){return{loading:!1,tableData:[],searchForm:{name:"",type:""},typeList:[{name:"自定义",id:0},{name:"系统",id:1}]}},created:function(){this.loadTree()},methods:{rowStyle:function(){return"text-align:center"},categoryImgUrl:function(e){return e.imgurl?0===e.imgurl.indexOf("http")?e.imgurl:(e.prefixUrl||"")+e.imgurl:""},loadTree:function(){var e=this;this.loading=!0,Object(d["fetchTree"])(this.searchForm).then((function(t){e.tableData=(t||[]).map((function(e){var t=e.prefixUrl||"",a=(e.children||[]).map((function(a){return Object(s["a"])(Object(s["a"])({},a),{},{parentId:null!=a.parentId?a.parentId:e.id,prefixUrl:a.prefixUrl||t})}));return Object(s["a"])(Object(s["a"])({},e),{},{children:a})}))})).finally((function(){e.loading=!1}))},resetSearch:function(){this.searchForm={name:"",type:""},this.loadTree()},changeStatus:function(e){var t=this;Object(d["updateDisableById"])({id:e.id,status:e.status}).then((function(){t.$message.success("更新成功")}))},edit:function(e){var t=this;Object(d["queryById"])(e).then((function(a){var r={id:e,name:a.name,sortnum:a.sortnum,paramList:a.paramList,imgurl:a.imgurl,budgetList:a.budgetList.length>0?a.budgetList:[{maxamount:"",minamount:""}],type:a.type,platCateId:a.platCateId,tableData:a.paramList.map((function(e){return{id:e.id,name:e.name,isselect:e.isselect,isshow:e.isshow}})),fileList:a.imgurl?[{url:a.prefixUrl+a.imgurl}]:[]};t.$refs.operaCategoryWindow.open("编辑类别",r)}))},deleteParent:function(e){var t=this;this.$confirm("确认删除【".concat(e.name,"】?"),"提示").then((function(){Object(d["deleteById"])(e.id).then((function(){t.$message.success("删除成功"),t.loadTree()}))}))},deleteSub:function(e){var t=this;this.$confirm("确认删除子类别【".concat(e.name,"】?"),"提示").then((function(){Object(d["deleteSub"])(e.id).then((function(){t.$message.success("删除成功"),t.loadTree()}))}))}}},C=k,I=Object(f["a"])(C,r,i,!1,null,null,null);t["default"]=I.exports},"5c0b":function(e,t,a){"use strict";a("9c0c")},"5cbe":function(e,t,a){},"5d37":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAKCAYAAACE2W/HAAAAAXNSR0IArs4c6QAAAKpJREFUKFOV0TEOAVEQxvH/Vyn2ACruoFFINM4gOglnoLd6dyDRiTNoJIpt3IHKARSq2TyZld1lY3fKmfnNvLyRmd2ADs3iLjNbAJtmjqUCMLMtMKuJd5LmGWwBJ2DwB1+AkaTXG/rWNpAA3Qoc/qIv6RHqH+i4B5yBqISfwFDSNcsXoOMxcMgNNWAi6Zgf9gUdr4DYG2NJ6/Lzq2DI7715KilsLcRPWOcsKaUcMFrD/eqCAAAAAElFTkSuQmCC"},"5d8a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{staticClass:"menu-layout",attrs:{permissions:["system:menu:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:create","system:menu:delete","system:menu:sort"],expression:"['system:menu:create', 'system:menu:delete', 'system:menu:sort']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:create"],expression:"['system:menu:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaMenuWindow.open("新建一级菜单")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:delete"],expression:"['system:menu:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:sort"],expression:"['system:menu:sort']"}],attrs:{loading:e.isWorking.sort,icon:"el-icon-sort-up"},on:{click:function(t){return e.sort("top")}}},[e._v("上移")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:sort"],expression:"['system:menu:sort']"}],attrs:{loading:e.isWorking.sort,icon:"el-icon-sort-down"},on:{click:function(t){return e.sort("bottom")}}},[e._v("下移")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],ref:"table",attrs:{data:e.tableData.list,"tree-props":{children:"children",hasChildren:"hasChildren"},"row-key":"id",stripe:"","default-expand-all":!1},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",fixed:"left"}}),a("el-table-column",{attrs:{prop:"name",label:"菜单名称",fixed:"left","min-width":"160px"}}),a("el-table-column",{attrs:{prop:"icon",label:"图标","min-width":"80px","class-name":"table-column-icon"},scopedSlots:e._u([{key:"default",fn:function(t){var r,i=t.row;return[null!=i.icon&&""!==i.icon?a("i",{class:(r={},r[i.icon]=!0,r)}):[e._v("未设置")]]}}])}),a("el-table-column",{attrs:{prop:"path",label:"访问路径","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"disabled",label:"是否启用","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},on:{change:function(t){return e.switchDisabled(r)}},model:{value:r.disabled,callback:function(t){e.$set(r,"disabled",t)},expression:"row.disabled"}})]}}])}),e.containPermissions(["system:menu:update","system:menu:create","system:menu:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"220",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:update"],expression:"['system:menu:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaMenuWindow.open("编辑菜单",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:create"],expression:"['system:menu:create']"}],attrs:{type:"text",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaMenuWindow.open("新建子菜单",null,r)}}},[e._v("新建子菜单")]),r.fixed?e._e():a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:menu:delete"],expression:"['system:menu:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,362215539)}):e._e()],1)]},proxy:!0}])},[a("OperaMenuWindow",{ref:"operaMenuWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}})],1)},i=[],s=a("b85c"),n=(a("ac1f"),a("841c"),a("d3b7"),a("c740"),a("a434"),a("b0c0"),a("aa1c")),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{staticClass:"handle-table-dialog",attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[null!=e.form.parent&&null==e.form.id?a("p",{staticClass:"tip"},[e._v("为 "),a("em",[e._v(e._s(e.parentName))]),e._v(" 新建子菜单")]):e._e(),a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"上级菜单",prop:"parentId"}},[e.visible?a("MenuSelect",{attrs:{placeholder:"请选择上级菜单","exclude-id":e.excludeMenuId,clearable:"",inline:!1},model:{value:e.form.parentId,callback:function(t){e.$set(e.form,"parentId",t)},expression:"form.parentId"}}):e._e()],1),a("el-form-item",{attrs:{label:"菜单名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入菜单名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"访问路径",prop:"path"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入访问路径",maxlength:"200"},model:{value:e.form.path,callback:function(t){e.$set(e.form,"path",t)},expression:"form.path"}})],1),a("el-form-item",{staticClass:"form-item-icon",attrs:{label:"图标",prop:"icon"}},[a("el-radio-group",{model:{value:e.form.icon,callback:function(t){e.$set(e.form,"icon",t)},expression:"form.icon"}},e._l(e.icons,(function(e){var t;return a("el-radio",{key:e,attrs:{label:e}},[a("i",{class:(t={},t[e]=!0,t)})])})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"textarea",placeholder:"请输入菜单备注",rows:3,maxlength:"500"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TreeSelect",{attrs:{placeholder:e.placeholder,value:e.value,data:e.data,"append-to-body":e.appendToBody,clearable:e.clearable,inline:e.inline},on:{input:function(t){return e.$emit("input",t)}}})},p=[],f=a("e550"),h=a("a6dc"),g={name:"MenuSelect",components:{TreeSelect:f["a"]},props:{value:{},inline:{default:!0},placeholder:{default:"请选择菜单"},clearable:{default:!1},appendToBody:{default:!1},excludeId:{}},data:function(){return{data:[]}},watch:{excludeId:function(){this.fetchData()}},methods:{fetchData:function(){var e=this;Object(h["fetchTree"])().then((function(t){e.data=[],e.__fillData(e.data,t)})).catch((function(t){e.$tip.apiFailed(t)}))},__fillData:function(e,t){var a,r=Object(s["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.id!==this.excludeId){var n={id:i.id,label:i.name};e.push(n),null!=i.children&&i.children.length>0&&(n.children=[],this.__fillData(n.children,i.children),0===n.children.length&&(n.children=void 0))}}}catch(o){r.e(o)}finally{r.f()}}},created:function(){this.fetchData()}},b=g,v=a("2877"),y=Object(v["a"])(b,m,p,!1,null,null,null),w=y.exports,_=["eva-icon-role","eva-icon-permission","eva-icon-department","eva-icon-position","eva-icon-dictionary","eva-icon-listener","eva-icon-log","eva-icon-log-opera","eva-icon-log-login","el-icon-platform-eleme","el-icon-eleme","el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"],x={name:"OperaMenuWindow",extends:u["a"],components:{MenuSelect:w,GlobalWindow:d["a"]},data:function(){return{icons:_,parentName:"",excludeMenuId:null,form:{id:null,parentId:null,name:"",path:"",icon:"",remark:""},rules:{name:[{required:!0,message:"请输入菜单名称"}]}}},methods:{open:function(e,t,a){var r=this;if(this.title=e,this.visible=!0,null==t)return this.excludeMenuId=null,void this.$nextTick((function(){r.$refs.form.resetFields(),r.form.id=null,r.form.parentId=null==a?null:a.id,r.parentName=null==a?null:a.name}));this.$nextTick((function(){for(var e in r.excludeMenuId=t.id,r.form)r.form[e]=t[e]}))}},created:function(){this.config({api:"/system/menu"})}},k=x,C=(a("ca57"),Object(v["a"])(k,l,c,!1,null,"2becad69",null)),I=C.exports,A={name:"SystemMenu",extends:o["a"],components:{OperaMenuWindow:I,TableLayout:n["a"]},data:function(){return{isWorking:{sort:!1}}},methods:{handlePageChange:function(){var e=this;this.isWorking.search=!0,Object(h["fetchTree"])().then((function(t){e.tableData.list=t})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.search=!1}))},sort:function(e){var t=this;if(!this.isWorking.sort)if(0!==this.tableData.selectedRows.length)if(this.tableData.selectedRows.length>1)this.$tip.warning("排序时仅允许选择一条数据");else{var a,r,i=this.tableData.selectedRows[0].id,n=Object(s["a"])(this.tableData.list);try{for(n.s();!(r=n.n()).done;){var o=r.value,l=this.__findParent(i,o);null!=l&&(a=l.children)}}catch(u){n.e(u)}finally{n.f()}a=a||this.tableData.list;var c=a.findIndex((function(e){return e.id===i}));"top"!==e||0!==c?"bottom"!==e||c!==a.length-1?(this.isWorking.sort=!0,Object(h["sort"])({id:this.tableData.selectedRows[0].id,direction:e}).then((function(){"top"===e?a.splice(c,0,a.splice(c-1,1)[0]):a.splice(c,0,a.splice(c+1,1)[0])})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.isWorking.sort=!1}))):this.$tip.warning("菜单已到底部"):this.$tip.warning("菜单已到顶部")}else this.$tip.warning("请选择一条数据")},switchDisabled:function(e){var t=this;e.disabled?this.$dialog.disableConfirm("确认禁用 ".concat(e.name," 菜单吗?")).then((function(){t.__updateMenuStatus(e)})).catch((function(){e.disabled=!e.disabled})):this.__updateMenuStatus(e)},__findParent:function(e,t){if(0!==t.children){var a,r=Object(s["a"])(t.children);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.id===e)return t;if(i.children.length>0){var n=this.__findParent(e,i);if(null!=n)return n}}}catch(o){r.e(o)}finally{r.f()}return null}},__updateMenuStatus:function(e){var t=this;Object(h["updateStatus"])({id:e.id,parentId:e.parentId,disabled:e.disabled}).then((function(){t.$tip.apiSuccess("修改成功")})).catch((function(a){e.disabled=!e.disabled,t.$tip.apiFailed(a)}))}},created:function(){this.config({module:"菜单",api:"/system/menu"}),this.search()}},S=A,F=(a("e8c0"),Object(v["a"])(S,r,i,!1,null,"583b55f9",null));t["default"]=F.exports},"5efb":function(e,t,a){e.exports=a.p+"static/img/Samsung@2x.6175eca3.png"},"5ffd":function(e,t,a){"use strict";a("52e1")},"61d4":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.containRoles(e.roles)&&e.containPermissions(e.permissions)?a("div",[e._t("default")],2):a("div",{staticClass:"not-allow-wrap"},[e._t("not-allow",[a("NotAllow")])],2)},i=[],s=a("e811"),n=a("7903"),o={name:"Profile",components:{NotAllow:n["a"]},extends:s["a"],props:{permissions:{type:Array},roles:{type:Array}}},l=o,c=(a("da96"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"86b6dd7c",null);t["a"]=u.exports},"633e":function(e,t,a){"use strict";a("66eb")},"63e6":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"error-404"},[r("div",[r("div",{staticClass:"left"},[r("img",{attrs:{src:a("3dfc")}}),r("h1",[e._v("找不到网页")]),r("p"),r("div",{staticClass:"opera"},[r("el-button",{on:{click:function(t){return e.$router.back()}}},[e._v("返回")]),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.push("/index")}}},[e._v("前往首页")])],1)]),e._m(0)])])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right"},[a("h2",[e._v("你可以尝试以下操作")]),a("p",[e._v("1. 如果是手动更改的网页地址,请检查网页地址是否正确")]),a("p",[e._v("2. 点击【返回】按钮刷新页面后重试")]),a("p",[e._v("3. 联系系统管理员")])])}],s={name:"NotFound"},n=s,o=(a("09df"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"810ef5b2",null);t["default"]=l.exports},"63f0":function(e,t,a){"use strict";var r={set:function(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:function(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);if(null!=t)return JSON.parse(t)}},i={set:function(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:function(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);if(null!=t)return JSON.parse(t)}};t["a"]={session:r,local:i}},6527:function(e,t,a){e.exports=a.p+"static/img/4a.70712096.png"},"66eb":function(e,t,a){},"670c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAACSVJREFUaEPFWl1oHNcVPnd2VpZW+yM5slwTu3LsNNVDISltSelDi+lD6UMxzoNpu07sgEE2mOI6Im6ETe021E4IKaWhoUnrSBpSB0MTCC5xISbBbl1jY8Uhee+rtTO7q99d7c79Kefce2dmLSWKGpgdtMx6ZrS6337nfOc755rB/3mcOXPGeeyb336TZdyfKqWAXlKfpZIgZfwSQoLD4J4QcisXAqQUgNeE4CC4ACEFcM4BQLGM40BzZSXYvm149ODBg9WNLo9t9Bfs80opdvWDa15zpVUGQCB4B8EASKHBCFo8niXM1QPVny8xAiEQkABuAdH7EH8d+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Ypp5iw78YazBkkWKNg1sj19QM+fOz9Vq8WAksAiK2RAOYyR07ZgkvlFdQsnCab9cN1MsGtkR/qAfnf+helZv3oAd57XCzvcrtej4bWkvfOam8kEux/6avqAfvv8+elZv3Kg0xHbLf7Y1+F9BEQjKvt/GtY4289Bhnbv7AKg02d/41WDGu3gJWuRFYSkMLiZzCpAlGfGVSS/lK4xdOr0Wc+vBmXGWEdjt5ZIZF0NyIZcEvT9PU/XGJo4ddrzOxhKcHVfW551XQNIK9/nHV1j6ORzp7ygWk2E3GpxsAvPZlxoo5/7AkfXGBo/+ZxXrSZzyGSSbZASi+/JutAOcUN4/cN13WD3zi7I9i/HT3q1Wo1yaL2jx81ugKFuAXrmWa9Wr38xQMgQF7bPWI0fWTVfTFdyCJRiv3hm3KvX5so4rYmOuDnqWHR/LgeNZpOuoetmKBprPIv3XMcJHt41km5hxYWdPXvu141ma6w/l/2VUjgKiY+MeYvX8H0ut2lhJQw3MckYcxnLOk4mRA0HoJ5IKSejeMhabfmT7Ka+R/d8f/ixPXueXlkvlO+/v37wf84nTk//s98treR/vnfvhke2n/WxL1+61LfTHck98cTjG5744Gd+KUAb/fbSeP5/VSpV2nK99IoAAAAASUVORK5CYII="},"67c4":function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"exportExcel",(function(){return s}));var r=a("b775");function i(e){return r["a"].post("/system/traceLog/page",e,{trim:!0})}function s(e){return r["a"].post("/system/traceLog/exportExcel",e,{download:!0,trim:!0})}},"6bce":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:dict:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:create","system:dict:delete"],expression:"['system:dict:create', 'system:dict:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:create"],expression:"['system:dict:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaDictWindow.open("新建字典")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:delete"],expression:"['system:dict:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",fixed:"left",width:"55"}}),a("el-table-column",{attrs:{prop:"code",label:"字典编码",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"name",label:"字典名称",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px",sortable:"custom","sort-by":"dict.CREATE_TIME"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),e.containPermissions(["system:dict:update","system:dict:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"210",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:update"],expression:"['system:dict:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaDictWindow.open("编辑字典",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:update"],expression:"['system:dict:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.dictDataManagerWindow.open(r.id,r.name)}}},[e._v("数据管理")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:dict:delete"],expression:"['system:dict:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,1376422363)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"字典编码",prop:"code"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入字典编码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.code,callback:function(t){e.$set(e.searchForm,"code",t)},expression:"searchForm.code"}})],1),a("el-form-item",{attrs:{label:"字典名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入字典名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaDictWindow",{ref:"operaDictWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("DictDataManagerWindow",{ref:"dictDataManagerWindow"})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"字典编码",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入字典编码",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{attrs:{label:"字典名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入字典名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"textarea",placeholder:"请输入备注",rows:3,maxlength:"500"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m={name:"OperaDictWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){return{form:{id:null,code:"",name:"",remark:""},rules:{code:[{required:!0,message:"请输入字典编码"}],name:[{required:!0,message:"请输入字典名称"}]}}},created:function(){this.config({api:"/system/dict"})}},p=m,f=a("2877"),h=Object(f["a"])(p,l,c,!1,null,null,null),g=h.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.dictName+"数据管理",width:"78%",visible:e.visible,"with-footer":!1},on:{"update:visible":function(t){e.visible=t}}},[a("TableLayout",{attrs:{"with-breadcrumb":!1},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{staticClass:"toolbar"},[a("li",[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaDictDataWindow.open("新建字典数据",e.searchForm.dictId)}}},[e._v("新建")])],1),a("li",[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"label",label:"数据标签","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"code",label:"数据值","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"disabled",label:"状态","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e._f("disabledText")(a.disabled)))]}}])}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"100px"}}),a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaDictDataWindow.open("编辑字典数据",e.dictId,r)}}},[e._v("编辑")]),a("el-button",{attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}])})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("OperaDictDataWindow",{ref:"operaDictDataWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}})],1)],1)},v=[],y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking.create},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"数据标签",prop:"label",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入数据标签",maxlength:"50"},model:{value:e.form.label,callback:function(t){e.$set(e.form,"label",t)},expression:"form.label"}})],1),a("el-form-item",{attrs:{label:"数据值",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入数据值",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{staticClass:"form-item-status",attrs:{label:"状态",prop:"disabled",required:""}},[a("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},model:{value:e.form.disabled,callback:function(t){e.$set(e.form,"disabled",t)},expression:"form.disabled"}}),a("span",{staticClass:"status-text"},[e._v(e._s(e._f("disabledText")(e.form.disabled)))])],1)],1)],1)},w=[],_={name:"OperaDictDataWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){return{form:{id:null,dictId:null,code:"",label:"",disabled:!1},rules:{label:[{required:!0,message:"请输入数据标签"}],code:[{required:!0,message:"请输入数据值"}]}}},methods:{open:function(e,t,a){var r=this;this.title=e,this.visible=!0,null!=a?this.$nextTick((function(){for(var e in r.form)r.form[e]=a[e]})):this.$nextTick((function(){r.$refs.form.resetFields(),r.form.id=null,r.form.dictId=t}))}},created:function(){this.config({api:"/system/dictData"})}},x=_,k=(a("1a1a"),Object(f["a"])(x,y,w,!1,null,"400e5c2a",null)),C=k.exports,I={name:"DictDataManagerWindow",extends:o["a"],components:{OperaDictDataWindow:C,TableLayout:n["a"],GlobalWindow:d["a"],Pagination:s["a"]},data:function(){return{visible:!1,searchForm:{dictId:null},dictName:""}},methods:{open:function(e,t){this.searchForm.dictId=e,this.dictName=t,this.visible=!0,this.search()}},created:function(){this.config({api:"/system/dictData","field.main":"label"})}},A=I,S=(a("4a61"),Object(f["a"])(A,b,v,!1,null,"9ec8cf16",null)),F=S.exports,B={name:"SystemDict",extends:o["a"],components:{DictDataManagerWindow:F,OperaDictWindow:g,TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchForm:{code:"",name:""}}},created:function(){this.config({module:"字典",api:"/system/dict",sorts:[{property:"dict.CREATE_TIME",direction:"DESC"}]}),this.search()}},P=B,D=Object(f["a"])(P,r,i,!1,null,null,null);t["default"]=D.exports},"6c5c":function(e,t,a){"use strict";a.r(t),a.d(t,"getSystemInfo",(function(){return i}));var r=a("b775");function i(){return r["a"].get("/system/monitor/getSystemInfo")}},"6d22":function(e,t,a){"use strict";a("d4e3")},"6e9d":function(e,t,a){"use strict";a("8761")},"73ae":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAD4VJREFUaEO1WmtwFNeZPT1vaaTR+/1AD0BCEjLiFYxxjImxTdbBCTbBu9nKGhxAFgSQY2xjqI0Cqf2xldrE3jikXN7EZW9SroApJ951sHCCI8vYYW0CiIcBSQbES895z/S7t757u2cG71aFqjSimulpaabvued85/u+e1vAbfxZsWJFIBwP//iVn788678OvpcfS4rh3x14czgSnNwxPDx8+XbcWrjVL/2Xn748szC//D5Zlg1NU6HrGmRZFTRNZ+eKwq/Re01TBUVTICWknGuXBrevWbOq6OTAWcQkCaeOH5OycwpfKCopvaxpmqBBQ7bPF5UVRdN1azT0HYBh6ILHKYxercz74/s9PeqtjPWWAa3t7P631d/e2C1KSei6DkM32CsNQtM0dk6vqqqyQ1FkKLICWZaRFJNQFDqXoCoKJFmGrMiQJIl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yhI0r+KpIzbbEsHxrhzL+YbtgL65rmsgJgptgsDzjuVEmQCtZ3T4doia2uVj24smGO5eHBBdF6iEKitAZVVZahc81TSyal44qCYCq2wH9OjjT55OyI4WQeBPkGTeNBOUtfCYWme4CQgHwRYqWQxxQLWmy1kyvHmS8I7XaTzy6quv8geD/srPLT+N9bXHnjiTVJ2zOCCrfUizRTKx1hXYoA2NyY615NbDTeaKENvKNBlyEEMVBcy2rWcT2HcxyYFWT9/J9jjsB9T19K6dJaWVtazN1gyBBmIWDekXuqSpflkVV8uKdsLtyTpuahOqLjsNTVmu6UahIDj+WzcQIQDhcNgpaJJblaWHXW73RU3XPoIO6A76MgEuOI7dGKl65f33bX5e7q9Rbf1+6dKlxRVVFS9eHbm6v6+v74B1ffXq1Z5QKLS7rKL6W5cvDi3r6+u7YP1u27ZtFaPjk59q0A/85le/2nyr9/r//u6WJfe33MT67Nr16x8qLix+afT61eWvvfbaeev6hg0b3MFgrFVR9NBbb71x8W+51/8CaqfOB95rIqAAAAAASUVORK5CYII="},7519:function(e,t,a){e.exports=a.p+"static/img/background_defult.2d69b58a.png"},"757b":function(e,t,a){"use strict";a("5661")},7679:function(e,t,a){},7754:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"create",(function(){return s})),a.d(t,"updateById",(function(){return n})),a.d(t,"deleteById",(function(){return o})),a.d(t,"deleteByIdInBatch",(function(){return l}));var r=a("b775");function i(e){return r["a"].post("/system/dict/page",e)}function s(e){return r["a"].post("/system/dict/create",e)}function n(e){return r["a"].post("/system/dict/updateById",e)}function o(e){return r["a"].get("/system/dict/delete/".concat(e))}function l(e){return r["a"].get("/system/dict/delete/batch",{params:{ids:e}})}},"77ef":function(e,t,a){var r={"./api/business/anchor":"3aaf","./api/business/anchor.js":"3aaf","./api/business/brand":"41cf","./api/business/brand.js":"41cf","./api/business/category":"a859","./api/business/category.js":"a859","./api/business/goods":"c104","./api/business/goods.js":"c104","./api/business/goodsImportTask":"44fd","./api/business/goodsImportTask.js":"44fd","./api/business/order":"b946","./api/business/order.js":"b946","./api/business/page":"5417","./api/business/page.js":"5417","./api/system/common":"503a","./api/system/common.js":"503a","./api/system/dataPermission":"4426","./api/system/dataPermission.js":"4426","./api/system/department":"df8e","./api/system/department.js":"df8e","./api/system/dict":"7754","./api/system/dict.js":"7754","./api/system/dictData":"4057","./api/system/dictData.js":"4057","./api/system/loginLog":"4436","./api/system/loginLog.js":"4436","./api/system/menu":"a6dc","./api/system/menu.js":"a6dc","./api/system/monitor":"6c5c","./api/system/monitor.js":"6c5c","./api/system/permission":"c1b4","./api/system/permission.js":"c1b4","./api/system/position":"123b","./api/system/position.js":"123b","./api/system/role":"3528","./api/system/role.js":"3528","./api/system/traceLog":"67c4","./api/system/traceLog.js":"67c4","./api/system/user":"c0c7","./api/system/user.js":"c0c7"};function i(e){var t=s(e);return a(t)}function s(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id="77ef"},7862:function(e,t,a){"use strict";a("118d")},7903:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"not-allow"},[e._t("default",[e._m(0)])],2)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"content"},[r("img",{attrs:{src:a("56f2")}}),r("h2",[e._v("无权访问")]),r("p",[e._v("如您需要访问该页面,请联系系统管理员")])])}],s={name:"NotAllow"},n=s,o=(a("9cd2"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"3aa1644a",null);t["a"]=l.exports},"794c":function(e,t,a){},"79d6":function(e,t,a){},"7a09":function(e,t,a){"use strict";a("d5f8")},"7a11":function(e,t,a){},"7ad3":function(e,t,a){"use strict";a("37f6")},"7bc0":function(e,t,a){e.exports=a.p+"static/img/2a.c3236a78.png"},8131:function(e,t,a){},8761:function(e,t,a){},"8a8a":function(e,t,a){},"8e7f":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["business:order:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"",border:"","header-cell-style":e.rowStyle,"cell-style":e.rowStyle}},[a("el-table-column",{attrs:{prop:"orderNo",label:"订单编号","min-width":"140"}}),a("el-table-column",{attrs:{prop:"userBudget",label:"客户预算","min-width":"100"}}),a("el-table-column",{attrs:{prop:"categoryCount",label:"品类数量","min-width":"90"}}),a("el-table-column",{attrs:{prop:"goodsCount",label:"商品数量","min-width":"90"}}),a("el-table-column",{attrs:{prop:"totalZdPrice",label:"旗舰价","min-width":"100"}}),a("el-table-column",{attrs:{prop:"totalPrice",label:"指导价","min-width":"100"}}),a("el-table-column",{attrs:{prop:"anchorUsername",label:"主播账号","min-width":"120"}}),a("el-table-column",{attrs:{label:"创建时间","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e.formatOrderCreateTime(a)))]}}])}),a("el-table-column",{attrs:{label:"提交时间","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e.formatDateTime(a.submitTime)))]}}])}),a("el-table-column",{attrs:{prop:"durationText",label:"创建时长","min-width":"100"}}),a("el-table-column",{attrs:{label:"操作","min-width":"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.showDetail(r.id)}}},[e._v("详情")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:order:exportExcel"],expression:"['business:order:exportExcel']"}],attrs:{type:"text",loading:e.exportingId===r.id},on:{click:function(t){return e.exportRow(r.id)}}},[e._v("导出")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:order:delete"],expression:"['business:order:delete']"}],staticClass:"btn-delete",attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteRow(r)}}},[e._v("删除")])]}}])})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"订单编号",prop:"orderNo"}},[a("el-input",{attrs:{placeholder:"订单编号"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.orderNo,callback:function(t){e.$set(e.searchForm,"orderNo",t)},expression:"searchForm.orderNo"}})],1),a("el-form-item",{attrs:{label:"主播账号",prop:"anchorUsername"}},[a("el-input",{attrs:{placeholder:"主播账号"},model:{value:e.searchForm.anchorUsername,callback:function(t){e.$set(e.searchForm,"anchorUsername",t)},expression:"searchForm.anchorUsername"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("el-dialog",{attrs:{title:"订单详情",visible:e.detailVisible,width:"920px","custom-class":"order-detail-dialog","append-to-body":""},on:{"update:visible":function(t){e.detailVisible=t}}},[e.detail?[a("div",{staticClass:"order-detail-panel"},[a("div",{staticClass:"order-detail-hero"},[a("div",{staticClass:"order-detail-hero__content"},[a("div",{staticClass:"order-detail-hero__label"},[e._v("订单编号")]),a("div",{staticClass:"order-detail-hero__no"},[e._v(e._s(e.detail.orderNo||"--"))]),a("div",{staticClass:"order-detail-hero__tags"},[a("span",{staticClass:"order-detail-tag"},[a("i",{staticClass:"el-icon-user"}),e._v(" "+e._s(e.detail.anchorUsername||"--")+" ")]),a("span",{staticClass:"order-detail-tag"},[a("i",{staticClass:"el-icon-timer"}),e._v(" 创建时长 "+e._s(e.detail.durationText||"--")+" ")])])])]),a("div",{staticClass:"order-detail-stats"},[a("div",{staticClass:"order-detail-stat"},[a("div",{staticClass:"order-detail-stat__label"},[e._v("客户预算")]),a("div",{staticClass:"order-detail-stat__value"},[e._v(e._s(e.formatMoney(e.detail.userBudget)))])]),a("div",{staticClass:"order-detail-stat"},[a("div",{staticClass:"order-detail-stat__label"},[e._v("品类数量")]),a("div",{staticClass:"order-detail-stat__value"},[e._v(e._s(e.formatCount(e.detail.categoryCount)))])]),a("div",{staticClass:"order-detail-stat"},[a("div",{staticClass:"order-detail-stat__label"},[e._v("商品数量")]),a("div",{staticClass:"order-detail-stat__value"},[e._v(e._s(e.formatCount(e.detail.goodsCount)))])]),a("div",{staticClass:"order-detail-stat"},[a("div",{staticClass:"order-detail-stat__label"},[e._v("旗舰价合计")]),a("div",{staticClass:"order-detail-stat__value"},[e._v(e._s(e.formatMoney(e.detail.totalZdPrice)))])]),a("div",{staticClass:"order-detail-stat order-detail-stat--primary"},[a("div",{staticClass:"order-detail-stat__label"},[e._v("指导价合计")]),a("div",{staticClass:"order-detail-stat__value"},[e._v(e._s(e.formatMoney(e.detail.totalPrice)))])])]),a("div",{staticClass:"order-detail-meta"},[a("div",{staticClass:"order-detail-meta__item"},[a("div",{staticClass:"order-detail-meta__icon"},[a("i",{staticClass:"el-icon-date"})]),a("div",{staticClass:"order-detail-meta__body"},[a("div",{staticClass:"order-detail-meta__label"},[e._v("创建时间")]),a("div",{staticClass:"order-detail-meta__value"},[e._v(e._s(e.formatOrderCreateTime(e.detail)))])])]),a("div",{staticClass:"order-detail-meta__divider"}),a("div",{staticClass:"order-detail-meta__item"},[a("div",{staticClass:"order-detail-meta__icon"},[a("i",{staticClass:"el-icon-circle-check"})]),a("div",{staticClass:"order-detail-meta__body"},[a("div",{staticClass:"order-detail-meta__label"},[e._v("提交时间")]),a("div",{staticClass:"order-detail-meta__value"},[e._v(e._s(e.formatDateTime(e.detail.submitTime)))])])])])]),a("div",{staticClass:"order-detail-table-wrap"},[a("div",{staticClass:"order-detail-section-head"},[a("span",{staticClass:"order-detail-section-head__title"},[e._v("商品明细")]),a("span",{staticClass:"order-detail-section-head__extra"},[e._v("共 "+e._s(e.detail.items&&e.detail.items.length||0)+" 件")])]),e.detail.items?a("el-table",{attrs:{data:e.detail.items,border:"",stripe:"","header-cell-style":e.rowStyle,"cell-style":e.rowStyle}},[a("el-table-column",{attrs:{prop:"sortNum",label:"序号",width:"60"}}),a("el-table-column",{attrs:{prop:"categoryName",label:"品类名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"goodsName",label:"产品型号","min-width":"160"}}),a("el-table-column",{attrs:{label:"旗舰价","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e.formatMoney(a.zdPrice)))]}}],null,!1,426061598)}),a("el-table-column",{attrs:{label:"指导价","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(e.formatMoney(a.price)))]}}],null,!1,1727166240)})],1):e._e()],1)]:e._e()],2)],1)},i=[],s=(a("ac1f"),a("841c"),a("9129"),a("a9e3"),a("4d90"),a("99af"),a("d3b7"),a("0f1b")),n=a("aa1c"),o=a("d529"),l=a("b946"),c={name:"PreselectOrder",extends:s["a"],components:{TableLayout:n["a"],Pagination:o["a"]},data:function(){return{searchForm:{orderNo:"",anchorUsername:""},detailVisible:!1,detail:null,exportingId:null}},created:function(){this.config({module:"订单",api:"/business/order","field.id":"id","field.main":"orderNo"}),this.search()},methods:{rowStyle:function(){return"text-align:center"},formatDateTime:function(e){if(null==e||""===e)return"--";if("string"===typeof e&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return e;var t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return String(e);var a=function(e){return String(e).padStart(2,"0")};return"".concat(t.getFullYear(),"-").concat(a(t.getMonth()+1),"-").concat(a(t.getDate())," ").concat(a(t.getHours()),":").concat(a(t.getMinutes()),":").concat(a(t.getSeconds()))},formatOrderCreateTime:function(e){return e?this.formatDateTime(e.sessionCreateTime||e.createTime):"--"},formatMoney:function(e){return null==e||""===e?"--":"¥".concat(e)},formatCount:function(e){return null==e||""===e?"--":e},showDetail:function(e){var t=this;Object(l["queryById"])(e).then((function(e){t.detail=e,t.detailVisible=!0}))},exportRow:function(e){var t=this;this.exportingId=e,Object(l["exportDetail"])(e).then((function(e){t.download(e),t.$message.success("导出成功")})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.exportingId=null}))},deleteRow:function(e){var t=this;this.$confirm("确认删除订单【".concat(e.orderNo,"】?"),"提示").then((function(){Object(l["deleteById"])(e.id).then((function(){t.$message.success("删除成功"),t.search()}))}))}}},u=c,d=(a("a168"),a("d1e6"),a("2877")),m=Object(d["a"])(u,r,i,!1,null,"4621693a",null);t["default"]=m.exports},9004:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:department:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:create","system:department:delete"],expression:"['system:department:create', 'system:department:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:create"],expression:"['system:department:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaDepartmentWindow.open("新建部门")}}},[e._v("新建")])],1),a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:delete"],expression:"['system:department:delete']"}],attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"tree-props":{children:"children",hasChildren:"hasChildren"},"row-key":"id",stripe:"","default-expand-all":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",fixed:"left",width:"55"}}),a("el-table-column",{attrs:{prop:"name",label:"部门名称",fixed:"left","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"code",label:"部门编码",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"userCount",label:"部门人数","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"phone",label:"联系电话","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"email",label:"部门邮箱","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),e.containPermissions(["system:department:update","system:department:create","system:department:delete","system:department:queryUsers"])?a("el-table-column",{attrs:{label:"操作","min-width":"310",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:update"],expression:"['system:department:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaDepartmentWindow.open("编辑部门",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:create"],expression:"['system:department:create']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaDepartmentWindow.open("新建下级部门",null,r)}}},[e._v("新建下级部门")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:queryUsers"],expression:"['system:department:queryUsers']"}],attrs:{type:"text",icon:"el-icon-user-solid"},on:{click:function(t){return e.$refs.departmentUserWindow.open(r.id,r.name)}}},[e._v("查看人员")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:department:delete"],expression:"['system:department:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,448359005)}):e._e()],1)]},proxy:!0}])},[a("OperaDepartmentWindow",{ref:"operaDepartmentWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("DepartmentUserWindow",{ref:"departmentUserWindow"})],1)},i=[],s=(a("a434"),a("ac1f"),a("841c"),a("d3b7"),a("aa1c")),n=a("df8e"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"上级部门",prop:"parentId"}},[e.visible?a("DepartmentSelect",{ref:"departmentSelect",attrs:{placeholder:"请选择上级部门","exclude-id":e.excludeDeptId,inline:!1},model:{value:e.form.parentId,callback:function(t){e.$set(e.form,"parentId",t)},expression:"form.parentId"}}):e._e()],1),a("el-form-item",{attrs:{label:"部门编码",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入部门编码",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{attrs:{label:"部门名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入部门名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"联系电话",prop:"phone"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入联系电话",maxlength:"11"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"部门邮箱",prop:"email"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入部门邮箱",maxlength:"200"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m=a("cc38"),p=a("1242"),f={name:"OperaDepartmentWindow",extends:u["a"],components:{DepartmentSelect:m["default"],GlobalWindow:d["a"]},data:function(){return{excludeDeptId:null,form:{id:null,parentId:null,code:"",name:"",phone:"",email:""},rules:{code:[{required:!0,message:"请输入部门编码"}],name:[{required:!0,message:"请输入部门名称"}],phone:[{validator:p["b"]}],email:[{validator:p["a"]}]}}},methods:{open:function(e,t,a){var r=this;if(this.title=e,this.visible=!0,null==t)return this.excludeDeptId=null,void this.$nextTick((function(){r.$refs.form.resetFields(),r.form.id=null,r.form.parentId=null==a?null:a.id}));this.$nextTick((function(){for(var e in r.excludeDeptId=t.id,r.form)r.form[e]=t[e]}))}},created:function(){this.config({api:"/system/department"})}},h=f,g=a("2877"),b=Object(g["a"])(h,l,c,!1,null,null,null),v=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{staticClass:"position-user-window",attrs:{width:"80%",title:e.departmentName+"人员列表",visible:e.visible,"with-footer":!1},on:{"update:visible":function(t){e.visible=t}}},[a("TableLayout",{attrs:{"with-breadcrumb":!1},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80px","class-name":"table-column-avatar",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("img",{attrs:{src:null==t.avatar?"/static/avatar/man.png":t.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"realname",label:"姓名","min-width":"100px",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"用户名","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"empNo",label:"工号","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"department",label:"部门","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.department?"":a.department.name))]}}])}),a("el-table-column",{attrs:{prop:"position",label:"岗位","min-width":"120px","class-name":"table-column-strings"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.positions,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])}),a("el-table-column",{attrs:{prop:"sex",label:"性别","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("sex")(a.sex))+" ")]}}])}),a("el-table-column",{attrs:{prop:"mobile",label:"手机号码","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"birthday",label:"生日","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"birthday",label:"角色","min-width":"160px","class-name":"table-column-role"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.roles,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"80px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入用户名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.username,callback:function(t){e.$set(e.searchForm,"username",t)},expression:"searchForm.username"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"realname"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.realname,callback:function(t){e.$set(e.searchForm,"realname",t)},expression:"searchForm.realname"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入手机号码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.mobile,callback:function(t){e.$set(e.searchForm,"mobile",t)},expression:"searchForm.mobile"}})],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("div",{staticClass:"toolbar",attrs:{slot:"space"},slot:"space"},[a("el-switch",{attrs:{disabled:e.isWorking.search},on:{change:e.search},model:{value:e.onlyCurrentDept,callback:function(t){e.onlyCurrentDept=t},expression:"onlyCurrentDept"}}),a("label",[e._v("仅查看当前部门人员")])],1)],1)],1)},w=[],_=a("d529"),x={name:"DepartmentUserWindow",extends:o["a"],components:{Pagination:_["a"],GlobalWindow:d["a"],TableLayout:s["a"]},data:function(){return{departmentId:null,departmentName:"",visible:!1,onlyCurrentDept:!0,searchForm:{departmentId:null,username:"",realname:"",mobile:""}}},methods:{open:function(e,t){this.departmentId=e,this.departmentName=t,this.searchForm.departmentId=e,this.visible=!0,this.search()},handlePageChange:function(e){var t=this;this.searchForm.strictDeptId=null,this.searchForm.rootDeptId=this.searchForm.departmentId,this.onlyCurrentDept&&(this.searchForm.strictDeptId=this.searchForm.departmentId,this.searchForm.rootDeptId=null),this.tableData.pagination.pageIndex=e,this.isWorking.search=!0,Object(n["fetchUserList"])({page:e,capacity:this.tableData.pagination.pageSize,model:this.searchForm}).then((function(e){t.tableData.list=e.records,t.tableData.pagination.total=e.total})).catch((function(e){t.$tip.apiFailed(e)})).finally((function(){t.isWorking.search=!1}))}}},k=x,C=(a("2cb4"),Object(g["a"])(k,y,w,!1,null,"384bf43e",null)),I=C.exports,A={name:"SystemDepartment",extends:o["a"],components:{DepartmentUserWindow:I,OperaDepartmentWindow:v,TableLayout:s["a"]},data:function(){return{searchForm:{name:""}}},methods:{handlePageChange:function(){var e=this;this.tableData.list.splice(0,this.tableData.list.length),this.isWorking.search=!0,Object(n["fetchTree"])().then((function(t){e.tableData.list=t})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.search=!1}))}},created:function(){this.config({module:"部门",api:"/system/department"}),this.search()}},S=A,F=(a("e86e"),Object(g["a"])(S,r,i,!1,null,"650e694a",null));t["default"]=F.exports},"909c":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:user:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create","system:user:delete"],expression:"['system:user:create', 'system:user:delete']"}],staticClass:"toolbar"},[a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create"],expression:"['system:user:create']"}]},[a("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(t){return e.$refs.OperaStaffWindow.open("新建用户")}}},[e._v("新建")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"username",label:"登录账号"}}),a("el-table-column",{attrs:{prop:"realname",label:"姓名"}}),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),a("el-table-column",{attrs:{prop:"roles",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.roles,(function(t){return a("li",{key:t.id,staticStyle:{padding:"0px 5px","background-color":"#ececec","border-radius":"8px",display:"inline-block","margin-right":"10px"}},[e._v(e._s(t.name))])})),0)]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":0,"inactive-value":1},on:{change:function(t){return e.changeStatus(t,r.id)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"row.status"}})]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e.containPermissions(["system:user:update","system:user:createUserRole","system:user:resetPwd","system:user:delete"])?a("el-table-column",{attrs:{label:"操作",width:"230",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:update"],expression:"['system:user:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.edit(r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{type:"text"},on:{click:function(t){return e.editPass(r)}}},[e._v("修改密码")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:delete"],expression:"['system:user:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,2829829602)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"80px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"账号信息",prop:"keyword"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入登录账号/姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword",t)},expression:"searchForm.keyword"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.status,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaStaffWindow",{ref:"OperaStaffWindow",on:{success:e.handlePageChange}}),a("OperaAnchorPassWindow",{ref:"OperaAnchorPassWindow",on:{success:e.handlePageChange}})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"登录账号",prop:"userName"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{disabled:!!e.form.id,maxlength:"20",placeholder:"请输入,不超过20个字符"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),a("el-form-item",{attrs:{label:"登录密码",prop:"password"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{disabled:!!e.form.id,"show-password":"",placeholder:"密码支持数字、字符组合,长度6-18位"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"员工姓名",prop:"realName"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入员工姓名"},model:{value:e.form.realName,callback:function(t){e.$set(e.form,"realName",t)},expression:"form.realName"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"11","show-word-limit":"",placeholder:"请输入手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),a("el-form-item",{attrs:{label:"角色",prop:"roleId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}},e._l(e.roleList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1)},c=[],u=(a("d3b7"),a("ae62")),d=a("5543"),m=a("3528"),p=a("3aaf"),f={name:"OperaBrandWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){var e=function(e,t,a){""===t?a(new Error("登录密码不能为空")):(/^(?![^a-zA-Z]+$)(?!\D+$)/.test(t)||a(new Error("密码支持数字、字符组合,长度6-18位")),a())},t=function(e,t,a){""===t||/^1[3,4,5,6,7,8,9][0-9]{9}$/.test(t)||a(new Error("手机号码格式不正确!")),a()};return{roleList:[],form:{id:null,userName:"",password:"",realName:"",mobile:"",roleId:""},rules:{userName:[{required:!0,message:"登录账号不能为空",trigger:"blur"}],password:[{required:!0,validator:e,trigger:"blur"}],realName:[{required:!0,message:"主播姓名不能为空",trigger:"blur"}],mobile:[{validator:t,trigger:"blur"}]}}},created:function(){this.config({api:"/business/anchor","field.id":"id"})},methods:{confirm:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.isWorking=!0,e.form.id?Object(p["companyUpdUser"])(e.form).then((function(t){e.visible=!1,e.$tip.apiSuccess("编辑成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})):Object(p["companyCreateUser"])(e.form).then((function(t){e.visible=!1,e.$tip.apiSuccess("新建成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))}))},open:function(e,t){var a=this;this.title=e,this.visible=!0,Object(m["fetchAll"])().then((function(e){a.roleList=e})),null!=t?this.$nextTick((function(){for(var e in a.form)a.form[e]=t[e]})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null}))}}},h=f,g=a("2877"),b=Object(g["a"])(h,l,c,!1,null,null,null),v=b.exports,y=a("b480"),w={name:"SystemUser",extends:o["a"],components:{OperaStaffWindow:v,OperaAnchorPassWindow:y["a"],TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchForm:{status:"",keyword:"",type:1},status:[{name:"启用",id:0},{name:"禁用",id:1}]}},created:function(){this.config({module:"用户",api:"/business/anchor","field.main":"realname",sorts:[{property:"CREATE_TIME",direction:"DESC"}]}),this.search()},methods:{editPass:function(e){var t={id:e.id};this.$refs.OperaAnchorPassWindow.open("修改密码",t)},changeStatus:function(e,t){Object(p["updUserStatus"])({id:t,status:e}).then((function(e){console.log(e)}))},edit:function(e){var t={id:e.id,userName:e.username,password:e.password,realName:e.realname,mobile:e.mobile,roleId:e.roles.length>0?e.roles[0].id:null};this.$refs.OperaStaffWindow.open("编辑用户",t)}}},_=w,x=(a("7a09"),Object(g["a"])(_,r,i,!1,null,"4e1c5378",null));t["default"]=x.exports},9224:function(e){e.exports=JSON.parse('{"name":"intelligent_manufacture","version":"1.0.0","private":true,"scripts":{"serve":"vue-cli-service serve","build:pro":"vue-cli-service build","build:pro_v2":"vue-cli-service build --mode production_v2","build:dev":"vue-cli-service build --mode staging","lint":"vue-cli-service lint","fix":"eslint --ext .js,.vue src --fix"},"dependencies":{"@riophae/vue-treeselect":"^0.4.0","axios":"^0.21.1","core-js":"^3.6.5","element-ui":"^2.3.6","js-cookie":"^2.2.1","js-file-download":"^0.4.12","vue":"^2.6.11","vue-clipboard2":"^0.3.1","vue-router":"^3.5.1","vuescroll":"^4.17.3","vuex":"^3.4.0"},"devDependencies":{"@vue/cli-plugin-babel":"~4.5.0","@vue/cli-plugin-eslint":"~4.5.0","@vue/cli-plugin-router":"~4.5.0","@vue/cli-plugin-vuex":"~4.5.0","@vue/cli-service":"~4.5.0","@vue/eslint-config-standard":"^5.1.2","babel-eslint":"^10.1.0","eslint":"^6.7.2","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","eslint-plugin-vue":"^6.2.2","lint-staged":"^9.5.0","node-sass":"^4.12.0","sass-loader":"^8.0.2","vue-cli-plugin-element-ui":"~1.1.4","vue-template-compiler":"^2.6.11"},"eslintConfig":{"root":true,"env":{"node":true},"extends":["plugin:vue/essential","@vue/standard"],"parserOptions":{"parser":"babel-eslint"},"rules":{"indent":["error",2],"generator-star-spacing":"off","no-debugger":"error"}},"browserslist":["> 1%","last 2 versions","not dead"],"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.{js,jsx,vue}":["vue-cli-service lint","git add"]}}')},"95e6":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["business:goods:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:create","business:goods:delete"],expression:"['business:goods:create', 'business:goods:delete']"}],staticClass:"toolbar"},[a("li",[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:create"],expression:"['business:goods:create']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaGoodsWindow.open("新建商品")}}},[e._v("新建")])],1),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:function(t){return e.$refs.selectProduct.open("选择平台商品")}}},[e._v("选择平台商品")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goodsImportTask:create"],expression:"['business:goodsImportTask:create']"}],attrs:{type:"primary",loading:e.uploading},on:{click:e.pickImportFile}},[e._v("提交异步导入")]),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:e.downloadFile}},[e._v("下载模板")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goodsImportTask:query"],expression:"['business:goodsImportTask:query']"}],attrs:{type:"primary",plain:""},on:{click:function(t){return e.$router.push("/business/goodsImportTask")}}},[e._v("导入任务")]),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:function(t){return e.bulkOperation(0)}}},[e._v("批量上架")]),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:function(t){return e.bulkOperation(1)}}},[e._v("批量下架")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:delete"],expression:"['business:goods:delete']"}],attrs:{type:"danger",loading:e.isWorking.export,icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("批量删除")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"",border:"","header-cell-style":e.rowStyle,"cell-style":e.rowStyle},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"id",label:"商品ID","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称/型号","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("div",{staticStyle:{width:"70px",height:"70px","flex-shrink":"0"}},[r.imgurl?a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:r.prefixUrl+r.imgurl,"preview-src-list":[r.prefixUrl+r.imgurl],fit:"cover"}}):e._e()],1),e._v(" "+e._s(r.name)+" ")])]}}])}),a("el-table-column",{attrs:{prop:"brandName",label:"品牌","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"categoryName",label:"类别","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"subCategoryName",label:"二级类别","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"categoryName",label:"类型","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.type?a("span",[e._v("自建")]):a("span",[e._v("拉取")])]}}])}),a("el-table-column",{attrs:{label:"指导价(元)","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.type?a("span",[e._v(e._s(r.zdPrice))]):a("span",[e._v(e._s(r.baseZdPrice))])]}}])}),a("el-table-column",{attrs:{prop:"basePrice",label:"采购价(元)","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"price",label:"入手价(元)","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"createDate",label:"创建时间","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":0,"inactive-value":1},on:{change:function(t){return e.changeStatus(r)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"row.status"}})]}}])}),e.containPermissions(["business:goods:update","business:goods:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:update"],expression:"['business:goods:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.edit(r.id)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["business:goods:delete"],expression:"['business:goods:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,2301324484)}):e._e()],1),a("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx,.xls"},on:{change:e.uploadImportFile}}),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"商品名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("el-form-item",{attrs:{label:"商品ID",prop:"id"}},[a("el-input",{attrs:{placeholder:"请输入商品ID"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.id,callback:function(t){e.$set(e.searchForm,"id",t)},expression:"searchForm.id"}})],1),a("el-form-item",{attrs:{label:"类别",prop:"categoryId"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.categoryId,callback:function(t){e.$set(e.searchForm,"categoryId",t)},expression:"searchForm.categoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"品牌",prop:"brandId"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.brandId,callback:function(t){e.$set(e.searchForm,"brandId",t)},expression:"searchForm.brandId"}},e._l(e.brandList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.statusList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"类型",prop:"type"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type",t)},expression:"searchForm.type"}},e._l(e.typeList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaGoodsWindow",{ref:"operaGoodsWindow",on:{success:e.handlePageChange}}),a("selectProduct",{ref:"selectProduct",on:{success:e.handlePageChange,result:e.search}})],1)},i=[],s=(a("ac1f"),a("841c"),a("d81d"),a("a15b"),a("d3b7"),a("b0c0"),a("1276"),a("159b"),a("0f1b")),n=a("aa1c"),o=a("d529"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("div",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[e._v("基本信息")]),a("el-form-item",{attrs:{label:"商品名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"50",placeholder:"请输入商品名称,不超过50个字"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"商品品牌",prop:"brandId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择,单选"},model:{value:e.form.brandId,callback:function(t){e.$set(e.form,"brandId",t)},expression:"form.brandId"}},e._l(e.brandList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"商品类别",prop:"categoryId"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择一级类别"},on:{change:e.onCategoryChange},model:{value:e.form.categoryId,callback:function(t){e.$set(e.form,"categoryId",t)},expression:"form.categoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"二级类别"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"可选,请选择二级类别"},model:{value:e.form.subCategoryId,callback:function(t){e.$set(e.form,"subCategoryId",t)},expression:"form.subCategoryId"}},e._l(e.subCategoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"指导价(元)",prop:"zdPrice"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"number",placeholder:"建议录入整数,单位元"},on:{input:function(t){return e.priceCHANEG(e.form.zdPrice,1)}},model:{value:e.form.zdPrice,callback:function(t){e.$set(e.form,"zdPrice",t)},expression:"form.zdPrice"}})],1),a("el-form-item",{attrs:{label:"入手价(元)",prop:"price"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"number",placeholder:"建议录入整数,单位元"},on:{input:function(t){return e.priceCHANEG(e.form.price,2)}},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",t)},expression:"form.price"}})],1),a("el-form-item",{attrs:{label:"商品主图"}},[a("el-upload",{attrs:{action:e.action,"file-list":e.form.ztList,data:{folder:"goods_img"},"list-type":"picture-card",limit:1,"on-success":e.fileSuccess,"on-exceed":e.exceed,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传图片格式,png格式,建议尺寸140*140px")])])],1),a("el-form-item",{attrs:{label:"商品图片"}},[a("el-upload",{attrs:{action:e.action,"file-list":e.form.files,multiple:!0,data:{folder:"goods_img"},"list-type":"picture-card","on-success":e.fileSuccess1,"on-remove":e.handleRemove1}},[a("i",{staticClass:"el-icon-plus"}),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传图片格式,png格式,建议尺寸600*600px")])])],1),e.form.goodsParamList&&e.form.goodsParamList.length>0?[a("div",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[e._v("参数属性值配置 "),a("span",{staticStyle:{"font-size":"13px","font-weight":"500"}},[e._v("按需配置当前商品的产品参数值,单个参数值不超过30个字")])]),e._l(e.form.goodsParamList,(function(t,r){return a("el-form-item",{key:r,attrs:{label:t.name}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"30",type:"text",placeholder:"请输入"},model:{value:t.val,callback:function(a){e.$set(t,"val",a)},expression:"item.val"}})],1)}))]:e._e()],2)],1)},c=[],u=a("5530"),d=(a("a9e3"),a("4de4"),a("ae62")),m=a("5543"),p=a("503a"),f=a("c104"),h=a("a859"),g={name:"OperaGoodsWindow",extends:d["a"],components:{GlobalWindow:m["a"]},data:function(){return{action:"/web_interface_v2/public/upload",name1:"",name2:"",form:{id:null,name:"",categoryId:"",subCategoryId:"",brandId:"",zdPrice:"",price:"",attrFirstIds:[],attrFirstNames:"",attrSecodIds:[],attrSecodNames:"",imgurl:"",multifileList:[],files:[],ztList:[],goodsParamList:[],attrFirstList:[],attrSecodList:[]},rules:{name:[{required:!0,message:"不能为空",trigger:"blur"}],categoryId:[{required:!0,message:"请选择",trigger:"change"}],brandId:[{required:!0,message:"请选择",trigger:"change"}],zdPrice:[{required:!0,message:"不能为空",trigger:"blur"}],price:[{required:!0,message:"不能为空",trigger:"blur"}]},options:[],categoryList:[],subCategoryList:[],brandList:[]}},created:function(){this.config({api:"/business/goods","field.id":"id"}),this.getbrand(),this.getcategory()},watch:{"form.categoryId":{immediate:!0,handler:function(e,t){var a=this;e&&(this.name1="",this.name2="",t&&(this.form.attrFirstIds=[],this.form.attrSecodIds=[],this.form.goodsParamList=[]),this.categoryList.forEach((function(t){t.id===e&&(a.name1=t.attrFirst,a.name2=t.attrSecond,a.form.attrFirstList=t.attrFirstList.length>0?t.attrFirstList:[],a.form.attrSecodList=t.attrSecondList.length>0?t.attrSecondList:[],a.form.goodsParamList=JSON.parse(JSON.stringify(t.paramList)),a.form.goodsParamList.forEach((function(e){e.pramaId=e.id})),console.log(a.form.goodsParamList))})),this.getcategory(1))}},visible:{handler:function(e,t){e||(this.name1="",this.name2="",this.form={id:null,name:"",categoryId:"",subCategoryId:"",brandId:"",zdPrice:"",price:"",attrFirstIds:[],attrFirstNames:"",attrSecodIds:[],attrSecodNames:"",imgurl:"",multifileList:[],files:[],ztList:[],goodsParamList:[],attrFirstList:[],attrSecodList:[]})}}},methods:{open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.form)a.form[e]=t[e];a.loadSubCategoryOptions()})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null,a.subCategoryList=[]}))},buildSubmitPayload:function(){var e=Object(u["a"])(Object(u["a"])({},this.form),{},{type:0});return""===e.subCategoryId||null==e.subCategoryId?e.subCategoryId=null:e.subCategoryId=Number(e.subCategoryId),e},loadSubCategoryOptions:function(){var e=this;this.form.categoryId?Object(h["fetchChildren"])(this.form.categoryId).then((function(t){e.subCategoryList=t||[],""!==e.form.subCategoryId&&null!=e.form.subCategoryId&&(e.form.subCategoryId=Number(e.form.subCategoryId))})):this.subCategoryList=[]},priceCHANEG:function(e,t){/^[1-9]+[0-9]*$/.test(e)||(this.$message.warning("只能输入正整数"),1===t?this.form.zdPrice="":this.form.price="")},confirm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;if(e.form.attrFirstIds.length>0){var a=[];e.form.attrFirstIds.forEach((function(t){e.form.attrFirstList.forEach((function(e){t===e.id&&a.push(e.name)}))})),e.form.attrFirstNames=a.join(","),e.form.attrFirstIds=e.form.attrFirstIds.join(",")}else e.form.attrFirstNames="",e.form.attrFirstIds="";if(e.form.attrSecodIds.length>0){var r=[];e.form.attrSecodIds.forEach((function(t){e.form.attrSecodList.forEach((function(e){t===e.id&&r.push(e.name)}))})),e.form.attrSecodNames=r.join(","),e.form.attrSecodIds=e.form.attrSecodIds.join(",")}else e.form.attrSecodNames="",e.form.attrSecodIds="";if(e.form.id)Object(f["companyUpdateById"])(e.buildSubmitPayload()).then((function(){e.visible=!1,e.$tip.apiSuccess("编辑成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}));else{var i=e.buildSubmitPayload();Object(f["companyCreate"])(i).then((function(){e.visible=!1,e.$tip.apiSuccess("新建成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))}}))},exceed:function(){this.$message.warning({message:"只能上传一个图标"})},initMuitlFiles:function(e){var t=[];return e.forEach((function(e){t.push({fileurl:e.response.data.imgaddr,name:e.response.data.imgname,url:e.response.data.url})})),t},fileSuccess1:function(e,t,a){this.form.files=a,this.form.multifileList=this.initMuitlFiles(a)},handleRemove1:function(e,t){this.form.files=t,this.form.multifileList=this.initMuitlFiles(t)},fileSuccess:function(e){this.form.ztList.push({imgaddr:e.data.imgaddr,url:e.data.url}),this.form.imgurl=e.data.imgaddr},handleRemove:function(){this.form.ztList=[],this.form.imgurl=""},getbrand:function(){var e=this;Object(p["brand"])({}).then((function(t){e.brandList=t}))},onCategoryChange:function(e){var t=this;this.form.subCategoryId="",this.subCategoryList=[],e&&Object(h["fetchChildren"])(e).then((function(e){t.subCategoryList=e||[]}))},getcategory:function(e){var t=this;Object(f["findListForGoodsId"])(this.form.id||"").then((function(a){t.categoryList=(a||[]).filter((function(e){return!e.parentId})),t.loadSubCategoryOptions(),1===e&&t.categoryList.forEach((function(e){e.id===t.form.categoryId&&(t.form.goodsParamList=JSON.parse(JSON.stringify(e.paramList)),t.form.goodsParamList.forEach((function(e){e.pramaId=e.id})))}))}))}}},b=g,v=a("2877"),y=Object(v["a"])(b,l,c,!1,null,null,null),w=y.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"商品类别",prop:"categoryId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.categoryId,callback:function(t){e.$set(e.form,"categoryId",t)},expression:"form.categoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.platCateId+","+e.id}})})),1)],1),a("el-form-item",{attrs:{label:"商品范围",prop:"type"}},[a("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:0}},[e._v("全部")]),a("el-radio",{attrs:{label:1}},[e._v("部分")])],1)],1),a("el-form-item",{attrs:{label:"加价系数",prop:"rate"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"平台采购价*加价系数,作为参考出手价,建议输入大于1的数字"},model:{value:e.form.rate,callback:function(t){e.$set(e.form,"rate",t)},expression:"form.rate"}})],1)],1),a("selectProductItem",{ref:"selectProductItem",on:{result:e.result}})],1)},x=[],k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,width:"70%",visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("div",{staticClass:"head"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.form}},[a("el-form-item",{attrs:{label:"商品名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入商品名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"类别",prop:"categoryId"}},[a("el-select",{attrs:{disabled:"",placeholder:"请选择"},model:{value:e.form.categoryId,callback:function(t){e.$set(e.form,"categoryId",t)},expression:"form.categoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("查询")])],1)],1)],1),a("div",{staticClass:"tab"},[a("el-table",{attrs:{data:e.tableData,stripe:"",border:""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"id",label:"商品ID","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称/型号","show-overflow-tooltip":"","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("div",{staticStyle:{width:"70px",height:"70px","flex-shrink":"0"}},[r.imgurl?a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:r.fullImgUrl,fit:"cover"}}):e._e()],1),e._v(" "+e._s(r.name)+" ")])]}}])}),a("el-table-column",{attrs:{prop:"brandName",label:"品牌","show-overflow-tooltip":"","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"categoryName",label:"类别","show-overflow-tooltip":"","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"zdPrice",label:"指导价(元)","show-overflow-tooltip":"","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"price",label:"采购价(元)","show-overflow-tooltip":"","min-width":"100px"}}),a("el-table-column",{attrs:{label:"入手价(元)","show-overflow-tooltip":"","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-input",{attrs:{placeholder:"请输入"},on:{input:function(t){return e.changeVal(r)}},model:{value:r.purchasePrice,callback:function(t){e.$set(r,"purchasePrice",t)},expression:"row.purchasePrice"}})]}}])})],1),a("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[10,20,30],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])},C=[],I=(a("4d63"),a("25f0"),{name:"OperaBrandWindow",extends:d["a"],components:{GlobalWindow:m["a"]},data:function(){return{form:{categoryId:"",categoryId1:"",type:0,rate:"",name:"",goodsParamList:[]},pageSize:10,page:1,total:0,tableData:[],categoryList:[]}},created:function(){this.config({api:"/business/anchor","field.id":"id"})},methods:{changeVal:function(e){var t=new RegExp("^[0-9]*[1-9][0-9]*$");t.test(e.purchasePrice)||(e.purchasePrice="",this.$message.warning({message:"只能输入整数"}))},getList:function(){var e=this;Object(f["pageT"])({capacity:this.pageSize,model:{categoryId:this.form.categoryId,name:this.form.name},page:this.page}).then((function(t){t.records.forEach((function(t){t.purchasePrice=Math.ceil(t.price*e.form.rate)})),e.tableData=t.records,e.total=t.total}))},handleCurrentChange:function(e){this.page=e,this.getList()},handleSizeChange:function(e){this.pageSize=e,this.getList()},handleSelectionChange:function(e){var t=[];e.forEach((function(e){t.push({id:e.id})})),this.form.goodsParamList=t,console.log(t)},confirm:function(){var e=this;if(0!==this.form.goodsParamList.length){var t=[];this.form.goodsParamList.forEach((function(a){e.tableData.forEach((function(e){a.id===e.id&&t.push({goodsId:e.id,price:e.purchasePrice})}))})),this.isWorking=!0,Object(f["createPlat"])({categoryId:this.form.categoryId1,goodsParamList:t,rate:this.form.rate,type:this.form.type}).then((function(t){e.visible=!1,e.$tip.apiSuccess(t),e.$emit("result")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))}else this.$message.warning({message:"请先勾选商品"})},open:function(e,t){var a=this;this.title=e,this.visible=!0,this.form.name="",this.form.categoryId=Number(t.categoryId.split(",")[0]),this.form.categoryId1=Number(t.categoryId.split(",")[1]),this.form.rate=Number(t.rate),this.form.type=t.type,Object(h["baseCategoryList"])({}).then((function(e){a.categoryList=e})),this.getList()}}}),A=I,S=(a("54c4"),Object(v["a"])(A,k,C,!1,null,"f082ffc6",null)),F=S.exports,B={name:"OperaBrandWindow",extends:d["a"],components:{GlobalWindow:m["a"],selectProductItem:F},data:function(){return{categoryList:[],form:{categoryId:"",type:0,rate:""},rules:{categoryId:[{required:!0,message:"商品类别不能为空",trigger:"blur"}],type:[{required:!0,message:"商品范围不能为空",trigger:"blur"}],rate:[{required:!0,message:"加价系数不能为空",trigger:"blur"}]}}},created:function(){this.config({api:"/business/anchor","field.id":"id"})},methods:{result:function(){this.$emit("result"),this.visible=!1},confirm:function(){var e=this;this.$refs.form.validate((function(t){t&&(0==e.form.type?(e.isWorking=!0,Object(f["createPlat"])({categoryId:e.form.categoryId.split(",")[1],rate:e.form.rate,type:e.form.type}).then((function(t){e.$tip.apiSuccess(t),e.$emit("success"),e.$emit("result"),e.visible=!1,e.isWorking=!1})).catch((function(t){e.$tip.apiFailed(t),e.visible=!1,e.isWorking=!1}))):e.$refs.selectProductItem.open("选择平台商品",e.form))}))},open:function(e,t){var a=this;this.title=e,this.visible=!0,this.form.categoryId="",this.form.type=0,this.form.rate="",Object(h["list"])({type:1}).then((function(e){a.categoryList=e}))}}},P=B,D=Object(v["a"])(P,_,x,!1,null,null,null),T=D.exports,O=a("44fd"),N={name:"Goods",extends:s["a"],components:{TableLayout:n["a"],Pagination:o["a"],OperaGoodsWindow:w,selectProduct:T},data:function(){return{searchForm:{id:"",name:"",status:"",categoryId:"",brandId:"",type:""},ids:"",categoryList:[],brandList:[],statusList:[{name:"启用",id:0},{name:"禁用",id:1}],typeList:[{name:"自建",id:0},{name:"拉取",id:1}],uploading:!1}},created:function(){this.config({module:"商品",api:"/business/goods","field.id":"id","field.main":"name"}),this.search(),this.getbrand(),this.getcategory()},methods:{bulkOperation:function(e){var t=this;if(0!==this.tableData.selectedRows.length){var a=this.tableData.selectedRows.map((function(e){return e.id}));Object(f["batchUpdateDisableById"])({ids:a.join(","),status:e}).then((function(e){t.$message.success({message:e}),t.handlePageChange()}))}else this.$message.warning({message:"至少选择一项内容"})},downloadFile:function(){var e=this;this.isWorking.export=!0,Object(O["exportImportTemplate"])({}).then((function(t){e.download(t)})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking.export=!1}))},rowStyle:function(){return"text-align:center"},pickImportFile:function(){var e=this;Object(O["hasUnfinishedTask"])().then((function(t){t?e.$message.warning("当前存在未完成的导入任务,请等待完成后再提交"):e.$refs.upload.click()})).catch((function(t){return e.$tip.apiFailed(t)}))},uploadImportFile:function(e){var t=this,a=e.target.files&&e.target.files[0];if(this.$refs.upload.value=null,a){var r=new FormData;r.append("file",a),this.uploading=!0,Object(O["importExcelAsync"])(r).then((function(){t.$message.success("导入任务已提交,请前往「导入任务」查看进度")})).catch((function(e){return t.$message.error(e.message||"提交失败")})).finally((function(){t.uploading=!1}))}},edit:function(e){var t=this;Object(f["queryById"])(e).then((function(e){var a={id:e.id,name:e.name,categoryId:e.categoryId,subCategoryId:null!=e.subCategoryId?e.subCategoryId:"",brandId:e.brandId,zdPrice:e.zdPrice,price:e.price,attrFirstIds:e.attrFirstIds?t.turnNum(e.attrFirstIds.split(",")):[],attrFirstNames:e.attrFirstNames,attrSecodIds:e.attrSecodIds?t.turnNum(e.attrSecodIds.split(",")):[],attrSecodNames:e.attrSecodNames,imgurl:e.imgurl,multifileList:[],files:[],ztList:e.imgurl?[{url:e.prefixUrl+e.imgurl}]:[],pzList:[],attrFirstList:[],attrSecodList:[]};e.multifileList.length>0&&e.multifileList.forEach((function(t){a.multifileList.push({fileurl:t.fileurl,name:t.name,url:e.prefixUrl+t.fileurl}),a.files.push({fileurl:t.fileurl,name:t.name,url:e.prefixUrl+t.fileurl,response:{data:{imgaddr:t.fileurl,imgname:t.name}}})})),t.$refs.operaGoodsWindow.open("编辑商品",a)}))},changeStatus:function(e){var t=this;Object(f["updateDisableById"])({id:e.id,status:e.status}).then((function(e){t.$tip.apiSuccess("更新成功")})).finally((function(){t.search()})).catch((function(e){t.$message.warning({message:e.message})}))},turnNum:function(e){for(var t=0;t<e.length;t++)e[t]=parseInt(e[t]);return e},getbrand:function(){var e=this;Object(p["brand"])({}).then((function(t){e.brandList=t}))},getcategory:function(){var e=this;Object(p["category"])({}).then((function(t){e.categoryList=t}))}}},E=N,L=Object(v["a"])(E,r,i,!1,null,null,null);t["default"]=L.exports},9740:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Profile",{attrs:{permissions:["system:monitor:query"]}},[a("div",{staticClass:"monitor"},[a("div",{staticClass:"toolbar"},[a("el-switch",{on:{change:e.changeAutoRefresh},model:{value:e.autoRefresh,callback:function(t){e.autoRefresh=t},expression:"autoRefresh"}}),a("label",[e._v(e._s(e._f("autoRefreshText")(e.autoRefresh)))])],1),a("ul",[a("li",{staticClass:"wrap"},[a("h2",[e._v("CPU"),null!=e.data?a("Light",{attrs:{warn:e.data.cpu.useRatio>60,danger:e.data.cpu.useRatio>80}}):e._e()],1),a("div",[a("dl",[a("dt",[e._v("物理核数")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"cpu.physicalCount"}})],1)]),a("dl",[a("dt",[e._v("逻辑核数")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"cpu.logicalCount"}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("当前使用率")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"cpu.useRatio",handler:e.keep2decimals,suffix:"%"}})],1)]),a("dl",[a("dt",[e._v("当前空闲率")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"cpu.freeRatio",handler:e.keep2decimals,suffix:"%"}})],1)])])]),a("li",{staticClass:"wrap"},[a("h2",[e._v("内存"),null!=e.data?a("Light",{attrs:{warn:e.data.memory.useRatio>60,danger:e.data.memory.useRatio>80}}):e._e()],1),a("div",[a("dl",[a("dt",[e._v("总空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"memory.size",suffix:"G",handler:e.toG}})],1)]),a("dl",[a("dt",[e._v("空闲空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"memory.freeSpace",suffix:"G",handler:e.toG}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("已用空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"memory.usedSpace",suffix:"G",handler:e.toG}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("使用率")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"memory.useRatio",suffix:"%",handler:e.keep2decimals}})],1)])])]),a("li",{staticClass:"wrap"},[a("h2",[e._v("JVM"),null!=e.data?a("Light",{attrs:{warn:e.data.jvm.memory.useRatio>60,danger:e.data.jvm.memory.useRatio>80}}):e._e()],1),a("div",[a("dl",[a("dt",[e._v("安装路径")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.home"}})],1)]),a("dl",[a("dt",[e._v("版本")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.version"}})],1)]),a("dl",[a("dt",[e._v("启动时间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.bootTime"}})],1)]),a("dl",[a("dt",[e._v("运行时长")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.runtime"}})],1)]),a("dl",[a("dt",[e._v("总空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.memory.size",suffix:"M",handler:e.keep2decimals}})],1)]),a("dl",[a("dt",[e._v("空闲空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.memory.freeSpace",suffix:"M",handler:e.keep2decimals}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("已用空间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.memory.usedSpace",suffix:"M",handler:e.keep2decimals}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("使用率")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"jvm.memory.useRatio",suffix:"%",handler:e.keep2decimals}})],1)])])]),a("li",{staticClass:"wrap"},[a("h2",[e._v("服务器")]),a("div",[a("dl",[a("dt",[e._v("操作系统")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"osName"}})],1)]),a("dl",[a("dt",[e._v("系统版本")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"osVersion"}})],1)]),a("dl",[a("dt",[e._v("系统架构")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"osArch"}})],1)]),a("dl",{staticClass:"important"},[a("dt",[e._v("IP地址")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"ip"}})],1)]),a("dl",[a("dt",[e._v("MAC地址")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"mac"}})],1)]),a("dl",[a("dt",[e._v("服务器时间")]),a("dd",[a("Value",{attrs:{data:e.data,prop:"currentTime"}})],1)])])])]),a("div",{staticClass:"wrap"},[a("h2",[e._v("磁盘信息")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.data?e.data.disks:[]}},[a("el-table-column",{attrs:{prop:"name",label:"磁盘名称"}}),a("el-table-column",{attrs:{prop:"dir",label:"磁盘路径"}}),a("el-table-column",{attrs:{prop:"fsType",label:"文件系统"}}),a("el-table-column",{attrs:{prop:"size",label:"总空间"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e.toG(a.size))+"G ")]}}])}),a("el-table-column",{attrs:{prop:"freeSpace",label:"可用空间"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e.toG(a.freeSpace))+"G ")]}}])}),a("el-table-column",{attrs:{prop:"usedSpace",label:"已用空间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("label",{staticClass:"important"},[e._v(e._s(e.toG(r.usedSpace))+"G")])]}}])}),a("el-table-column",{attrs:{prop:"useRatio",label:"已用占比"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("label",{staticClass:"important"},[e._v(e._s(e.keep2decimals(r.useRatio))+"%")])]}}])}),a("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("Light",{attrs:{warn:t.useRatio>60,danger:t.useRatio>80,mini:!0}})]}}])})],1)],1)])])},i=[],s=(a("d3b7"),a("6c5c")),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"value"},[null==e.data?a("i",{staticClass:"el-icon-loading"}):e._t("default",[e._v(e._s(e.getValue())+e._s(e.suffix))])],2)},o=[],l=(a("ac1f"),a("1276"),{name:"Value",props:{data:{type:Object},prop:{type:String},suffix:{type:String},handler:{type:Function}},methods:{getValue:function(){if(null==this.data)return"";if(null==this.prop)return this.data;var e=this.prop.split("."),t=0,a=this.data;while(t<e.length)a=a[e[t]],t++;return null==this.handler?a:this.handler(a)}}}),c=l,u=(a("4a28"),a("2877")),d=Object(u["a"])(c,n,o,!1,null,"595da6ac",null),m=d.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"light",class:{normal:!e.warn&&!e.danger,warn:!e.danger&&e.warn,danger:e.danger,mini:e.mini}},[e._m(0)])},f=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("em",[a("i")])}],h={name:"Light",props:{warn:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},mini:{type:Boolean,default:!1}}},g=h,b=(a("9af5"),Object(u["a"])(g,p,f,!1,null,"13f0f9c5",null)),v=b.exports,y=a("61d4"),w={name:"SystemMonitor",components:{Profile:y["a"],Light:v,Value:m},data:function(){return{loading:!1,autoRefresh:!1,data:null,interval:null}},filters:{autoRefreshText:function(e){return e?"已开启自动刷新":"已关闭自动刷新"}},methods:{changeAutoRefresh:function(e){var t=this;null!=this.interval&&clearInterval(this.interval),e&&(this.getSystemInfo(),this.interval=setInterval((function(){t.getSystemInfo()}),3e3))},getSystemInfo:function(){var e=this;this.loading||(this.loading=!0,Object(s["getSystemInfo"])().then((function(t){e.data=t})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.loading=!1})))},toG:function(e){return Math.round(e/1024*100)/100},keep2decimals:function(e){return Math.round(100*e)/100}},beforeRouteLeave:function(e,t,a){clearInterval(this.interval),a()},created:function(){this.getSystemInfo()}},_=w,x=(a("5ffd"),Object(u["a"])(_,r,i,!1,null,"71c9df82",null));t["default"]=x.exports},"97ee":function(e,t,a){e.exports=a.p+"static/img/1a.510f7178.png"},9966:function(e,t,a){},"9af5":function(e,t,a){"use strict";a("441f")},"9b21":function(e,t,a){},"9bd6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAC6RJREFUaEPtWVuMVlcVXvtc/n9mGC5ThLYCQkFEhgRhptyKaElj4oMFbQISYtJo0vhAB2qtPBDeTa1ovUwNaGMID8ZgfDDGB7EVKFagUkO1Iw1Mh0tQLgPzz3+d///Pxay19tpnnzM/M/SNEiYzc87ZZ5991re+ddvrKLjPftR9hgceALrXGX3A0D3P0OnTZ55rNBo9JKgD4PseOOBCBBGEQQhRGIHv+3QPIoBmGEIU8ZiDg04EYTOkx10cUw4oiGPXdWiu4yiaF0QRAMR8rRxcCqIwpDVd143x+TiOIIhwLQWei+s4gDeUA+A5KICCWDkxQBQ3mw2o1eokVi7nX/R99/WVK1cWVKVSjeOY1gNQykQJhedkkHhEEWNzLSzJ/YQ1XidZT9+JFS6DeOgfvk7maCRmCfOsPKplM/Mz1xHKBRCNjBa+v3DBgr2qXK4QIBSaMSXHVmMMkAWT+TIPr5E9+5oFQYWIzAgoA1yDtJWBc1J/oigZ19d6rbhULvUvXLCgTxVHizGhJEaSP1tYGecxJFnYShTQyrfGa5uVxeNpUOMAaMGjCIFFgDIKmzIX7wnt5VKpf/HiT/epkcJoHKNWHYcAORmGHLJdFpz/EkA2UJkjL8sCTFixDFSbHgqcBYRMEwgEQ6BiYj89j7SD6o3LlXL/0iWL+9Twrdtkcii4AJLzLGsIhs2JnVvuZ5mwwdzJJ5gpNlEGxOcidGido2crR9EDjWZAc8IwNOBwqWql0r9s2dI+dePmcAqQ6zgGHAHUQNPgEsZs9mzhxS9tfxHfsk1GAAgYBIIWYwNyHZfYcl0Xms0AgmYDmkGQAlSr1vqXL1/Wp65dv2EAifACCq9tQHyeDhytAoNx/yQSpKIYC88mhGyHIZsSal2A4LlhC+9TxIkhjBJm5D4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xIlOKJJ9QskJPHrPtZGo/LT6YbXikw7b2KbtBoiOhgENAyNCGDQmgH3ie9z0EhFoYvn2bmiWPPvIIf4mQgEb5MDE/bqa0iHbaxzKVTkoTWZCtKojEl6S04AgrVQIuKAxVq9UE0MDAwMue7+/Gxojd9rXz0WRBWoBKQCEtZPrarYKA7OO5wZKu93ioVfsq+UrRbDYpKNRqtTSgeqO5Gxnq6Ginbop8KxK3NxpsicyiUJdu+XyOk6IC07NOb+0TrafNUPoU1praz6RIlc4rBqRypQxjtTHsxiaA/nrsxEsnT7/zCr585NYtePfMGci35YGinuOA5/mkSOy4OI7L78fyiDYHXGSaQlRfz5szB6797yqtEYYxfzBG0vCAH0QlnOuowP7EmvcwH2qUbe3t3E0KI2gGTe59B02oVmvQ+/jj0Dl1GrnFqt7PfetLTz31axLt2KlTj/3j7XeOlSrlueVyRf397b9BEAZkfhgkuI3k8sus0G40FsXUJxNQyHBHRwclQf5UwsI6rv5sEQOtLzlPCmJcj1pg+HmDvgU54PvcH8SKgPve/JUCZVu3bh20t7fD9OnThnqWL3ti48aN12hN/Hfg4MHP3L5ZeGasVvvq8Ehhteu6ynUx6mGT3vpUaX0Zl5DKgUHnL51bsScnrTA88mdM6cfpCkF/BuVExpRIi5ib/5on+oiPLDEg9Bv8MjGrq+vUJ2Y+9OYn5z3622eefvqsmG7KK1775cHlyvc/i8g9z8MdLLEEgAzwG+hS/0QR0geg8OjaRxyKsH+KTXaTrRXuWJGACO/yffylObiGbp/HUYwfp9AGFTh6jQhrt0AhoFqtpqqN+okXnnv2vVaJJDv2sb6eLCJ/7MA9AHSvU3bfMfR/CH6PrXE+bHMAAAAASUVORK5CYII="},"9c0c":function(e,t,a){},"9cd2":function(e,t,a){"use strict";a("b1c9")},"9f3b":function(e,t,a){},a168:function(e,t,a){"use strict";a("c377")},a2e8:function(e,t,a){"use strict";a("3b01")},a2f7:function(e,t,a){},a4ec:function(e,t,a){},a68c:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TreeSelect",{attrs:{placeholder:e.placeholder,value:e.value,data:e.data,clearable:e.clearable,"append-to-body":e.appendToBody,inline:e.inline,multiple:e.multiple,flat:e.multiple},on:{input:function(t){return e.$emit("input",t)}}})},i=[],s=a("b85c"),n=(a("b0c0"),a("e550")),o=a("123b"),l={name:"PositionSelect",components:{TreeSelect:n["a"]},props:{value:{},inline:{default:!0},multiple:{default:!1},placeholder:{default:"请选择岗位"},clearable:{default:!1},appendToBody:{default:!1},excludeId:{}},data:function(){return{data:[]}},watch:{excludeId:function(){this.fetchData()}},methods:{fetchData:function(){var e=this;Object(o["fetchTree"])().then((function(t){e.data=[],e.__fillData(e.data,t)})).catch((function(t){e.$tip.apiFailed(t)}))},__fillData:function(e,t){var a,r=Object(s["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.id!==this.excludeId){var n={id:i.id,label:i.name};e.push(n),null!=i.children&&i.children.length>0&&(n.children=[],this.__fillData(n.children,i.children),0===n.children.length&&(n.children=void 0))}}}catch(o){r.e(o)}finally{r.f()}}},created:function(){this.fetchData()}},c=l,u=(a("cd1f"),a("2877")),d=Object(u["a"])(c,r,i,!1,null,"0ccc15b4",null);t["default"]=d.exports},a6dc:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchTree",(function(){return i})),a.d(t,"create",(function(){return s})),a.d(t,"updateById",(function(){return n})),a.d(t,"updateStatus",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"deleteByIdInBatch",(function(){return c})),a.d(t,"fetchMenuTree",(function(){return u})),a.d(t,"sort",(function(){return d}));var r=a("b775");function i(e){return r["a"].post("/system/menu/treeList",e)}function s(e){return r["a"].post("/system/menu/create",e)}function n(e){return r["a"].post("/system/menu/updateById",e)}function o(e){return r["a"].post("/system/menu/updateStatus",e)}function l(e){return r["a"].get("/system/menu/delete/".concat(e))}function c(e){return r["a"].get("/system/menu/delete/batch",{params:{ids:e}})}function u(){return r["a"].get("/system/menu/treeNodes?type=1")}function d(e){return r["a"].post("/system/menu/updateSort",e)}},a815:function(e,t,a){e.exports=a.p+"static/img/ic_dianshi@2x.6bd128fd.png"},a825:function(e,t,a){},a859:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"exportExcel",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"queryById",(function(){return c})),a.d(t,"updateDisableById",(function(){return u})),a.d(t,"baseCategoryList",(function(){return d})),a.d(t,"companyCreate",(function(){return m})),a.d(t,"companyUpdateById",(function(){return p})),a.d(t,"list",(function(){return f})),a.d(t,"fetchTree",(function(){return h})),a.d(t,"fetchChildren",(function(){return g})),a.d(t,"createSub",(function(){return b})),a.d(t,"updateSub",(function(){return v})),a.d(t,"deleteSub",(function(){return y}));var r=a("b775");function i(e){return r["a"].post("/business/category/page",e,{trim:!0})}function s(e){return r["a"].post("/business/category/exportExcel",e,{trim:!0,download:!0})}function n(e){return r["a"].post("/business/category/create",e)}function o(e){return r["a"].post("/business/category/updateById",e)}function l(e){return r["a"].get("/business/category/delete/".concat(e))}function c(e){return r["a"].get("/business/category/".concat(e))}function u(e){return r["a"].post("/business/category/updateDisableById",e)}function d(e){return r["a"].post("/business/category/baseCategoryList",e)}function m(e){return r["a"].post("/business/category/companyCreate",e)}function p(e){return r["a"].post("/business/category/companyUpdateById",e)}function f(e){return r["a"].post("/business/category/list",e)}function h(e){return r["a"].post("/business/category/tree",e||{})}function g(e){return r["a"].get("/business/category/children/".concat(e))}function b(e){return r["a"].post("/business/category/createSub",e)}function v(e){return r["a"].post("/business/category/updateSub",e)}function y(e){return r["a"].get("/business/category/deleteSub/".concat(e))}},a85a:function(e,t,a){"use strict";a("79d6")},a8c4:function(e,t,a){var r={"./views":"1e4b","./views/":"1e4b","./views/business/anchor":"c962","./views/business/anchor.vue":"c962","./views/business/brand":"57bc","./views/business/brand.vue":"57bc","./views/business/category":"5af4","./views/business/category.vue":"5af4","./views/business/goods":"95e6","./views/business/goods.vue":"95e6","./views/business/goodsImportTask":"4a98","./views/business/goodsImportTask.vue":"4a98","./views/business/order":"8e7f","./views/business/order.vue":"8e7f","./views/business/pageConfiguration":"f040","./views/business/pageConfiguration.vue":"f040","./views/business/pageConfigurationNew":"fa7f","./views/business/pageConfigurationNew.vue":"fa7f","./views/business/staff":"909c","./views/business/staff.vue":"909c","./views/index":"1e4b","./views/index.vue":"1e4b","./views/login":"dd7b","./views/login.vue":"dd7b","./views/no-permissions":"c852","./views/no-permissions.vue":"c852","./views/not-found":"63e6","./views/not-found.vue":"63e6","./views/system/data-permission":"1a22","./views/system/data-permission.vue":"1a22","./views/system/department":"9004","./views/system/department.vue":"9004","./views/system/dict":"6bce","./views/system/dict.vue":"6bce","./views/system/loginLog":"162a","./views/system/loginLog.vue":"162a","./views/system/menu":"5d8a","./views/system/menu.vue":"5d8a","./views/system/monitor":"9740","./views/system/monitor.vue":"9740","./views/system/permission":"0eb1","./views/system/permission.vue":"0eb1","./views/system/position":"38c8","./views/system/position.vue":"38c8","./views/system/role":"f982","./views/system/role.vue":"f982","./views/system/traceLog":"d1ff","./views/system/traceLog.vue":"d1ff","./views/system/user":"b979","./views/system/user.vue":"b979"};function i(e){var t=s(e);return a(t)}function s(e){if(!a.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id="a8c4"},a8f3:function(e,t,a){},a9b1:function(e,t,a){"use strict";a("c31d")},aa1c:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-layout"},[e.withBreadcrumb?a("div",{staticClass:"table-header"},[a("el-breadcrumb",{attrs:{separator:"/"}},e._l(e.paths,(function(t){return a("el-breadcrumb-item",{key:t},[e._v(e._s(t))])})),1)],1):e._e(),a("Profile",{attrs:{roles:e.roles,permissions:e.permissions}},[a("div",{staticClass:"table-search-form"},[a("div",{staticClass:"form-wrap"},[e._t("search-form")],2)]),e._t("space"),a("div",{staticClass:"table-content"},[a("div",{staticClass:"table-wrap"},[e._t("table-wrap")],2)]),e._t("default")],2)],1)},i=[],s=a("61d4"),n={name:"TableLayout",components:{Profile:s["a"]},props:{roles:{type:Array},permissions:{type:Array},withBreadcrumb:{type:Boolean,default:!0}},computed:{paths:function(){return this.$route.meta.paths}}},o=n,l=(a("0290"),a("2877")),c=Object(l["a"])(o,r,i,!1,null,null,null);t["a"]=c.exports},aaf9:function(e,t,a){},ac20:function(e,t,a){e.exports=a.p+"static/img/ic_pk@2x.423c0660.png"},ace3:function(e,t,a){e.exports=a.p+"static/img/10a.9363368e.png"},ae62:function(e,t,a){"use strict";a("d3b7");var r,i,s={name:"BaseOpera",data:function(){return{title:"",visible:!1,isWorking:!1,api:null,configData:{"field.id":"id"}}},methods:{config:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==e)throw new Error("Parameter can not be null of method 'config' .");if(null==e.api)throw new Error("Missing config option 'api'.");this.api=a("77ef")("./api"+e.api),e["field.id"]&&(this.configData["field.id"]=e["field.id"])},open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.form)a.form[e]=t[e]})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null}))},confirm:function(){null!=this.form.id&&""!==this.form.id?this.__confirmEdit():this.__confirmCreate()},__confirmCreate:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.isWorking=!0,e.api.create(e.form).then((function(){e.visible=!1,e.$tip.apiSuccess("新建成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))}))},__confirmEdit:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.isWorking=!0,e.api.updateById(e.form).then((function(){e.visible=!1,e.$tip.apiSuccess("修改成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))}))}}},n=s,o=a("2877"),l=Object(o["a"])(n,r,i,!1,null,null,null);t["a"]=l.exports},afbb:function(e,t,a){e.exports=a.p+"static/img/5a.b19c5a8b.png"},b1c9:function(e,t,a){},b21e:function(e,t,a){"use strict";a("8131")},b351:function(e,t,a){"use strict";a("7a11")},b480:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"输入新密码",prop:"password"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{"show-password":"",placeholder:"密码支持数字、字符组合,长度6-18位"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"再次输入密码",prop:"qpassword"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{"show-password":"",placeholder:"密码支持数字、字符组合,长度6-18位"},model:{value:e.form.qpassword,callback:function(t){e.$set(e.form,"qpassword",t)},expression:"form.qpassword"}})],1)],1)],1)},i=[],s=(a("d3b7"),a("ae62")),n=a("5543"),o=a("3aaf"),l={name:"OperaBrandWindow",extends:s["a"],components:{GlobalWindow:n["a"]},data:function(){var e=this,t=function(e,t,a){""===t?a(new Error("密码不能为空")):(/^(?![^a-zA-Z]+$)(?!\D+$)/.test(t)||a(new Error("密码支持数字、字符组合,长度6-18位")),a())},a=function(t,a,r){""===a?r(new Error("密码不能为空")):(a!==e.form.password&&r(new Error("两次输入的密码不一致")),r())};return{form:{id:null,password:"",qpassword:""},rules:{password:[{required:!0,validator:t,trigger:"blur"}],qpassword:[{required:!0,validator:a,trigger:"blur"}]}}},created:function(){this.config({api:"/business/anchor","field.id":"id"})},methods:{confirm:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.isWorking=!0,Object(o["updPassword"])({id:e.form.id,password:e.form.password}).then((function(){e.visible=!1,e.$tip.apiSuccess("新建成功"),e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))}))}}},c=l,u=a("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["a"]=d.exports},b56d:function(e,t,a){},b5c6:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAADytJREFUaEPdWntwVPd1Pve579U+9SA22IGYgs3LIBkwsTttAp46M+lkajOZdoIzVCwE2cHEleNhSN163OYPG4+nHtvgGbuu21Quw7g2GDqmjnCgDg8jYwkBBWECsST0AGl3tbv37t67t/Odu1esQQgJpPzRy9zZ5e59nO/3nfOdx5VAE7xt2bLF4/f7H7Asa4UoivdaljXdNM1qIpKdRwkkWCRQShCEi6IodpqmecE0zZOiKJ4QRbGViLoTiUThZkwTbuaika7ZunVrjWVZPxUEYZVlWdWWZRH26234rWiaZAkCidhFkU+1LKsoiuLvLcs6alnWTlVV99TX1/eM1c5bBvTWW2+5dV1/UhCERtM0QyOBAC5BYGNLdglkGgUSikUCDNOySFRdfE4JFH8KNtA0Eb0rCMKmdevW9d4I2C0Beu211+4hon+zLGtusVi87rOc32DgWLarF6UE7Kgsyw8kEonsaPcY2xNGuMPrr7/+fcuy3jFNM1C+qo4xkigS+NB1nQqFAsmyTKFQiLLZUe0ZfpJ9H5hnsyqKYs40zcUbNmxAjF13uylAr7766kJBEH5jGIZ3JDBWsUiXBwYop2l05x13kMfjoUwmQy1Hj1JVdTVVV0MjbrxdCUGLksmkns/nv/P8888fmHBAr7z6yiuWaa0vdw3nO8DARf739Gl6//33SVFU8no9BLczTJMWL15MixYuvDGasjMGBwfpePsJfcXy7363vr5+/4QD+uUv//Ftr9f3o+sBgqd8+OFuOnHiBKuXy+UiRVHY/b555zfp4e89PBz0N0LWffEiHTl8mGbM+JZeV1c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PU/6A594Q0B/Qlgl51P87QP8HnaeqnnHx9sUAAAAASUVORK5CYII="},b775:function(e,t,a){"use strict";var r=a("b85c"),i=(a("498a"),a("d3b7"),a("bc3a")),s=a.n(i),n=a("a78e"),o=a.n(n),l=a("9224"),c=a("53ca");function u(e){if(null==e)return null;if("string"===typeof e)return e.trim();if(e instanceof Array){var t,a=Object(r["a"])(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;u(i)}}catch(n){a.e(n)}finally{a.f()}}if("object"===Object(c["a"])(e))for(var s in e)e[s]=u(e[s]);return e}var d=a("63f0");a("5c96");s.a.defaults.headers.common["Content-Type"]="application/json;charset=UTF-8";var m=s.a.create({baseURL:"/web_interface_v2",timeout:6e4});m.interceptors.request.use((function(e){!0===e.trim&&(null!=e.data&&(e.data=u(e.data)),null!=e.params&&(e.params=u(e.params))),!0===e.download&&(e.responseType="blob"),e.headers["eva-platform"]="pc-".concat(l.version);var t=o.a.get("eva-auth-token");return null!=t&&(e.headers["eva-auth-token"]=t),e}),(function(e){return Promise.reject(e)})),m.interceptors.response.use((function(e){return 200!==e.status?Promise.reject(new Error("服务器繁忙,请稍后再试")):"download"===e.headers["eva-opera-type"]?Promise.resolve(e):401===e.data.code?(!1!==e.config.autoLogin&&(window.location.href="/login"),Promise.reject(e.data)):e.data.success?e.data.data:Promise.reject(e.data)}),(function(e){return null==e.code?Promise.reject(new Error("服务器繁忙,请稍后再试")):"ECONNABORTED"===e.code&&-1!==e.message.indexOf("timeout")?Promise.reject(new Error("服务器响应超时,请稍后再试")):Promise.reject(e)}));var p=function(e,t,a,r){return{__cacheImpl:d["a"][r],__arguments:a,__result_promise:null,cache:function(){var t=this.__cacheImpl.getJSON(e);return null!=t&&(this.__result_promise=Promise.resolve(t)),null!=this.__result_promise?this.__result_promise:this},then:function(){return this.__access("then",arguments)},catch:function(){return this.__access("catch",arguments)},finally:function(){return this.__access("finally",arguments)},__access:function(a,r){var i=this;return null!=this.__result_promise?this.__result_promise:(this.__result_promise=m[t].apply(m,this.__arguments),this.__result_promise.then((function(t){return i.__cacheImpl.setJSON(e,t),t})),this.__result_promise[a].apply(this.__result_promise,r))}}},f=["get","post","delete","put","head","options","patch","request"];m.cache=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e)throw Error("Request cache key can not be null.");var a,i={},s=Object(r["a"])(f);try{var n=function(){var r=a.value;i[r]=function(){return p(e,r,arguments,t?"local":"session")}};for(s.s();!(a=s.n()).done;)n()}catch(o){s.e(o)}finally{s.f()}return i};t["a"]=m},b946:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"queryById",(function(){return s})),a.d(t,"deleteById",(function(){return n})),a.d(t,"exportDetail",(function(){return o}));var r=a("b775");function i(e){return r["a"].post("/business/order/page",e,{trim:!0})}function s(e){return r["a"].get("/business/order/".concat(e))}function n(e){return r["a"].get("/business/order/delete/".concat(e))}function o(e){return r["a"].get("/business/order/exportDetail/".concat(e),{download:!0})}},b979:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:user:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create","system:user:delete"],expression:"['system:user:create', 'system:user:delete']"}],staticClass:"toolbar"},[a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create"],expression:"['system:user:create']"}]},[a("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(t){return e.$refs.operaUserWindow.open("新建用户")}}},[e._v("新建")])],1),a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:delete"],expression:"['system:user:delete']"}]},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80px","class-name":"table-column-avatar",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("img",{attrs:{src:null==t.avatar?"/static/avatar/man.png":t.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"realname",label:"姓名","min-width":"100px",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"用户名","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"empNo",label:"工号",sortable:"custom","sort-by":"EMP_NO","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"department",label:"部门","min-width":"120px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.department?"":a.department.name))]}}])}),a("el-table-column",{attrs:{prop:"position",label:"岗位","min-width":"160px","class-name":"table-column-strings"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.positions,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])}),a("el-table-column",{attrs:{prop:"sex",label:"性别",sortable:"custom","sort-by":"SEX","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("sex")(a.sex))+" ")]}}])}),a("el-table-column",{attrs:{prop:"mobile",label:"手机号码","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"180px"}}),a("el-table-column",{attrs:{prop:"birthday",label:"生日",sortable:"custom","sort-by":"BIRTHDAY","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"roles",label:"角色","min-width":"160px","class-name":"table-column-strings"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("ul",e._l(r.roles,(function(t){return a("li",{key:t.id},[e._v(e._s(t.name))])})),0)]}}])}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",sortable:"custom","sort-by":"CREATE_TIME","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",sortable:"custom","sort-by":"UPDATE_TIME","min-width":"140px"}}),e.containPermissions(["system:user:update","system:user:createUserRole","system:user:resetPwd","system:user:delete"])?a("el-table-column",{attrs:{label:"操作",width:"270",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return e.isAdmin||r.id!==e.userInfo.id&&-1===r.roles.findIndex((function(t){return t.code===e.adminCode}))?[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:update"],expression:"['system:user:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaUserWindow.open("编辑用户",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:createUserRole"],expression:"['system:user:createUserRole']"}],attrs:{type:"text",icon:"el-icon-s-custom"},on:{click:function(t){return e.$refs.roleConfigWindow.open(r)}}},[e._v("配置角色")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{type:"text"},on:{click:function(t){return e.$refs.resetPwdWindow.open(r)}}},[e._v("重置密码")]),r.fixed?e._e():a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:delete"],expression:"['system:user:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]:void 0}}],null,!0)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"80px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入用户名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.username,callback:function(t){e.$set(e.searchForm,"username",t)},expression:"searchForm.username"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"realname"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.realname,callback:function(t){e.$set(e.searchForm,"realname",t)},expression:"searchForm.realname"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入手机号码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.mobile,callback:function(t){e.$set(e.searchForm,"mobile",t)},expression:"searchForm.mobile"}})],1),a("el-form-item",{attrs:{label:"所属部门",prop:"rootDeptId"}},[a("DepartmentSelect",{attrs:{placeholder:"请选择所属部门",clearable:""},model:{value:e.searchForm.rootDeptId,callback:function(t){e.$set(e.searchForm,"rootDeptId",t)},expression:"searchForm.rootDeptId"}})],1),a("el-form-item",{attrs:{label:"岗位",prop:"positionId"}},[a("PositionSelect",{attrs:{placeholder:"请选择岗位",clearable:""},model:{value:e.searchForm.positionId,callback:function(t){e.$set(e.searchForm,"positionId",t)},expression:"searchForm.positionId"}})],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaUserWindow",{ref:"operaUserWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("RoleConfigWindow",{ref:"roleConfigWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("ResetPwdWindow",{ref:"resetPwdWindow"})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"用户名",prop:"username",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入用户名",maxlength:"50"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),a("el-form-item",{attrs:{label:"姓名",prop:"realname",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入姓名",maxlength:"50"},model:{value:e.form.realname,callback:function(t){e.$set(e.form,"realname",t)},expression:"form.realname"}})],1),a("el-form-item",{attrs:{label:"性别",prop:"sex",required:""}},[a("el-radio-group",{model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},[a("el-radio",{attrs:{label:"1"}},[e._v("男")]),a("el-radio",{attrs:{label:"0"}},[e._v("女")])],1)],1),a("el-form-item",{attrs:{label:"头像",prop:"avatar",required:""}},[a("el-radio-group",{staticClass:"form-item-avatar",model:{value:e.form.avatar,callback:function(t){e.$set(e.form,"avatar",t)},expression:"form.avatar"}},[a("el-radio",{attrs:{label:"https://dmtest.ahapp.net/preselectfile/man.png",border:""}},[a("img",{attrs:{src:"https://dmtest.ahapp.net/preselectfile/man.png",alt:""}})]),a("el-radio",{attrs:{label:"https://dmtest.ahapp.net/preselectfile/woman.png",border:""}},[a("img",{attrs:{src:"https://dmtest.ahapp.net/preselectfile/woman.png",alt:""}})])],1)],1),null==e.form.id?a("el-form-item",{attrs:{label:"初始密码",prop:"password",required:""}},[a("el-input",{attrs:{type:"password",placeholder:"请输入初始密码",maxlength:"30","show-password":""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e(),a("el-form-item",{attrs:{label:"所属部门",prop:"departmentId",required:""}},[a("DepartmentSelect",{attrs:{placeholder:"请选择用户所属部门",inline:!1,clearable:""},model:{value:e.form.departmentId,callback:function(t){e.$set(e.form,"departmentId",t)},expression:"form.departmentId"}})],1),a("el-form-item",{attrs:{label:"岗位",prop:"positionId"}},[a("PositionSelect",{attrs:{placeholder:"请选择用户所在岗位",inline:!1,multiple:!0,clearable:""},model:{value:e.form.positionIds,callback:function(t){e.$set(e.form,"positionIds",t)},expression:"form.positionIds"}})],1),a("el-form-item",{attrs:{label:"工号",prop:"empNo"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入工号",maxlength:"50"},model:{value:e.form.empNo,callback:function(t){e.$set(e.form,"empNo",t)},expression:"form.empNo"}})],1),a("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入邮箱",maxlength:"200"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1),a("el-form-item",{attrs:{label:"生日",prop:"birthday"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",placeholder:"请选择用户生日"},model:{value:e.form.birthday,callback:function(t){e.$set(e.form,"birthday",t)},expression:"form.birthday"}})],1)],1)],1)},c=[],u=(a("d81d"),a("ae62")),d=a("5543"),m=a("cc38"),p=a("a68c"),f=a("1242"),h={name:"OperaUserWindow",extends:u["a"],components:{PositionSelect:p["default"],DepartmentSelect:m["default"],GlobalWindow:d["a"]},data:function(){return{form:{id:null,username:"",realname:"",empNo:"",departmentId:null,positionIds:[],avatar:"/avatar/man.png",password:"",mobile:"",email:"",sex:"1",birthday:""},rules:{username:[{required:!0,message:"请输入用户名"}],realname:[{required:!0,message:"请输入姓名"}],password:[{required:!0,message:"请输入密码"}],departmentId:[{required:!0,message:"请选择部门"}],avatar:[{required:!0,message:"请选择用户头像"}],sex:[{required:!0,message:"请选择用户性别"}],mobile:[{required:!0,validator:f["b"]}],email:[{validator:f["a"]}]}}},methods:{open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.form)a.form[e]=t[e];a.form.departmentId=null==t.department?null:t.department.id,a.form.positionIds=null==t.positions?[]:t.positions.map((function(e){return e.id}))})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form.id=null,a.form.departmentId=null,a.form.positionIds=[]}))}},created:function(){this.config({api:"/system/user"})}},g=h,b=(a("1484"),a("2877")),v=Object(b["a"])(g,l,c,!1,null,"402efa4f",null),y=v.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{visible:e.visible,"confirm-working":e.isWorking,width:"582px",title:"配置用户角色"},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[null!=e.user?a("p",{staticClass:"tip"},[e._v("为用户 "),a("em",[e._v(e._s(e.user.realname))]),e._v(" 配置角色")]):e._e(),a("p",{staticClass:"tip-warn"},[a("i",{staticClass:"el-icon-warning"}),e._v("提醒:角色配置后需重新登录后生效")]),a("el-transfer",{attrs:{titles:["未授权角色","已授权角色"],props:{key:"id",label:"name"},data:e.roles},model:{value:e.selectedIds,callback:function(t){e.selectedIds=t},expression:"selectedIds"}})],1)},_=[],x=a("b85c"),k=(a("c7cd"),a("d3b7"),a("e811")),C=a("c0c7"),I=a("3528"),A={name:"RoleConfigWindow",extends:k["a"],components:{GlobalWindow:d["a"]},data:function(){return{visible:!1,isWorking:!1,user:null,roles:null,selectedIds:[]}},methods:{open:function(e){var t=this;Object(I["fetchAll"])().then((function(a){if(t.roles=a,t.user=e,t.user.fixed){var r,i=Object(x["a"])(t.roles);try{for(i.s();!(r=i.n()).done;){var s=r.value;s.fixed&&(s.disabled=!0)}}catch(c){i.e(c)}finally{i.f()}}if(!t.isAdmin){var n,o=Object(x["a"])(t.roles);try{for(o.s();!(n=o.n()).done;){var l=n.value;l.code===t.adminCode&&(l.disabled=!0)}}catch(c){o.e(c)}finally{o.f()}}t.selectedIds=t.user.roles.map((function(e){return e.id})),t.visible=!0})).catch((function(e){t.$tip.apiFailed(e)}))},confirm:function(){var e=this;this.isWorking||(this.isWorking=!0,Object(C["createUserRole"])({userId:this.user.id,roleIds:this.selectedIds}).then((function(){e.$tip.apiSuccess("角色配置成功,用户重新登录后生效"),e.visible=!1,e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))},close:function(){this.$emit("update:visible",!1)}}},S=A,F=(a("3185"),Object(b["a"])(S,w,_,!1,null,"698a4e23",null)),B=F.exports,P=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{visible:e.visible,"confirm-working":e.isWorking,width:"576px",title:"重置密码"},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[null!=e.user?a("p",{staticClass:"tip"},[e._v("为用户 "),a("em",[e._v(e._s(e.user.realname))]),e._v(" 重置密码")]):e._e(),a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"新密码",prop:"password",required:""}},[a("el-input",{attrs:{type:"password",placeholder:"请输入新密码",maxlength:"30","show-password":""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1)],1)],1)},D=[],T={name:"ResetPwdWindow",components:{GlobalWindow:d["a"]},data:function(){return{isWorking:!1,visible:!1,user:null,form:{password:""},rules:{password:[{required:!0,message:"请输入密码"}]}}},methods:{open:function(e){var t=this;this.user=e,this.visible=!0,this.$nextTick((function(){t.$refs.form.resetFields()}))},confirm:function(){var e=this;this.isWorking||this.$refs.form.validate((function(t){t&&(e.isWorking=!0,Object(C["resetPwd"])({id:e.user.id,password:e.form.password}).then((function(){e.$tip.apiSuccess("密码重置成功"),e.visible=!1,e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1})))}))}}},O=T,N=(a("3a7e"),Object(b["a"])(O,P,D,!1,null,"a239b916",null)),E=N.exports,L={name:"SystemUser",extends:o["a"],components:{PositionSelect:p["default"],DepartmentSelect:m["default"],ResetPwdWindow:E,RoleConfigWindow:B,OperaUserWindow:y,TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchForm:{username:"",realname:"",rootDeptId:null,positionId:null,mobile:""}}},created:function(){this.config({module:"用户",api:"/system/user","field.main":"realname",sorts:[{property:"CREATE_TIME",direction:"DESC"}]}),this.search()}},W=L,U=(a("ba60"),Object(b["a"])(W,r,i,!1,null,"7fc0a70e",null));t["default"]=U.exports},ba60:function(e,t,a){"use strict";a("7679")},bdac:function(e,t,a){},beaf:function(e,t,a){e.exports=a.p+"static/img/9a.9fca5c9d.png"},c0c7:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"create",(function(){return s})),a.d(t,"updateById",(function(){return n})),a.d(t,"deleteById",(function(){return o})),a.d(t,"deleteByIdInBatch",(function(){return l})),a.d(t,"createUserRole",(function(){return c})),a.d(t,"resetPwd",(function(){return u}));var r=a("b775");function i(e){return r["a"].post("/system/user/page",e)}function s(e){return r["a"].post("/system/user/create",e,{trim:!0})}function n(e){return r["a"].post("/system/user/updateById",e,{trim:!0})}function o(e){return r["a"].get("/system/user/delete/".concat(e))}function l(e){return r["a"].get("/system/user/delete/batch",{params:{ids:e}})}function c(e){return r["a"].post("/system/user/createUserRole",e)}function u(e){return r["a"].post("/system/user/resetPwd",e)}},c104:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"exportExcel",(function(){return s})),a.d(t,"exportDoc",(function(){return n})),a.d(t,"create",(function(){return o})),a.d(t,"companyCreate",(function(){return l})),a.d(t,"updateById",(function(){return c})),a.d(t,"companyUpdateById",(function(){return u})),a.d(t,"batchUpdateDisableById",(function(){return d})),a.d(t,"createPlat",(function(){return m})),a.d(t,"pageT",(function(){return p})),a.d(t,"deleteById",(function(){return f})),a.d(t,"deleteByIdInBatch",(function(){return h})),a.d(t,"updateDisableById",(function(){return g})),a.d(t,"findListForGoodsId",(function(){return b})),a.d(t,"queryById",(function(){return v}));var r=a("b775");function i(e){return r["a"].post("/business/goods/page",e,{trim:!0})}function s(e){return r["a"].post("/business/goods/exportExcel",e,{trim:!0,download:!0})}function n(e){return r["a"].post("/business/goods/export",e,{trim:!0,download:!0})}function o(e){return r["a"].post("/business/goods/create",e)}function l(e){return r["a"].post("/business/goods/companyCreate",e)}function c(e){return r["a"].post("/business/goods/updateById",e)}function u(e){return r["a"].post("/business/goods/companyUpdateById",e)}function d(e){return r["a"].post("/business/goods/batchUpdateDisableById",e)}function m(e){return r["a"].post("/business/goods/createPlat",e)}function p(e){return r["a"].post("/business/baseGoods/page",e)}function f(e){return r["a"].get("/business/goods/delete/".concat(e))}function h(e){return r["a"].get("/business/goods/delete/batch",{params:{ids:e}})}function g(e){return r["a"].post("/business/goods/updateDisableById",e)}function b(e){return r["a"].get("/business/category/findListForGoodsId?goodsId=".concat(e))}function v(e){return r["a"].get("business/goods/".concat(e))}},c1b4:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchList",(function(){return i})),a.d(t,"fetchAll",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"deleteByIdInBatch",(function(){return c}));var r=a("b775");function i(e){return r["a"].post("/system/permission/page",e)}function s(){return r["a"].get("/system/permission/all")}function n(e){return r["a"].post("/system/permission/create",e,{trim:!0})}function o(e){return r["a"].post("/system/permission/updateById",e,{trim:!0})}function l(e){return r["a"].get("/system/permission/delete/".concat(e))}function c(e){return r["a"].get("/system/permission/delete/batch",{params:{ids:e}})}},c312:function(e,t,a){},c31d:function(e,t,a){},c377:function(e,t,a){},c51f:function(e,t,a){"use strict";a("f5d1")},c852:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("NotAllow",[r("div",{staticClass:"content"},[r("img",{attrs:{src:a("56f2")}}),r("h2",[e._v("无权访问")]),r("p",[e._v("如您需要访问该系统,请联系系统管理员")]),r("el-button",{attrs:{type:"primary"},on:{click:e.logout}},[e._v("退出系统")])],1)])},i=[],s=a("5530"),n=a("7903"),o=a("2f62"),l=a("503a"),c={name:"NoPermissions",components:{NotAllow:n["a"]},methods:Object(s["a"])(Object(s["a"])({},Object(o["b"])(["setUserInfo"])),{},{logout:function(){var e=this;Object(l["logout"])().then((function(){e.$router.push({name:"login"}),e.setUserInfo(null)})).catch((function(t){e.$tip.apiFailed(t)}))}})},u=c,d=a("2877"),m=Object(d["a"])(u,r,i,!1,null,"95b41df4",null);t["default"]=m.exports},c962:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:user:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create","system:user:delete"],expression:"['system:user:create', 'system:user:delete']"}],staticClass:"toolbar"},[a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:create"],expression:"['system:user:create']"}]},[a("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(t){return e.$refs.OperaAnchorWindow.open("新建用户")}}},[e._v("新建")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"username",label:"登录账号"}}),a("el-table-column",{attrs:{prop:"realname",label:"姓名"}}),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),a("el-table-column",{attrs:{label:"主播端地址"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.openLink(r.zhuboRoomUrl)}}},[e._v("点击访问")])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":0,"inactive-value":1},on:{change:function(t){return e.changeStatus(t,r.id)}},model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"row.status"}})]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e.containPermissions(["system:user:update","system:user:createUserRole","system:user:resetPwd","system:user:delete"])?a("el-table-column",{attrs:{label:"操作",width:"230",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:update"],expression:"['system:user:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.edit(r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{type:"text"},on:{click:function(t){return e.editPass(r)}}},[e._v("修改密码")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:user:delete"],expression:"['system:user:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]}}],null,!1,2829829602)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"80px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"账号信息",prop:"keyword"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入登录账号/姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword",t)},expression:"searchForm.keyword"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.status,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaAnchorWindow",{ref:"OperaAnchorWindow",on:{success:e.handlePageChange}}),a("OperaAnchorPassWindow",{ref:"OperaAnchorPassWindow",on:{success:e.handlePageChange}})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"登录账号",prop:"userName"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{disabled:!!e.form.id,maxlength:"20",placeholder:"请输入,不超过20个字符"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),a("el-form-item",{attrs:{label:"登录密码",prop:"password"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{disabled:!!e.form.id,"show-password":"",placeholder:"密码支持数字、字符组合,长度6-18位"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"主播姓名",prop:"realName"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入主播姓名"},model:{value:e.form.realName,callback:function(t){e.$set(e.form,"realName",t)},expression:"form.realName"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{maxlength:"11","show-word-limit":"",placeholder:"请输入手机号"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m={name:"OperaBrandWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){var e=function(e,t,a){""===t?a(new Error("登录密码不能为空")):(/^(?![^a-zA-Z]+$)(?!\D+$)/.test(t)||a(new Error("密码支持数字、字符组合,长度6-18位")),a())},t=function(e,t,a){""===t||/^1[3,4,5,6,7,8,9][0-9]{9}$/.test(t)||a(new Error("手机号码格式不正确!")),a()};return{form:{id:null,userName:"",password:"",realName:"",mobile:""},rules:{userName:[{required:!0,message:"登录账号不能为空",trigger:"blur"}],password:[{required:!0,validator:e,trigger:"blur"}],realName:[{required:!0,message:"主播姓名不能为空",trigger:"blur"}],mobile:[{required:!0,validator:t,trigger:"blur"}]}}},created:function(){this.config({api:"/business/anchor","field.id":"id"})}},p=m,f=a("2877"),h=Object(f["a"])(p,l,c,!1,null,null,null),g=h.exports,b=a("b480"),v=a("3aaf"),y={name:"SystemUser",extends:o["a"],components:{OperaAnchorWindow:g,TableLayout:n["a"],Pagination:s["a"],OperaAnchorPassWindow:b["a"]},data:function(){return{searchForm:{status:"",keyword:"",type:2},status:[{name:"启用",id:0},{name:"禁用",id:1}]}},created:function(){this.config({module:"用户",api:"/business/anchor","field.main":"realname",sorts:[{property:"CREATE_TIME",direction:"DESC"}]}),this.search()},methods:{openLink:function(e){window.open(e)},editPass:function(e){var t={id:e.id};this.$refs.OperaAnchorPassWindow.open("修改密码",t)},changeStatus:function(e,t){Object(v["updUserStatus"])({id:t,status:e}).then((function(e){console.log(e)}))},edit:function(e){var t={id:e.id,userName:e.username,password:e.password,realName:e.realname,mobile:e.mobile};this.$refs.OperaAnchorWindow.open("编辑用户",t)}}},w=y,_=(a("2813"),Object(f["a"])(w,r,i,!1,null,"7b6c17b6",null));t["default"]=_.exports},ca57:function(e,t,a){"use strict";a("2331")},cc38:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TreeSelect",{attrs:{placeholder:e.placeholder,value:e.value,data:e.data,clearable:e.clearable,"append-to-body":e.appendToBody,inline:e.inline,multiple:e.multiple,flat:e.multiple},on:{input:function(t){return e.$emit("input",t)}}})},i=[],s=a("b85c"),n=(a("b0c0"),a("e550")),o=a("df8e"),l={name:"DepartmentSelect",components:{TreeSelect:n["a"]},props:{value:{},inline:{default:!0},multiple:{default:!1},placeholder:{default:"请选择部门"},clearable:{default:!1},appendToBody:{default:!1},excludeId:{}},data:function(){return{data:[]}},watch:{excludeId:function(){this.fetchData()}},methods:{fetchData:function(){var e=this;Object(o["fetchTree"])().then((function(t){e.data=[],e.__fillData(e.data,t)})).catch((function(t){e.$tip.apiFailed(t)}))},__fillData:function(e,t){var a,r=Object(s["a"])(t);try{for(r.s();!(a=r.n()).done;){var i=a.value;if(i.id!==this.excludeId){var n={id:i.id,label:i.name};e.push(n),null!=i.children&&i.children.length>0&&(n.children=[],this.__fillData(n.children,i.children),0===n.children.length&&(n.children=void 0))}}}catch(o){r.e(o)}finally{r.f()}}},created:function(){this.fetchData()}},c=l,u=a("2877"),d=Object(u["a"])(c,r,i,!1,null,null,null);t["default"]=d.exports},cd1f:function(e,t,a){"use strict";a("050b")},cf05:function(e,t,a){e.exports=a.p+"static/img/logo.ea7a4c1b.png"},d0a9:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAC1xJREFUaEPdWttvE/kV/o3vdzvGC4QQ4sRcRAkXkYTLdqUqKl2JDeTiKIlArSIkpKoP7Ur9A9q8QKU+8VRpX/rMKsFRCaiLFnYLXRBFVLQqaQiEOCFAIQFMLr7FHk/1/eKTPUzNJqyn0mpHGnl8mZnzne+c75zzGyvie7Yp3zM84p0AaZpmTiQSB202W6PZbN5qsVjW5fP5SkVRfEKIgKZpFkVRVCHErKIoCSHEeD6fH83n85O5XO5JKpWarK6unlIUZfH/5chVA8pkMq1Wq/W3iqL8QFGU5fM0TZO2sY/ke3xeKBTkK77DrqpqvlAoJIUQ/xFCPMpkMo+z2eyEqqqPC4XCeCaTGX/9+nWisbEx920BrwpQIpH42O/3/04IYeI34mBgML0HkHw+L7LZrASF7x48eCCGh4dFKBQSgUBA7l6vV/h8PmGz2QAW56iapj3P5/P3FxYW/iGE+GMkErn/LuBWBDQ8PLw+HA7ftdvtHu51HNNODBRZkGDot0VDxc2bN8XTp0+l4cQmOcBsNguHwyF3t9stPB6PcLlceD8/Ozv7i+bm5oHVgloRUDwe762srPwEhmAnELgBvI+dNpPJtPweRhKodDotHj58KBKJhJidnZWA8Fv6nkKTv2f3ywUCgRO9vb2rArUioMnJyU/8fn8vGQ8v53I5sbi4KMMFoUMep1cYizDCBramp6el8c+ePRMvX76Un+M3lGscCLFLgHAvl8t1NxwOH2hubs6vxNRqAF12Op0f4AYAhRvA8EIBIbeUHxwQjq1Wq3A6nfLeqVRKPH78WFRVVUmWZmZmJBg6j8AQ4wBE96FwVRQlV1tbu//QoUP/LhvQxMTEdYfD0UAewwVVdUm9hNAkAwgv8jqxA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zs7DcuhH0YikSsk26U6BV6TeKeNzwGIhxwHhO+fP3/+xjMhOAzM0OjhdDrRnBrK0MHa2tov0fpAWku1PJwdMhi/h2FY/iWGsHDCuwMc46kgPc3Amjgch3PBWCqZEou5RcmQYSo3ODi4LxwOX4NxBIizxJOaqxyMwo68IUCQcNqoO6fzae2PCqxUuKVdDYVCxgEaGBhorKur+wo3pqQtpVR6UZBreBaLlGsspEDt0AaVGjeoHLCHxdJ5xXU+PDh+v729/V+G1KFYLLa7pqbmb7wbLrW+wAsljikPEFJ4godcobU8Xpz1IUz3KQ54eAIw0tTU9H5tbW2mbEBnzpzpwaql1WqNwtukXggLyhHqrCnEKB9oSRitz7Zt2+QDYyyB0VaqBcJnmUxmPpvN/nN+fv7ywsLC506nc/jEiRMrgpHhvhLikZGRGyaTaS/9M4Qe6dMiBs6nFVPkB2pJRUWF3FEUYSAe/UciEQkIn/EcKoZxLpfLjabT6avJZPKzVCr195MnT75aybZS368IaGZm5tdWq/V0cTlJXoMXU3pfXFSXCgaVon+DgBGonN/vFxj0is1mAX9oymazf81kMl+kUqmvxsbGnvb19X39L45vg2Y1DGmaZo3H4z8vqIWPTSZTtWJayg3+XwP+NA52UFim0+nknTt3pm0229pAIJCZm5u7mUwmL6uqeu3u3bujfX19K/6R4l1xrcgQXfDGjRtVi4uLuzRNc5vN5oDJZAoIISoURQmYzeag1WoNmc3m9ywWS8hut6uKEP0FTfvD1q1bxy9duuS22Wxqc3PzqvLgXUG8objlnPxdPHfVDH0XjS9l038BIGX+vGjxGj0AAAAASUVORK5CYII="},d1e6:function(e,t,a){"use strict";a("1bfd")},d1ff:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:traceLog:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,stripe:"","default-sort":{prop:"operaTime",order:"descending"},"row-class-name":e.tableRowClassName},on:{"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{prop:"operaModule",label:"业务模块","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"operaRemark",label:"操作说明","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"requestMethod",label:"请求方式","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"requestUri",label:"请求地址","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("statusText")(a.status))+" ")]}}])}),a("el-table-column",{attrs:{prop:"requestParams",label:"请求参数","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[null!=r.requestParams?a("ColumnDetail",{attrs:{content:r.requestParams,limit:0}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"requestResult",label:"请求结果","min-width":"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[null!=r.requestResult?a("ColumnDetail",{attrs:{content:r.requestResult}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"exceptionLevel",label:"异常等级",sortable:"custom","sort-by":"EXCEPTION_LEVEL","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("exceptionLevelText")(a.exceptionLevel))+" ")]}}])}),a("el-table-column",{attrs:{prop:"exceptionStack",label:"异常信息","min-width":"170px"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[null!=r.exceptionStack?a("ColumnDetail",{attrs:{content:r.exceptionStack,"button-type":e.getExceptionButtonType(r.exceptionLevel)}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"operaSpendTime",label:"请求耗时(ms)",sortable:"custom","sort-by":"OPERA_SPEND_TIME","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"userRealname",label:"操作人","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"operaTime",label:"操作时间",sortable:"custom","sort-by":"OPERA_TIME","min-width":"140px"}}),a("el-table-column",{attrs:{prop:"platform",label:"操作平台","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"systemVersion",label:"系统版本","min-width":"80px"}}),a("el-table-column",{attrs:{prop:"serverIp",label:"处理服务器IP","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"ip",label:"用户IP","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"clientInfo",label:"用户客户端","min-width":"200px"}}),a("el-table-column",{attrs:{prop:"osInfo",label:"用户操作系统","min-width":"100px"}})],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"用户姓名",prop:"userRealname"}},[a("el-input",{attrs:{placeholder:"请输入固化用户姓名"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.userRealname,callback:function(t){e.$set(e.searchForm,"userRealname",t)},expression:"searchForm.userRealname"}})],1),a("el-form-item",{attrs:{label:"业务模块",prop:"operaModule"}},[a("el-input",{attrs:{placeholder:"请输入业务模块"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.operaModule,callback:function(t){e.$set(e.searchForm,"operaModule",t)},expression:"searchForm.operaModule"}})],1),a("el-form-item",{attrs:{label:"请求地址",prop:"requestUri"}},[a("el-input",{attrs:{placeholder:"请输入请求地址"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.requestUri,callback:function(t){e.$set(e.searchForm,"requestUri",t)},expression:"searchForm.requestUri"}})],1),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{clearable:""},on:{change:e.search},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[a("el-option",{attrs:{value:"-1",label:"未处理"}}),a("el-option",{attrs:{value:"0",label:"失败"}}),a("el-option",{attrs:{value:"1",label:"成功"}})],1)],1),a("el-form-item",{attrs:{label:"异常等级",prop:"exceptionLevel"}},[a("el-select",{attrs:{clearable:""},on:{change:e.search},model:{value:e.searchForm.exceptionLevel,callback:function(t){e.$set(e.searchForm,"exceptionLevel",t)},expression:"searchForm.exceptionLevel"}},[a("el-option",{attrs:{value:"10",label:"高"}}),a("el-option",{attrs:{value:"5",label:"中"}}),a("el-option",{attrs:{value:"0",label:"低"}})],1)],1),a("el-form-item",{attrs:{label:"操作时间范围"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.handleSearchTimeChange},model:{value:e.searchDateRange,callback:function(t){e.searchDateRange=t},expression:"searchDateRange"}})],1),a("section",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{attrs:{type:"primary",loading:e.isWorking.export},on:{click:e.exportExcel}},[e._v("导出")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("div",{staticClass:"status-bar",attrs:{slot:"space"},slot:"space"},[a("label",{staticClass:"status-normal"},[e._v("正常")]),a("label",{staticClass:"status-warn"},[e._v("警告异常(需排查)")]),a("label",{staticClass:"status-danger"},[e._v("系统异常(需修复)")])])],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.content.length<=e.limit?a("span",[e._v(e._s(e.content))]):a("el-popover",{attrs:{"popper-class":"eva-column-detail-popover",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[a("div",{staticClass:"eva-column-detail"},[a("pre",{staticClass:"eva-column-detail__main"},[e._v(e._s(e.formattedContent))]),a("div",{staticClass:"eva-column-detail__action"},[a("el-button",{attrs:{size:"mini"},on:{click:e.cancel}},[e._v("关闭")]),a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.formattedContent,expression:"formattedContent",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.copySuccess,expression:"copySuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.copyFailed,expression:"copyFailed",arg:"error"}],attrs:{size:"mini",type:"primary"},on:{click:e.confirm}},[e._v(e._s(e.confirmButtonText))])],1)]),a("el-button",{attrs:{slot:"reference",type:e.buttonType},slot:"reference"},[e._v("查看")])],1)},c=[],u=(a("a9e3"),{name:"ColumnDetail",props:{buttonType:{type:String},content:{type:String,default:""},limit:{type:Number,default:12},analyse:{type:Boolean,default:!0},allowCopy:{type:Boolean,default:!0}},data:function(){return{visible:!1}},computed:{confirmButtonText:function(){return this.allowCopy?"复制":"确定"},formattedContent:function(){var e=this.content;if(this.analyse)try{e=JSON.stringify(JSON.parse(this.content),null,2)}catch(t){}return e}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")},copySuccess:function(){this.$tip.success("复制成功")},copyFailed:function(){this.$tip.error("复制失败")}}}),d=u,m=(a("7ad3"),a("e794"),a("2877")),p=Object(m["a"])(d,l,c,!1,null,"703bfe4a",null),f=p.exports,h={name:"SystemTraceLog",extends:o["a"],components:{ColumnDetail:f,TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchDateRange:[],searchForm:{userRealname:"",operaModule:"",requestUri:"",status:null,exceptionLevel:null,startTime:null,endTime:null}}},filters:{statusText:function(e){return 1===e?"成功":0===e?"失败":"未处理"},exceptionLevelText:function(e){return null==e?"":0===e?"低":5===e?"中":10===e?"高":"未知"}},methods:{reset:function(){this.$refs.searchForm.resetFields(),this.searchDateRange=[],this.searchForm.startTime=null,this.searchForm.endTime=null,this.search()},tableRowClassName:function(e){var t=e.row;return 5===t.exceptionLevel||-1===t.status?"warning-log":10===t.exceptionLevel?"danger-log":""},getExceptionButtonType:function(e){return 5===e?"warning":10===e?"danger":null},handleSearchTimeChange:function(e){this.searchForm.startTime=null,this.searchForm.endTime=null,null!=e&&(this.searchForm.startTime=e[0],this.searchForm.endTime=e[1]),this.search()}},created:function(){this.config({api:"/system/traceLog",sorts:[{property:"OPERA_TIME",direction:"DESC"}]}),this.search()}},g=h,b=(a("633e"),Object(m["a"])(g,r,i,!1,null,"3f3a7a1b",null));t["default"]=b.exports},d4cd:function(e,t,a){e.exports=a.p+"static/img/banner_defult.09238370.png"},d4e3:function(e,t,a){},d529:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table-pagination"},[a("el-pagination",{attrs:{"current-page":e.pagination.pageIndex,"page-sizes":[10,20,30,40],"page-size":e.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.pagination.total,background:""},on:{"size-change":e.sizeChange,"current-change":e.currentChange}})],1)},i=[],s={name:"Pagination",props:{pagination:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{sizeChange:function(e){this.$emit("size-change",e)},currentChange:function(e){this.$emit("current-change",e)}}},n=s,o=a("2877"),l=Object(o["a"])(n,r,i,!1,null,null,null);t["a"]=l.exports},d5f8:function(e,t,a){},d9a0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAD6BJREFUaEOtWltsHOUVPjM7M7tr79V24viShIRcgFQCWnGtqOAJIWhToKKlVftQVaJSCS230iewEFJVSssl0JBYSEiNsBtycZxWSKg8lodS5SUQiONLbK/v3uvsem+zM9V3/vmHsYnysOuNrN3szM6c7z/nfOf7zxmFrvF64YUXvhcMhn9CZJNNRI7TUPDBsizFcRzVcZyAojgB2yZ8Vh1cS3EUTdVwnGzH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tFkYFIuRv+wO+d/hQQ+c6xFvYVzjmfXcBy3kuQhVOTuSBXjTQu4bgNgjcpQvmupIYPHwhZtX0njfGNI/pZOg14823RGmnM/6vMM71laVwltvvfVWqVR6cqNSAL2KuacIMcurGxu8xE+gfO0hf+74h1loU/lHj+IxG+wuGqw2JLFsCqBisfikP4fYKG+2Kh7AQDLzwxeuzGfSgGdcQBtJwK84PE/Juaq3OOIBD+7roWBzT8E4PtrCwEuBh/yAvNzwD4rdcYlfd3nnMSlcPbfW5RsGXL5ptz8i5MNLmxJyhw8fZkDfCDlZg9gLyB/f2B6GgeGw0i4gf159g7LBjnicRhUPYeBeUpjKOiWfLIGHWhKnAGSaphdynPz87Js0WADhkJOPy/hIQdYoqdCvxoL4ru7StewxyBBH/6HOtC8WaTNy6LBpmr+RHuKVdz0AQsDgV4wMxbMK0GrsGVkw5XMLG8bzUpGz59wHNdCYx7MNclIhqFp0jeR5YSPU2tD4iSeeuJlUejubzt6S7Ow83RYKOQ2nUXUcRwkaoWAwaNxWLJW6rXpdBaC1tbVwNBIpw2C/XOJC6XZ4vNUXk76wpmm4HhN1uVzJkEr/s22nTI5dDQXDoXKlogRU9WHLssYMXX/q9OnT/2m268O/O/jIwYczK5lv9fX1vT88PDy78WIDAwNi5kiklsvl3snJybkDBw6se7TyagYMDAzQoUOHei9cuLB477338iOSAwMD4lFJ3+v+++/vMQzjl5ZljX/00Uf/uBYYHPs/PctCJaJC974AAAAASUVORK5CYII="},d9f7:function(e,t,a){"use strict";a("e053")},da96:function(e,t,a){"use strict";a("1f0f")},dd38:function(e,t,a){"use strict";a("9f3b")},dd7b:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrap"},[e._m(0),a("div",{staticClass:"login"},[a("h1",[e._v("系统登录 / LOGIN IN")]),a("div",{staticClass:"info-input"},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入用户名","prefix-icon":"el-icon-user-solid",maxlength:"50"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),a("el-input",{attrs:{placeholder:"请输入密码",type:"password","prefix-icon":"eva-icon-password",maxlength:"30","show-password":""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),a("div",{staticClass:"captcha-input"},[a("el-input",{attrs:{placeholder:"图片验证码","prefix-icon":"eva-icon-shield",maxlength:"4"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login(t)}},model:{value:e.captcha.value,callback:function(t){e.$set(e.captcha,"value",t)},expression:"captcha.value"}}),e.captcha.loading?a("span",[a("i",{staticClass:"el-icon-loading"})]):a("img",{attrs:{src:e.captcha.uri},on:{click:e.refreshCaptcha}})],1)],1),a("el-button",{attrs:{loading:e.loading},on:{click:e.login}},[e._v("登 录")])],1)])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"introduce"},[a("h2",[e._v("预选清单查询系统")])])}],s=a("5530"),n=(a("d3b7"),a("498a"),a("2f62")),o=a("503a"),l={name:"Login",data:function(){return{loading:!1,username:"",password:"",captcha:{loading:!1,value:"",uuid:"",uri:""}}},methods:Object(s["a"])(Object(s["a"])({},Object(n["b"])(["setUserInfo"])),{},{login:function(){var e=this;this.loading||this.__check()&&(this.loading=!0,Object(o["loginByPassword"])({username:this.username.trim(),password:this.password,code:this.captcha.value.trim(),uuid:this.captcha.uuid}).then((function(){window.location.href="/v2/web"})).catch((function(t){e.refreshCaptcha(),e.$tip.apiFailed(t)})).finally((function(){e.loading=!1})))},refreshCaptcha:function(){var e=this;this.captcha.loading=!0,Object(o["getCaptcha"])().then((function(t){e.captcha.uri=t.image,e.captcha.uuid=t.uuid})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){setTimeout((function(){e.captcha.loading=!1}),150)}))},__check:function(){return""===this.username.trim()?(this.$tip.error("请输入用户名"),!1):""===this.password?(this.$tip.error("请输入密码"),!1):""!==this.captcha.value.trim()||(this.$tip.error("请输入图片验证码"),!1)}}),created:function(){this.refreshCaptcha()}},c=l,u=(a("55f1"),a("2877")),d=Object(u["a"])(c,r,i,!1,null,"084e6f1d",null);t["default"]=d.exports},df8e:function(e,t,a){"use strict";a.r(t),a.d(t,"fetchTree",(function(){return i})),a.d(t,"fetchUserList",(function(){return s})),a.d(t,"create",(function(){return n})),a.d(t,"updateById",(function(){return o})),a.d(t,"deleteById",(function(){return l})),a.d(t,"deleteByIdInBatch",(function(){return c}));var r=a("b775");function i(){return r["a"].post("/system/department/tree")}function s(e){return r["a"].post("/system/department/users",e)}function n(e){return r["a"].post("/system/department/create",e)}function o(e){return r["a"].post("/system/department/updateById",e)}function l(e){return r["a"].get("/system/department/delete/".concat(e))}function c(e){return r["a"].get("/system/department/delete/batch",{params:{ids:e}})}},e02d:function(e,t,a){},e053:function(e,t,a){},e103:function(e,t,a){e.exports=a.p+"static/img/7a.cdd0099a.png"},e117:function(e,t,a){"use strict";a("a825")},e12c:function(e,t,a){},e550:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("vue-tree-select",{class:{inline:e.inline},attrs:{placeholder:e.placeholder,value:e.value,options:e.data,clearable:e.clearable,flat:e.flat,"append-to-body":e.appendToBody,multiple:e.multiple,"no-children-text":"无记录","no-options-text":"无记录","no-results-text":"未匹配到数据"},on:{input:function(t){return e.$emit("input",t)}}})},i=[],s=a("ca17"),n=a.n(s),o=(a("542c"),{name:"TreeSelect",props:{inline:{default:!1},multiple:{default:!1},flat:{default:!1},value:{},placeholder:{default:"请选择"},clearable:{default:!1},data:{type:Array,required:!0},appendToBody:{default:!1}},components:{VueTreeSelect:n.a}}),l=o,c=(a("6d22"),a("2877")),u=Object(c["a"])(l,r,i,!1,null,"8998ecce",null);t["a"]=u.exports},e794:function(e,t,a){"use strict";a("b56d")},e811:function(e,t,a){"use strict";var r,i,s=a("53ca"),n=a("b85c"),o=a("5530"),l=(a("c740"),a("2f62")),c={name:"BasePage",data:function(){return{adminCode:"admin"}},computed:Object(o["a"])(Object(o["a"])({},Object(l["c"])(["userInfo"])),{},{isAdmin:function(){var e=this;return this.userInfo.roles.findIndex((function(t){return t===e.adminCode}))>-1}}),methods:{containRoles:function(e){var t=this;if(null==e)return!0;if(null==this.userInfo)return!1;if(null==this.userInfo.roles||0===this.userInfo.roles.length)return!1;var a,r=Object(n["a"])(e);try{var i=function(){var e=a.value;if(t.userInfo.roles.findIndex((function(t){return t===e}))>-1)return{v:!0}};for(r.s();!(a=r.n()).done;){var o=i();if("object"===Object(s["a"])(o))return o.v}}catch(l){r.e(l)}finally{r.f()}return!1},containPermissions:function(e){var t=this;if(null==e)return!0;if(null==this.userInfo)return!1;if(null==this.userInfo.permissions||0===this.userInfo.permissions.length)return!1;var a,r=Object(n["a"])(e);try{var i=function(){var e=a.value;if(t.userInfo.permissions.findIndex((function(t){return t===e}))>-1)return{v:!0}};for(r.s();!(a=r.n()).done;){var o=i();if("object"===Object(s["a"])(o))return o.v}}catch(l){r.e(l)}finally{r.f()}return!1}}},u=c,d=a("2877"),m=Object(d["a"])(u,r,i,!1,null,null,null);t["a"]=m.exports},e86e:function(e,t,a){"use strict";a("9966")},e8c0:function(e,t,a){"use strict";a("bdac")},eed8:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAADFxJREFUaEPtWltzFNcR7pnVXrUrCSHtLkghFZw4RuJmkClXHhyc5CXB5aTs/IQ8JI/GeUheIlGVX+CUkVx5cn5CUmWKSxkCSMGQqmAkKFRISkCXHYFASHu/zEyqu885c2Y0K5E8BSpTtVrN7Zz++vJ1nz5rwCt2GK8YHvABunv3buxlBDg8PNyQcvsA3bz594LtOHm86br0FwzDwC8g6PIbXHBdw7tE98RNfNwFMAw+V6+AATgUHr4x+Qrf4EnVafCSuKsLgu9Yb7/91p5QQKOjvy80ms08TyxeFxIRABKWQeK3fuA9ElTAxOfxi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wOaAP+AOZI+qYIWL1vexawJ4WiRVLcXJfVCU7Xuw+4BDwt6aeeQrMQTAC+Bh4Epkj6qtpWOzglUoAiRs834mkNz+cAn6TMHy3pRn6mAo5sbE0ZubpRT2vA9wLzUrw33gNOdforcA0YWSaRyr6Y7SeAs8Bl4DFJkbDtS7aXADuBHZKWlzVa9pztKMMZwHRJh3LwR0DU7VRJX5Q1WPac7ZeBD4FNklbl4B+Bp4CBeXMoa7joXLrun4EvJUXb7bzqv6PvShpWZKSRfdsPpGZ0XtLoHHwrUl7Sk40YLvOM7Ujci5KG5+DIuOuShpYx0tMztnsD/wHnJI3Jwd8DY4GHJcWEaeqyPSqgwBFJL+Tg3cBCYLakA02ldnTFFmAr8LakV3PwgtTUd0mK1G/qsn0k2nCMT0nHc3AM9OhcvYBRkuJ7U5btCGEolLA5QlKMy45yig/ba4A3o4NJWtYUaofdz4FpwFJJH+R2K+CYSjGdHgl91YxY2472uw04A4yXdLsLOHn9HHA4SguYJOnbRj23PQX4LJXRM5JOV9uqViArgfeSglws6dOewpOnYSM61tx6NrqIvezBKPwYIG2Sfil6gZRIb6WYtl8isFLSllrP1lOZk9JEGZGuK6ZW1HhosGivt1NHinkbjT9UZqjN8PKHFNt3kqKpCe9OV/dNmjqKPvRzZYUnIWNiP38+JlCoyu0x8G1PBCKrI3G7wOuCOyl2n0oDyP5JhMAPvR0a+hQQjeFkXqcpYevCC8FFsS3ar+f5/w6u4fl8SfvuCziD749/G5K23QVF1D0uCnxy0gAAAABJRU5ErkJggg=="},f040:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pz"},[r("div",{staticClass:"prediv"},[r("div",{staticClass:"option"},[r("div",{staticClass:"pz_head"},[e._v("页面预览")]),r("el-tabs",{model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[r("el-tab-pane",{attrs:{label:"主界面",name:"0"}}),r("el-tab-pane",{attrs:{label:"PK效果",name:"1"}}),r("el-tab-pane",{attrs:{label:"搜索效果",name:"2"}}),r("el-tab-pane",{attrs:{label:"商品列表",name:"3"}})],1)],1),r("div",{staticClass:"prediv-content"},[r("div",{staticClass:"content",style:e.contentStyle},[r("img",{attrs:{src:e.form.topImg.type?e.form.topImg.imgurl:e.defaultBanner,alt:""}}),1!=e.type&&3!=e.type?[r("div",[r("div",{staticClass:"commodityFrom_head",style:e.tableHeaderStyle},[r("div",{staticClass:"commodityFrom_head_item"},[e._v("类别")]),r("div",{staticClass:"commodityFrom_head_item"},[e._v("品牌")]),r("div",{staticClass:"commodityFrom_head_item"},[e._v("型号")]),r("div",{staticClass:"commodityFrom_head_item"},[e._v("指导价")]),r("div",{staticClass:"commodityFrom_head_item"},[e._v("入手价")])]),r("div",{staticClass:"commodityFrom_body",style:e.tableBodyStyle},[r("div",{staticClass:"commodityFrom_body_content"},e._l(e.shopList,(function(t,a){return r("div",{key:a,staticClass:"commodityFrom_body_content_item"},[r("div",{staticClass:"commodityFrom_body_content_item_num"},[r("div",{staticClass:"commodityFrom_body_content_item_num_img"},[r("img",{attrs:{src:t.categoryImgurl,mode:"widthFix"}})]),r("span",[e._v(e._s(t.categoryName))])]),r("div",{staticClass:"commodityFrom_body_content_item_num",on:{mouseenter:function(e){e.stopPropagation(),t.ppShow=!0},mouseleave:function(e){e.stopPropagation(),t.ppShow=!1}}},[r("span",[e._v(e._s(t.brandName))]),r("div",{staticClass:"drop-down",style:Object.assign({},{opacity:t.ppShow?"1":"0",zIndex:t.ppShow?"999":"-1"},e.pullStyle)},e._l(t.ppData,(function(a,i){return r("div",{key:i,staticClass:"drop-down-item",on:{click:function(r){return r.stopPropagation(),e.clickBrand(t,a)}}},[r("span",{staticClass:"item-value",style:a==t.brandName?e.selStyle:""},[e._v(e._s(a))])])})),0)]),r("div",{staticClass:"commodityFrom_body_content_item_num",on:{mouseenter:function(e){e.stopPropagation(),t.xhShow=!0},mouseleave:function(e){e.stopPropagation(),t.xhShow=!1}}},[r("span",[e._v(e._s(t.name))]),r("div",{staticClass:"drop-down",style:Object.assign({},{opacity:t.xhShow?"1":"0",zIndex:t.xhShow?"999":"-1"},e.pullStyle)},e._l(t.xhData,(function(a,i){return r("div",{key:i,staticClass:"drop-down-item",on:{click:function(r){return r.stopPropagation(),e.clickXH(t,a)}}},[r("span",{staticClass:"item-value",style:a==t.name?e.selStyle:""},[e._v(e._s(a))])])})),0)]),r("div",{staticClass:"commodityFrom_body_content_item_num"},[r("span",[e._v(e._s(t.zdPrice))])]),r("div",{staticClass:"commodityFrom_body_content_item_num"},[r("span",[e._v(e._s(t.price))])]),r("div",{staticClass:"commodityFrom_body_content_item_tips"},[r("image",{attrs:{src:"@/assets/images/ic_img@2x.png",mode:"widthFix"}}),r("image",{attrs:{src:"@/assets/images/ic_copy@2x.png",mode:"widthFix"}}),r("image",{attrs:{src:"@/assets/images/ic_delete@2x.png",mode:"widthFix"}})])])})),0),r("div",{staticClass:"commodityFrom_body_total"},[r("div",{staticClass:"commodityFrom_body_total_item",style:e.tableHeaderStyle},[e._v("总计:")]),r("div",{staticClass:"commodityFrom_body_total_item",style:Object.assign({},e.tableHeaderStyle,e.selStyle)},[e._v(" 18999 ")]),r("div",{staticClass:"commodityFrom_body_total_item",style:Object.assign({},e.tableHeaderStyle,e.selStyle)},[e._v(" 898999 ")])])])]),r("div",{staticClass:"productCategory"},[r("div",{staticClass:"productCategory_list",style:e.categoryStyle},[e._l(e.category,(function(t,a){return r("div",{key:a,staticClass:"productCategory_list_item",on:{click1:function(r){return e.clickItem(a,t.id,t.name)}}},[r("img",{attrs:{src:t.img,mode:"widthFix"}}),r("span",{style:Object.assign({},e.selListNameStyle)},[e._v(e._s(t.name))])])})),r("div",{staticClass:"productCategory_list_zw"}),r("div",{staticClass:"productCategory_list_zw"}),r("div",{staticClass:"productCategory_list_zw"}),r("div",{staticClass:"productCategory_list_zw"}),r("div",{staticClass:"productCategory_list_zw"})],2)])]:e._e(),1==e.type||3==e.type?r("div",{staticClass:"productPage"},[r("div",{staticClass:"productPage_head",style:e.tableHeaderStyle},[r("div",{staticClass:"productPage_head_item",on:{mouseenter:e.mouseenterHead,mouseleave:e.mouseleaveHead}},[r("span",[e._v("属性1")]),r("img",{attrs:{src:a("5d37"),mode:"widthFix"}})]),r("div",{staticClass:"productPage_head_item",on:{mouseenter:e.mouseenterHead,mouseleave:e.mouseleaveHead}},[r("span",[e._v("属性2")]),r("img",{attrs:{src:a("5d37"),mode:"widthFix"}})]),r("div",{staticClass:"productPage_head_item",on:{mouseenter:e.mouseenterHead,mouseleave:e.mouseleaveHead}},[r("span",[e._v("预算")]),r("img",{attrs:{src:a("5d37"),mode:"widthFix"}})]),r("div",{staticClass:"productPage_head_item",on:{mouseenter:e.mouseenterHead,mouseleave:e.mouseleaveHead}},[r("span",[e._v("品牌")]),r("img",{attrs:{src:a("5d37"),mode:"widthFix"}})])]),1==e.type?[r("div",{staticClass:"productPage_pk"},[r("div",{staticClass:"productPage_pk_shop"},[r("div",{staticClass:"productPage_pk_shop_sp1",style:e.tableHeaderStyle},[e._m(0),r("span",[e._v("三星323洗烘")])]),r("div",{staticClass:"productPage_pk_shop_t"},[0==e.form.pkImg.type?r("img",{attrs:{src:a("05d8"),alt:""}}):r("img",{attrs:{src:e.form.pkImg.imgurl,alt:""}})])]),e._m(1),r("div",{staticClass:"productPage_pk_shop"},[r("div",{staticClass:"productPage_pk_shop_sp1",style:e.tableHeaderStyle},[e._m(2),r("span",[e._v("格兰仕434洗烘")])]),r("div",{staticClass:"productPage_pk_shop_t"},[0==e.form.pkImg.type?r("img",{attrs:{src:a("05d8"),alt:""}}):r("img",{attrs:{src:e.form.pkImg.imgurl,alt:""}})])])]),r("div",{staticClass:"productPage_parameter"},e._l([e.leftShop,e.rightShop],(function(t,a){return r("div",{key:a,staticClass:"productPage_parameter_item"},[r("div",{staticClass:"productPage_parameter_item_head",style:e.tableHeaderStyle},[r("span",[e._v(e._s(t.name))])]),r("div",{staticClass:"productPage_parameter_item_content",style:e.tableBodyStyle},[r("div",{staticClass:"productPage_parameter_item_content_price"},[r("div",{staticClass:"zdj"},[r("span",[e._v("指导价:")]),r("span",[e._v("¥"+e._s(t.zdPrice))])]),r("div",{staticClass:"rsj"},[r("span",[e._v("建议入手价:")]),r("span",[e._v("¥"+e._s(t.price))])])]),r("div",{staticClass:"productPage_parameter_item_content_nr"},[e._l(t.param1,(function(a,i){return t.param1?r("div",{key:a.index,staticClass:"item"},[r("div",{staticClass:"label"},[e._v(e._s(a.name)+":")]),r("div",{staticClass:"value"},[e._v(e._s(a.val))])]):e._e()})),t.param2.length>0?r("div",{staticClass:"paramline"}):e._e(),e._l(t.param2,(function(a,i){return t.param2?r("div",{key:a.index,staticClass:"item"},[r("div",{staticClass:"label"},[e._v(e._s(a.name)+":")]),r("div",{staticClass:"value"},[e._v(e._s(a.val))])]):e._e()}))],2)])])})),0)]:e._e(),3==e.type?[r("div",{staticClass:"productPage_shop"},[e._l(e.productList,(function(t,a){return r("div",{key:a,staticClass:"productPage_shop_item",style:Object.assign({},e.selectList)},[r("div",{staticClass:"productPage_shop_item_img"},[r("img",{attrs:{src:t.img,mode:"widthFix"}})]),r("span",{style:Object.assign({},e.selProNameStyle)},[e._v(e._s(t.name))])])})),r("div",{staticClass:"productPage_shop_zw"}),r("div",{staticClass:"productPage_shop_zw"}),r("div",{staticClass:"productPage_shop_zw"})],2)]:e._e()],2):e._e()],2)]),2==e.type?r("div",{staticClass:"search"},[r("div",{staticClass:"search_box"},[r("div",{staticClass:"search_box_item",style:e.searchStyle},[e._m(3),r("div",{staticClass:"search_box_item_right"},[e._v(" 海尔冰箱 ")])]),r("div",{staticClass:"search_box_item_xl",style:e.searchStyle},e._l(e.searchData,(function(t,a){return r("div",{key:a,staticClass:"search_box_item_xl_item"},[r("div",{staticClass:"search_box_item_xl_item_name"},[e._v(e._s(t.name))]),t.price?r("span",[e._v("¥"+e._s(t.price))]):e._e()])})),0)])]):e._e()]),r("div",{staticClass:"setting"},[r("div",{staticClass:"pz_head pz_head--with-switch"},[e._m(4),r("span",{staticClass:"version-switch version-switch--v2",class:{"version-switch--active":e.useThisVersion}},[e._m(5),r("span",{staticClass:"version-switch__body"},[r("span",{staticClass:"version-switch__label"},[e._v("立即使用该版本")]),r("span",{staticClass:"version-switch__status"},[e._v(e._s(e.useThisVersion?"已启用 · 主播端当前版本":"点击按钮后主播端将切换至本版本"))])]),e.useThisVersion?r("span",{staticClass:"version-switch__badge"},[r("i",{staticClass:"el-icon-success"}),e._v(" 当前版本 ")]):r("el-button",{staticClass:"version-switch__btn version-switch__btn--v2",attrs:{type:"primary",size:"medium",loading:e.versionSwitchLoading},on:{click:e.onUseThisVersion}},[e._v(" 立即生效 ")])],1)]),r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"130px","label-suffix":":"}},[r("el-form-item",{attrs:{label:"内容范围尺寸",props:"rangeSize"}},[r("el-input",{staticStyle:{width:"200px"},attrs:{type:"number",placeholder:"支持750px-1200px"},model:{value:e.form.rangeSize,callback:function(t){e.$set(e.form,"rangeSize",t)},expression:"form.rangeSize"}}),r("span",{staticStyle:{"margin-left":"15px"}},[e._v("px")]),r("span",{staticStyle:{"margin-left":"15px",color:"#666"}},[e._v("支持750px-1200px")])],1),r("el-form-item",{attrs:{label:"背景颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectBackground},model:{value:e.form.main.bgType,callback:function(t){e.$set(e.form.main,"bgType",t)},expression:"form.main.bgType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.main.bgType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.main.bgColor,callback:function(t){e.$set(e.form.main,"bgColor",t)},expression:"form.main.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.main.alpha,callback:function(t){e.$set(e.form.main,"alpha",t)},expression:"form.main.alpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"背景图片"}},[r("el-radio-group",{model:{value:e.form.bgImg.isShow,callback:function(t){e.$set(e.form.bgImg,"isShow",t)},expression:"form.bgImg.isShow"}},[r("el-radio",{attrs:{label:0}},[e._v("隐藏")]),r("el-radio",{attrs:{label:1}},[e._v("显示")])],1),1==e.form.bgImg.isShow?r("div",[r("el-radio-group",{model:{value:e.form.bgImg.type,callback:function(t){e.$set(e.form.bgImg,"type",t)},expression:"form.bgImg.type"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),0==e.form.bgImg.type?r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a("7519"),fit:"contain","prediv-src-list":[a("7519")]}})],1):r("div",{staticClass:"img-select-item"},[r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[e.form.bgImg.imgurl?r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.form.bgImg.imgurl,fit:"contain","prediv-src-list":[e.form.bgImg.bgImgUrl]}}):e._e()],1),r("div",{staticClass:"upload"},[r("div",[r("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.$refs.upBackground.click()}}},[e._v("上传背景")])],1),r("span",{staticStyle:{color:"#999","font-size":"13px","line-height":"18px"}},[e._v("建议尺寸:1920px*1080px,其中主要展示区域高度为1080px,大小不超过1M")]),r("input",{ref:"upBackground",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:e.upbgImgUrl}})])])],1):e._e()],1),r("el-form-item",{attrs:{label:"顶部图片"}},[r("el-radio-group",{model:{value:e.form.topImg.type,callback:function(t){e.$set(e.form.topImg,"type",t)},expression:"form.topImg.type"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),0==e.form.topImg.type?r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a("d4cd"),fit:"contain","prediv-src-list":[a("d4cd")]}})],1):r("div",{staticClass:"img-select-item"},[r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[e.form.topImg.imgurl?r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.form.topImg.imgurl,fit:"contain","prediv-src-list":[e.form.topImg.imgurl]}}):e._e()],1),r("div",{staticClass:"upload"},[r("div",[r("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.$refs.upTop.click()}}},[e._v("上传图片")])],1),r("span",{staticStyle:{color:"#999","font-size":"13px","line-height":"18px"}},[e._v("建议尺寸700px*300px,大小不超过1M")]),r("input",{ref:"upTop",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:e.upTopImgUrl}})])])],1),r("el-form-item",{attrs:{label:"PK台图片"}},[r("el-radio-group",{model:{value:e.form.pkImg.type,callback:function(t){e.$set(e.form.pkImg,"type",t)},expression:"form.pkImg.type"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),0==e.form.pkImg.type?r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:a("05d8"),fit:"contain","prediv-src-list":[a("05d8")]}})],1):r("div",{staticClass:"img-select-item"},[r("div",{staticStyle:{width:"100px",height:"100px",border:"1px solid #ccc"}},[e.form.pkImg.imgurl?r("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.form.pkImg.imgurl,fit:"contain","prediv-src-list":[e.form.pkImg.imgurl]}}):e._e()],1),r("div",{staticClass:"upload"},[r("div",[r("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.$refs.upPk.click()}}},[e._v("上传图片")])],1),r("span",{staticStyle:{color:"#999","font-size":"13px","line-height":"18px"}},[e._v("只能上传图片格式,建议尺寸254*76px")]),r("input",{ref:"upPk",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:e.upPkImgUrl}})])])],1),r("el-form-item",{attrs:{label:"表头背景颜色",props:"headerBackgroundType"}},[r("el-radio-group",{on:{change:e.selectHeaderBg},model:{value:e.form.header.backgroundType,callback:function(t){e.$set(e.form.header,"backgroundType",t)},expression:"form.header.backgroundType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义单色")]),r("el-radio",{attrs:{label:2}},[e._v("自定义渐变色")])],1),1==e.form.header.backgroundType?r("div",{staticClass:"color-select-item"},[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.header.bgColor,callback:function(t){e.$set(e.form.header,"bgColor",t)},expression:"form.header.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.header.bgAlpha,callback:function(t){e.$set(e.form.header,"bgAlpha",t)},expression:"form.header.bgAlpha"}}),e._v(" % ")],1):e._e(),2==e.form.header.backgroundType?r("div",[r("div",{staticClass:"color-select-item"},[e._v(" 开始色值:"),r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.header.bgColor,callback:function(t){e.$set(e.form.header,"bgColor",t)},expression:"form.header.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.header.bgAlpha,callback:function(t){e.$set(e.form.header,"bgAlpha",t)},expression:"form.header.bgAlpha"}}),e._v(" % ")],1),r("div",{staticClass:"color-select-item"},[e._v(" 结束色值:"),r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.header.bgColor2,callback:function(t){e.$set(e.form.header,"bgColor2",t)},expression:"form.header.bgColor2"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.header.bgAlpha2,callback:function(t){e.$set(e.form.header,"bgAlpha2",t)},expression:"form.header.bgAlpha2"}}),e._v(" % ")],1)]):e._e()],1),r("el-form-item",{attrs:{label:"表头字体颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectHeader},model:{value:e.form.header.type,callback:function(t){e.$set(e.form.header,"type",t)},expression:"form.header.type"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.header.type?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.header.color,callback:function(t){e.$set(e.form.header,"color",t)},expression:"form.header.color"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.header.alpha,callback:function(t){e.$set(e.form.header,"alpha",t)},expression:"form.header.alpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"选中字体颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectSel},model:{value:e.form.pull.selType,callback:function(t){e.$set(e.form.pull,"selType",t)},expression:"form.pull.selType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.pull.selType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.pull.selColor,callback:function(t){e.$set(e.form.pull,"selColor",t)},expression:"form.pull.selColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.pull.selAlpha,callback:function(t){e.$set(e.form.pull,"selAlpha",t)},expression:"form.pull.selAlpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"下拉框背景颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectPull},model:{value:e.form.pull.bgType,callback:function(t){e.$set(e.form.pull,"bgType",t)},expression:"form.pull.bgType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.pull.bgType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.pull.bgColor,callback:function(t){e.$set(e.form.pull,"bgColor",t)},expression:"form.pull.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.pull.bgAlpha,callback:function(t){e.$set(e.form.pull,"bgAlpha",t)},expression:"form.pull.bgAlpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"分类背景颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectCategroy},model:{value:e.form.category.bgType,callback:function(t){e.$set(e.form.category,"bgType",t)},expression:"form.category.bgType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.category.bgType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.category.bgColor,callback:function(t){e.$set(e.form.category,"bgColor",t)},expression:"form.category.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.category.bgAlpha,callback:function(t){e.$set(e.form.category,"bgAlpha",t)},expression:"form.category.bgAlpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"搜索框背景颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectSearch},model:{value:e.form.search.bgType,callback:function(t){e.$set(e.form.search,"bgType",t)},expression:"form.search.bgType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.search.bgType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.search.bgColor,callback:function(t){e.$set(e.form.search,"bgColor",t)},expression:"form.search.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.search.bgAlpha,callback:function(t){e.$set(e.form.search,"bgAlpha",t)},expression:"form.search.bgAlpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"列表背景颜色"}},[r("div",{staticClass:"color-select-item"},[r("el-radio-group",{on:{change:e.selectList},model:{value:e.form.list.bgType,callback:function(t){e.$set(e.form.list,"bgType",t)},expression:"form.list.bgType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.list.bgType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.list.bgColor,callback:function(t){e.$set(e.form.list,"bgColor",t)},expression:"form.list.bgColor"}}),e._v(" 不透明度:"),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.list.bgAlpha,callback:function(t){e.$set(e.form.list,"bgAlpha",t)},expression:"form.list.bgAlpha"}}),e._v(" % ")]:e._e()],2)]),r("el-form-item",{attrs:{label:"品类列表字体"}},[r("div",{staticClass:"color-select-item"},[e._v(" 颜色 "),r("el-radio-group",{staticStyle:{"margin-left":"15px"},on:{change:e.selectListName},model:{value:e.form.listname.selType,callback:function(t){e.$set(e.form.listname,"selType",t)},expression:"form.listname.selType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.listname.selType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.listname.selColor,callback:function(t){e.$set(e.form.listname,"selColor",t)},expression:"form.listname.selColor"}}),e._v(" 不透明度 "),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.listname.selAlpha,callback:function(t){e.$set(e.form.listname,"selAlpha",t)},expression:"form.listname.selAlpha"}}),e._v(" % ")]:e._e()],2),r("div",[r("div",{staticClass:"color-select-item",staticStyle:{"margin-top":"10px"}},[e._v(" 大小"),r("el-input",{staticStyle:{width:"80px","margin-left":"15px"},attrs:{type:"number"},model:{value:e.form.listname.fontSize,callback:function(t){e.$set(e.form.listname,"fontSize",t)},expression:"form.listname.fontSize"}}),e._v(" px (默认16px) ")],1)])]),r("el-form-item",{attrs:{label:"商品列表字体"}},[r("div",{staticClass:"color-select-item"},[e._v(" 颜色 "),r("el-radio-group",{staticStyle:{"margin-left":"15px"},on:{change:e.selectproName},model:{value:e.form.listproname.selType,callback:function(t){e.$set(e.form.listproname,"selType",t)},expression:"form.listproname.selType"}},[r("el-radio",{attrs:{label:0}},[e._v("默认")]),r("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1==e.form.listproname.selType?[r("el-color-picker",{staticStyle:{"margin-right":"10px","margin-left":"10px"},attrs:{size:"mini"},model:{value:e.form.listproname.selColor,callback:function(t){e.$set(e.form.listproname,"selColor",t)},expression:"form.listproname.selColor"}}),e._v(" 不透明度 "),r("el-input",{staticStyle:{width:"100px"},attrs:{type:"number"},model:{value:e.form.listproname.selAlpha,callback:function(t){e.$set(e.form.listproname,"selAlpha",t)},expression:"form.listproname.selAlpha"}}),e._v(" % ")]:e._e()],2),r("div",[r("div",{staticClass:"color-select-item",staticStyle:{"margin-top":"10px"}},[e._v(" 大小"),r("el-input",{staticStyle:{width:"80px","margin-left":"15px"},attrs:{type:"number"},model:{value:e.form.listproname.fontSize,callback:function(t){e.$set(e.form.listproname,"fontSize",t)},expression:"form.listproname.fontSize"}}),e._v(" px (默认16px) ")],1)])])],1),r("div",{staticClass:"pz_footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)],1)])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"productPage_pk_shop_sp1_img"},[r("img",{attrs:{src:a("5efb"),mode:"widthFix"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"productPage_pk_z"},[r("img",{attrs:{src:a("ac20"),mode:"widthFix"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"productPage_pk_shop_sp1_img"},[r("img",{attrs:{src:a("557f"),mode:"widthFix"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"icon"},[r("img",{attrs:{src:a("ef2d"),mode:"widthFix"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[e._v("主播端页面配置 "),a("span",{staticClass:"version-tag"},[e._v("V2")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"version-switch__icon"},[a("i",{staticClass:"el-icon-mobile-phone"})])}],s=(a("d3b7"),a("ac1f"),a("841c"),a("b680"),a("25f0"),a("b0c0"),a("99af"),a("5417")),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-upload",{style:e.customStyle,attrs:{action:e.uploadImgUrl,data:e.uploadData,"show-file-list":!1,"on-success":e.handleAvatarSuccess,"on-error":e.uploadError,"before-upload":e.beforeAvatarUpload}},[e.file.imgurlfull?a("img",{staticClass:"avatar",style:e.customStyle,attrs:{src:e.file.imgurlfull}}):a("div",{style:e.customStyle},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),a("div",{staticClass:"tips-style"},[e._v(e._s(e.tipsLabel))])])])],1)},o=[],l={props:{file:{type:Object,default:function(){}},uploadData:Object,tipsLabel:"",customStyle:{type:String,default:"width: 90px; height: 90px;"}},data:function(){return{uploadImgUrl:"/web_interface_v2/public/upload",imgurlfull:""}},methods:{handleAvatarSuccess:function(e,t){if(200==e.code){var a=e.data;this.file.imgurl=a.imgaddr,this.file.imgurlfull=a.url,console.log(this.file),this.$message.success("上传成功"),this.$emit("uploadSuccess",{imgurl:a.imgaddr,imgurlfull:a.url})}else this.$message.error("上传失败");this.$emit("uploadEnd")},uploadError:function(){this.$message.error("上传失败"),this.$emit("endUpload")},beforeAvatarUpload:function(e){return this.$emit("uploadBegin"),!0}}},c=l,u=(a("fac0"),a("2877")),d=Object(u["a"])(c,n,o,!1,null,"a16be09a",null),m=d.exports,p=a("503a"),f={methods:{selectBackground:function(e){0==e&&(this.form.main.bgColor="#f7f7f7",this.form.main.alpha="100")},upbgImgUrl:function(e){var t=this,a=new FormData;this.isUploading=!0,a.append("file",e.target.files[0]),a.append("folder","web_param"),Object(p["upload"])(a).then((function(e){t.form.bgImg.img=e.imgaddr,t.form.bgImg.imgurl=e.url})).catch((function(e){t.$message.error(e)})).finally((function(){return t.isUploading=!1})),this.$refs.upBackground.value=null},upTopImgUrl:function(e){var t=this,a=new FormData;this.isUploading=!0,a.append("file",e.target.files[0]),a.append("folder","web_param"),Object(p["upload"])(a).then((function(e){t.form.topImg.img=e.imgaddr,t.form.topImg.imgurl=e.url})).catch((function(e){t.$message.error(e)})).finally((function(){return t.isUploading=!1})),this.$refs.upTop.value=null},upPkImgUrl:function(e){var t=this,a=new FormData;this.isUploading=!0,a.append("file",e.target.files[0]),a.append("folder","web_param"),Object(p["upload"])(a).then((function(e){t.form.pkImg.img=e.imgaddr,t.form.pkImg.imgurl=e.url})).catch((function(e){t.$message.error(e)})).finally((function(){return t.isUploading=!1})),this.$refs.upPk.value=null},selectHeaderBg:function(e){0==e?(this.form.header.bgColor="#0D1E41",this.form.header.bgAlpha="100"):2==e&&(this.form.header.bgColor2="#0D1E41",this.form.header.bgAlpha2="100")},selectHeader:function(e){0==e&&(this.form.header.color="#ffffff",this.form.header.alpha="100")},selectSel:function(e){0==e&&(this.form.pull.selColor="#FFDC6C",this.form.pull.selAlpha="100")},selectPull:function(e){0==e&&(this.form.pull.bgColor="#6C82AA",this.form.pull.bgAlpha="100")},selectListName:function(e){0==e&&(this.form.listname.selColor="#ffffff",this.form.listname.selAlpha="100")},selectproName:function(e){0==e&&(this.form.listproname.selColor="#ffffff",this.form.listproname.selAlpha="100")},selectCategroy:function(e){0==e&&(this.form.category.bgColor="#899FC5",this.form.category.bgAlpha="100")},selectSearch:function(e){0==e&&(this.form.search.bgColor="#0D1E41",this.form.search.bgAlpha="70")},selectList:function(e){0==e&&(this.form.list.bgColor="#000000",this.form.list.bgAlpha="0")},mouseenterHead:function(e){e.target.style.background="rgba(255,255,255,0.16)"},mouseleaveHead:function(e){e.target.style.background=""},mouseenter:function(e){var t=+(2.55*this.form.header.selAlpha).toFixed(0);e.target.style.ba=this.form.header.selColor+t.toString(16)},mouseleave:function(e){e.target.style.color=""},clickBrand:function(e,t){e.brandName=t,e.ppShow=!1},clickXH:function(e,t){e.name=t,e.ppShow=!1},getDesc:function(){var e=this;Object(s["getByLoginNew"])().then((function(t){if(t&&t.newParam){var a=JSON.parse(t.newParam);for(var r in e.form)a[r]&&(e.form[r]=a[r])}e.anchorPageVersion=t&&t.anchorPageVersion||"v2",e.useThisVersion="v2"===e.anchorPageVersion}))},onUseThisVersion:function(){var e=this;this.useThisVersion||this.versionSwitchLoading||(this.versionSwitchLoading=!0,Object(s["updateAnchorPageVersion"])({anchorPageVersion:"v2"}).then((function(){e.anchorPageVersion="v2",e.useThisVersion=!0,e.$message.success("已启用 V2 配置")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.versionSwitchLoading=!1})))},submit:function(){var e=this;this.form.rangeSize<750?this.$message.warning({message:"尺寸必须大于750"}):this.form.rangeSize>1200?this.$message.warning({message:"尺寸必须小于1200"}):Object(s["renewUpdate"])({newParam:JSON.stringify(this.form),anchorPageVersion:this.anchorPageVersion}).then((function(t){e.$message.success({message:"保存成功"})}))}},components:{UploadAvatarImage:m},data:function(){return{isUploading:!1,useThisVersion:!1,versionSwitchLoading:!1,anchorPageVersion:"v2",type:"0",shopList:[{categoryImgurl:"",categoryName:"洗衣机",brandName:"海尔",ppShow:!1,ppData:["CLOMO","海尔","格兰仕","三星"],name:"EG100MATE35S",xhShow:!1,xhData:["EG100MATE35S","DG100MATE35S","FG100MATE35S"],zdPrice:"1899",price:"1899"},{categoryImgurl:"",categoryName:"洗衣机",brandName:"海尔",ppShow:!1,ppData:["CLOMO","海尔","格兰仕","三星"],name:"EG100MATE35S",xhShow:!1,xhData:["EG100MATE35S","DG100MATE35S","FG100MATE35S"],zdPrice:"1899",price:"1899"},{categoryImgurl:"",categoryName:"洗衣机",brandName:"海尔",ppShow:!1,ppData:["CLOMO","海尔","格兰仕","三星"],name:"EG100MATE35S",xhShow:!1,xhData:["EG100MATE35S","DG100MATE35S","FG100MATE35S"],zdPrice:"1899",price:"1899"}],searchData:[{name:"冰箱 海尔EG100MATE35S",price:"3"},{name:"冰箱 海尔EG100MATE35S",price:"3"},{name:"冰箱 海尔EG100MATE35S",price:"3"},{name:"冰箱 海尔EG100MATE35S",price:"3"},{name:"冰箱 海尔EG100MATE35S",price:"3"}],category:[{img:a("670c"),name:"冰箱"},{img:a("d9a0"),name:"洗衣机"},{img:a("9bd6"),name:"空调"},{img:a("a815"),name:"电视"},{img:a("73ae"),name:"热水器"},{img:a("f89e"),name:"烟灶"},{img:a("eed8"),name:"蒸烤箱"},{img:a("2fa5"),name:"洗碗机"},{img:a("d0a9"),name:"净水器"},{img:a("b5c6"),name:"其他"}],productList:[{img:a("97ee"),name:"卡萨帝"},{img:a("7bc0"),name:"大海豹"},{img:a("192d"),name:"小白桃"},{img:a("6527"),name:"白珍珠"},{img:a("afbb"),name:"东芝58"},{img:a("1de9"),name:"东芝59"},{img:a("e103"),name:"松下50"},{img:a("2af7"),name:"美的55"},{img:a("beaf"),name:"海尔57"},{img:a("ace3"),name:"美的46"},{img:a("97ee"),name:"卡萨帝"},{img:a("7bc0"),name:"大海豹"},{img:a("192d"),name:"小白桃"},{img:a("6527"),name:"白珍珠"},{img:a("afbb"),name:"东芝58"},{img:a("1de9"),name:"东芝59"},{img:a("e103"),name:"松下50"},{img:a("2af7"),name:"美的55"},{img:a("beaf"),name:"海尔57"},{img:a("ace3"),name:"美的46"},{img:a("97ee"),name:"卡萨帝"},{img:a("7bc0"),name:"大海豹"},{img:a("192d"),name:"小白桃"},{img:a("6527"),name:"白珍珠"},{img:a("afbb"),name:"东芝58"},{img:a("1de9"),name:"东芝59"},{img:a("e103"),name:"松下50"},{img:a("2af7"),name:"美的55"},{img:a("beaf"),name:"海尔57"},{img:a("ace3"),name:"美的46"}],action:"/web_interface_v2/public/upload",defaultBanner:a("d4cd"),leftShop:{name:"三星323洗烘",zdPrice:"3999",price:"3499",param1:[{name:"品牌",val:"三星"},{name:"型号",val:"G100818bg"},{name:"使用方式",val:"全自动"},{name:"洗涤公斤量",val:"10kg"},{name:"用水量",val:"65L"},{name:"最高转速",val:"1200转/分钟"},{name:"深度",val:"600mm"},{name:"高度",val:"845mm"},{name:"保修期",val:"36个月"}],param2:[{name:"紫外线杀菌",val:"是"},{name:"排水方式",val:"上排水"}]},rightShop:{name:"格兰仕434洗烘",zdPrice:"2999",price:"2499",param1:[{name:"品牌",val:"格兰仕"},{name:"型号",val:"G100818bg"},{name:"使用方式",val:"全自动"},{name:"洗涤公斤量",val:"10kg"},{name:"用水量",val:"65L"},{name:"最高转速",val:"1200转/分钟"},{name:"深度",val:"600mm"},{name:"高度",val:"845mm"},{name:"保修期",val:"36个月"}],param2:[{name:"显示屏类型",val:"触摸屏"},{name:"附加功能",val:"自动断电"}]},form:{rangeSize:"750",main:{bgType:0,bgColor:"#f7f7f7",alpha:"100"},bgImg:{isShow:0,type:0,img:"",imgurl:""},topImg:{type:0,img:"",imgurl:""},pkImg:{type:0,img:"",imgurl:""},header:{backgroundType:0,bgColor:"#0D1E41",bgAlpha:"100",bgColor2:"#0D1E41",bgAlpha2:"100",type:0,color:"#ffffff",alpha:"100"},pull:{bgType:0,bgColor:"#6C82AA",bgAlpha:"100",selType:0,selColor:"#FFDC6C",selAlpha:"100"},selType:0,listname:{fontType:0,fontSize:"16",selType:"0",selColor:"#ffffff",selAlpha:"100"},listproname:{fontType:0,fontSize:"16",selType:0,selColor:"#ffffff",selAlpha:"100"},search:{bgType:0,bgColor:"#0D1E41",bgAlpha:"70"},category:{bgType:0,bgColor:"#899FC5",bgAlpha:"100"},list:{bgType:0,bgColor:"#000000",bgAlpha:"0"}}}},computed:{contentStyle:function(){var e=+(2.55*this.form.main.alpha).toFixed(0),t=this.form.main.bgColor+e.toString(16),r={backgroundColor:t};if(this.form.bgImg.isShow)if(this.form.bgImg.type)r.backgroundImage="url(".concat(this.form.bgImg.imgurl,")");else{var i=a("7519");r.backgroundImage="url(".concat(i,")")}return r},tableHeaderStyle:function(){var e={color:this.form.header.color};if(2==this.form.header.backgroundType){var t=+(2.55*this.form.header.bgAlpha).toFixed(0),a=+(2.55*this.form.header.bgAlpha2).toFixed(0),r=this.form.header.bgColor+(0==t?"00":t.toString(16)),i=this.form.header.bgColor2+(0==a?"00":a.toString(16));e.background="linear-gradient(180deg, ".concat(r," 0%, ").concat(i," 100%)")}else{var s=+(2.55*this.form.header.alpha).toFixed(0);e.background=this.form.header.bgColor+(0==s?"00":s.toString(16))}return e},tableBodyStyle:function(){var e=+(2.55*this.form.list.bgAlpha).toFixed(0),t=this.form.list.bgColor+(0==e?"00":e.toString(16));return{background:t}},pullStyle:function(){var e=+(2.55*this.form.pull.bgAlpha).toFixed(0),t=this.form.pull.bgColor+(0==e?"00":e.toString(16));return{background:t}},selStyle:function(){var e={},t=+(2.55*this.form.pull.selAlpha).toFixed(0);return e.color=this.form.pull.selColor+(0==t?"00":t.toString(16)),e},selListNameStyle:function(){var e=+(2.55*this.form.listname.selAlpha).toFixed(0),t=this.form.listname.selColor+(0==e?"00":e.toString(16)),a={color:t,"font-size":(this.form.listname.fontSize||"16")+"px"};return a},selProNameStyle:function(){var e=+(2.55*this.form.listproname.selAlpha).toFixed(0),t=this.form.listproname.selColor+(0==e?"00":e.toString(16)),a={color:t,"font-size":(this.form.listproname.fontSize||"16")+"px"};return a},searchStyle:function(){var e=+(2.55*this.form.search.bgAlpha).toFixed(0),t=this.form.search.bgColor+(0==e?"00":e.toString(16));return{background:t}},categoryStyle:function(){var e=+(2.55*this.form.category.bgAlpha).toFixed(0),t=this.form.category.bgColor+(0==e?"00":e.toString(16));return{background:t}}},created:function(){this.getDesc()}},h=f,g=(a("c51f"),Object(u["a"])(h,r,i,!1,null,"1c47a8b2",null));t["default"]=g.exports},f5d1:function(e,t,a){},f89e:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABq1JREFUaEPtWU1oG0cYndXqX46MhRWEkX3oJWAbkxACPaTQXGrT0J4S9wfHh2II+GCaEuixOrSn0ENCAiWmuZSCE4NRCSWQHHqwaQzGBvtg44OxC4kskyiy5ciSVytveVM9MdoqSonAXYwFw6z2Z/Z73/vmfd/MauKI/bQjhkccA3I6o8cMHXmGzp496ykUCv9iuqenpy52+/nu7m55XzQaPbhw4YLZrMOaCrnr16+HdnZ2koZhvO9yuQSa2+2WzePxiEAgIPx+vwiFQrLH/2AwKI/RcA/urTz7eyqVGh4cHDSaAdUUoEQi0fLixYtHhmGc1zRN6LpeBeP1eoXP55MA0AgGPRsAoVWeTXq93s96enqcAQheBiA0GAkwYMEOiP9xDaBVQC6Xy5mAyI4KiEAQfgw7gCYgl8uVtCzLeYA4f2AsQosAAALH9QCBXU3TkqZpOg8Q54UdEMGoAO0hVywWnQMIcweeJiCqGoGArZaWFtkYfgCtqFxyb2/POYBUyVYVjoygrwcIDsCzQohkPp93BqBSqXSeKgePA5CdoXqAmIvw7MHBgTMAZTKZR8Vi8bwq2fA6FU6dO2SIrFHlyFAul3MGQ0isKiCGnBpuBHbixIkapQOjeBYM7e7uOhNQI4YICCIBhgAeDFmWlXQUQ6oosEpgHiI79UKOgBzLkCoKajJ9kygw5MCQo0LOLttq2WMXhnqiAECOkW2Iwn/JQ2QJPZcWTKwofRwHiJU2q22GnBp6rBQoCmpidVTpw8Rqr+X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DgIx5cvX5Z1IAQkm82Ws9nsuGEY346NjeXs9tdNPphXmUzmc7/ffyscDkceP34sXr16JcMOL6WcqjmCeYIhiLDb3NyUHq9sgsjJHIvFpA1MimSKDKFHkkTDGHBMOBwW/f39iJjtQqHwTTqd/iWRSNT9ONYwm167dm1gc3NzYmNjoxWDEwClFCDUY4JStndrEiFA0PtqyDGXAAybGoa4t6urK9fR0TFy8+bNyYYFQKOLAwMD/UKI30KhkMYcgXCxf1FQv/mo333UzE45hqGcJ2AB8wVhDSbYMEfs/3GPaZpDT548eXdAQgh3d3d3u2VZkkkazmMA40+9xutvchYM5o/H7AFEPcdjTdOsQCCQmZ+fL70zQ2+rHpx4valvrMeADsEDxwwdgpObesUxQ0257xAePmboEJzc1Cv+BlLv9XIFVM5cAAAAAElFTkSuQmCC"},f982:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("TableLayout",{attrs:{permissions:["system:role:query"]},scopedSlots:e._u([{key:"table-wrap",fn:function(){return[a("ul",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:create","system:role:delete"],expression:"['system:role:create', 'system:role:delete']"}],staticClass:"toolbar"},[a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:create"],expression:"['system:role:create']"}]},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.$refs.operaRoleWindow.open("新建角色")}}},[e._v("新建")])],1),a("li",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:delete"],expression:"['system:role:delete']"}]},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.deleteByIdInBatch}},[e._v("删除")])],1)]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking.search,expression:"isWorking.search"}],attrs:{data:e.tableData.list,"default-sort":{prop:"createTime",order:"descending"},stripe:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",fixed:"left",width:"55"}}),a("el-table-column",{attrs:{prop:"code",label:"角色编码",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"name",label:"角色名称",fixed:"left","min-width":"100px"}}),a("el-table-column",{attrs:{prop:"remark",label:"角色备注","min-width":"120px"}}),a("el-table-column",{attrs:{prop:"createUser",label:"创建人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.createUserInfo?"":a.createUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"140px",sortable:"custom","sort-by":"role.CREATE_TIME"}}),a("el-table-column",{attrs:{prop:"updateUser",label:"更新人","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(e._s(null==a.updateUserInfo?"":a.updateUserInfo.username))]}}])}),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间","min-width":"140px"}}),e.containPermissions(["system:role:update","system:role:createRolePermission","system:role:createRoleMenu","system:role:delete"])?a("el-table-column",{attrs:{label:"操作","min-width":"270",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return e.isAdmin||r.code!==e.adminCode&&-1===e.userInfo.roles.findIndex((function(e){return e===r.code}))?[a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:update"],expression:"['system:role:update']"}],attrs:{type:"text",icon:"el-icon-edit"},on:{click:function(t){return e.$refs.operaRoleWindow.open("编辑角色",r)}}},[e._v("编辑")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:createRolePermission"],expression:"['system:role:createRolePermission']"}],attrs:{type:"text"},on:{click:function(t){return e.$refs.permissionConfigWindow.open(r)}}},[e._v("配置权限")]),a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:createRoleMenu"],expression:"['system:role:createRoleMenu']"}],attrs:{type:"text",icon:"el-icon-menu"},on:{click:function(t){return e.$refs.menuConfigWindow.open(r)}}},[e._v("授权菜单")]),r.fixed?e._e():a("el-button",{directives:[{name:"permissions",rawName:"v-permissions",value:["system:role:delete"],expression:"['system:role:delete']"}],attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.deleteById(r)}}},[e._v("删除")])]:void 0}}],null,!0)}):e._e()],1),a("pagination",{attrs:{pagination:e.tableData.pagination},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})]},proxy:!0}])},[a("el-form",{ref:"searchForm",attrs:{slot:"search-form",model:e.searchForm,"label-width":"100px",inline:""},slot:"search-form"},[a("el-form-item",{attrs:{label:"角色编码",prop:"code"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入角色编码"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.code,callback:function(t){e.$set(e.searchForm,"code",t)},expression:"searchForm.code"}})],1),a("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入角色名称"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("section",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.search}},[e._v("搜索")]),a("el-button",{on:{click:e.reset}},[e._v("重置")])],1)],1),a("OperaRoleWindow",{ref:"operaRoleWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("PermissionConfigWindow",{ref:"permissionConfigWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}}),a("MenuConfigWindow",{ref:"menuConfigWindow",on:{success:function(t){return e.handlePageChange(e.tableData.pagination.pageIndex)}}})],1)},i=[],s=(a("ac1f"),a("841c"),a("d529")),n=a("aa1c"),o=a("0f1b"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:e.title,visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"角色编码",prop:"code",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入角色编码",maxlength:"50"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1),a("el-form-item",{attrs:{label:"角色名称",prop:"name",required:""}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{placeholder:"请输入角色名称",maxlength:"50"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"角色备注",prop:"remark"}},[a("el-input",{directives:[{name:"trim",rawName:"v-trim"}],attrs:{type:"textarea",placeholder:"请输入角色备注",rows:3,maxlength:"500"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)},c=[],u=a("ae62"),d=a("5543"),m={name:"OperaRoleWindow",extends:u["a"],components:{GlobalWindow:d["a"]},data:function(){return{originRoleCode:"",form:{id:null,code:"",name:"",remark:""},rules:{code:[{required:!0,message:"请输入角色编码"}],name:[{required:!0,message:"请输入角色名称"}]}}},methods:{open:function(e,t){var a=this;this.title=e,this.visible=!0,null!=t?this.$nextTick((function(){for(var e in a.originRoleCode=t.code,a.form)a.form[e]=t[e]})):this.$nextTick((function(){a.$refs.form.resetFields(),a.form[a.configData["field.id"]]=null}))},confirm:function(){var e=this;null!=this.form.id&&""!==this.form.id?this.originRoleCode!==this.form.code?this.$dialog.confirm("检测到您修改了角色编码,角色编码修改后前后端均可能需要调整代码,确认修改吗?","提示",{confirmButtonText:"确认修改",type:"warning"}).then((function(){e.__confirmEdit()})):this.__confirmEdit():this.__confirmCreate()}},created:function(){this.config({api:"/system/role"})}},p=m,f=a("2877"),h=Object(f["a"])(p,l,c,!1,null,null,null),g=h.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{visible:e.visible,"confirm-working":e.isWorking,width:"582px",title:"配置角色权限"},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[null!=e.role?a("p",{staticClass:"tip"},[e._v("为角色 "),a("em",[e._v(e._s(e.role.name))]),e._v(" 配置权限")]):e._e(),a("p",{staticClass:"tip-warn"},[a("i",{staticClass:"el-icon-warning"}),e._v("提醒:权限配置后需重新登录后生效")]),a("el-transfer",{ref:"permissionTransfer",attrs:{filterable:"","filter-method":e.filterPermissions,titles:["未授权权限","已授权权限"],props:{key:"id",label:"name"},data:e.permissions},model:{value:e.selectedIds,callback:function(t){e.selectedIds=t},expression:"selectedIds"}})],1)},v=[],y=a("b85c"),w=(a("c7cd"),a("d81d"),a("d3b7"),a("b0c0"),a("3528")),_=a("c1b4"),x={name:"PermissionConfigWindow",components:{GlobalWindow:d["a"]},data:function(){return{visible:!1,isWorking:!1,role:null,permissions:[],selectedIds:[]}},methods:{open:function(e){var t=this;this.$refs.permissionTransfer&&(this.$refs.permissionTransfer.clearQuery("left"),this.$refs.permissionTransfer.clearQuery("right")),Object(_["fetchAll"])().then((function(a){if(t.role=e,t.permissions=a,t.role.fixed){var r,i=Object(y["a"])(t.permissions);try{for(i.s();!(r=i.n()).done;){var s=r.value;s.fixed&&(s.disabled=!0)}}catch(n){i.e(n)}finally{i.f()}}t.selectedIds=e.permissions.map((function(e){return e.id})),t.visible=!0})).catch((function(e){t.$tip.apiFailed(e)}))},confirm:function(){var e=this;this.isWorking=!0,Object(w["createRolePermission"])({roleId:this.role.id,permissionIds:this.selectedIds}).then((function(){e.$tip.apiSuccess("权限配置成功,用户重新登录后生效"),e.visible=!1,e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))},filterPermissions:function(e,t){var a=e.toLowerCase();return t.code.toLowerCase().indexOf(a)>-1||t.name.toLowerCase().indexOf(a)>-1}}},k=x,C=(a("a2e8"),Object(f["a"])(k,b,v,!1,null,"7d01e40e",null)),I=C.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{staticClass:"menu-config-dialog",attrs:{visible:e.visible,"confirm-working":e.isWorking,width:"576px",title:"授权菜单"},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[null!=e.role?a("p",{staticClass:"tip"},[e._v("为角色 "),a("em",[e._v(e._s(e.role.name))]),e._v(" 配置可访问的菜单")]):e._e(),a("el-tree",{ref:"menuTree",attrs:{data:e.menus,"show-checkbox":"","node-key":"id","default-expand-all":"","default-checked-keys":e.selectedIds,"expand-on-click-node":!1,"check-on-click-node":!0,props:{children:"children",label:"name"}}})],1)},S=[],F=(a("4de4"),a("c740"),a("a6dc")),B={name:"MenuConfigWindow",components:{GlobalWindow:d["a"]},data:function(){return{visible:!1,isWorking:!1,role:null,menus:[],selectedIds:[]}},methods:{open:function(e){var t=this;Object(F["fetchTree"])({}).then((function(a){t.role=e,t.menus=a,t.__resetDisabled(t.menus,t.role),e.menus=e.menus.filter((function(t){return-1===e.menus.findIndex((function(e){return e.parentId===t.id}))})),t.selectedIds=e.menus.map((function(e){return e.id})),t.visible=!0})).catch((function(e){t.$tip.apiFailed(e)}))},confirm:function(){var e=this,t=this.$refs.menuTree.getCheckedNodes(!1,!0);this.isWorking=!0,Object(w["createRoleMenu"])({roleId:this.role.id,menuIds:t.map((function(e){return e.id}))}).then((function(){e.$tip.apiSuccess("菜单授权成功"),e.visible=!1,e.$emit("success")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))},__resetDisabled:function(e,t){if(null!=e&&0!==e.length){var a,r=Object(y["a"])(e);try{for(r.s();!(a=r.n()).done;){var i=a.value;i.disabled=!1,t.fixed&&i.fixed&&(i.disabled=!0),this.__resetDisabled(i.children,t)}}catch(s){r.e(s)}finally{r.f()}}}}},P=B,D=(a("757b"),Object(f["a"])(P,A,S,!1,null,"27a590a8",null)),T=D.exports,O={name:"SystemRole",extends:o["a"],components:{MenuConfigWindow:T,PermissionConfigWindow:I,OperaRoleWindow:g,TableLayout:n["a"],Pagination:s["a"]},data:function(){return{searchForm:{code:"",name:"",remark:""}}},created:function(){this.config({module:"角色",api:"/system/role",sorts:[{property:"role.CREATE_TIME",direction:"DESC"}]}),this.search()}},N=O,E=Object(f["a"])(N,r,i,!1,null,null,null);t["default"]=E.exports},f993:function(e,t,a){"use strict";a("c312")},fa7f:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"anchor-pz"},[a("div",{staticClass:"prediv"},[a("div",{staticClass:"option"},[a("div",{staticClass:"pz_head"},[e._v("页面预览")]),a("el-tabs",{model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[a("el-tab-pane",{attrs:{label:"主界面",name:"0"}}),a("el-tab-pane",{attrs:{label:"PK台",name:"1"}}),a("el-tab-pane",{attrs:{label:"商品列表",name:"2"}}),a("el-tab-pane",{attrs:{label:"搜索效果",name:"3"}})],1)],1),a("div",{staticClass:"prediv-content"},[a("div",{staticClass:"content h5-preview",style:e.contentStyle},[a("div",{staticClass:"pv_banner_wrap"},[a("img",{staticClass:"pv_banner_img",attrs:{src:e.topImgUrl,alt:""}}),e._m(0)]),"0"!==e.type?a("div",{staticClass:"pv_nav_back"},[e._v("‹")]):e._e(),a("div",{staticClass:"pv_sticky_header",style:{background:e.previewMainBg}},[a("div",{staticClass:"pv_submit_row"},[a("div",{staticClass:"pv_submit_btn submit_btn--icon",style:e.submitBtnStyle},[a("img",{staticClass:"pv_submit_icon_img",attrs:{src:e.submitBtnIconPreviewUrl,alt:""}}),a("span",{staticClass:"pv_submit_text"},[e._v("提交订单")])])]),a("div",{staticClass:"pv_home_top",class:{"pv_home_top--compact":"1"===e.type||"3"===e.type},style:e.homeTopSectionStyle},[e._m(1),e.previewFeaturedDisplay.length?a("div",{staticClass:"pv_featured"},[e._m(2),a("div",{staticClass:"pv_featured_products"},e._l(e.previewFeaturedDisplay,(function(t,r){return a("div",{key:r,staticClass:"pv_featured_item"},[a("div",{staticClass:"pv_featured_img_wrap"},[e.featuredPreviewUrl(t)?a("img",{staticClass:"pv_featured_img",attrs:{src:e.featuredPreviewUrl(t)}}):a("div",{staticClass:"pv_featured_img_ph"})]),a("div",{staticClass:"pv_featured_info"},[a("span",{staticClass:"pv_featured_name"},[e._v(e._s(t.title))]),a("div",{staticClass:"pv_featured_tag_row"},[t.tags&&t.tags[0]?a("span",{staticClass:"pv_tag pv_tag_dim"},[e._v(e._s(t.tags[0]))]):e._e(),t.tags&&t.tags[1]?a("span",{staticClass:"pv_tag",class:0===r?"pv_tag_blue":"pv_tag_green"},[e._v(e._s(t.tags[1]))]):e._e()])])])})),0)]):e._e(),"0"===e.type?a("div",{staticClass:"pv_table_head_wrap"},[e._m(3)]):e._e(),"2"===e.type?a("div",{staticClass:"pv_table_head_wrap pv_product_list_head"},[a("div",{staticClass:"pv_shop_table_head pv_product_shop_table_head"},[e._m(4),a("span",{staticClass:"pv_col pv_product_search_col"},[a("span",{staticClass:"pv_product_search_inline",style:e.searchStyle},[a("span",{staticClass:"pv_search_ico"},[e._v("🔍")]),a("span",{staticClass:"pv_search_divider"}),a("span",{staticClass:"pv_search_ph"},[e._v("搜索型号")])])]),e._m(5)])]):e._e()])]),"0"===e.type?[a("div",{staticClass:"pv_shop_table"},[a("div",{staticClass:"pv_shop_table_body"},[e._l(e.mockRows,(function(t,r){return a("div",{key:"r-"+r,staticClass:"pv_shop_row"},[a("div",{staticClass:"pv_shop_row_main"},[a("div",{staticClass:"pv_row_cat_cell"},[a("div",{staticClass:"pv_cat_icon_ph"}),a("span",{staticClass:"pv_cell_ellipsis"},[e._v(e._s(t.categoryName))])]),a("div",{staticClass:"pv_row_info_group"},[a("span",{staticClass:"pv_col pv_cell_ellipsis"},[e._v(e._s(t.name||""))]),a("span",{staticClass:"pv_col pv_cell_ellipsis"},[e._v(e._s(t.zdPrice||""))]),a("span",{staticClass:"pv_col pv_cell_ellipsis"},[e._v(e._s(t.price||""))])])])])})),a("div",{staticClass:"pv_shop_row pv_shop_row--expand"},[a("div",{staticClass:"pv_expand_cat",style:e.rowStyle},[a("span",{staticClass:"pv_expand_del"},[e._v("×")]),a("div",{staticClass:"pv_expand_cat_ph"}),a("span",[e._v("智能家居")])]),a("div",{staticClass:"pv_expand_panel",style:e.rowStyle},[e._m(6),a("div",{staticClass:"pv_sub_cat_grid"},e._l(e.subCats,(function(t){return a("div",{key:t,staticClass:"pv_sub_cat_item"},[a("div",{staticClass:"pv_sub_icon"}),a("span",[e._v(e._s(t))])])})),0),a("div",{staticClass:"pv_expand_search_wrap"},[a("div",{staticClass:"pv_expand_search",style:e.searchStyle},[a("span",{staticClass:"pv_search_ico"},[e._v("🔍")]),a("span",{staticClass:"pv_search_ph"},[e._v("搜索商品名称/型号")])])])])])],2)])]:e._e(),"1"===e.type?[a("div",{staticClass:"pv_pk_page",style:e.pkShowcaseTheme},[a("div",{staticClass:"pv_pk_cards"},[a("div",{staticClass:"pv_pk_side"},[a("div",{staticClass:"pv_pk_showcase"},[a("div",{staticClass:"pv_pk_showcase_frame"},[a("div",{staticClass:"pv_pk_visual"},[a("div",{staticClass:"pv_pk_img_card"},[a("img",{staticClass:"pv_pk_img",attrs:{src:e.pkPreviewProduct("left").img,alt:""}})]),a("div",{staticClass:"pv_pk_reflect"},[a("img",{attrs:{src:e.pkPreviewProduct("left").img,alt:""}})]),a("div",{staticClass:"pv_pk_ground"})])])]),a("div",{staticClass:"pv_pk_podium"}),a("div",{staticClass:"pv_pk_detail"},[a("div",{staticClass:"pv_pk_detail_head",style:e.tableHeaderStyle},[e._v(e._s(e.pkPreviewProduct("left").name))]),a("div",{staticClass:"pv_pk_detail_body"},[a("div",{staticClass:"pv_pk_price_cell"},[a("span",{staticClass:"pv_pk_price_label"},[e._v("期间价")]),a("span",{staticClass:"pv_pk_price_val"},[e._v("¥"+e._s(e.pkPreviewProduct("left").zdPrice))])]),a("div",{staticClass:"pv_pk_price_cell pv_pk_price_cell--hot"},[a("span",{staticClass:"pv_pk_price_label"},[e._v("指导价")]),a("span",{staticClass:"pv_pk_price_val"},[e._v("¥"+e._s(e.pkPreviewProduct("left").price))])])])])]),a("div",{staticClass:"pv_pk_vs",style:{color:e.pkVsPreviewColor}},[e._v("VS")]),a("div",{staticClass:"pv_pk_side"},[a("div",{staticClass:"pv_pk_showcase"},[a("div",{staticClass:"pv_pk_showcase_frame"},[a("div",{staticClass:"pv_pk_visual"},[a("div",{staticClass:"pv_pk_img_card"},[a("img",{staticClass:"pv_pk_img",attrs:{src:e.pkPreviewProduct("right").img,alt:""}})]),a("div",{staticClass:"pv_pk_reflect"},[a("img",{attrs:{src:e.pkPreviewProduct("right").img,alt:""}})]),a("div",{staticClass:"pv_pk_ground"})])])]),a("div",{staticClass:"pv_pk_podium"}),a("div",{staticClass:"pv_pk_detail"},[a("div",{staticClass:"pv_pk_detail_head",style:e.tableHeaderStyle},[e._v(e._s(e.pkPreviewProduct("right").name))]),a("div",{staticClass:"pv_pk_detail_body"},[a("div",{staticClass:"pv_pk_price_cell"},[a("span",{staticClass:"pv_pk_price_label"},[e._v("期间价")]),a("span",{staticClass:"pv_pk_price_val"},[e._v("¥"+e._s(e.pkPreviewProduct("right").zdPrice))])]),a("div",{staticClass:"pv_pk_price_cell pv_pk_price_cell--hot"},[a("span",{staticClass:"pv_pk_price_label"},[e._v("指导价")]),a("span",{staticClass:"pv_pk_price_val"},[e._v("¥"+e._s(e.pkPreviewProduct("right").price))])])])])])]),a("div",{staticClass:"pv_pk_params"},[a("div",{staticClass:"pv_pk_param_col"},[a("div",{staticClass:"pv_pk_param_head",style:e.tableHeaderStyle},[e._m(7)]),a("div",{staticClass:"pv_pk_param_pills"},e._l(e.pkPreviewParams,(function(t,r){return a("div",{key:"l-"+r,staticClass:"pv_pill"},[a("span",{staticClass:"pv_pill_label"},[e._v(e._s(t.name))]),a("span",{staticClass:"pv_pill_val"},[e._v(e._s(t.val))])])})),0)]),a("div",{staticClass:"pv_pk_vs pv_pk_vs--spacer"},[e._v("VS")]),a("div",{staticClass:"pv_pk_param_col"},[a("div",{staticClass:"pv_pk_param_head",style:e.tableHeaderStyle},[e._m(8)]),a("div",{staticClass:"pv_pk_param_pills"},e._l(e.pkPreviewParams,(function(t,r){return a("div",{key:"r-"+r,staticClass:"pv_pill"},[a("span",{staticClass:"pv_pill_label"},[e._v(e._s(t.name))]),a("span",{staticClass:"pv_pill_val"},[e._v(e._s(t.val))])])})),0)])])])]:e._e(),"2"===e.type?[a("div",{staticClass:"pv_product_page"},[a("div",{staticClass:"pv_product_grid"},e._l(e.productList,(function(t,r){return a("div",{key:r,staticClass:"pv_product_card",style:e.productCardStyle},[a("div",{staticClass:"pv_product_card_img"},[a("img",{attrs:{src:t.img,alt:""}})]),a("div",{staticClass:"pv_product_card_info"},[a("span",{staticClass:"pv_product_brand"},[e._v(e._s(t.brandName))]),a("span",{staticClass:"pv_product_model"},[e._v(e._s(t.name))]),a("span",{staticClass:"pv_product_price_label"},[e._v("指导价 ¥ "+e._s(t.price))])])])})),0)])]:e._e(),"3"===e.type?[a("div",{staticClass:"pv_pk_page pv_pk_page--ghost"},[a("div",{staticClass:"pv_pk_cards pv_pk_cards--ghost"},e._l(2,(function(t){return a("div",{key:t,staticClass:"pv_pk_side pv_pk_side--ghost"},[e._m(9,!0)])})),0)]),a("div",{staticClass:"pv_search_overlay"},[a("div",{staticClass:"pv_pk_search_panel"},[a("div",{staticClass:"pv_pk_search_head",style:e.themeStyle},[e._m(10),a("span",{staticClass:"pv_pk_search_close"},[e._v("×")])]),a("div",{staticClass:"pv_pk_search_body"},[e._m(11),a("div",{staticClass:"pv_pk_search_bar",style:e.searchStyle},[a("span",{staticClass:"pv_search_ico"},[e._v("🔍")]),a("span",{staticClass:"pv_search_divider"}),a("span",{staticClass:"pv_pk_search_input"},[e._v("搜索型号")])]),e._m(12),a("div",{staticClass:"pv_pk_search_list"},e._l(e.searchData,(function(t,r){return a("div",{key:r,staticClass:"pv_pk_search_item",class:{"pv_pk_search_item--active":0===r}},[a("span",{staticClass:"pv_pk_search_item_name"},[e._v(e._s(t.name))]),a("span",{staticClass:"pv_pk_search_item_price"},[e._v("¥"+e._s(t.price))])])})),0),a("div",{staticClass:"pv_pk_search_footer"},[e._v("共 "+e._s(e.searchData.length)+" 件商品")])])])])]:e._e()],2)])]),a("div",{staticClass:"form-panel"},[a("div",{staticClass:"pz_head pz_head--with-switch"},[e._m(13),a("span",{staticClass:"version-switch version-switch--v3",class:{"version-switch--active":e.useThisVersion}},[e._m(14),a("span",{staticClass:"version-switch__body"},[a("span",{staticClass:"version-switch__label"},[e._v("立即使用该版本")]),a("span",{staticClass:"version-switch__status"},[e._v(e._s(e.useThisVersion?"已启用 · 主播端当前版本":"点击按钮后主播端将切换至本版本"))])]),e.useThisVersion?a("span",{staticClass:"version-switch__badge"},[a("i",{staticClass:"el-icon-success"}),e._v(" 当前版本 ")]):a("el-button",{staticClass:"version-switch__btn version-switch__btn--v3",attrs:{type:"warning",size:"medium",loading:e.versionSwitchLoading},on:{click:e.onUseThisVersion}},[e._v(" 立即生效 ")])],1)]),a("el-form",{attrs:{model:e.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"内容宽度"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"750-1200"},model:{value:e.form.rangeSize,callback:function(t){e.$set(e.form,"rangeSize",t)},expression:"form.rangeSize"}}),a("span",{staticClass:"form-tip"},[e._v("px,支持 750-1200")])],1),a("el-form-item",{attrs:{label:"页面背景"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onPageBgModeChange},model:{value:e.form.pageBg.mode,callback:function(t){e.$set(e.form.pageBg,"mode",t)},expression:"form.pageBg.mode"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义颜色")]),a("el-radio",{attrs:{label:2}},[e._v("自定义图")])],1),0===e.form.pageBg.mode?[a("div",{staticClass:"img-default-preview page-bg-default-preview"},[a("span",{staticClass:"page-bg-swatch",style:{background:e.pageBgDefaultColor}}),a("span",{staticClass:"form-tip"},[e._v("默认背景色")])])]:e._e(),1===e.form.pageBg.mode?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.pageBg.bgColor,callback:function(t){e.$set(e.form.pageBg,"bgColor",t)},expression:"form.pageBg.bgColor"}}),a("span",{staticClass:"inline-label"},[e._v("不透明度")]),a("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"100"},model:{value:e.form.pageBg.alpha,callback:function(t){e.$set(e.form.pageBg,"alpha",t)},expression:"form.pageBg.alpha"}}),a("span",{staticClass:"inline-label"},[e._v("%")])]:e._e(),2===e.form.pageBg.mode?[e.form.pageBg.imgurl?e._e():a("div",{staticClass:"img-default-preview"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.defaultBgImg,fit:"contain"}})],1),a("div",{staticClass:"img-select-item"},[e.form.pageBg.imgurl?a("el-image",{staticClass:"thumb-block",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.form.pageBg.imgurl,fit:"contain"}}):e._e(),a("el-upload",{attrs:{action:e.action,headers:e.uploadHeaders,data:{folder:"web_param"},"show-file-list":!1,"on-success":function(t,a){return e.uploadSuccess(t,a,"pageBg")},"on-error":e.uploadError}},[a("el-button",{attrs:{size:"small",icon:"el-icon-plus"}},[e._v("上传")])],1),a("span",{staticClass:"form-tip"},[e._v("页面背景图,建议 1920×1080px")])],1)]:e._e()],2)]),a("el-form-item",{attrs:{label:"提交订单图标"}},[a("el-radio-group",{on:{change:e.onSubmitBtnIconTypeChange},model:{value:e.form.submitBtnIcon.type,callback:function(t){e.$set(e.form.submitBtnIcon,"type",t)},expression:"form.submitBtnIcon.type"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),0===e.form.submitBtnIcon.type?a("div",{staticClass:"img-default-preview"},[a("el-image",{staticStyle:{width:"48px",height:"48px"},attrs:{src:e.defaultSubmitBtnIcon,fit:"contain"}})],1):a("div",{staticClass:"img-select-item"},[e.form.submitBtnIcon.imgurl?a("el-image",{staticClass:"thumb-block",staticStyle:{width:"48px",height:"48px"},attrs:{src:e.form.submitBtnIcon.imgurl,fit:"contain"}}):e._e(),a("el-upload",{attrs:{action:e.action,headers:e.uploadHeaders,data:{folder:"web_param"},"show-file-list":!1,"on-success":function(t,a){return e.uploadSuccess(t,a,"submitBtnIcon")},"on-error":e.uploadError}},[a("el-button",{attrs:{size:"small",icon:"el-icon-plus"}},[e._v("上传")])],1),a("span",{staticClass:"form-tip"},[e._v("按钮图标模式,建议 48×48px PNG")])],1)],1),a("el-form-item",{attrs:{label:"提交订单背景色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onSubmitBtnBgTypeChange},model:{value:e.form.submitBtnBg.bgType,callback:function(t){e.$set(e.form.submitBtnBg,"bgType",t)},expression:"form.submitBtnBg.bgType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.submitBtnBg.bgType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.submitBtnBg.bgColor,callback:function(t){e.$set(e.form.submitBtnBg,"bgColor",t)},expression:"form.submitBtnBg.bgColor"}}),a("span",{staticClass:"inline-label"},[e._v("不透明度")]),a("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"100"},model:{value:e.form.submitBtnBg.bgAlpha,callback:function(t){e.$set(e.form.submitBtnBg,"bgAlpha",t)},expression:"form.submitBtnBg.bgAlpha"}}),a("span",{staticClass:"inline-label"},[e._v("%")])]:e._e()],2)]),a("el-form-item",{attrs:{label:"提交订单字体色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onSubmitBtnColorTypeChange},model:{value:e.form.submitBtnColor.colorType,callback:function(t){e.$set(e.form.submitBtnColor,"colorType",t)},expression:"form.submitBtnColor.colorType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.submitBtnColor.colorType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.submitBtnColor.color,callback:function(t){e.$set(e.form.submitBtnColor,"color",t)},expression:"form.submitBtnColor.color"}})]:e._e()],2)]),a("el-form-item",{attrs:{label:"顶部宣传图"}},[a("el-radio-group",{on:{change:e.onTopImgTypeChange},model:{value:e.form.topImg.type,callback:function(t){e.$set(e.form.topImg,"type",t)},expression:"form.topImg.type"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),0===e.form.topImg.type?a("div",{staticClass:"img-default-preview"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.defaultBanner,fit:"contain"}})],1):a("div",{staticClass:"img-select-item"},[e.form.topImg.imgurl?a("el-image",{staticClass:"thumb-block",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.form.topImg.imgurl,fit:"contain"}}):e._e(),a("el-upload",{attrs:{action:e.action,headers:e.uploadHeaders,data:{folder:"web_param"},"show-file-list":!1,"on-success":function(t,a){return e.uploadSuccess(t,a,"topImg")},"on-error":e.uploadError}},[a("el-button",{attrs:{size:"small",icon:"el-icon-plus"}},[e._v("上传")])],1),a("span",{staticClass:"form-tip"},[e._v("建议尺寸 700×300px")])],1)],1),a("el-form-item",{attrs:{label:"主题背景色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onThemeBgTypeChange},model:{value:e.form.theme.bgType,callback:function(t){e.$set(e.form.theme,"bgType",t)},expression:"form.theme.bgType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.theme.bgType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.theme.bgColor,callback:function(t){e.$set(e.form.theme,"bgColor",t)},expression:"form.theme.bgColor"}})]:e._e(),a("span",{staticClass:"form-tip"},[e._v("顶栏、表格表头、PK 标题区等")])],2)]),a("el-form-item",{attrs:{label:"主题字体色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onThemeColorTypeChange},model:{value:e.form.theme.colorType,callback:function(t){e.$set(e.form.theme,"colorType",t)},expression:"form.theme.colorType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.theme.colorType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.theme.color,callback:function(t){e.$set(e.form.theme,"color",t)},expression:"form.theme.color"}})]:e._e()],2)]),a("el-form-item",{attrs:{label:"行背景色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onTableRowBgTypeChange},model:{value:e.form.table.rowBgType,callback:function(t){e.$set(e.form.table,"rowBgType",t)},expression:"form.table.rowBgType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.table.rowBgType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.table.rowBg,callback:function(t){e.$set(e.form.table,"rowBg",t)},expression:"form.table.rowBg"}})]:e._e()],2)]),a("el-form-item",{attrs:{label:"搜索框背景"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onSearchBgTypeChange},model:{value:e.form.search.bgType,callback:function(t){e.$set(e.form.search,"bgType",t)},expression:"form.search.bgType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.search.bgType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.search.bgColor,callback:function(t){e.$set(e.form.search,"bgColor",t)},expression:"form.search.bgColor"}}),a("span",{staticClass:"inline-label"},[e._v("不透明度")]),a("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"100"},model:{value:e.form.search.bgAlpha,callback:function(t){e.$set(e.form.search,"bgAlpha",t)},expression:"form.search.bgAlpha"}}),a("span",{staticClass:"inline-label"},[e._v("%")])]:e._e()],2)]),a("el-form-item",{attrs:{label:"商品卡背景"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onProductListBgTypeChange},model:{value:e.form.productList.bgType,callback:function(t){e.$set(e.form.productList,"bgType",t)},expression:"form.productList.bgType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.productList.bgType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.productList.bgColor,callback:function(t){e.$set(e.form.productList,"bgColor",t)},expression:"form.productList.bgColor"}}),a("span",{staticClass:"inline-label"},[e._v("不透明度")]),a("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:"100"},model:{value:e.form.productList.bgAlpha,callback:function(t){e.$set(e.form.productList,"bgAlpha",t)},expression:"form.productList.bgAlpha"}}),a("span",{staticClass:"inline-label"},[e._v("%")])]:e._e()],2)]),a("el-form-item",{attrs:{label:"PK背景色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onPkBgColorTypeChange},model:{value:e.form.pk.bgColorType,callback:function(t){e.$set(e.form.pk,"bgColorType",t)},expression:"form.pk.bgColorType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.pk.bgColorType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.pk.bgColor,callback:function(t){e.$set(e.form.pk,"bgColor",t)},expression:"form.pk.bgColor"}})]:e._e(),a("span",{staticClass:"form-tip"},[e._v("控制 H5 PK 台展示框、按钮等主题色")])],2)]),a("el-form-item",{attrs:{label:"PK对比色"}},[a("div",{staticClass:"color-select-item"},[a("el-radio-group",{on:{change:e.onPkVsColorTypeChange},model:{value:e.form.pk.vsColorType,callback:function(t){e.$set(e.form.pk,"vsColorType",t)},expression:"form.pk.vsColorType"}},[a("el-radio",{attrs:{label:0}},[e._v("默认")]),a("el-radio",{attrs:{label:1}},[e._v("自定义")])],1),1===e.form.pk.vsColorType?[a("el-color-picker",{attrs:{size:"mini"},model:{value:e.form.pk.vsColor,callback:function(t){e.$set(e.form.pk,"vsColor",t)},expression:"form.pk.vsColor"}})]:e._e(),a("span",{staticClass:"form-tip"},[e._v("控制 H5 PK 台 VS 标识颜色")])],2)]),e._l(e.form.featured,(function(t,r){return a("div",{key:r,staticClass:"featured-form"},[a("div",{staticClass:"sub-title"},[e._v("精品优选 "+e._s(r+1))]),a("el-form-item",{attrs:{label:"选择商品"}},[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:function(t){return e.openFeaturedPicker(r)}}},[e._v("从企业商品库选择")]),t.goodsId?a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.clearFeaturedGoods(r)}}},[e._v("清除")]):e._e()],1),t.goodsId||t.title?a("div",{staticClass:"featured-selected"},[e.featuredPreviewUrl(t)?a("img",{staticClass:"featured-selected-img",attrs:{src:e.featuredPreviewUrl(t)}}):a("div",{staticClass:"featured-selected-img featured-selected-ph"}),a("div",{staticClass:"featured-selected-info"},[a("div",{staticClass:"featured-selected-name"},[e._v(e._s(t.title||"未选择商品"))]),t.goodsId?a("div",{staticClass:"featured-selected-id"},[e._v("商品ID:"+e._s(t.goodsId))]):e._e()])]):e._e(),a("el-form-item",{attrs:{label:"标签"}},[a("el-input",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"标签1"},model:{value:t.tags[0],callback:function(a){e.$set(t.tags,0,a)},expression:"feat.tags[0]"}}),a("el-input",{attrs:{placeholder:"标签2"},model:{value:t.tags[1],callback:function(a){e.$set(t.tags,1,a)},expression:"feat.tags[1]"}})],1)],1)})),a("FeaturedGoodsPicker",{ref:"featuredGoodsPicker",on:{select:e.onFeaturedGoodsSelect}}),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存配置")])],1)],2)],1)])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_user_bar"},[a("span",[e._v("主播端")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_order_bar"},[a("div",{staticClass:"pv_order_left"},[a("span",{staticClass:"pv_order_label"},[e._v("用户预算")]),a("span",{staticClass:"pv_order_currency"},[e._v("¥")]),a("span",{staticClass:"pv_budget_val"},[e._v("603")]),a("div",{staticClass:"pv_remain_inline"},[a("span",{staticClass:"pv_order_label"},[e._v("剩余经费")]),a("span",{staticClass:"pv_remain_val"},[e._v("¥ 303.00")])])]),a("div",{staticClass:"pv_order_right"},[a("div",{staticClass:"pv_order_no_row"},[a("span",{staticClass:"pv_order_label"},[e._v("订单编号")]),a("span",{staticClass:"pv_order_no"},[e._v("260602741600")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_featured_left"},[a("span",{staticClass:"pv_featured_title"},[e._v("精品优选")]),a("span",{staticClass:"pv_featured_sub"},[e._v("实测多维综合评定")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_shop_table_head"},[a("span",{staticClass:"pv_col pv_col_cat"},[e._v("品类 "),a("span",{staticClass:"pv_arrow"},[e._v("▼")])]),a("span",{staticClass:"pv_col"},[e._v("型号")]),a("span",{staticClass:"pv_col"},[e._v("旗舰价")]),a("span",{staticClass:"pv_col"},[e._v("指导价")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"pv_col"},[e._v("品牌 "),a("span",{staticClass:"pv_arrow"},[e._v("▼")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"pv_col pv_product_cat_col pv_product_cat_col--span"},[a("span",{staticClass:"pv_product_cat_inner"},[a("span",{staticClass:"pv_cat_line"},[e._v("智能门锁")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_expand_data_row"},[a("span",{staticClass:"pv_expand_model"},[e._v("九牧/ZS860 (净界Ultra)")]),a("span",{staticClass:"pv_expand_zd"},[e._v("4,899")]),a("span",{staticClass:"pv_expand_price"},[e._v("3,300")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_action_group"},[a("div",{staticClass:"pv_pk_change"},[a("span",[e._v("↻")]),a("span",[e._v("换个商品")])]),a("div",{staticClass:"pv_pk_confirm"},[a("span",[e._v("✓")]),a("span",[e._v("选用左侧")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_action_group"},[a("div",{staticClass:"pv_pk_change"},[a("span",[e._v("↻")]),a("span",[e._v("换个商品")])]),a("div",{staticClass:"pv_pk_confirm"},[a("span",[e._v("✓")]),a("span",[e._v("选用右侧")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_showcase pv_pk_showcase--ghost"},[a("div",{staticClass:"pv_pk_showcase_frame"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_search_head_left"},[a("span",{staticClass:"pv_pk_search_title"},[e._v("选择商品")]),a("span",{staticClass:"pv_pk_search_badge"},[e._v("PK 左侧")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_search_cat"},[a("span",{staticClass:"pv_pk_search_cat_label"},[e._v("品类")]),a("span",{staticClass:"pv_pk_search_cat_name"},[e._v("智能马桶")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pv_pk_search_table_head"},[a("span",[e._v("商品型号")]),a("span",[e._v("指导价")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",[e._v("主播端页面配置 "),a("span",{staticClass:"version-tag"},[e._v("V3")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("span",{staticClass:"version-switch__icon"},[a("i",{staticClass:"el-icon-mobile-phone"})])}],s=a("5530"),n=(a("ac1f"),a("a9e3"),a("5319"),a("4d90"),a("d3b7"),a("25f0"),a("fb6a"),a("d81d"),a("841c"),a("159b"),a("b64b"),a("99af"),a("b0c0"),a("5417")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("GlobalWindow",{attrs:{title:"从企业商品库选择",width:"70%",visible:e.visible,"confirm-working":e.isWorking},on:{"update:visible":function(t){e.visible=t},confirm:e.confirm}},[a("el-form",{staticClass:"search-form",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",{attrs:{label:"商品名称"}},[a("el-input",{attrs:{placeholder:"请输入商品名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name",t)},expression:"searchForm.name"}})],1),a("el-form-item",{attrs:{label:"类别"}},[a("el-select",{attrs:{clearable:"",placeholder:"全部"},model:{value:e.searchForm.categoryId,callback:function(t){e.$set(e.searchForm,"categoryId",t)},expression:"searchForm.categoryId"}},e._l(e.categoryList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"品牌"}},[a("el-select",{attrs:{clearable:"",placeholder:"全部"},model:{value:e.searchForm.brandId,callback:function(t){e.$set(e.searchForm,"brandId",t)},expression:"searchForm.brandId"}},e._l(e.brandList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("查询")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isWorking,expression:"isWorking"}],attrs:{data:e.tableData,stripe:"",border:"","highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{label:"",width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-radio",{attrs:{label:r.id},model:{value:e.selectedId,callback:function(t){e.selectedId=t},expression:"selectedId"}})]}}])}),a("el-table-column",{attrs:{prop:"id",label:"商品ID","min-width":"90"}}),a("el-table-column",{attrs:{prop:"name",label:"商品名称/型号","min-width":"220","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"goods-cell"},[r.imgurl?a("el-image",{staticClass:"goods-thumb",attrs:{src:r.prefixUrl+r.imgurl,fit:"cover"}}):e._e(),a("span",[e._v(e._s(r.name))])],1)]}}])}),a("el-table-column",{attrs:{prop:"brandName",label:"品牌","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"categoryName",label:"类别","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"指导价(元)","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(0===a.type?a.zdPrice:a.baseZdPrice)+" ")]}}])})],1),a("el-pagination",{staticClass:"pager",attrs:{"current-page":e.page,"page-sizes":[10,20,30],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)},l=[],c=a("5543"),u=a("c104"),d=a("503a"),m={name:"FeaturedGoodsPicker",components:{GlobalWindow:c["a"]},data:function(){return{visible:!1,isWorking:!1,searchForm:{name:"",categoryId:"",brandId:"",status:0},categoryList:[],brandList:[],tableData:[],page:1,pageSize:10,total:0,selectedId:"",selectedRow:null}},methods:{open:function(){this.visible=!0,this.selectedId="",this.selectedRow=null,this.page=1,this.searchForm.name="",this.searchForm.categoryId="",this.searchForm.brandId="",this.loadOptions(),this.getList()},loadOptions:function(){var e=this;this.categoryList.length||Object(d["category"])().then((function(t){e.categoryList=t||[]})),this.brandList.length||Object(d["brand"])().then((function(t){e.brandList=t||[]}))},search:function(){this.page=1,this.getList()},getList:function(){var e=this;this.isWorking=!0,Object(u["fetchList"])({page:this.page,capacity:this.pageSize,model:Object(s["a"])({},this.searchForm)}).then((function(t){e.tableData=t.records||[],e.total=t.total||0})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.isWorking=!1}))},handleSizeChange:function(e){this.pageSize=e,this.page=1,this.getList()},handlePageChange:function(e){this.page=e,this.getList()},handleCurrentChange:function(e){e&&(this.selectedId=e.id,this.selectedRow=e)},confirm:function(){this.selectedRow?(this.$emit("select",Object(s["a"])({},this.selectedRow)),this.visible=!1):this.$message.warning("请选择商品")}}},p=m,f=(a("fd6d"),a("2877")),h=Object(f["a"])(p,o,l,!1,null,"3d615986",null),g=h.exports,b=a("a78e"),v=a.n(b),y={pageBg:{mode:0,bgColor:"#E8DCC8",alpha:"100",img:"",imgurl:""},theme:{bgType:0,bgColor:"#4A3728",colorType:0,color:"#FFFFFF"},table:{rowBgType:0,rowBg:"#FFFFFF",hoverScale:1.05},search:{bgType:0,bgColor:"#FFFFFF",bgAlpha:"100"},productList:{bgType:0,bgColor:"#FFFFFF",bgAlpha:"100"},pk:{bgColorType:0,bgColor:"#FF8C42",vsColorType:0,vsColor:"#FF8C42"},submitBtnIcon:{type:0,img:"",imgurl:""},submitBtnBg:{bgType:0,bgColor:"#FFFFFF",bgAlpha:"100"},submitBtnColor:{colorType:0,color:"#4A3728"}},w={name:"PageConfigurationNew",components:{FeaturedGoodsPicker:g},data:function(){return{type:"0",action:"/web_interface_v2/public/upload",resourcePath:"",defaultBanner:a("d4cd"),defaultBgImg:a("7519"),defaultSubmitBtnIcon:a("365b"),pageBgDefaultColor:y.pageBg.bgColor,useThisVersion:!1,versionSwitchLoading:!1,anchorPageVersion:"v2",featuredPickerIndex:0,subCats:["智能门锁","马桶","浴霸","花洒","晾衣架"],mockRows:[{categoryName:"智能家居",name:"九牧/ZS860 (净界Ultra)",zdPrice:"4,899",price:"3,300"}],productList:[{img:a("97ee"),brandName:"希箭",name:"QX3 轻奢版",price:"2299"},{img:a("7bc0"),brandName:"小牧",name:"S23 Pro",price:"2999"},{img:a("192d"),brandName:"九牧",name:"ZS860",price:"4899"},{img:a("6527"),brandName:"瑞尔特",name:"M3 旗舰",price:"3299"},{img:a("afbb"),brandName:"恒洁",name:"Q9 智能",price:"3599"}],pkPreviewProducts:{left:{name:"R6S 知味2.0",zdPrice:"4500",price:"6299",img:a("97ee")},right:{name:"TR Pro 至尊版",zdPrice:"4500",price:"6299",img:a("7bc0")}},pkPreviewParams:[{name:"冲力等级",val:"5.0级"},{name:"加热方式",val:"即热式"}],searchData:[{name:"智能马桶 希箭QX3-轻奢版",price:"2299"},{name:"智能马桶 瑞尔特M3 旗舰",price:"3299"},{name:"智能马桶 九牧ZS860",price:"4899"}],form:{rangeSize:"750",pageBg:Object(s["a"])({},y.pageBg),topImg:{type:0,img:"",imgurl:""},submitBtnIcon:Object(s["a"])({},y.submitBtnIcon),submitBtnBg:Object(s["a"])({},y.submitBtnBg),submitBtnColor:Object(s["a"])({},y.submitBtnColor),pkImg:{type:0,img:"",imgurl:""},theme:Object(s["a"])({},y.theme),table:Object(s["a"])({},y.table),featured:[{goodsId:"",prefixUrl:"",imgurl:"",imgaddr:"",img:"",title:"",tags:["",""]},{goodsId:"",prefixUrl:"",imgurl:"",imgaddr:"",img:"",title:"",tags:["",""]}],search:Object(s["a"])({},y.search),productList:Object(s["a"])({},y.productList),pk:Object(s["a"])({},y.pk)}}},computed:{topImgUrl:function(){return 0===Number(this.form.topImg.type)?this.defaultBanner:this.form.topImg.imgurl||this.defaultBanner},submitBtnIconPreviewUrl:function(){var e=this.form.submitBtnIcon||{};return 1!==Number(e.type)?this.defaultSubmitBtnIcon:e.imgurl?/^https?:\/\//i.test(e.imgurl)?e.imgurl:this.resourcePath&&0!==e.imgurl.indexOf(this.resourcePath)?this.resourcePath+String(e.imgurl).replace(/^\//,""):e.imgurl:e.img&&this.resourcePath?this.resourcePath+String(e.img).replace(/^\//,""):this.defaultSubmitBtnIcon},submitBtnStyle:function(){var e=this.form.submitBtnBg||{},t=this.form.submitBtnColor||{},a={color:this.getEffectiveColor(t.colorType,t.color,y.submitBtnColor.color)};return 1!==Number(e.bgType)?a.background="rgba(255, 255, 255, 1)":a.background=this.withAlpha(e.bgColor||"#FFFFFF",e.bgAlpha),a},previewPageBgStyle:function(){var e=this.form.pageBg||{};return 2===Number(e.mode)&&e.imgurl?{backgroundImage:"url(".concat(e.imgurl,")"),backgroundSize:"cover",backgroundPosition:"center top"}:{}},contentStyle:function(){var e=this.form.pageBg||{},t=Number(e.mode)||0,a=Object(s["a"])({width:(this.form.rangeSize||750)+"px"},this.previewPageBgStyle);if(2===t)return a;var r=1===t&&e.bgColor||y.pageBg.bgColor,i=Math.round(2.55*Number(e.alpha||100)).toString(16).padStart(2,"0");return a.backgroundColor=r+i,a},previewMainBg:function(){var e=this.form.pageBg||{},t=Number(e.mode)||0,a=1===t&&e.bgColor||y.pageBg.bgColor,r=Math.round(2.55*Number(e.alpha||100)).toString(16).padStart(2,"0");return a+r},themeStyle:function(){var e=this.form.theme||{},t=this.getEffectiveColor(e.bgType,e.bgColor,y.theme.bgColor),a=this.getEffectiveColor(e.colorType,e.color,y.theme.color);return{background:t,color:a}},homeTopSectionStyle:function(){var e=this.themeStyle,t=e.background,a=e.color;return{background:t,color:a,"--home-top-bg":t}},pkShowcaseTheme:function(){this.form.pk;var e=this.themeStyle.background,t=this.getPkThemeColor(),a="#FFD88A";return{"--pk-show-primary":e,"--pk-show-accent":t,"--pk-show-gold":a,"--pk-show-primary-soft":this.hexToRgba(e,.22),"--pk-show-accent-soft":this.hexToRgba(t,.38),"--pk-show-gold-soft":this.hexToRgba(a,.5),"--pk-show-accent-faint":this.hexToRgba(t,.12)}},previewFeaturedDisplay:function(){var e=[{title:"智能门锁 X9 Pro",tags:["全自动","3D人脸"]},{title:"智能马桶 至尊版",tags:["即热式","虹吸冲水"]}],t=(this.form.featured||[]).slice(0,2);return t.map((function(t,a){return Object(s["a"])(Object(s["a"])(Object(s["a"])({},e[a]),t),{},{title:t.title||e[a].title,tags:t.tags&&t.tags.some((function(e){return e}))?t.tags:e[a].tags})}))},tableHeaderStyle:function(){return this.themeStyle},rowStyle:function(){var e=this.form.table||{};return{background:this.getEffectiveColor(e.rowBgType,e.rowBg,y.table.rowBg)}},searchStyle:function(){var e=this.form.search||{},t="rgba(255, 255, 255, 0.92)";return 1!==Number(e.bgType)?{background:t}:{background:this.withAlpha(e.bgColor||"#FFFFFF",e.bgAlpha)}},productListStyle:function(){var e=this.form.productList||{};return 1!==Number(e.bgType)?{background:y.productList.bgColor}:{background:this.withAlpha(e.bgColor||"#FFFFFF",e.bgAlpha)}},productCardStyle:function(){return this.productListStyle},pkVsPreviewColor:function(){var e=this.form.pk||{};return this.getEffectiveColor(e.vsColorType,e.vsColor,y.pk.vsColor)},uploadHeaders:function(){var e=v.a.get("eva-auth-token");return e?{"eva-auth-token":e}:{}}},created:function(){this.loadConfig()},methods:{loadConfig:function(){var e=this;Object(n["getByLoginAnchor"])().then((function(t){if(t&&t.resourcePath&&(e.resourcePath=t.resourcePath),e.anchorPageVersion=t&&t.anchorPageVersion||"v2",e.useThisVersion="v3"===e.anchorPageVersion,t&&t.anchorParam){var a=JSON.parse(t.anchorParam),r=!!a.pageBg,i=!!a.theme;Object.keys(e.form).forEach((function(t){a[t]&&(e.form[t]=a[t])})),r?(delete e.form.main,delete e.form.adImg):(a.main&&(e.form.main=a.main),a.adImg&&(e.form.adImg=a.adImg),e.migratePageBgFromLegacy()),i?(delete e.form.header,e.stripLegacyThemeFields()):(a.header&&(e.form.header=a.header),a.table&&(e.form.table=Object(s["a"])(Object(s["a"])({},e.form.table),a.table)),e.migrateThemeFromLegacy()),e.normalizeFeatured(),e.normalizeConfig()}}))},onUseThisVersion:function(){var e=this;this.useThisVersion||this.versionSwitchLoading||(this.versionSwitchLoading=!0,Object(n["updateAnchorPageVersion"])({anchorPageVersion:"v3"}).then((function(){e.anchorPageVersion="v3",e.useThisVersion=!0,e.$message.success("已启用 V3 配置")})).catch((function(t){e.$tip.apiFailed(t)})).finally((function(){e.versionSwitchLoading=!1})))},normalizeConfig:function(){var e=this,t=function(t,a){Object.keys(a).forEach((function(r){void 0!==t[r]&&null!==t[r]&&""!==t[r]||e.$set(t,r,a[r])}))};this.form.pageBg||this.$set(this.form,"pageBg",Object(s["a"])({},y.pageBg)),t(this.form.pageBg,y.pageBg),this.form.theme||this.$set(this.form,"theme",Object(s["a"])({},y.theme)),t(this.form.theme,y.theme),t(this.form.table,y.table),t(this.form.search,y.search),t(this.form.productList,y.productList),t(this.form.pk,y.pk),this.form.submitBtnIcon||this.$set(this.form,"submitBtnIcon",Object(s["a"])({},y.submitBtnIcon)),t(this.form.submitBtnIcon,y.submitBtnIcon),null==this.form.submitBtnIcon.type&&(this.form.submitBtnIcon.type=this.form.submitBtnIcon.imgurl?1:0),this.form.submitBtnBg||this.$set(this.form,"submitBtnBg",Object(s["a"])({},y.submitBtnBg)),t(this.form.submitBtnBg,y.submitBtnBg),this.form.submitBtnColor||this.$set(this.form,"submitBtnColor",Object(s["a"])({},y.submitBtnColor)),t(this.form.submitBtnColor,y.submitBtnColor),null==this.form.pk.bgColorType&&(this.form.pk.vsColor&&!this.form.pk.bgColor?(this.form.pk.bgColor=this.form.pk.vsColor,this.form.pk.bgColorType=null!=this.form.pk.vsColorType?this.form.pk.vsColorType:1):this.form.pk.bgColorType=y.pk.bgColorType),this.form.topImg&&null==this.form.topImg.type&&(this.form.topImg.type=this.form.topImg.imgurl?1:0),null==this.form.pageBg.mode&&(this.form.pageBg.mode=this.form.pageBg.imgurl?2:y.pageBg.mode)},migrateThemeFromLegacy:function(){var e=Object(s["a"])({},y.theme),t=this.form.table||{},a=this.form.header||{},r=Object(s["a"])({},e);1===Number(t.headerBgType)?(r.bgType=1,r.bgColor=t.headerBg||e.bgColor):1===Number(a.bgType)&&(r.bgType=1,r.bgColor=a.bgColor||e.bgColor),1===Number(t.headerColorType)?(r.colorType=1,r.color=t.headerColor||e.color):1===Number(a.colorType)&&(r.colorType=1,r.color=a.color||e.color),this.form.theme=r,delete this.form.header,this.stripLegacyThemeFields()},stripLegacyThemeFields:function(){this.form.table&&(delete this.form.table.headerBgType,delete this.form.table.headerBg,delete this.form.table.headerColorType,delete this.form.table.headerColor)},migratePageBgFromLegacy:function(){var e=this.form.main||{},t=this.form.adImg||{},a=Object(s["a"])({},y.pageBg);1===Number(t.type)&&(t.imgurl||t.img)?this.form.pageBg=Object(s["a"])(Object(s["a"])({},a),{},{mode:2,img:t.img||"",imgurl:t.imgurl||""}):1===Number(e.bgType)?this.form.pageBg=Object(s["a"])(Object(s["a"])({},a),{},{mode:1,bgColor:e.bgColor||y.pageBg.bgColor,alpha:null!=e.alpha?String(e.alpha):y.pageBg.alpha}):this.form.pageBg=Object(s["a"])({},a),delete this.form.main,delete this.form.adImg},getEffectiveColor:function(e,t,a){return 1===Number(e)&&t||a},withAlpha:function(e,t){var a=(e||"#FFFFFF").replace("#","");if(6!==a.length)return e||"#FFFFFF";var r=Math.round(2.55*Number(t||100)).toString(16).padStart(2,"0");return"#".concat(a).concat(r)},onPageBgModeChange:function(e){var t=Number(e);0===t?(this.form.pageBg.bgColor=y.pageBg.bgColor,this.form.pageBg.alpha=y.pageBg.alpha,this.form.pageBg.img="",this.form.pageBg.imgurl=""):1===t?(this.form.pageBg.img="",this.form.pageBg.imgurl=""):2===t&&(this.form.pageBg.bgColor=y.pageBg.bgColor,this.form.pageBg.alpha=y.pageBg.alpha)},onTopImgTypeChange:function(e){0===Number(e)&&(this.form.topImg.img="",this.form.topImg.imgurl="")},onSubmitBtnIconTypeChange:function(e){0===Number(e)&&(this.form.submitBtnIcon.img="",this.form.submitBtnIcon.imgurl="")},onSubmitBtnBgTypeChange:function(e){0===Number(e)&&(this.form.submitBtnBg.bgColor=y.submitBtnBg.bgColor,this.form.submitBtnBg.bgAlpha=y.submitBtnBg.bgAlpha)},onSubmitBtnColorTypeChange:function(e){0===Number(e)&&(this.form.submitBtnColor.color=y.submitBtnColor.color)},getPkThemeColor:function(){var e=this.form.pk||{};return this.getEffectiveColor(e.bgColorType,e.bgColor,y.pk.bgColor)},onPkBgColorTypeChange:function(e){0===Number(e)&&(this.form.pk.bgColor=y.pk.bgColor)},onThemeBgTypeChange:function(e){0===Number(e)&&(this.form.theme.bgColor=y.theme.bgColor)},onThemeColorTypeChange:function(e){0===Number(e)&&(this.form.theme.color=y.theme.color)},onTableRowBgTypeChange:function(e){0===Number(e)&&(this.form.table.rowBg=y.table.rowBg)},onSearchBgTypeChange:function(e){0===Number(e)&&(this.form.search.bgColor=y.search.bgColor,this.form.search.bgAlpha=y.search.bgAlpha)},onProductListBgTypeChange:function(e){0===Number(e)&&(this.form.productList.bgColor=y.productList.bgColor,this.form.productList.bgAlpha=y.productList.bgAlpha)},onPkVsColorTypeChange:function(e){0===Number(e)&&(this.form.pk.vsColor=y.pk.vsColor)},normalizeFeatured:function(){Array.isArray(this.form.featured)||(this.form.featured=[]);while(this.form.featured.length<2)this.form.featured.push({goodsId:"",prefixUrl:"",imgurl:"",imgaddr:"",img:"",title:"",tags:["",""]});this.form.featured=this.form.featured.slice(0,2).map((function(e){var t=Object(s["a"])({},e);Array.isArray(t.tags)||(t.tags=["",""]);while(t.tags.length<2)t.tags.push("");return t.tags=t.tags.slice(0,2),t}))},openFeaturedPicker:function(e){this.featuredPickerIndex=e,this.$refs.featuredGoodsPicker.open()},onFeaturedGoodsSelect:function(e){var t=this.form.featured[this.featuredPickerIndex];t&&e&&(t.goodsId=e.id,t.title=e.name||"",t.prefixUrl=e.prefixUrl||"",t.imgurl=e.imgurl||"",t.imgaddr="",t.img="")},clearFeaturedGoods:function(e){var t=this.form.featured[e];t&&(t.goodsId="",t.title="",t.prefixUrl="",t.imgurl="",t.imgaddr="",t.img="")},uploadSuccess:function(e,t,a){if(e)if((200===e.code||e.success)&&e.data){var r=e.data;this.form[a]?("pageBg"===a?(this.form.pageBg.mode=2,this.form.pageBg.img=r.imgaddr||"",this.form.pageBg.imgurl=r.url||(this.resourcePath||"")+(r.imgaddr||"")):(this.form[a].type=1,this.form[a].img=r.imgaddr||"",this.form[a].imgurl=r.url||(this.resourcePath||"")+(r.imgaddr||"")),this.$message.success("上传成功")):this.$message.error("配置字段不存在")}else this.$message.error(e&&e.message||"上传失败");else this.$message.error("上传失败")},uploadError:function(){this.$message.error("上传失败,请检查登录状态或网络")},featuredPreviewUrl:function(e){if(!e)return"";if(e.prefixUrl&&e.imgurl&&!/^https?:\/\//i.test(e.imgurl))return e.prefixUrl+e.imgurl;if(e.imgurl&&/^https?:\/\//i.test(e.imgurl)){var t=e.imgurl.indexOf("http",e.imgurl.indexOf("://")+3);return t>0?e.imgurl.substring(t):e.imgurl}return e.imgaddr?(this.resourcePath||"")+e.imgaddr:e.imgurl||""},pkPreviewProduct:function(e){return this.pkPreviewProducts[e]||this.pkPreviewProducts.left},hexToRgba:function(e,t){var a=String(e||"").replace("#","");if(6!==a.length)return"rgba(74, 55, 40, ".concat(t,")");var r=parseInt(a.slice(0,2),16),i=parseInt(a.slice(2,4),16),s=parseInt(a.slice(4,6),16);return"rgba(".concat(r,", ").concat(i,", ").concat(s,", ").concat(t,")")},submit:function(){var e=this;if(Number(this.form.rangeSize)<750||Number(this.form.rangeSize)>1200)this.$message.warning("尺寸范围750-1200");else{var t=Object(s["a"])({},this.form);delete t.main,delete t.adImg,delete t.header,this.stripLegacyThemeFields(),t.table&&(delete t.table.headerBgType,delete t.table.headerBg,delete t.table.headerColorType,delete t.table.headerColor),Object(n["renewAnchorUpdate"])({anchorParam:JSON.stringify(t),anchorPageVersion:this.anchorPageVersion}).then((function(){e.$message.success("保存成功")}))}}}},_=w,x=(a("d9f7"),Object(f["a"])(_,r,i,!1,null,"00c2e3dd",null));t["default"]=x.exports},fac0:function(e,t,a){"use strict";a("073d")},fd6d:function(e,t,a){"use strict";a("8a8a")}});
//# sourceMappingURL=app.09c95bc4.js.map