Commit b531209d authored by tiger.liu's avatar tiger.liu

更新运营后台

parent 581a3f2d
......@@ -6,4 +6,4 @@
window.SITE_CONFIG['baseURL-pay'] = '/api';
window.SITE_CONFIG['baseURL-upload'] = '/uApi';
window.SITE_CONFIG['baseURL-shop'] = '/shop';
})();</script><link href=./static/css/app.6c708a1227866ef786b93701a00fee27.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.574d519ee1307fc3bb63.js></script><script type=text/javascript src=./static/js/vendor.00b06e0a9e536c53eee2.js></script><script type=text/javascript src=./static/js/app.91a7659098472ffd3b62.js></script></body></html>
\ No newline at end of file
})();</script><link href=./static/css/app.6c708a1227866ef786b93701a00fee27.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.5a83c33ade053777a4d5.js></script><script type=text/javascript src=./static/js/vendor.00b06e0a9e536c53eee2.js></script><script type=text/javascript src=./static/js/app.466c1929b37d282c413b.js></script></body></html>
\ No newline at end of file
webpackJsonp([13,60,61],{AKPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("E4LH"),n={data:function(){return{visible:!1,dataForm:{mobile:"",params:""},dataRule:{mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(l.b)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/send",{mobile:e.dataForm.mobile,params:e.dataForm.params},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送短信","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信参数",prop:"params"}},[a("el-input",{attrs:{placeholder:'如:{"code": "123456"}'},model:{value:e.dataForm.params,callback:function(t){e.$set(e.dataForm,"params",t)},expression:"dataForm.params"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},o=a("C7Lr")(n,i,!1,null,null,null);t.default=o.exports},"IH/b":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("rSuH"),n=a("AKPa"),i={data:function(){return{dataForm:{mobile:"",status:null},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],configVisible:!1,sendVisible:!1}},components:{Config:l.default,Send:n.default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http.get(window.SITE_CONFIG.baseURL+"/sys/sms/list",{params:{page:this.pageIndex,limit:this.pageSize,mobile:this.dataForm.mobile,status:this.dataForm.status}}).then(function(t){t&&0===t.code?(e.dataList=t.data,e.totalPage=t.count):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},selectionChangeHandle:function(e){this.dataListSelections=e},configHandle:function(){var e=this;this.configVisible=!0,this.$nextTick(function(){e.$refs.config.init()})},sendHandle:function(){var e=this;this.sendVisible=!0,this.$nextTick(function(){e.$refs.send.init()})},deleteHandle:function(e){var t=this,a=e?[e]:this.dataListSelections.map(function(e){return e.id});this.$confirm("确定对[id="+a.join(",")+"]进行["+(e?"删除":"批量删除")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/delete",a).then(function(e){e&&0===e.code&&t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}})})}).catch(function(){})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-message__sms"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入手机号",clearable:""},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-option",{attrs:{label:"发送成功",value:0}}),e._v(" "),a("el-option",{attrs:{label:"发送失败",value:1}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.configHandle()}}},[e._v("短信配置")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendHandle()}}},[e._v("发送短信")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger",disabled:e.dataListSelections.length<=0},on:{click:function(t){e.deleteHandle()}}},[e._v("批量删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id","header-align":"center",align:"center",width:"80",label:"ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"platform","header-align":"center",align:"center",label:"平台类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.platform?"阿里云":2===t.row.platform?"腾讯云":"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile","header-align":"center",align:"center",width:"120",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params2","header-align":"center",align:"center",label:"参数2"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params3","header-align":"center",align:"center",label:"参数3"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params4","header-align":"center",align:"center",label:"参数4"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.status?a("el-tag",{attrs:{size:"small"}},[e._v("成功")]):a("el-tag",{attrs:{size:"small",type:"danger"}},[e._v("失败")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sendTime","header-align":"center",align:"center",width:"180",label:"发送时间"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.configVisible?a("config",{ref:"config"}):e._e(),e._v(" "),e.sendVisible?a("send",{ref:"send",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},r=a("C7Lr")(i,o,!1,null,null,null);t.default=r.exports},rSuH:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={data:function(){return{visible:!1,dataForm:{platform:0,aliyunAccessKeyId:"",aliyunAccessKeySecret:"",aliyunSignName:"",aliyunTemplateCode:"",qcloudAppId:0,qcloudAppKey:"",qcloudSignName:"",qcloudTemplateId:""},dataRule:{aliyunAccessKeyId:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunAccessKeySecret:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunSignName:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunTemplateCode:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudAppId:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudAppKey:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudSignName:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudTemplateId:[{required:!0,message:"必填项不能为空",trigger:"blur"}]}}},watch:{"dataForm.platform":function(e){this.$refs.dataForm.clearValidate()}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields(),e.getConfig()})},getConfig:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/sms/config").then(function(t){t&&0===t.code&&(e.dataForm.platform=t.config.platform,e.dataForm.aliyunAccessKeyId=t.config.aliyunAccessKeyId,e.dataForm.aliyunAccessKeySecret=t.config.aliyunAccessKeySecret,e.dataForm.aliyunSignName=t.config.aliyunSignName,e.dataForm.aliyunTemplateCode=t.config.aliyunTemplateCode,e.dataForm.qcloudAppId=t.config.qcloudAppId,e.dataForm.qcloudAppKey=t.config.qcloudAppKey,e.dataForm.qcloudSignName=t.config.qcloudSignName,e.dataForm.qcloudTemplateId=t.config.qcloudTemplateId)})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/saveConfig",e.dataForm).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1}})})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"短信配置","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{size:"mini",label:"平台类型"}},[a("el-radio-group",{model:{value:e.dataForm.platform,callback:function(t){e.$set(e.dataForm,"platform",t)},expression:"dataForm.platform"}},[a("el-radio",{attrs:{label:1}},[e._v("阿里云")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("腾讯云")])],1)],1),e._v(" "),1===e.dataForm.platform?[a("el-form-item",{attrs:{label:"Key",prop:"aliyunAccessKeyId"}},[a("el-input",{attrs:{placeholder:"阿里云AccessKeyId"},model:{value:e.dataForm.aliyunAccessKeyId,callback:function(t){e.$set(e.dataForm,"aliyunAccessKeyId",t)},expression:"dataForm.aliyunAccessKeyId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Secret",prop:"aliyunAccessKeySecret"}},[a("el-input",{attrs:{placeholder:"阿里云AccessKeySecret"},model:{value:e.dataForm.aliyunAccessKeySecret,callback:function(t){e.$set(e.dataForm,"aliyunAccessKeySecret",t)},expression:"dataForm.aliyunAccessKeySecret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信签名",prop:"aliyunSignName"}},[a("el-input",{attrs:{placeholder:"短信签名"},model:{value:e.dataForm.aliyunSignName,callback:function(t){e.$set(e.dataForm,"aliyunSignName",t)},expression:"dataForm.aliyunSignName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信模板",prop:"aliyunTemplateCode"}},[a("el-input",{attrs:{placeholder:"短信模板CODE"},model:{value:e.dataForm.aliyunTemplateCode,callback:function(t){e.$set(e.dataForm,"aliyunTemplateCode",t)},expression:"dataForm.aliyunTemplateCode"}})],1)]:2===e.dataForm.platform?[a("el-form-item",{attrs:{label:"AppId",prop:"qcloudAppId"}},[a("el-input",{attrs:{placeholder:"腾讯云AppId"},model:{value:e.dataForm.qcloudAppId,callback:function(t){e.$set(e.dataForm,"qcloudAppId",t)},expression:"dataForm.qcloudAppId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppKey",prop:"qcloudAppKey"}},[a("el-input",{attrs:{placeholder:"腾讯云AppKey"},model:{value:e.dataForm.qcloudAppKey,callback:function(t){e.$set(e.dataForm,"qcloudAppKey",t)},expression:"dataForm.qcloudAppKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信签名",prop:"qcloudSignName"}},[a("el-input",{attrs:{placeholder:"短信签名"},model:{value:e.dataForm.qcloudSignName,callback:function(t){e.$set(e.dataForm,"qcloudSignName",t)},expression:"dataForm.qcloudSignName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信模板",prop:"qcloudTemplateId"}},[a("el-input",{attrs:{placeholder:"短信模板ID"},model:{value:e.dataForm.qcloudTemplateId,callback:function(t){e.$set(e.dataForm,"qcloudTemplateId",t)},expression:"dataForm.qcloudTemplateId"}})],1)]:e._e()],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},i=a("C7Lr")(l,n,!1,null,null,null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([13,60,61],{AKPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("E4LH"),n={data:function(){return{visible:!1,dataForm:{mobile:"",params:""},dataRule:{mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(l.c)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/send",{mobile:e.dataForm.mobile,params:e.dataForm.params},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送短信","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信参数",prop:"params"}},[a("el-input",{attrs:{placeholder:'如:{"code": "123456"}'},model:{value:e.dataForm.params,callback:function(t){e.$set(e.dataForm,"params",t)},expression:"dataForm.params"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},o=a("C7Lr")(n,i,!1,null,null,null);t.default=o.exports},"IH/b":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("rSuH"),n=a("AKPa"),i={data:function(){return{dataForm:{mobile:"",status:null},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],configVisible:!1,sendVisible:!1}},components:{Config:l.default,Send:n.default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http.get(window.SITE_CONFIG.baseURL+"/sys/sms/list",{params:{page:this.pageIndex,limit:this.pageSize,mobile:this.dataForm.mobile,status:this.dataForm.status}}).then(function(t){t&&0===t.code?(e.dataList=t.data,e.totalPage=t.count):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},selectionChangeHandle:function(e){this.dataListSelections=e},configHandle:function(){var e=this;this.configVisible=!0,this.$nextTick(function(){e.$refs.config.init()})},sendHandle:function(){var e=this;this.sendVisible=!0,this.$nextTick(function(){e.$refs.send.init()})},deleteHandle:function(e){var t=this,a=e?[e]:this.dataListSelections.map(function(e){return e.id});this.$confirm("确定对[id="+a.join(",")+"]进行["+(e?"删除":"批量删除")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/delete",a).then(function(e){e&&0===e.code&&t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}})})}).catch(function(){})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-message__sms"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入手机号",clearable:""},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"请选择状态"},model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-option",{attrs:{label:"发送成功",value:0}}),e._v(" "),a("el-option",{attrs:{label:"发送失败",value:1}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.configHandle()}}},[e._v("短信配置")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendHandle()}}},[e._v("发送短信")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger",disabled:e.dataListSelections.length<=0},on:{click:function(t){e.deleteHandle()}}},[e._v("批量删除")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id","header-align":"center",align:"center",width:"80",label:"ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"platform","header-align":"center",align:"center",label:"平台类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.platform?"阿里云":2===t.row.platform?"腾讯云":"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile","header-align":"center",align:"center",width:"120",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params2","header-align":"center",align:"center",label:"参数2"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params3","header-align":"center",align:"center",label:"参数3"}}),e._v(" "),a("el-table-column",{attrs:{prop:"params4","header-align":"center",align:"center",label:"参数4"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.status?a("el-tag",{attrs:{size:"small"}},[e._v("成功")]):a("el-tag",{attrs:{size:"small",type:"danger"}},[e._v("失败")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sendTime","header-align":"center",align:"center",width:"180",label:"发送时间"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.id)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.configVisible?a("config",{ref:"config"}):e._e(),e._v(" "),e.sendVisible?a("send",{ref:"send",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},r=a("C7Lr")(i,o,!1,null,null,null);t.default=r.exports},rSuH:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={data:function(){return{visible:!1,dataForm:{platform:0,aliyunAccessKeyId:"",aliyunAccessKeySecret:"",aliyunSignName:"",aliyunTemplateCode:"",qcloudAppId:0,qcloudAppKey:"",qcloudSignName:"",qcloudTemplateId:""},dataRule:{aliyunAccessKeyId:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunAccessKeySecret:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunSignName:[{required:!0,message:"必填项不能为空",trigger:"blur"}],aliyunTemplateCode:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudAppId:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudAppKey:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudSignName:[{required:!0,message:"必填项不能为空",trigger:"blur"}],qcloudTemplateId:[{required:!0,message:"必填项不能为空",trigger:"blur"}]}}},watch:{"dataForm.platform":function(e){this.$refs.dataForm.clearValidate()}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields(),e.getConfig()})},getConfig:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/sms/config").then(function(t){t&&0===t.code&&(e.dataForm.platform=t.config.platform,e.dataForm.aliyunAccessKeyId=t.config.aliyunAccessKeyId,e.dataForm.aliyunAccessKeySecret=t.config.aliyunAccessKeySecret,e.dataForm.aliyunSignName=t.config.aliyunSignName,e.dataForm.aliyunTemplateCode=t.config.aliyunTemplateCode,e.dataForm.qcloudAppId=t.config.qcloudAppId,e.dataForm.qcloudAppKey=t.config.qcloudAppKey,e.dataForm.qcloudSignName=t.config.qcloudSignName,e.dataForm.qcloudTemplateId=t.config.qcloudTemplateId)})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/saveConfig",e.dataForm).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1}})})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"短信配置","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{size:"mini",label:"平台类型"}},[a("el-radio-group",{model:{value:e.dataForm.platform,callback:function(t){e.$set(e.dataForm,"platform",t)},expression:"dataForm.platform"}},[a("el-radio",{attrs:{label:1}},[e._v("阿里云")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("腾讯云")])],1)],1),e._v(" "),1===e.dataForm.platform?[a("el-form-item",{attrs:{label:"Key",prop:"aliyunAccessKeyId"}},[a("el-input",{attrs:{placeholder:"阿里云AccessKeyId"},model:{value:e.dataForm.aliyunAccessKeyId,callback:function(t){e.$set(e.dataForm,"aliyunAccessKeyId",t)},expression:"dataForm.aliyunAccessKeyId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"Secret",prop:"aliyunAccessKeySecret"}},[a("el-input",{attrs:{placeholder:"阿里云AccessKeySecret"},model:{value:e.dataForm.aliyunAccessKeySecret,callback:function(t){e.$set(e.dataForm,"aliyunAccessKeySecret",t)},expression:"dataForm.aliyunAccessKeySecret"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信签名",prop:"aliyunSignName"}},[a("el-input",{attrs:{placeholder:"短信签名"},model:{value:e.dataForm.aliyunSignName,callback:function(t){e.$set(e.dataForm,"aliyunSignName",t)},expression:"dataForm.aliyunSignName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信模板",prop:"aliyunTemplateCode"}},[a("el-input",{attrs:{placeholder:"短信模板CODE"},model:{value:e.dataForm.aliyunTemplateCode,callback:function(t){e.$set(e.dataForm,"aliyunTemplateCode",t)},expression:"dataForm.aliyunTemplateCode"}})],1)]:2===e.dataForm.platform?[a("el-form-item",{attrs:{label:"AppId",prop:"qcloudAppId"}},[a("el-input",{attrs:{placeholder:"腾讯云AppId"},model:{value:e.dataForm.qcloudAppId,callback:function(t){e.$set(e.dataForm,"qcloudAppId",t)},expression:"dataForm.qcloudAppId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppKey",prop:"qcloudAppKey"}},[a("el-input",{attrs:{placeholder:"腾讯云AppKey"},model:{value:e.dataForm.qcloudAppKey,callback:function(t){e.$set(e.dataForm,"qcloudAppKey",t)},expression:"dataForm.qcloudAppKey"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信签名",prop:"qcloudSignName"}},[a("el-input",{attrs:{placeholder:"短信签名"},model:{value:e.dataForm.qcloudSignName,callback:function(t){e.$set(e.dataForm,"qcloudSignName",t)},expression:"dataForm.qcloudSignName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信模板",prop:"qcloudTemplateId"}},[a("el-input",{attrs:{placeholder:"短信模板ID"},model:{value:e.dataForm.qcloudTemplateId,callback:function(t){e.$set(e.dataForm,"qcloudTemplateId",t)},expression:"dataForm.qcloudTemplateId"}})],1)]:e._e()],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},i=a("C7Lr")(l,n,!1,null,null,null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([21],{JkyU:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("aA9S"),n=a.n(i),o=a("ZLEe"),r=a.n(o),l=a("2B17"),s=a("E4LH"),d=a("osGO"),m=a.n(d),p=a("M1nh"),c=a.n(p),b={data:function(){var t=this;return{activeNames:["1","2","3","4","5","6"],isEdit:!1,subLoading:!1,dataForm:{name:"",bizIds:[],bizScopeIds:[],domain:"",enable:"1",email:"",phone:"",priceMax:"",priceMin:"",remark:"",shortName:""},dataRule:{name:[{required:!0,message:"请输入公司名称",trigger:"blur"}],shortName:[{required:!0,message:"请输入公司简称",trigger:"blur"}],bizScopeIds:[{type:"array",required:!0,message:"请选择经营范围",trigger:"change"}],domain:[{required:!0,message:"请输入备案域名",trigger:"blur"}],enable:[{required:!0,message:"是否启用",trigger:"change"}],phone:[{required:!0,message:"请输入签约电话",trigger:"blur"},{validator:function(t,e,a){Object(s.b)(e)?a():a(new Error("手机号格式错误"))},trigger:"blur"}],priceMax:[{required:!0,message:"请输入价格上限",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"},{validator:function(e,a,i){a<t.dataForm.priceMin?i(new Error("不能小于最低价格!")):i()},trigger:"blur"}],priceMin:[{required:!0,message:"请输入价格",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"}],email:[{required:!0,message:"请输入签约邮箱",trigger:"blur"},{type:"email",message:"请输入正确的签约邮箱",trigger:["blur","change"]}],bizIds:[{required:!0,message:"请选择所属商家",trigger:"change"}]},photoList:[{src:a("zQrT"),title:"法人身份证人像面"},{src:a("zQrT"),title:"法人身份证国徽面"},{src:a("zQrT"),title:"法人手持身份证正面"},{src:a("zQrT"),title:"企业营业执照"},{src:a("zQrT"),title:"企业开户许可证"},{src:a("zQrT"),title:"企业对公银行卡正面"}],busScopeList:["服装","箱包","家电","数码","手机","电脑","美妆","洗护","珠宝","眼镜","手表","运动","乐器","农资","建材","家具","办公","餐厨","百货","汽车","游戏"],apiData:{}}},props:{isReview:{type:String,default:""}},components:{queryBiz:l.a},methods:{init:function(){var t=this;console.log("------init"),this.dataForm.id?(this.isEdit=!0,this.getCompany()):this.$nextTick(function(){t.$refs.bizTemp.init()})},bizChange:function(t){this.dataForm.bizIds=t},getCompany:function(){var t=this;this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company/"+this.dataForm.id,{params:{}}).then(function(e){if(1==e.res){if(!e.dt)return;var a=e.dt.lst,i=[];r()(a).length>0&&(a.enable=a.enable+"",a.bizNames&&a.bizNames.length>0&&a.bizNames.filter(function(e){t.dataForm.bizIds.push(e.bizId)}),a.bizScopes&&a.bizScopes.length>0&&a.bizScopes.filter(function(t){i.push(+t.id)}),a.bizScopeIds=i,t.$nextTick(function(){t.$refs.bizTemp.dataForm.bizIds=t.dataForm.bizIds,t.$refs.bizTemp.init()}),n()(t.dataForm,a),t.apiData=n()({},t.dataForm))}})},showHome:function(){this.$emit("goHome")},isBackHome:function(){this.dataForm.id?this.editHandle():this.showHome()},handleChange:function(t){console.log(t)},editHandle:function(){this.isEdit=!this.isEdit,this.isDisable=!this.isDisable},submitForm:function(){var t=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(t.dataForm),t.subLoading=!0,t.dataForm.id?t.filterData():t.addCompany()})},filterData:function(){var t=this;if(m()(this.dataForm,this.apiData))this.editHandle(),setTimeout(function(){t.subLoading=!1},1e3);else{var e=[];for(var a in this.dataForm)if(this.dataForm.hasOwnProperty(a)){var i=this.dataForm[a];i!=this.apiData[a]&&e.push({key:a,part:"",listValue:c()(i)?i:null,value:c()(i)?"":i})}this.updateCompany(e)}},addCompany:function(){var t=this,e=n()({},this.dataForm);e.enable=+e.enable,this.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/company",e).then(function(e){1==e.res&&(console.log("---res",e),t.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){t.showHome(),t.$emit("refreshDataList")}})),setTimeout(function(){t.subLoading=!1},1e3)})},updateCompany:function(t){var e=this,a={id:this.dataForm.id,lst:t};this.$http.put(window.SITE_CONFIG["baseURL-pay"]+"/company",a).then(function(t){1==t.res&&(console.log("---res",t),e.$message({message:"修改成功",type:"success",duration:1500,onClose:function(){e.showHome(),e.$emit("refreshDataList")}})),setTimeout(function(){e.subLoading=!1},1e3)})}}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"auditInformation"}},[a("div",{staticClass:"bar"},[a("span",{staticClass:"tit"},[t._v(t._s(t.dataForm.id?"查看":"添加")+"公司")]),t._v(" "),a("el-button",{staticClass:"go-back",attrs:{type:"text"},on:{click:t.showHome}},[t._v("返回")])],1),t._v(" "),a("el-form",{ref:"dataForm",staticClass:"com-form",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"100px"}},[a("el-collapse",{on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"公司信息",name:"2"}},[a("el-form-item",{attrs:{label:"公司名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入公司名称",disabled:t.isEdit},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name","string"==typeof e?e.trim():e)},expression:"dataForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"公司简称:",prop:"shortName"}},[a("el-input",{attrs:{placeholder:"请输入公司简称",disabled:t.isEdit},model:{value:t.dataForm.shortName,callback:function(e){t.$set(t.dataForm,"shortName","string"==typeof e?e.trim():e)},expression:"dataForm.shortName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备案域名:",prop:"domain"}},[a("el-input",{attrs:{placeholder:"请输入备案域名",disabled:t.isEdit},model:{value:t.dataForm.domain,callback:function(e){t.$set(t.dataForm,"domain","string"==typeof e?e.trim():e)},expression:"dataForm.domain"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"所属商家:",prop:"bizIds"}},[a("query-biz",{ref:"bizTemp",attrs:{bizIds:t.dataForm.bizIds,isMultiple:!0,isDisabled:t.isEdit},on:{backVal:t.bizChange}})],1),t._v(" "),a("el-form-item",{attrs:{label:"签约电话:",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入签约电话",disabled:t.isEdit,maxlength:"11"},model:{value:t.dataForm.phone,callback:function(e){t.$set(t.dataForm,"phone","string"==typeof e?e.trim():e)},expression:"dataForm.phone"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"签约邮箱:",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入签约邮箱",disabled:t.isEdit},model:{value:t.dataForm.email,callback:function(e){t.$set(t.dataForm,"email","string"==typeof e?e.trim():e)},expression:"dataForm.email"}})],1)],1),t._v(" "),a("el-collapse-item",{attrs:{title:"经营信息",name:"4"}},[a("el-form-item",{attrs:{label:"经营范围:",prop:"bizScopeIds"}},[a("el-checkbox-group",{attrs:{disabled:t.isEdit},model:{value:t.dataForm.bizScopeIds,callback:function(e){t.$set(t.dataForm,"bizScopeIds",e)},expression:"dataForm.bizScopeIds"}},t._l(t.busScopeList,function(e,i){return a("el-checkbox",{key:i,attrs:{label:i+1}},[t._v(t._s(e))])}))],1),t._v(" "),a("el-form-item",{staticClass:"limit-col",attrs:{label:"价格范围:(人民币)"}},[a("el-form-item",{attrs:{prop:"priceMin"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:t.isEdit},model:{value:t.dataForm.priceMin,callback:function(e){t.$set(t.dataForm,"priceMin",t._n(e))},expression:"dataForm.priceMin"}})],1),t._v(" -\n "),a("el-form-item",{attrs:{prop:"priceMax"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:t.isEdit},model:{value:t.dataForm.priceMax,callback:function(e){t.$set(t.dataForm,"priceMax",t._n(e))},expression:"dataForm.priceMax"}})],1)],1)],1),t._v(" "),a("el-collapse-item",{attrs:{title:"其他信息",name:"5"}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-radio-group",{attrs:{disabled:t.isEdit},model:{value:t.dataForm.enable,callback:function(e){t.$set(t.dataForm,"enable",e)},expression:"dataForm.enable"}},[a("el-radio",{attrs:{label:"1"}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:"0"}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息",disabled:t.isEdit},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1)],1),t._v(" "),a("el-form-item",[t.isEdit?t._e():a("el-button",{on:{click:t.isBackHome}},[t._v("取消")]),t._v(" "),t.isEdit?t._e():a("el-button",{attrs:{type:"primary",loading:t.subLoading},on:{click:t.submitForm}},[t._v("保存")]),t._v(" "),t.isEdit?a("el-button",{attrs:{type:"primary"},on:{click:t.editHandle}},[t._v("编辑")]):t._e()],1)],1)],1)},staticRenderFns:[]};var u=a("C7Lr")(b,f,!1,function(t){a("hzgC")},"data-v-826b1df8",null);e.default=u.exports},hzgC:function(t,e,a){var i=a("lFIw");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a("FIqI")("f26f2318",i,!0,{})},lFIw:function(t,e,a){(t.exports=a("UTlt")(!1)).push([t.i,"\n.el-input[data-v-826b1df8] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-826b1df8],\n.el-date-editor.el-input__inner[data-v-826b1df8] {\n min-width: 220px;\n}\n[data-v-826b1df8] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-826b1df8] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-826b1df8] {\n margin-bottom: 20px;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-826b1df8]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-826b1df8] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-826b1df8] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-826b1df8] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-826b1df8] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-826b1df8] {\n margin-left: 5px;\n}\n.longText[data-v-826b1df8] {\n width: 350px;\n}\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-826b1df8] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-826b1df8] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-826b1df8] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-826b1df8] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-826b1df8] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-826b1df8] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-826b1df8] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-826b1df8] {\n font-size: 16px;\n color: #999;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.com-form .el-checkbox-group .el-checkbox[data-v-826b1df8] {\n float: left;\n width: 70px;\n}\n.com-form .el-checkbox-group .el-checkbox + .el-checkbox[data-v-826b1df8] {\n margin-left: 0;\n}\n",""])}});
\ No newline at end of file
webpackJsonp([21],{JkyU:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("aA9S"),n=a.n(i),o=a("ZLEe"),r=a.n(o),l=a("2B17"),s=a("E4LH"),d=a("osGO"),m=a.n(d),p=a("M1nh"),c=a.n(p),b={data:function(){var t=this;return{activeNames:["1","2","3","4","5","6"],isEdit:!1,subLoading:!1,dataForm:{name:"",bizIds:[],bizScopeIds:[],domain:"",enable:"1",email:"",phone:"",priceMax:"",priceMin:"",remark:"",shortName:""},dataRule:{name:[{required:!0,message:"请输入公司名称",trigger:"blur"}],shortName:[{required:!0,message:"请输入公司简称",trigger:"blur"}],bizScopeIds:[{type:"array",required:!0,message:"请选择经营范围",trigger:"change"}],domain:[{required:!0,message:"请输入备案域名",trigger:"blur"}],enable:[{required:!0,message:"是否启用",trigger:"change"}],phone:[{required:!0,message:"请输入签约电话",trigger:"blur"},{validator:function(t,e,a){Object(s.c)(e)?a():a(new Error("手机号格式错误"))},trigger:"blur"}],priceMax:[{required:!0,message:"请输入价格上限",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"},{validator:function(e,a,i){a<t.dataForm.priceMin?i(new Error("不能小于最低价格!")):i()},trigger:"blur"}],priceMin:[{required:!0,message:"请输入价格",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"}],email:[{required:!0,message:"请输入签约邮箱",trigger:"blur"},{type:"email",message:"请输入正确的签约邮箱",trigger:["blur","change"]}],bizIds:[{required:!0,message:"请选择所属商家",trigger:"change"}]},photoList:[{src:a("zQrT"),title:"法人身份证人像面"},{src:a("zQrT"),title:"法人身份证国徽面"},{src:a("zQrT"),title:"法人手持身份证正面"},{src:a("zQrT"),title:"企业营业执照"},{src:a("zQrT"),title:"企业开户许可证"},{src:a("zQrT"),title:"企业对公银行卡正面"}],busScopeList:["服装","箱包","家电","数码","手机","电脑","美妆","洗护","珠宝","眼镜","手表","运动","乐器","农资","建材","家具","办公","餐厨","百货","汽车","游戏"],apiData:{}}},props:{isReview:{type:String,default:""}},components:{queryBiz:l.a},methods:{init:function(){var t=this;console.log("------init"),this.dataForm.id?(this.isEdit=!0,this.getCompany()):this.$nextTick(function(){t.$refs.bizTemp.init()})},bizChange:function(t){this.dataForm.bizIds=t},getCompany:function(){var t=this;this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company/"+this.dataForm.id,{params:{}}).then(function(e){if(1==e.res){if(!e.dt)return;var a=e.dt.lst,i=[];r()(a).length>0&&(a.enable=a.enable+"",a.bizNames&&a.bizNames.length>0&&a.bizNames.filter(function(e){t.dataForm.bizIds.push(e.bizId)}),a.bizScopes&&a.bizScopes.length>0&&a.bizScopes.filter(function(t){i.push(+t.id)}),a.bizScopeIds=i,t.$nextTick(function(){t.$refs.bizTemp.dataForm.bizIds=t.dataForm.bizIds,t.$refs.bizTemp.init()}),n()(t.dataForm,a),t.apiData=n()({},t.dataForm))}})},showHome:function(){this.$emit("goHome")},isBackHome:function(){this.dataForm.id?this.editHandle():this.showHome()},handleChange:function(t){console.log(t)},editHandle:function(){this.isEdit=!this.isEdit,this.isDisable=!this.isDisable},submitForm:function(){var t=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(t.dataForm),t.subLoading=!0,t.dataForm.id?t.filterData():t.addCompany()})},filterData:function(){var t=this;if(m()(this.dataForm,this.apiData))this.editHandle(),setTimeout(function(){t.subLoading=!1},1e3);else{var e=[];for(var a in this.dataForm)if(this.dataForm.hasOwnProperty(a)){var i=this.dataForm[a];i!=this.apiData[a]&&e.push({key:a,part:"",listValue:c()(i)?i:null,value:c()(i)?"":i})}this.updateCompany(e)}},addCompany:function(){var t=this,e=n()({},this.dataForm);e.enable=+e.enable,this.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/company",e).then(function(e){1==e.res&&(console.log("---res",e),t.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){t.showHome(),t.$emit("refreshDataList")}})),setTimeout(function(){t.subLoading=!1},1e3)})},updateCompany:function(t){var e=this,a={id:this.dataForm.id,lst:t};this.$http.put(window.SITE_CONFIG["baseURL-pay"]+"/company",a).then(function(t){1==t.res&&(console.log("---res",t),e.$message({message:"修改成功",type:"success",duration:1500,onClose:function(){e.showHome(),e.$emit("refreshDataList")}})),setTimeout(function(){e.subLoading=!1},1e3)})}}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"auditInformation"}},[a("div",{staticClass:"bar"},[a("span",{staticClass:"tit"},[t._v(t._s(t.dataForm.id?"查看":"添加")+"公司")]),t._v(" "),a("el-button",{staticClass:"go-back",attrs:{type:"text"},on:{click:t.showHome}},[t._v("返回")])],1),t._v(" "),a("el-form",{ref:"dataForm",staticClass:"com-form",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"100px"}},[a("el-collapse",{on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"公司信息",name:"2"}},[a("el-form-item",{attrs:{label:"公司名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入公司名称",disabled:t.isEdit},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name","string"==typeof e?e.trim():e)},expression:"dataForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"公司简称:",prop:"shortName"}},[a("el-input",{attrs:{placeholder:"请输入公司简称",disabled:t.isEdit},model:{value:t.dataForm.shortName,callback:function(e){t.$set(t.dataForm,"shortName","string"==typeof e?e.trim():e)},expression:"dataForm.shortName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备案域名:",prop:"domain"}},[a("el-input",{attrs:{placeholder:"请输入备案域名",disabled:t.isEdit},model:{value:t.dataForm.domain,callback:function(e){t.$set(t.dataForm,"domain","string"==typeof e?e.trim():e)},expression:"dataForm.domain"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"所属商家:",prop:"bizIds"}},[a("query-biz",{ref:"bizTemp",attrs:{bizIds:t.dataForm.bizIds,isMultiple:!0,isDisabled:t.isEdit},on:{backVal:t.bizChange}})],1),t._v(" "),a("el-form-item",{attrs:{label:"签约电话:",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入签约电话",disabled:t.isEdit,maxlength:"11"},model:{value:t.dataForm.phone,callback:function(e){t.$set(t.dataForm,"phone","string"==typeof e?e.trim():e)},expression:"dataForm.phone"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"签约邮箱:",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入签约邮箱",disabled:t.isEdit},model:{value:t.dataForm.email,callback:function(e){t.$set(t.dataForm,"email","string"==typeof e?e.trim():e)},expression:"dataForm.email"}})],1)],1),t._v(" "),a("el-collapse-item",{attrs:{title:"经营信息",name:"4"}},[a("el-form-item",{attrs:{label:"经营范围:",prop:"bizScopeIds"}},[a("el-checkbox-group",{attrs:{disabled:t.isEdit},model:{value:t.dataForm.bizScopeIds,callback:function(e){t.$set(t.dataForm,"bizScopeIds",e)},expression:"dataForm.bizScopeIds"}},t._l(t.busScopeList,function(e,i){return a("el-checkbox",{key:i,attrs:{label:i+1}},[t._v(t._s(e))])}))],1),t._v(" "),a("el-form-item",{staticClass:"limit-col",attrs:{label:"价格范围:(人民币)"}},[a("el-form-item",{attrs:{prop:"priceMin"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:t.isEdit},model:{value:t.dataForm.priceMin,callback:function(e){t.$set(t.dataForm,"priceMin",t._n(e))},expression:"dataForm.priceMin"}})],1),t._v(" -\n "),a("el-form-item",{attrs:{prop:"priceMax"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:t.isEdit},model:{value:t.dataForm.priceMax,callback:function(e){t.$set(t.dataForm,"priceMax",t._n(e))},expression:"dataForm.priceMax"}})],1)],1)],1),t._v(" "),a("el-collapse-item",{attrs:{title:"其他信息",name:"5"}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-radio-group",{attrs:{disabled:t.isEdit},model:{value:t.dataForm.enable,callback:function(e){t.$set(t.dataForm,"enable",e)},expression:"dataForm.enable"}},[a("el-radio",{attrs:{label:"1"}},[t._v("是")]),t._v(" "),a("el-radio",{attrs:{label:"0"}},[t._v("否")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息",disabled:t.isEdit},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1)],1),t._v(" "),a("el-form-item",[t.isEdit?t._e():a("el-button",{on:{click:t.isBackHome}},[t._v("取消")]),t._v(" "),t.isEdit?t._e():a("el-button",{attrs:{type:"primary",loading:t.subLoading},on:{click:t.submitForm}},[t._v("保存")]),t._v(" "),t.isEdit?a("el-button",{attrs:{type:"primary"},on:{click:t.editHandle}},[t._v("编辑")]):t._e()],1)],1)],1)},staticRenderFns:[]};var u=a("C7Lr")(b,f,!1,function(t){a("hzgC")},"data-v-826b1df8",null);e.default=u.exports},hzgC:function(t,e,a){var i=a("lFIw");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a("FIqI")("f26f2318",i,!0,{})},lFIw:function(t,e,a){(t.exports=a("UTlt")(!1)).push([t.i,"\n.el-input[data-v-826b1df8] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-826b1df8],\n.el-date-editor.el-input__inner[data-v-826b1df8] {\n min-width: 220px;\n}\n[data-v-826b1df8] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-826b1df8] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-826b1df8] {\n margin-bottom: 20px;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-826b1df8]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-826b1df8] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-826b1df8] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-826b1df8] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-826b1df8] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-826b1df8] {\n margin-left: 5px;\n}\n.longText[data-v-826b1df8] {\n width: 350px;\n}\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-826b1df8] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-826b1df8] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-826b1df8] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-826b1df8] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-826b1df8] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-826b1df8] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-826b1df8] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-826b1df8] {\n font-size: 16px;\n color: #999;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.com-form .el-checkbox-group .el-checkbox[data-v-826b1df8] {\n float: left;\n width: 70px;\n}\n.com-form .el-checkbox-group .el-checkbox + .el-checkbox[data-v-826b1df8] {\n margin-left: 0;\n}\n",""])}});
\ No newline at end of file
webpackJsonp([26],{"1C+r":function(n,t,e){(n.exports=e("UTlt")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},Inpm:function(n,t,e){var a=e("1C+r");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("FIqI")("6f7a1ad7",a,!0,{})},XFAH:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("aA9S"),r=e.n(a),o=e("E4LH"),l={data:function(){return{visible:!1,dataForm:{compName:"",contactEmail:"",contactMobile:"",createBy:"",isolation:"0",legalName:"",logo:"",remark:"",status:"1",updateBy:""},dataRule:{compName:[{required:!0,message:"请输入商家名称",trigger:"blur"}],contactMobile:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(n,t,e){Object(o.b)(t)?e():e(new Error("手机号格式错误"))},trigger:"blur"}],contactEmail:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],legalName:[{required:!0,message:"请输入法人姓名",trigger:"blur"}]}}},methods:{init:function(){var n=this;this.visible=!0,this.$nextTick(function(){n.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(t){if(!t)return console.log("error submit!!"),!1;var e=r()({},n.dataForm);e.status=+e.status,e.createBy=n.$store.state.user.name,e.updateBy=n.$store.state.user.name,delete e.id,n.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/biz",e).then(function(t){1==t.res&&n.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){n.visible=!1,n.$emit("refreshDataList")}})})})}}},i={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{attrs:{id:"add-bus"}},[e("el-dialog",{attrs:{title:"添加商家","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(t){n.visible=t}}},[e("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&n._k(t.keyCode,"enter",13,t.key,"Enter"))return null;n.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:"法人姓名",prop:"legalName"}},[e("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:n.dataForm.legalName,callback:function(t){n.$set(n.dataForm,"legalName","string"==typeof t?t.trim():t)},expression:"dataForm.legalName"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"手机号码",prop:"contactMobile"}},[e("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"15"},model:{value:n.dataForm.contactMobile,callback:function(t){n.$set(n.dataForm,"contactMobile","string"==typeof t?t.trim():t)},expression:"dataForm.contactMobile"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"邮箱",prop:"contactEmail"}},[e("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:n.dataForm.contactEmail,callback:function(t){n.$set(n.dataForm,"contactEmail","string"==typeof t?t.trim():t)},expression:"dataForm.contactEmail"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"商家名称",prop:"compName"}},[e("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:n.dataForm.compName,callback:function(t){n.$set(n.dataForm,"compName","string"==typeof t?t.trim():t)},expression:"dataForm.compName"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"是否启用",prop:"status"}},[e("el-radio-group",{model:{value:n.dataForm.status,callback:function(t){n.$set(n.dataForm,"status",t)},expression:"dataForm.status"}},[e("el-radio",{attrs:{label:"1"}},[n._v("是")]),n._v(" "),e("el-radio",{attrs:{label:"0"}},[n._v("否")])],1)],1),n._v(" "),e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:n.dataForm.remark,callback:function(t){n.$set(n.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1),n._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){n.resetForm()}}},[n._v("重置")]),n._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(t){n.dataFormSubmit()}}},[n._v("提交")])],1)],1)],1)},staticRenderFns:[]};var s=e("C7Lr")(l,i,!1,function(n){e("Inpm")},"data-v-6647bcc6",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([26],{"1C+r":function(n,t,e){(n.exports=e("UTlt")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},Inpm:function(n,t,e){var a=e("1C+r");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("FIqI")("6f7a1ad7",a,!0,{})},XFAH:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("aA9S"),r=e.n(a),o=e("E4LH"),l={data:function(){return{visible:!1,dataForm:{compName:"",contactEmail:"",contactMobile:"",createBy:"",isolation:"0",legalName:"",logo:"",remark:"",status:"1",updateBy:""},dataRule:{compName:[{required:!0,message:"请输入商家名称",trigger:"blur"}],contactMobile:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(n,t,e){Object(o.c)(t)?e():e(new Error("手机号格式错误"))},trigger:"blur"}],contactEmail:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],legalName:[{required:!0,message:"请输入法人姓名",trigger:"blur"}]}}},methods:{init:function(){var n=this;this.visible=!0,this.$nextTick(function(){n.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(t){if(!t)return console.log("error submit!!"),!1;var e=r()({},n.dataForm);e.status=+e.status,e.createBy=n.$store.state.user.name,e.updateBy=n.$store.state.user.name,delete e.id,n.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/biz",e).then(function(t){1==t.res&&n.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){n.visible=!1,n.$emit("refreshDataList")}})})})}}},i={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{attrs:{id:"add-bus"}},[e("el-dialog",{attrs:{title:"添加商家","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(t){n.visible=t}}},[e("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&n._k(t.keyCode,"enter",13,t.key,"Enter"))return null;n.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:"法人姓名",prop:"legalName"}},[e("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:n.dataForm.legalName,callback:function(t){n.$set(n.dataForm,"legalName","string"==typeof t?t.trim():t)},expression:"dataForm.legalName"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"手机号码",prop:"contactMobile"}},[e("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"15"},model:{value:n.dataForm.contactMobile,callback:function(t){n.$set(n.dataForm,"contactMobile","string"==typeof t?t.trim():t)},expression:"dataForm.contactMobile"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"邮箱",prop:"contactEmail"}},[e("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:n.dataForm.contactEmail,callback:function(t){n.$set(n.dataForm,"contactEmail","string"==typeof t?t.trim():t)},expression:"dataForm.contactEmail"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"商家名称",prop:"compName"}},[e("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:n.dataForm.compName,callback:function(t){n.$set(n.dataForm,"compName","string"==typeof t?t.trim():t)},expression:"dataForm.compName"}})],1),n._v(" "),e("el-form-item",{attrs:{label:"是否启用",prop:"status"}},[e("el-radio-group",{model:{value:n.dataForm.status,callback:function(t){n.$set(n.dataForm,"status",t)},expression:"dataForm.status"}},[e("el-radio",{attrs:{label:"1"}},[n._v("是")]),n._v(" "),e("el-radio",{attrs:{label:"0"}},[n._v("否")])],1)],1),n._v(" "),e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:n.dataForm.remark,callback:function(t){n.$set(n.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1),n._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){n.resetForm()}}},[n._v("重置")]),n._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(t){n.dataFormSubmit()}}},[n._v("提交")])],1)],1)],1)},staticRenderFns:[]};var s=e("C7Lr")(l,i,!1,function(n){e("Inpm")},"data-v-6647bcc6",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([3,18,26,29],{"1C+r":function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},FPwo:function(t,e,n){var a=n("ZSKo");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("ed73cf4a",a,!0,{})},FVwF:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{visible:!1,isDialog:!0,bizId:"",isolationVal:""}},components:{isolation:n("aRcT").default},methods:{init:function(){console.log("-----init",this.bizId,this.isolationVal),this.visible=!0},closeDialog:function(){this.visible=!1}}},i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"merch-isolation"}},[n("el-dialog",{attrs:{title:"设置商家隔离","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("isolation",{attrs:{bId:t.bizId,iVal:t.isolationVal+"",isDialog:t.isDialog},on:{cDialog:t.closeDialog}})],1)],1)},staticRenderFns:[]};var o=n("C7Lr")(a,i,!1,function(t){n("FPwo")},"data-v-bd9e9f36",null);e.default=o.exports},Inpm:function(t,e,n){var a=n("1C+r");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("6f7a1ad7",a,!0,{})},KD1F:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n.el-input[data-v-0e86f356] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-0e86f356],\n.el-date-editor.el-input__inner[data-v-0e86f356] {\n min-width: 220px;\n}\n[data-v-0e86f356] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-0e86f356] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-0e86f356] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-0e86f356] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-0e86f356] {\n margin-bottom: 20px;\n}\n.bar[data-v-0e86f356] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-0e86f356] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-0e86f356]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-0e86f356] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-0e86f356] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-0e86f356] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-0e86f356] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-0e86f356] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-0e86f356] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-0e86f356] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-0e86f356] {\n margin-left: 5px;\n}\n.longText[data-v-0e86f356] {\n width: 350px;\n}\n.hiddIpt[data-v-0e86f356].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-0e86f356].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-0e86f356] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-0e86f356] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-0e86f356] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-0e86f356] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-0e86f356] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-0e86f356] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-0e86f356] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-0e86f356]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-0e86f356] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-0e86f356] {\n font-size: 16px;\n color: #999;\n}\n.el-input[data-v-0e86f356] {\n width: 260px;\n}\n",""])},XFAH:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("aA9S"),i=n.n(a),o=n("E4LH"),l={data:function(){return{visible:!1,dataForm:{compName:"",contactEmail:"",contactMobile:"",createBy:"",isolation:"0",legalName:"",logo:"",remark:"",status:"1",updateBy:""},dataRule:{compName:[{required:!0,message:"请输入商家名称",trigger:"blur"}],contactMobile:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(t,e,n){Object(o.b)(e)?n():n(new Error("手机号格式错误"))},trigger:"blur"}],contactEmail:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],legalName:[{required:!0,message:"请输入法人姓名",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;var n=i()({},t.dataForm);n.status=+n.status,n.createBy=t.$store.state.user.name,n.updateBy=t.$store.state.user.name,delete n.id,t.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/biz",n).then(function(e){1==e.res&&t.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})})})}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"add-bus"}},[n("el-dialog",{attrs:{title:"添加商家","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[n("el-form-item",{attrs:{label:"法人姓名",prop:"legalName"}},[n("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:t.dataForm.legalName,callback:function(e){t.$set(t.dataForm,"legalName","string"==typeof e?e.trim():e)},expression:"dataForm.legalName"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"手机号码",prop:"contactMobile"}},[n("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"15"},model:{value:t.dataForm.contactMobile,callback:function(e){t.$set(t.dataForm,"contactMobile","string"==typeof e?e.trim():e)},expression:"dataForm.contactMobile"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"邮箱",prop:"contactEmail"}},[n("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:t.dataForm.contactEmail,callback:function(e){t.$set(t.dataForm,"contactEmail","string"==typeof e?e.trim():e)},expression:"dataForm.contactEmail"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商家名称",prop:"compName"}},[n("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:t.dataForm.compName,callback:function(e){t.$set(t.dataForm,"compName","string"==typeof e?e.trim():e)},expression:"dataForm.compName"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"是否启用",prop:"status"}},[n("el-radio-group",{model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[n("el-radio",{attrs:{label:"1"}},[t._v("是")]),t._v(" "),n("el-radio",{attrs:{label:"0"}},[t._v("否")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.resetForm()}}},[t._v("重置")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("提交")])],1)],1)],1)},staticRenderFns:[]};var s=n("C7Lr")(l,r,!1,function(t){n("Inpm")},"data-v-6647bcc6",null);e.default=s.exports},YqVv:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},ZSKo:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"",""])},lXY8:function(t,e,n){var a=n("YqVv");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("24df021e",a,!0,{})},ol7R:function(t,e,n){var a=n("KD1F");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("67ad8d58",a,!0,{})},toaM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("4YfN"),i=n.n(a),o=n("jjQV"),l=n("9rMa"),r={data:function(){return{visible:!1,isDialog:!0,tableData:[],tabList:[{label:"PCWeb",value:"0"},{label:"MWeb",value:"1"},{label:"APP",value:"2"},{label:"微信",value:"3"}],bizId:0,activeName:"0",tIdx:"0",cLoading:!1}},components:{channel:o.default},computed:i()({},Object(l.b)(["platData"])),methods:{init:function(){var t=this;this.visible=!0,this.$store.dispatch("pay/common/plat/list").then(function(e){0==e.ec&&t.getChannel()})},getChannel:function(){var t=this;this.cLoading=!0,this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/biz/psg",{params:{bizId:this.bizId,plat:this.activeName}}).then(function(e){if(e&&0==e.ec){if(!e.dt)return void(t.cLoading=!1);var n=e.dt.lst;n&&n.length>0&&n.filter(function(t){t.no=t.no+"",t.plat=t.plat+""}),t.tableData=n,t.showChannel()}t.cLoading=!1})},showChannel:function(){var t=this,e=[];this.tableData&&this.tableData.length>0&&(e=this.tableData.filter(function(e){if(e.plat==t.tIdx)return e})),console.log("-------fData",e),this.$nextTick(function(){t.$refs.pChannel.tData=e,t.$refs.pChannel.init()})},handleClick:function(t){this.tIdx=t.index+"",this.getChannel()},closeDialog:function(){this.visible=!1}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"payChannel"}},[n("el-dialog",{attrs:{title:"设置支付通道","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.platData,function(t,e){return n("el-tab-pane",{key:e,attrs:{label:t.label,name:t.value}})})),t._v(" "),t.activeName==t.tIdx?n("channel",{ref:"pChannel",attrs:{cId:t.tIdx,bizId:t.bizId,isDialog:t.isDialog,loading:t.cLoading},on:{cDialog:t.closeDialog}}):t._e()],1)],1)},staticRenderFns:[]};var c=n("C7Lr")(r,s,!1,function(t){n("lXY8")},"data-v-5523a82b",null);e.default=c.exports},yPDZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("aA9S"),i=n.n(a),o=n("4YfN"),l=n.n(o),r=n("XFAH"),s=n("toaM"),c=n("FVwF"),d=n("Pxgt"),u=n("Nhmt"),p=n("WGjs"),m=n("9rMa"),f={data:function(){return{visible:!1,isDetails:!1,isoVisible:!1,rVisible:!1,remarkUrl:"biz",dataForm:{keyword:"",auditStatus:"",status:""},dataList:[],toolTip:{1:"启用",0:"禁用"},bizId:"",pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addVisible:!1,channelVisible:!1}},components:{addBus:r.default,payChannel:s.default,merchIsolation:c.default,busDetails:d.default,remark:u.a,payEnable:p.a},computed:l()({},Object(m.c)({enableList:function(t){return t.payCommon.enableList},certifyList:function(t){return t.payCommon.certifyList}})),created:function(){this.getDataList()},methods:{getDataList:function(){var t=this;this.dataListLoading=!0;var e=i()({},this.dataForm,{pageIndex:this.pageIndex,pageSize:this.pageSize});this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/biz",{params:e}).then(function(e){if(e.dt){var n=e.dt.lst;n&&n.length>0&&n.filter(function(e){t.certifyList.filter(function(t){t.value==e.auditStatus&&(e.auditText=t.label)}),e.id=e.id+"",e.statusText=t.toolTip[e.status],e.createTime=t.$util.fomatDateTime(+e.createTime)}),t.dataList=e.dt.lst;var a=e.dt.pg;t.pageIndex=+a.idx,t.pageSize=+a.ps,t.totalPage=+a.dc}console.log("-----data",e),t.dataListLoading=!1})},resetForm:function(){this.$refs.dataForm.resetFields()},addHandle:function(){var t=this;this.addVisible=!0,this.$nextTick(function(){t.$refs.addBus.init()})},setHandle:function(t){var e=this;this.channelVisible=!0,this.$nextTick(function(){e.$refs.payChannel.bizId=t,e.$refs.payChannel.init()})},setMisoHandle:function(t){var e=this;this.isoVisible=!0,this.$nextTick(function(){e.$refs.merchIso.bizId=t.id,e.$refs.merchIso.isolationVal=t.isolation,e.$refs.merchIso.init()})},seeHandle:function(t){console.log("------bid",t),this.isDetails=!this.isDetails,this.bizId=t},remarkHandle:function(t){var e=this;this.rVisible=!0,this.$nextTick(function(){e.$refs.sRemark.dataForm.id=t.id||0,e.$refs.sRemark.dataForm.remark=t.remark||"",e.$refs.sRemark.init()})},sizeChangeHandle:function(t){this.pageSize=t,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(t){this.pageIndex=t,this.getDataList()}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"b-management"}},[t.isDetails?[n("bus-details",{attrs:{bizId:t.bizId},on:{goHome:t.seeHandle,refreshDataList:t.getDataList}})]:[n("el-form",{ref:"dataForm",attrs:{inline:!0,model:t.dataForm},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.currentChangeHandle(1)}}},[n("el-form-item",{attrs:{prop:"keyword"}},[n("el-input",{attrs:{placeholder:"商家编号/姓名/手机号码/商家名称",clearable:""},model:{value:t.dataForm.keyword,callback:function(e){t.$set(t.dataForm,"keyword","string"==typeof e?e.trim():e)},expression:"dataForm.keyword"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"auditStatus"}},[n("el-select",{attrs:{placeholder:"请选择认证状态",clearable:""},model:{value:t.dataForm.auditStatus,callback:function(e){t.$set(t.dataForm,"auditStatus",e)},expression:"dataForm.auditStatus"}},t._l(t.certifyList,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择商家状态",clearable:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},t._l(t.enableList,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",[n("el-button",{on:{click:function(e){t.currentChangeHandle(1)}}},[t._v("查询")]),t._v(" "),n("el-button",{on:{click:function(e){t.resetForm()}}},[t._v("重置")])],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addHandle()}}},[t._v("新增商家")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:t.dataList,border:""}},[n("el-table-column",{attrs:{prop:"identNo","header-align":"center",align:"center",label:"商家编号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"legalName","header-align":"center",align:"center",label:"法人姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"contactMobile","header-align":"center",align:"center",label:"手机号码"}}),t._v(" "),n("el-table-column",{attrs:{prop:"compName","header-align":"center",align:"center",label:"商家名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"auditText","header-align":"center",align:"center",label:"资料认证"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"商家状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("pay-enable",{attrs:{eUrl:t.remarkUrl,eId:e.row.id,eVal:e.row.status,eText:"status"},on:{refreshDataList:t.getDataList}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",label:"注册时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark","header-align":"center",align:"center",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"202",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{content:"设置支付通道",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-setting",circle:"",size:"mini"},on:{click:function(n){t.setHandle(e.row.id)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"设置商家隔离",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-news",circle:"",size:"mini"},on:{click:function(n){t.setMisoHandle(e.row)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"查看",placement:"top"}},[n("el-button",{attrs:{type:"success",icon:"el-icon-view",circle:"",size:"mini"},on:{click:function(n){t.seeHandle(e.row.id)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"备注",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-edit-outline",circle:"",size:"mini"},on:{click:function(n){t.remarkHandle(e.row)}}})],1)]}}])})],1),t._v(" "),t.totalPage>t.pageSize?n("el-pagination",{attrs:{"current-page":t.pageIndex,"page-sizes":[10,20,50,100],"page-size":t.pageSize,total:t.totalPage,layout:"total, sizes, prev, pager, next,\njumper"},on:{"size-change":t.sizeChangeHandle,"current-change":t.currentChangeHandle}}):t._e(),t._v(" "),t.addVisible?n("add-bus",{ref:"addBus",on:{refreshDataList:t.getDataList}}):t._e(),t._v(" "),t.channelVisible?n("pay-channel",{ref:"payChannel"}):t._e(),t._v(" "),t.isoVisible?n("merch-isolation",{ref:"merchIso"}):t._e(),t._v(" "),t.rVisible?n("remark",{ref:"sRemark",attrs:{rUrl:t.remarkUrl},on:{refreshDataList:t.getDataList}}):t._e()]],2)},staticRenderFns:[]};var g=n("C7Lr")(f,b,!1,function(t){n("ol7R")},"data-v-0e86f356",null);e.default=g.exports}});
\ No newline at end of file
webpackJsonp([3,18,26,29],{"1C+r":function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},FPwo:function(t,e,n){var a=n("ZSKo");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("ed73cf4a",a,!0,{})},FVwF:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{visible:!1,isDialog:!0,bizId:"",isolationVal:""}},components:{isolation:n("aRcT").default},methods:{init:function(){console.log("-----init",this.bizId,this.isolationVal),this.visible=!0},closeDialog:function(){this.visible=!1}}},i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"merch-isolation"}},[n("el-dialog",{attrs:{title:"设置商家隔离","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("isolation",{attrs:{bId:t.bizId,iVal:t.isolationVal+"",isDialog:t.isDialog},on:{cDialog:t.closeDialog}})],1)],1)},staticRenderFns:[]};var o=n("C7Lr")(a,i,!1,function(t){n("FPwo")},"data-v-bd9e9f36",null);e.default=o.exports},Inpm:function(t,e,n){var a=n("1C+r");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("6f7a1ad7",a,!0,{})},KD1F:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n.el-input[data-v-0e86f356] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-0e86f356],\n.el-date-editor.el-input__inner[data-v-0e86f356] {\n min-width: 220px;\n}\n[data-v-0e86f356] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-0e86f356] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-0e86f356] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-0e86f356] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-0e86f356] {\n margin-bottom: 20px;\n}\n.bar[data-v-0e86f356] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-0e86f356] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-0e86f356]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-0e86f356] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-0e86f356] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-0e86f356] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-0e86f356] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-0e86f356] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-0e86f356] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-0e86f356] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-0e86f356] {\n margin-left: 5px;\n}\n.longText[data-v-0e86f356] {\n width: 350px;\n}\n.hiddIpt[data-v-0e86f356].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-0e86f356].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-0e86f356] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-0e86f356] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-0e86f356] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-0e86f356] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-0e86f356] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-0e86f356] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-0e86f356] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-0e86f356]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-0e86f356] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-0e86f356] {\n font-size: 16px;\n color: #999;\n}\n.el-input[data-v-0e86f356] {\n width: 260px;\n}\n",""])},XFAH:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("aA9S"),i=n.n(a),o=n("E4LH"),l={data:function(){return{visible:!1,dataForm:{compName:"",contactEmail:"",contactMobile:"",createBy:"",isolation:"0",legalName:"",logo:"",remark:"",status:"1",updateBy:""},dataRule:{compName:[{required:!0,message:"请输入商家名称",trigger:"blur"}],contactMobile:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(t,e,n){Object(o.c)(e)?n():n(new Error("手机号格式错误"))},trigger:"blur"}],contactEmail:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],legalName:[{required:!0,message:"请输入法人姓名",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;var n=i()({},t.dataForm);n.status=+n.status,n.createBy=t.$store.state.user.name,n.updateBy=t.$store.state.user.name,delete n.id,t.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/biz",n).then(function(e){1==e.res&&t.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})})})}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"add-bus"}},[n("el-dialog",{attrs:{title:"添加商家","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[n("el-form-item",{attrs:{label:"法人姓名",prop:"legalName"}},[n("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:t.dataForm.legalName,callback:function(e){t.$set(t.dataForm,"legalName","string"==typeof e?e.trim():e)},expression:"dataForm.legalName"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"手机号码",prop:"contactMobile"}},[n("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"15"},model:{value:t.dataForm.contactMobile,callback:function(e){t.$set(t.dataForm,"contactMobile","string"==typeof e?e.trim():e)},expression:"dataForm.contactMobile"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"邮箱",prop:"contactEmail"}},[n("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:t.dataForm.contactEmail,callback:function(e){t.$set(t.dataForm,"contactEmail","string"==typeof e?e.trim():e)},expression:"dataForm.contactEmail"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商家名称",prop:"compName"}},[n("el-input",{attrs:{placeholder:"请输入商家名称"},model:{value:t.dataForm.compName,callback:function(e){t.$set(t.dataForm,"compName","string"==typeof e?e.trim():e)},expression:"dataForm.compName"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"是否启用",prop:"status"}},[n("el-radio-group",{model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[n("el-radio",{attrs:{label:"1"}},[t._v("是")]),t._v(" "),n("el-radio",{attrs:{label:"0"}},[t._v("否")])],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.resetForm()}}},[t._v("重置")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("提交")])],1)],1)],1)},staticRenderFns:[]};var s=n("C7Lr")(l,r,!1,function(t){n("Inpm")},"data-v-6647bcc6",null);e.default=s.exports},YqVv:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},ZSKo:function(t,e,n){(t.exports=n("UTlt")(!1)).push([t.i,"",""])},lXY8:function(t,e,n){var a=n("YqVv");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("24df021e",a,!0,{})},ol7R:function(t,e,n){var a=n("KD1F");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("FIqI")("67ad8d58",a,!0,{})},toaM:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("4YfN"),i=n.n(a),o=n("jjQV"),l=n("9rMa"),r={data:function(){return{visible:!1,isDialog:!0,tableData:[],tabList:[{label:"PCWeb",value:"0"},{label:"MWeb",value:"1"},{label:"APP",value:"2"},{label:"微信",value:"3"}],bizId:0,activeName:"0",tIdx:"0",cLoading:!1}},components:{channel:o.default},computed:i()({},Object(l.b)(["platData"])),methods:{init:function(){var t=this;this.visible=!0,this.$store.dispatch("pay/common/plat/list").then(function(e){0==e.ec&&t.getChannel()})},getChannel:function(){var t=this;this.cLoading=!0,this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/biz/psg",{params:{bizId:this.bizId,plat:this.activeName}}).then(function(e){if(e&&0==e.ec){if(!e.dt)return void(t.cLoading=!1);var n=e.dt.lst;n&&n.length>0&&n.filter(function(t){t.no=t.no+"",t.plat=t.plat+""}),t.tableData=n,t.showChannel()}t.cLoading=!1})},showChannel:function(){var t=this,e=[];this.tableData&&this.tableData.length>0&&(e=this.tableData.filter(function(e){if(e.plat==t.tIdx)return e})),console.log("-------fData",e),this.$nextTick(function(){t.$refs.pChannel.tData=e,t.$refs.pChannel.init()})},handleClick:function(t){this.tIdx=t.index+"",this.getChannel()},closeDialog:function(){this.visible=!1}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"payChannel"}},[n("el-dialog",{attrs:{title:"设置支付通道","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[n("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.platData,function(t,e){return n("el-tab-pane",{key:e,attrs:{label:t.label,name:t.value}})})),t._v(" "),t.activeName==t.tIdx?n("channel",{ref:"pChannel",attrs:{cId:t.tIdx,bizId:t.bizId,isDialog:t.isDialog,loading:t.cLoading},on:{cDialog:t.closeDialog}}):t._e()],1)],1)},staticRenderFns:[]};var c=n("C7Lr")(r,s,!1,function(t){n("lXY8")},"data-v-5523a82b",null);e.default=c.exports},yPDZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("aA9S"),i=n.n(a),o=n("4YfN"),l=n.n(o),r=n("XFAH"),s=n("toaM"),c=n("FVwF"),d=n("Pxgt"),u=n("Nhmt"),p=n("WGjs"),m=n("9rMa"),f={data:function(){return{visible:!1,isDetails:!1,isoVisible:!1,rVisible:!1,remarkUrl:"biz",dataForm:{keyword:"",auditStatus:"",status:""},dataList:[],toolTip:{1:"启用",0:"禁用"},bizId:"",pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addVisible:!1,channelVisible:!1}},components:{addBus:r.default,payChannel:s.default,merchIsolation:c.default,busDetails:d.default,remark:u.a,payEnable:p.a},computed:l()({},Object(m.c)({enableList:function(t){return t.payCommon.enableList},certifyList:function(t){return t.payCommon.certifyList}})),created:function(){this.getDataList()},methods:{getDataList:function(){var t=this;this.dataListLoading=!0;var e=i()({},this.dataForm,{pageIndex:this.pageIndex,pageSize:this.pageSize});this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/biz",{params:e}).then(function(e){if(e.dt){var n=e.dt.lst;n&&n.length>0&&n.filter(function(e){t.certifyList.filter(function(t){t.value==e.auditStatus&&(e.auditText=t.label)}),e.id=e.id+"",e.statusText=t.toolTip[e.status],e.createTime=t.$util.fomatDateTime(+e.createTime)}),t.dataList=e.dt.lst;var a=e.dt.pg;t.pageIndex=+a.idx,t.pageSize=+a.ps,t.totalPage=+a.dc}console.log("-----data",e),t.dataListLoading=!1})},resetForm:function(){this.$refs.dataForm.resetFields()},addHandle:function(){var t=this;this.addVisible=!0,this.$nextTick(function(){t.$refs.addBus.init()})},setHandle:function(t){var e=this;this.channelVisible=!0,this.$nextTick(function(){e.$refs.payChannel.bizId=t,e.$refs.payChannel.init()})},setMisoHandle:function(t){var e=this;this.isoVisible=!0,this.$nextTick(function(){e.$refs.merchIso.bizId=t.id,e.$refs.merchIso.isolationVal=t.isolation,e.$refs.merchIso.init()})},seeHandle:function(t){console.log("------bid",t),this.isDetails=!this.isDetails,this.bizId=t},remarkHandle:function(t){var e=this;this.rVisible=!0,this.$nextTick(function(){e.$refs.sRemark.dataForm.id=t.id||0,e.$refs.sRemark.dataForm.remark=t.remark||"",e.$refs.sRemark.init()})},sizeChangeHandle:function(t){this.pageSize=t,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(t){this.pageIndex=t,this.getDataList()}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"b-management"}},[t.isDetails?[n("bus-details",{attrs:{bizId:t.bizId},on:{goHome:t.seeHandle,refreshDataList:t.getDataList}})]:[n("el-form",{ref:"dataForm",attrs:{inline:!0,model:t.dataForm},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.currentChangeHandle(1)}}},[n("el-form-item",{attrs:{prop:"keyword"}},[n("el-input",{attrs:{placeholder:"商家编号/姓名/手机号码/商家名称",clearable:""},model:{value:t.dataForm.keyword,callback:function(e){t.$set(t.dataForm,"keyword","string"==typeof e?e.trim():e)},expression:"dataForm.keyword"}})],1),t._v(" "),n("el-form-item",{attrs:{prop:"auditStatus"}},[n("el-select",{attrs:{placeholder:"请选择认证状态",clearable:""},model:{value:t.dataForm.auditStatus,callback:function(e){t.$set(t.dataForm,"auditStatus",e)},expression:"dataForm.auditStatus"}},t._l(t.certifyList,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择商家状态",clearable:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},t._l(t.enableList,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",[n("el-button",{on:{click:function(e){t.currentChangeHandle(1)}}},[t._v("查询")]),t._v(" "),n("el-button",{on:{click:function(e){t.resetForm()}}},[t._v("重置")])],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.addHandle()}}},[t._v("新增商家")])],1)],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:t.dataList,border:""}},[n("el-table-column",{attrs:{prop:"identNo","header-align":"center",align:"center",label:"商家编号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"legalName","header-align":"center",align:"center",label:"法人姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"contactMobile","header-align":"center",align:"center",label:"手机号码"}}),t._v(" "),n("el-table-column",{attrs:{prop:"compName","header-align":"center",align:"center",label:"商家名称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"auditText","header-align":"center",align:"center",label:"资料认证"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"商家状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("pay-enable",{attrs:{eUrl:t.remarkUrl,eId:e.row.id,eVal:e.row.status,eText:"status"},on:{refreshDataList:t.getDataList}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",label:"注册时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"remark","header-align":"center",align:"center",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"202",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tooltip",{attrs:{content:"设置支付通道",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-setting",circle:"",size:"mini"},on:{click:function(n){t.setHandle(e.row.id)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"设置商家隔离",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-news",circle:"",size:"mini"},on:{click:function(n){t.setMisoHandle(e.row)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"查看",placement:"top"}},[n("el-button",{attrs:{type:"success",icon:"el-icon-view",circle:"",size:"mini"},on:{click:function(n){t.seeHandle(e.row.id)}}})],1),t._v(" "),n("el-tooltip",{attrs:{content:"备注",placement:"top"}},[n("el-button",{attrs:{type:"primary",icon:"el-icon-edit-outline",circle:"",size:"mini"},on:{click:function(n){t.remarkHandle(e.row)}}})],1)]}}])})],1),t._v(" "),t.totalPage>t.pageSize?n("el-pagination",{attrs:{"current-page":t.pageIndex,"page-sizes":[10,20,50,100],"page-size":t.pageSize,total:t.totalPage,layout:"total, sizes, prev, pager, next,\njumper"},on:{"size-change":t.sizeChangeHandle,"current-change":t.currentChangeHandle}}):t._e(),t._v(" "),t.addVisible?n("add-bus",{ref:"addBus",on:{refreshDataList:t.getDataList}}):t._e(),t._v(" "),t.channelVisible?n("pay-channel",{ref:"payChannel"}):t._e(),t._v(" "),t.isoVisible?n("merch-isolation",{ref:"merchIso"}):t._e(),t._v(" "),t.rVisible?n("remark",{ref:"sRemark",attrs:{rUrl:t.remarkUrl},on:{refreshDataList:t.getDataList}}):t._e()]],2)},staticRenderFns:[]};var g=n("C7Lr")(f,b,!1,function(t){n("ol7R")},"data-v-0e86f356",null);e.default=g.exports}});
\ No newline at end of file
webpackJsonp([31],{"40jY":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("E4LH"),r={data:function(){return{visible:!1,dataForm:{name:"",phone:"",email:"",cName:"",isEnable:"1",remark:""},dataRule:{name:[{required:!0,message:"请输入法人姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(n,e,t){Object(a.b)(e)?t():t(new Error("手机号格式错误"))},trigger:"blur"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],cName:[{required:!0,message:"请输入公司名称",trigger:"blur"}]}}},methods:{init:function(){var n=this;this.visible=!0,this.$nextTick(function(){n.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(n.dataForm)})}}},o={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{attrs:{id:"add-bus"}},[t("el-dialog",{attrs:{title:"供应商详情","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(e){n.visible=e}}},[t("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&n._k(e.keyCode,"enter",13,e.key,"Enter"))return null;n.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"法人姓名",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:n.dataForm.name,callback:function(e){n.$set(n.dataForm,"name","string"==typeof e?e.trim():e)},expression:"dataForm.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:n.dataForm.phone,callback:function(e){n.$set(n.dataForm,"phone","string"==typeof e?e.trim():e)},expression:"dataForm.phone"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:n.dataForm.email,callback:function(e){n.$set(n.dataForm,"email","string"==typeof e?e.trim():e)},expression:"dataForm.email"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"cName"}},[t("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:n.dataForm.cName,callback:function(e){n.$set(n.dataForm,"cName","string"==typeof e?e.trim():e)},expression:"dataForm.cName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"是否启用",prop:"isEnable"}},[t("el-radio-group",{model:{value:n.dataForm.isEnable,callback:function(e){n.$set(n.dataForm,"isEnable",e)},expression:"dataForm.isEnable"}},[t("el-radio",{attrs:{label:"1"}},[n._v("是")]),n._v(" "),t("el-radio",{attrs:{label:"2"}},[n._v("否")])],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:n.dataForm.remark,callback:function(e){n.$set(n.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){n.resetForm()}}},[n._v("重置")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.dataFormSubmit()}}},[n._v("提交")])],1)],1)],1)},staticRenderFns:[]};var l=t("C7Lr")(r,o,!1,function(n){t("rFhN")},"data-v-3421c5e4",null);e.default=l.exports},jjNb:function(n,e,t){(n.exports=t("UTlt")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},rFhN:function(n,e,t){var a=t("jjNb");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("FIqI")("1134a756",a,!0,{})}});
\ No newline at end of file
webpackJsonp([31],{"40jY":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("E4LH"),r={data:function(){return{visible:!1,dataForm:{name:"",phone:"",email:"",cName:"",isEnable:"1",remark:""},dataRule:{name:[{required:!0,message:"请输入法人姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号码",trigger:"blur"},{validator:function(n,e,t){Object(a.c)(e)?t():t(new Error("手机号格式错误"))},trigger:"blur"}],email:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],cName:[{required:!0,message:"请输入公司名称",trigger:"blur"}]}}},methods:{init:function(){var n=this;this.visible=!0,this.$nextTick(function(){n.$refs.dataForm.resetFields()})},resetForm:function(){this.$refs.dataForm.resetFields()},dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;console.log(n.dataForm)})}}},o={render:function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{attrs:{id:"add-bus"}},[t("el-dialog",{attrs:{title:"供应商详情","close-on-click-modal":!1,visible:n.visible},on:{"update:visible":function(e){n.visible=e}}},[t("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&n._k(e.keyCode,"enter",13,e.key,"Enter"))return null;n.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"法人姓名",prop:"name"}},[t("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:n.dataForm.name,callback:function(e){n.$set(n.dataForm,"name","string"==typeof e?e.trim():e)},expression:"dataForm.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[t("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:n.dataForm.phone,callback:function(e){n.$set(n.dataForm,"phone","string"==typeof e?e.trim():e)},expression:"dataForm.phone"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[t("el-input",{attrs:{placeholder:"请输入邮箱"},model:{value:n.dataForm.email,callback:function(e){n.$set(n.dataForm,"email","string"==typeof e?e.trim():e)},expression:"dataForm.email"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"cName"}},[t("el-input",{attrs:{placeholder:"请输入公司名称"},model:{value:n.dataForm.cName,callback:function(e){n.$set(n.dataForm,"cName","string"==typeof e?e.trim():e)},expression:"dataForm.cName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"是否启用",prop:"isEnable"}},[t("el-radio-group",{model:{value:n.dataForm.isEnable,callback:function(e){n.$set(n.dataForm,"isEnable",e)},expression:"dataForm.isEnable"}},[t("el-radio",{attrs:{label:"1"}},[n._v("是")]),n._v(" "),t("el-radio",{attrs:{label:"2"}},[n._v("否")])],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",placeholder:"请输入备注信息"},model:{value:n.dataForm.remark,callback:function(e){n.$set(n.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){n.resetForm()}}},[n._v("重置")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){n.dataFormSubmit()}}},[n._v("提交")])],1)],1)],1)},staticRenderFns:[]};var l=t("C7Lr")(r,o,!1,function(n){t("rFhN")},"data-v-3421c5e4",null);e.default=l.exports},jjNb:function(n,e,t){(n.exports=t("UTlt")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])},rFhN:function(n,e,t){var a=t("jjNb");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("FIqI")("1134a756",a,!0,{})}});
\ No newline at end of file
webpackJsonp([36,47],{INS3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("rVsN"),s=a.n(r),n=a("0xDb"),i=a("E4LH"),o={data:function(){var e=this;return{visible:!1,deptList:[],deptListTreeProps:{label:"name",children:"children"},roleList:[],dataForm:{id:0,username:"",deptId:0,deptName:"",password:"",comfirmPassword:"",salt:"",email:"",mobile:"",roleIdList:[],status:1},dataRule:{username:[{required:!0,message:"必填项不能为空",trigger:"blur"}],deptName:[{required:!0,message:"必填项不能为空",trigger:"change"}],password:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?r():r(new Error("必填项不能为空"))},trigger:"blur"}],comfirmPassword:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?e.dataForm.password!==a?r(new Error("确认密码与密码输入不一致")):r():r(new Error("必填项不能为空"))},trigger:"blur"}],email:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.a)(t)?a():a(new Error("邮箱格式错误"))},trigger:"blur"}],mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.b)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;s.a.all([this.getDeptList(),this.getRoleList()]).then(function(){e.visible=!0,e.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.getUserInfo()})})},getDeptList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/dept/list").then(function(t){e.deptList=Object(n.d)(t||[],"deptId")})},getRoleList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/role/select").then(function(t){t&&0===t.code&&(e.roleList=t.list||[])})},getUserInfo:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info/"+this.dataForm.id).then(function(t){t&&0===t.code&&(e.dataForm.username=t.user.username,e.dataForm.deptId=t.user.deptId,e.dataForm.salt=t.user.salt,e.dataForm.email=t.user.email,e.dataForm.mobile=t.user.mobile,e.dataForm.roleIdList=t.user.roleIdList,e.dataForm.status=t.user.status,e.$refs.deptListTree.setCurrentKey(e.dataForm.deptId),e.dataForm.deptName=e.dataForm.deptId===e.$refs.deptListTree.getCurrentKey()?e.$refs.deptListTree.getCurrentNode().name:"")})},deptListTreeCurrentChangeHandle:function(e,t){this.dataForm.deptId=e.deptId,this.dataForm.deptName=e.name},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/"+(e.dataForm.id?"update":"save"),{userId:e.dataForm.id||void 0,username:e.dataForm.username,deptId:e.dataForm.deptId,deptName:e.dataForm.deptName,password:e.dataForm.password,salt:e.dataForm.salt,email:e.dataForm.email,mobile:e.dataForm.mobile,status:e.dataForm.status,roleIdList:e.dataForm.roleIdList}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属部门",prop:"deptName"}},[a("el-popover",{ref:"deptListPopover",attrs:{placement:"bottom-start",trigger:"click"}},[a("el-tree",{ref:"deptListTree",attrs:{data:e.deptList,props:e.deptListTreeProps,"node-key":"deptId","highlight-current":!0,"expand-on-click-node":!1},on:{"current-change":e.deptListTreeCurrentChangeHandle}})],1),e._v(" "),a("el-input",{directives:[{name:"popover",rawName:"v-popover:deptListPopover",arg:"deptListPopover"}],attrs:{readonly:!0,placeholder:"所属部门"},model:{value:e.dataForm.deptName,callback:function(t){e.$set(e.dataForm,"deptName",t)},expression:"dataForm.deptName"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"确认密码",prop:"comfirmPassword"}},[a("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.comfirmPassword,callback:function(t){e.$set(e.dataForm,"comfirmPassword",t)},expression:"dataForm.comfirmPassword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"邮箱"},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email",t)},expression:"dataForm.email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",size:"mini",prop:"roleIdList"}},[a("el-checkbox-group",{model:{value:e.dataForm.roleIdList,callback:function(t){e.$set(e.dataForm,"roleIdList",t)},expression:"dataForm.roleIdList"}},e._l(e.roleList,function(t){return a("el-checkbox",{key:t.roleId,attrs:{label:t.roleId}},[e._v(e._s(t.roleName))])}))],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[e._v("禁用")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("正常")])],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},d=a("C7Lr")(o,l,!1,null,null,null);t.default=d.exports},JnAV:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("INS3"),s=a("uAC3"),n=a.n(s),i=a("6iV/"),o=a.n(i),l={data:function(){return{dataForm:{username:""},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1}},components:{AddOrUpdate:r.default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/list",{params:{page:this.pageIndex,limit:this.pageSize,username:this.dataForm.username}}).then(function(t){t&&0===t.code?(e.dataList=t.data,e.totalPage=t.count):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},selectionChangeHandle:function(e){this.dataListSelections=e},addOrUpdateHandle:function(e){var t=this;this.addOrUpdateVisible=!0,this.$nextTick(function(){t.$refs.addOrUpdate.dataForm.id=e||0,t.$refs.addOrUpdate.init()})},deleteHandle:function(e){var t=this,a=e?[e]:this.dataListSelections.map(function(e){return e.userId});this.$confirm("确定对[id="+a.join(",")+"]进行["+(e?"删除":"批量删除")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/delete",a).then(function(e){e&&0===e.code&&t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}})})}).catch(function(){})},updateStatusHandle:function(e){var t=this;this.$confirm("确定对[id="+e.userId+"]状态进行["+(e.status?"开启":"禁用")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/status",{userId:e.userId,status:e.status},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(a){a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}}):e.status=Number(!e.status)})}).catch(function(){e.status=Number(!e.status)})},exportHandle:function(){var e={token:n.a.get("token"),username:this.dataForm.username};window.location.href=window.SITE_CONFIG.baseURL+"/sys/user/export?"+o.a.stringify(e)}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-sys__user"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"用户名",clearable:""},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:save")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addOrUpdateHandle()}}},[e._v("新增")]):e._e()],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:delete")?a("el-button",{attrs:{type:"danger",disabled:e.dataListSelections.length<=0},on:{click:function(t){e.deleteHandle()}}},[e._v("批量删除")]):e._e()],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:export")?a("el-button",{attrs:{type:"info"},on:{click:function(t){e.exportHandle()}}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userId","header-align":"center",align:"center",width:"80",label:"ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"username","header-align":"center",align:"center",label:"用户名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deptName","header-align":"center",align:"center",label:"所属部门"}}),e._v(" "),a("el-table-column",{attrs:{prop:"email","header-align":"center",align:"center",label:"邮箱"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile","header-align":"center",align:"center",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){e.updateStatusHandle(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",width:"180",label:"创建时间"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$hasPermission("sys:user:update")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.addOrUpdateHandle(t.row.userId)}}},[e._v("修改")]):e._e(),e._v(" "),e.$hasPermission("sys:user:delete")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.userId)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},u=a("C7Lr")(l,d,!1,null,null,null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([36,47],{INS3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("rVsN"),s=a.n(r),n=a("0xDb"),i=a("E4LH"),o={data:function(){var e=this;return{visible:!1,deptList:[],deptListTreeProps:{label:"name",children:"children"},roleList:[],dataForm:{id:0,username:"",deptId:0,deptName:"",password:"",comfirmPassword:"",salt:"",email:"",mobile:"",roleIdList:[],status:1},dataRule:{username:[{required:!0,message:"必填项不能为空",trigger:"blur"}],deptName:[{required:!0,message:"必填项不能为空",trigger:"change"}],password:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?r():r(new Error("必填项不能为空"))},trigger:"blur"}],comfirmPassword:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?e.dataForm.password!==a?r(new Error("确认密码与密码输入不一致")):r():r(new Error("必填项不能为空"))},trigger:"blur"}],email:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.a)(t)?a():a(new Error("邮箱格式错误"))},trigger:"blur"}],mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.c)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;s.a.all([this.getDeptList(),this.getRoleList()]).then(function(){e.visible=!0,e.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.getUserInfo()})})},getDeptList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/dept/list").then(function(t){e.deptList=Object(n.d)(t||[],"deptId")})},getRoleList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/role/select").then(function(t){t&&0===t.code&&(e.roleList=t.list||[])})},getUserInfo:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info/"+this.dataForm.id).then(function(t){t&&0===t.code&&(e.dataForm.username=t.user.username,e.dataForm.deptId=t.user.deptId,e.dataForm.salt=t.user.salt,e.dataForm.email=t.user.email,e.dataForm.mobile=t.user.mobile,e.dataForm.roleIdList=t.user.roleIdList,e.dataForm.status=t.user.status,e.$refs.deptListTree.setCurrentKey(e.dataForm.deptId),e.dataForm.deptName=e.dataForm.deptId===e.$refs.deptListTree.getCurrentKey()?e.$refs.deptListTree.getCurrentNode().name:"")})},deptListTreeCurrentChangeHandle:function(e,t){this.dataForm.deptId=e.deptId,this.dataForm.deptName=e.name},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/"+(e.dataForm.id?"update":"save"),{userId:e.dataForm.id||void 0,username:e.dataForm.username,deptId:e.dataForm.deptId,deptName:e.dataForm.deptName,password:e.dataForm.password,salt:e.dataForm.salt,email:e.dataForm.email,mobile:e.dataForm.mobile,status:e.dataForm.status,roleIdList:e.dataForm.roleIdList}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属部门",prop:"deptName"}},[a("el-popover",{ref:"deptListPopover",attrs:{placement:"bottom-start",trigger:"click"}},[a("el-tree",{ref:"deptListTree",attrs:{data:e.deptList,props:e.deptListTreeProps,"node-key":"deptId","highlight-current":!0,"expand-on-click-node":!1},on:{"current-change":e.deptListTreeCurrentChangeHandle}})],1),e._v(" "),a("el-input",{directives:[{name:"popover",rawName:"v-popover:deptListPopover",arg:"deptListPopover"}],attrs:{readonly:!0,placeholder:"所属部门"},model:{value:e.dataForm.deptName,callback:function(t){e.$set(e.dataForm,"deptName",t)},expression:"dataForm.deptName"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"确认密码",prop:"comfirmPassword"}},[a("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.comfirmPassword,callback:function(t){e.$set(e.dataForm,"comfirmPassword",t)},expression:"dataForm.comfirmPassword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"邮箱"},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email",t)},expression:"dataForm.email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",size:"mini",prop:"roleIdList"}},[a("el-checkbox-group",{model:{value:e.dataForm.roleIdList,callback:function(t){e.$set(e.dataForm,"roleIdList",t)},expression:"dataForm.roleIdList"}},e._l(e.roleList,function(t){return a("el-checkbox",{key:t.roleId,attrs:{label:t.roleId}},[e._v(e._s(t.roleName))])}))],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[e._v("禁用")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("正常")])],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},d=a("C7Lr")(o,l,!1,null,null,null);t.default=d.exports},JnAV:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("INS3"),s=a("uAC3"),n=a.n(s),i=a("6iV/"),o=a.n(i),l={data:function(){return{dataForm:{username:""},dataList:[],pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1}},components:{AddOrUpdate:r.default},activated:function(){this.getDataList()},methods:{getDataList:function(){var e=this;this.dataListLoading=!0,this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/list",{params:{page:this.pageIndex,limit:this.pageSize,username:this.dataForm.username}}).then(function(t){t&&0===t.code?(e.dataList=t.data,e.totalPage=t.count):(e.dataList=[],e.totalPage=0),e.dataListLoading=!1})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()},selectionChangeHandle:function(e){this.dataListSelections=e},addOrUpdateHandle:function(e){var t=this;this.addOrUpdateVisible=!0,this.$nextTick(function(){t.$refs.addOrUpdate.dataForm.id=e||0,t.$refs.addOrUpdate.init()})},deleteHandle:function(e){var t=this,a=e?[e]:this.dataListSelections.map(function(e){return e.userId});this.$confirm("确定对[id="+a.join(",")+"]进行["+(e?"删除":"批量删除")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/delete",a).then(function(e){e&&0===e.code&&t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}})})}).catch(function(){})},updateStatusHandle:function(e){var t=this;this.$confirm("确定对[id="+e.userId+"]状态进行["+(e.status?"开启":"禁用")+"]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/status",{userId:e.userId,status:e.status},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(a){a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.getDataList()}}):e.status=Number(!e.status)})}).catch(function(){e.status=Number(!e.status)})},exportHandle:function(){var e={token:n.a.get("token"),username:this.dataForm.username};window.location.href=window.SITE_CONFIG.baseURL+"/sys/user/export?"+o.a.stringify(e)}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mod-sys__user"},[a("el-form",{attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getDataList()}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"用户名",clearable:""},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.getDataList()}}},[e._v("查询")])],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:save")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addOrUpdateHandle()}}},[e._v("新增")]):e._e()],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:delete")?a("el-button",{attrs:{type:"danger",disabled:e.dataListSelections.length<=0},on:{click:function(t){e.deleteHandle()}}},[e._v("批量删除")]):e._e()],1),e._v(" "),a("el-form-item",[e.$hasPermission("sys:user:export")?a("el-button",{attrs:{type:"info"},on:{click:function(t){e.exportHandle()}}},[e._v("导出")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection","header-align":"center",align:"center",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userId","header-align":"center",align:"center",width:"80",label:"ID"}}),e._v(" "),a("el-table-column",{attrs:{prop:"username","header-align":"center",align:"center",label:"用户名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deptName","header-align":"center",align:"center",label:"所属部门"}}),e._v(" "),a("el-table-column",{attrs:{prop:"email","header-align":"center",align:"center",label:"邮箱"}}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile","header-align":"center",align:"center",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){e.updateStatusHandle(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"createTime","header-align":"center",align:"center",width:"180",label:"创建时间"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$hasPermission("sys:user:update")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.addOrUpdateHandle(t.row.userId)}}},[e._v("修改")]):e._e(),e._v(" "),e.$hasPermission("sys:user:delete")?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.deleteHandle(t.row.userId)}}},[e._v("删除")]):e._e()]}}])})],1),e._v(" "),a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}),e._v(" "),e.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:e.getDataList}}):e._e()],1)},staticRenderFns:[]},u=a("C7Lr")(l,d,!1,null,null,null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([47],{INS3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("rVsN"),o=a.n(r),s=a("0xDb"),i=a("E4LH"),d={data:function(){var e=this;return{visible:!1,deptList:[],deptListTreeProps:{label:"name",children:"children"},roleList:[],dataForm:{id:0,username:"",deptId:0,deptName:"",password:"",comfirmPassword:"",salt:"",email:"",mobile:"",roleIdList:[],status:1},dataRule:{username:[{required:!0,message:"必填项不能为空",trigger:"blur"}],deptName:[{required:!0,message:"必填项不能为空",trigger:"change"}],password:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?r():r(new Error("必填项不能为空"))},trigger:"blur"}],comfirmPassword:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?e.dataForm.password!==a?r(new Error("确认密码与密码输入不一致")):r():r(new Error("必填项不能为空"))},trigger:"blur"}],email:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.a)(t)?a():a(new Error("邮箱格式错误"))},trigger:"blur"}],mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.b)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;o.a.all([this.getDeptList(),this.getRoleList()]).then(function(){e.visible=!0,e.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.getUserInfo()})})},getDeptList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/dept/list").then(function(t){e.deptList=Object(s.d)(t||[],"deptId")})},getRoleList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/role/select").then(function(t){t&&0===t.code&&(e.roleList=t.list||[])})},getUserInfo:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info/"+this.dataForm.id).then(function(t){t&&0===t.code&&(e.dataForm.username=t.user.username,e.dataForm.deptId=t.user.deptId,e.dataForm.salt=t.user.salt,e.dataForm.email=t.user.email,e.dataForm.mobile=t.user.mobile,e.dataForm.roleIdList=t.user.roleIdList,e.dataForm.status=t.user.status,e.$refs.deptListTree.setCurrentKey(e.dataForm.deptId),e.dataForm.deptName=e.dataForm.deptId===e.$refs.deptListTree.getCurrentKey()?e.$refs.deptListTree.getCurrentNode().name:"")})},deptListTreeCurrentChangeHandle:function(e,t){this.dataForm.deptId=e.deptId,this.dataForm.deptName=e.name},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/"+(e.dataForm.id?"update":"save"),{userId:e.dataForm.id||void 0,username:e.dataForm.username,deptId:e.dataForm.deptId,deptName:e.dataForm.deptName,password:e.dataForm.password,salt:e.dataForm.salt,email:e.dataForm.email,mobile:e.dataForm.mobile,status:e.dataForm.status,roleIdList:e.dataForm.roleIdList}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属部门",prop:"deptName"}},[a("el-popover",{ref:"deptListPopover",attrs:{placement:"bottom-start",trigger:"click"}},[a("el-tree",{ref:"deptListTree",attrs:{data:e.deptList,props:e.deptListTreeProps,"node-key":"deptId","highlight-current":!0,"expand-on-click-node":!1},on:{"current-change":e.deptListTreeCurrentChangeHandle}})],1),e._v(" "),a("el-input",{directives:[{name:"popover",rawName:"v-popover:deptListPopover",arg:"deptListPopover"}],attrs:{readonly:!0,placeholder:"所属部门"},model:{value:e.dataForm.deptName,callback:function(t){e.$set(e.dataForm,"deptName",t)},expression:"dataForm.deptName"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"确认密码",prop:"comfirmPassword"}},[a("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.comfirmPassword,callback:function(t){e.$set(e.dataForm,"comfirmPassword",t)},expression:"dataForm.comfirmPassword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"邮箱"},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email",t)},expression:"dataForm.email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",size:"mini",prop:"roleIdList"}},[a("el-checkbox-group",{model:{value:e.dataForm.roleIdList,callback:function(t){e.$set(e.dataForm,"roleIdList",t)},expression:"dataForm.roleIdList"}},e._l(e.roleList,function(t){return a("el-checkbox",{key:t.roleId,attrs:{label:t.roleId}},[e._v(e._s(t.roleName))])}))],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[e._v("禁用")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("正常")])],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},n=a("C7Lr")(d,l,!1,null,null,null);t.default=n.exports}});
\ No newline at end of file
webpackJsonp([47],{INS3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("rVsN"),o=a.n(r),s=a("0xDb"),i=a("E4LH"),d={data:function(){var e=this;return{visible:!1,deptList:[],deptListTreeProps:{label:"name",children:"children"},roleList:[],dataForm:{id:0,username:"",deptId:0,deptName:"",password:"",comfirmPassword:"",salt:"",email:"",mobile:"",roleIdList:[],status:1},dataRule:{username:[{required:!0,message:"必填项不能为空",trigger:"blur"}],deptName:[{required:!0,message:"必填项不能为空",trigger:"change"}],password:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?r():r(new Error("必填项不能为空"))},trigger:"blur"}],comfirmPassword:[{validator:function(t,a,r){e.dataForm.id||/\S/.test(a)?e.dataForm.password!==a?r(new Error("确认密码与密码输入不一致")):r():r(new Error("必填项不能为空"))},trigger:"blur"}],email:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.a)(t)?a():a(new Error("邮箱格式错误"))},trigger:"blur"}],mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(i.c)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;o.a.all([this.getDeptList(),this.getRoleList()]).then(function(){e.visible=!0,e.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.getUserInfo()})})},getDeptList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/dept/list").then(function(t){e.deptList=Object(s.d)(t||[],"deptId")})},getRoleList:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/role/select").then(function(t){t&&0===t.code&&(e.roleList=t.list||[])})},getUserInfo:function(){var e=this;this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info/"+this.dataForm.id).then(function(t){t&&0===t.code&&(e.dataForm.username=t.user.username,e.dataForm.deptId=t.user.deptId,e.dataForm.salt=t.user.salt,e.dataForm.email=t.user.email,e.dataForm.mobile=t.user.mobile,e.dataForm.roleIdList=t.user.roleIdList,e.dataForm.status=t.user.status,e.$refs.deptListTree.setCurrentKey(e.dataForm.deptId),e.dataForm.deptName=e.dataForm.deptId===e.$refs.deptListTree.getCurrentKey()?e.$refs.deptListTree.getCurrentNode().name:"")})},deptListTreeCurrentChangeHandle:function(e,t){this.dataForm.deptId=e.deptId,this.dataForm.deptName=e.name},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/"+(e.dataForm.id?"update":"save"),{userId:e.dataForm.id||void 0,username:e.dataForm.username,deptId:e.dataForm.deptId,deptName:e.dataForm.deptName,password:e.dataForm.password,salt:e.dataForm.salt,email:e.dataForm.email,mobile:e.dataForm.mobile,status:e.dataForm.status,roleIdList:e.dataForm.roleIdList}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"用户名",prop:"username"}},[a("el-input",{attrs:{placeholder:"登录帐号"},model:{value:e.dataForm.username,callback:function(t){e.$set(e.dataForm,"username",t)},expression:"dataForm.username"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属部门",prop:"deptName"}},[a("el-popover",{ref:"deptListPopover",attrs:{placement:"bottom-start",trigger:"click"}},[a("el-tree",{ref:"deptListTree",attrs:{data:e.deptList,props:e.deptListTreeProps,"node-key":"deptId","highlight-current":!0,"expand-on-click-node":!1},on:{"current-change":e.deptListTreeCurrentChangeHandle}})],1),e._v(" "),a("el-input",{directives:[{name:"popover",rawName:"v-popover:deptListPopover",arg:"deptListPopover"}],attrs:{readonly:!0,placeholder:"所属部门"},model:{value:e.dataForm.deptName,callback:function(t){e.$set(e.dataForm,"deptName",t)},expression:"dataForm.deptName"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),a("el-form-item",{class:{"is-required":!e.dataForm.id},attrs:{label:"确认密码",prop:"comfirmPassword"}},[a("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.comfirmPassword,callback:function(t){e.$set(e.dataForm,"comfirmPassword",t)},expression:"dataForm.comfirmPassword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"邮箱"},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email",t)},expression:"dataForm.email"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"角色",size:"mini",prop:"roleIdList"}},[a("el-checkbox-group",{model:{value:e.dataForm.roleIdList,callback:function(t){e.$set(e.dataForm,"roleIdList",t)},expression:"dataForm.roleIdList"}},e._l(e.roleList,function(t){return a("el-checkbox",{key:t.roleId,attrs:{label:t.roleId}},[e._v(e._s(t.roleName))])}))],1),e._v(" "),a("el-form-item",{attrs:{label:"状态",size:"mini",prop:"status"}},[a("el-radio-group",{model:{value:e.dataForm.status,callback:function(t){e.$set(e.dataForm,"status",t)},expression:"dataForm.status"}},[a("el-radio",{attrs:{label:0}},[e._v("禁用")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("正常")])],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},n=a("C7Lr")(d,l,!1,null,null,null);t.default=n.exports}});
\ No newline at end of file
webpackJsonp([60],{AKPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("E4LH"),r={data:function(){return{visible:!1,dataForm:{mobile:"",params:""},dataRule:{mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(o.b)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/send",{mobile:e.dataForm.mobile,params:e.dataForm.params},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送短信","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信参数",prop:"params"}},[a("el-input",{attrs:{placeholder:'如:{"code": "123456"}'},model:{value:e.dataForm.params,callback:function(t){e.$set(e.dataForm,"params",t)},expression:"dataForm.params"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},l=a("C7Lr")(r,i,!1,null,null,null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([60],{AKPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("E4LH"),r={data:function(){return{visible:!1,dataForm:{mobile:"",params:""},dataRule:{mobile:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(e,t,a){Object(o.c)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}]}}},methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/sms/send",{mobile:e.dataForm.mobile,params:e.dataForm.params},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}})})})}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送短信","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"120px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{placeholder:"手机号"},model:{value:e.dataForm.mobile,callback:function(t){e.$set(e.dataForm,"mobile",t)},expression:"dataForm.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"短信参数",prop:"params"}},[a("el-input",{attrs:{placeholder:'如:{"code": "123456"}'},model:{value:e.dataForm.params,callback:function(t){e.$set(e.dataForm,"params",t)},expression:"dataForm.params"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},l=a("C7Lr")(r,i,!1,null,null,null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([7,21],{"7Scg":function(e,t,a){(e.exports=a("UTlt")(!1)).push([e.i,"\n.el-input[data-v-e8820e6e] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-e8820e6e],\n.el-date-editor.el-input__inner[data-v-e8820e6e] {\n min-width: 220px;\n}\n[data-v-e8820e6e] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-e8820e6e] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-e8820e6e] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-e8820e6e] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-e8820e6e] {\n margin-bottom: 20px;\n}\n.bar[data-v-e8820e6e] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-e8820e6e] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-e8820e6e]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-e8820e6e] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-e8820e6e] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-e8820e6e] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-e8820e6e] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-e8820e6e] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-e8820e6e] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-e8820e6e] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-e8820e6e] {\n margin-left: 5px;\n}\n.longText[data-v-e8820e6e] {\n width: 350px;\n}\n.hiddIpt[data-v-e8820e6e].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-e8820e6e].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-e8820e6e] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-e8820e6e] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-e8820e6e] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-e8820e6e] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-e8820e6e] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-e8820e6e] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-e8820e6e] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-e8820e6e]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-e8820e6e] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-e8820e6e] {\n font-size: 16px;\n color: #999;\n}\n.el-input[data-v-e8820e6e] {\n width: 300px;\n}\n",""])},JkyU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("aA9S"),i=a.n(n),o=a("ZLEe"),r=a.n(o),l=a("2B17"),s=a("E4LH"),d=a("osGO"),p=a.n(d),c=a("M1nh"),m=a.n(c),b={data:function(){var e=this;return{activeNames:["1","2","3","4","5","6"],isEdit:!1,subLoading:!1,dataForm:{name:"",bizIds:[],bizScopeIds:[],domain:"",enable:"1",email:"",phone:"",priceMax:"",priceMin:"",remark:"",shortName:""},dataRule:{name:[{required:!0,message:"请输入公司名称",trigger:"blur"}],shortName:[{required:!0,message:"请输入公司简称",trigger:"blur"}],bizScopeIds:[{type:"array",required:!0,message:"请选择经营范围",trigger:"change"}],domain:[{required:!0,message:"请输入备案域名",trigger:"blur"}],enable:[{required:!0,message:"是否启用",trigger:"change"}],phone:[{required:!0,message:"请输入签约电话",trigger:"blur"},{validator:function(e,t,a){Object(s.b)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}],priceMax:[{required:!0,message:"请输入价格上限",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"},{validator:function(t,a,n){a<e.dataForm.priceMin?n(new Error("不能小于最低价格!")):n()},trigger:"blur"}],priceMin:[{required:!0,message:"请输入价格",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"}],email:[{required:!0,message:"请输入签约邮箱",trigger:"blur"},{type:"email",message:"请输入正确的签约邮箱",trigger:["blur","change"]}],bizIds:[{required:!0,message:"请选择所属商家",trigger:"change"}]},photoList:[{src:a("zQrT"),title:"法人身份证人像面"},{src:a("zQrT"),title:"法人身份证国徽面"},{src:a("zQrT"),title:"法人手持身份证正面"},{src:a("zQrT"),title:"企业营业执照"},{src:a("zQrT"),title:"企业开户许可证"},{src:a("zQrT"),title:"企业对公银行卡正面"}],busScopeList:["服装","箱包","家电","数码","手机","电脑","美妆","洗护","珠宝","眼镜","手表","运动","乐器","农资","建材","家具","办公","餐厨","百货","汽车","游戏"],apiData:{}}},props:{isReview:{type:String,default:""}},components:{queryBiz:l.a},methods:{init:function(){var e=this;console.log("------init"),this.dataForm.id?(this.isEdit=!0,this.getCompany()):this.$nextTick(function(){e.$refs.bizTemp.init()})},bizChange:function(e){this.dataForm.bizIds=e},getCompany:function(){var e=this;this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company/"+this.dataForm.id,{params:{}}).then(function(t){if(1==t.res){if(!t.dt)return;var a=t.dt.lst,n=[];r()(a).length>0&&(a.enable=a.enable+"",a.bizNames&&a.bizNames.length>0&&a.bizNames.filter(function(t){e.dataForm.bizIds.push(t.bizId)}),a.bizScopes&&a.bizScopes.length>0&&a.bizScopes.filter(function(e){n.push(+e.id)}),a.bizScopeIds=n,e.$nextTick(function(){e.$refs.bizTemp.dataForm.bizIds=e.dataForm.bizIds,e.$refs.bizTemp.init()}),i()(e.dataForm,a),e.apiData=i()({},e.dataForm))}})},showHome:function(){this.$emit("goHome")},isBackHome:function(){this.dataForm.id?this.editHandle():this.showHome()},handleChange:function(e){console.log(e)},editHandle:function(){this.isEdit=!this.isEdit,this.isDisable=!this.isDisable},submitForm:function(){var e=this;this.$refs.dataForm.validate(function(t){if(!t)return console.log("error submit!!"),!1;console.log(e.dataForm),e.subLoading=!0,e.dataForm.id?e.filterData():e.addCompany()})},filterData:function(){var e=this;if(p()(this.dataForm,this.apiData))this.editHandle(),setTimeout(function(){e.subLoading=!1},1e3);else{var t=[];for(var a in this.dataForm)if(this.dataForm.hasOwnProperty(a)){var n=this.dataForm[a];n!=this.apiData[a]&&t.push({key:a,part:"",listValue:m()(n)?n:null,value:m()(n)?"":n})}this.updateCompany(t)}},addCompany:function(){var e=this,t=i()({},this.dataForm);t.enable=+t.enable,this.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/company",t).then(function(t){1==t.res&&(console.log("---res",t),e.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){e.showHome(),e.$emit("refreshDataList")}})),setTimeout(function(){e.subLoading=!1},1e3)})},updateCompany:function(e){var t=this,a={id:this.dataForm.id,lst:e};this.$http.put(window.SITE_CONFIG["baseURL-pay"]+"/company",a).then(function(e){1==e.res&&(console.log("---res",e),t.$message({message:"修改成功",type:"success",duration:1500,onClose:function(){t.showHome(),t.$emit("refreshDataList")}})),setTimeout(function(){t.subLoading=!1},1e3)})}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"auditInformation"}},[a("div",{staticClass:"bar"},[a("span",{staticClass:"tit"},[e._v(e._s(e.dataForm.id?"查看":"添加")+"公司")]),e._v(" "),a("el-button",{staticClass:"go-back",attrs:{type:"text"},on:{click:e.showHome}},[e._v("返回")])],1),e._v(" "),a("el-form",{ref:"dataForm",staticClass:"com-form",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"100px"}},[a("el-collapse",{on:{change:e.handleChange},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"公司信息",name:"2"}},[a("el-form-item",{attrs:{label:"公司名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入公司名称",disabled:e.isEdit},model:{value:e.dataForm.name,callback:function(t){e.$set(e.dataForm,"name","string"==typeof t?t.trim():t)},expression:"dataForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司简称:",prop:"shortName"}},[a("el-input",{attrs:{placeholder:"请输入公司简称",disabled:e.isEdit},model:{value:e.dataForm.shortName,callback:function(t){e.$set(e.dataForm,"shortName","string"==typeof t?t.trim():t)},expression:"dataForm.shortName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备案域名:",prop:"domain"}},[a("el-input",{attrs:{placeholder:"请输入备案域名",disabled:e.isEdit},model:{value:e.dataForm.domain,callback:function(t){e.$set(e.dataForm,"domain","string"==typeof t?t.trim():t)},expression:"dataForm.domain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属商家:",prop:"bizIds"}},[a("query-biz",{ref:"bizTemp",attrs:{bizIds:e.dataForm.bizIds,isMultiple:!0,isDisabled:e.isEdit},on:{backVal:e.bizChange}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签约电话:",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入签约电话",disabled:e.isEdit,maxlength:"11"},model:{value:e.dataForm.phone,callback:function(t){e.$set(e.dataForm,"phone","string"==typeof t?t.trim():t)},expression:"dataForm.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签约邮箱:",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入签约邮箱",disabled:e.isEdit},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email","string"==typeof t?t.trim():t)},expression:"dataForm.email"}})],1)],1),e._v(" "),a("el-collapse-item",{attrs:{title:"经营信息",name:"4"}},[a("el-form-item",{attrs:{label:"经营范围:",prop:"bizScopeIds"}},[a("el-checkbox-group",{attrs:{disabled:e.isEdit},model:{value:e.dataForm.bizScopeIds,callback:function(t){e.$set(e.dataForm,"bizScopeIds",t)},expression:"dataForm.bizScopeIds"}},e._l(e.busScopeList,function(t,n){return a("el-checkbox",{key:n,attrs:{label:n+1}},[e._v(e._s(t))])}))],1),e._v(" "),a("el-form-item",{staticClass:"limit-col",attrs:{label:"价格范围:(人民币)"}},[a("el-form-item",{attrs:{prop:"priceMin"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:e.isEdit},model:{value:e.dataForm.priceMin,callback:function(t){e.$set(e.dataForm,"priceMin",e._n(t))},expression:"dataForm.priceMin"}})],1),e._v(" -\n "),a("el-form-item",{attrs:{prop:"priceMax"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:e.isEdit},model:{value:e.dataForm.priceMax,callback:function(t){e.$set(e.dataForm,"priceMax",e._n(t))},expression:"dataForm.priceMax"}})],1)],1)],1),e._v(" "),a("el-collapse-item",{attrs:{title:"其他信息",name:"5"}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.dataForm.enable,callback:function(t){e.$set(e.dataForm,"enable",t)},expression:"dataForm.enable"}},[a("el-radio",{attrs:{label:"1"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:"0"}},[e._v("否")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息",disabled:e.isEdit},model:{value:e.dataForm.remark,callback:function(t){e.$set(e.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1)],1),e._v(" "),a("el-form-item",[e.isEdit?e._e():a("el-button",{on:{click:e.isBackHome}},[e._v("取消")]),e._v(" "),e.isEdit?e._e():a("el-button",{attrs:{type:"primary",loading:e.subLoading},on:{click:e.submitForm}},[e._v("保存")]),e._v(" "),e.isEdit?a("el-button",{attrs:{type:"primary"},on:{click:e.editHandle}},[e._v("编辑")]):e._e()],1)],1)],1)},staticRenderFns:[]};var u=a("C7Lr")(b,f,!1,function(e){a("hzgC")},"data-v-826b1df8",null);t.default=u.exports},N3E6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("aA9S"),i=a.n(n),o=a("4YfN"),r=a.n(o),l=a("JkyU"),s=a("Nhmt"),d=a("WGjs"),p=a("9rMa"),c={data:function(){return{visible:!1,rVisible:!1,remarkUrl:"company",isDetails:"home",dataForm:{enable:"",keyword:""},dataList:[],toolTip:{1:"启用",0:"禁用"},pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addVisible:!1,channelVisible:!1}},components:{addCompany:l.default,remark:s.a,payEnable:d.a},computed:r()({},Object(p.c)({enableList:function(e){return e.payCommon.enableList}})),created:function(){this.getDataList()},methods:{selectionChangeHandle:function(){},resetForm:function(){this.$refs.dataForm.resetFields()},getDataList:function(){var e=this;this.dataListLoading=!0;var t=i()({},this.dataForm,{pageIndex:this.pageIndex,pageSize:this.pageSize});this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company",{params:t}).then(function(t){if(console.log("-----data",t),0==t.ec){if(!t.dt)return void(e.dataListLoading=!1);var a=t.dt.lst;a&&a.length>0&&a.filter(function(t){e.enableList.filter(function(e){e.value==t.enable&&(t.statusText=e.label)});var a=[];t.bizNames.length&&t.bizNames.filter(function(e){a.push(e.bizName)}),t.bizName=a.toString()}),e.dataList=a;var n=t.dt.pg;e.pageIndex=n.idx,e.pageSize=n.ps,e.totalPage=n.dc,e.dataListLoading=!1}else e.dataListLoading=!1})},goHome:function(){this.isDetails="home"},addHandle:function(){var e=this;this.isDetails="add",this.$nextTick(function(){e.$refs.addCom.init()})},seeHandle:function(e){var t=this;this.isDetails="detail",this.$nextTick(function(){t.$refs.conDetail.dataForm.id=e||0,t.$refs.conDetail.init()})},remarkHandle:function(e){var t=this;this.rVisible=!0,this.$nextTick(function(){t.$refs.sRemark.dataForm.id=e.id||0,t.$refs.sRemark.dataForm.remark=e.remark||"",t.$refs.sRemark.init()})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"b-management"}},["detail"==e.isDetails?[a("add-company",{ref:"conDetail",on:{goHome:e.goHome,refreshDataList:e.getDataList}})]:e._e(),e._v(" "),"add"==e.isDetails?[a("add-company",{ref:"addCom",on:{goHome:e.goHome,refreshDataList:e.getDataList}})]:e._e(),e._v(" "),"home"==e.isDetails?[a("el-form",{ref:"dataForm",attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.currentChangeHandle(1)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{placeholder:"公司名称/备案域名/签约手机/签约邮箱",clearable:""},model:{value:e.dataForm.keyword,callback:function(t){e.$set(e.dataForm,"keyword","string"==typeof t?t.trim():t)},expression:"dataForm.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"enable"}},[a("el-select",{attrs:{placeholder:"请选择公司状态",clearable:""},model:{value:e.dataForm.enable,callback:function(t){e.$set(e.dataForm,"enable",t)},expression:"dataForm.enable"}},e._l(e.enableList,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.currentChangeHandle(1)}}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){e.resetForm()}}},[e._v("重置")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addHandle()}}},[e._v("新增公司")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{prop:"id","header-align":"center",align:"center",label:"公司编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","header-align":"center",align:"center",label:"公司名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"shortName","header-align":"center",align:"center",label:"公司简称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"domain","header-align":"center",align:"center",label:"备案域名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"bizName","header-align":"center",align:"center",label:"所属商家"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone","header-align":"center",align:"center",label:"签约手机"}}),e._v(" "),a("el-table-column",{attrs:{prop:"email","header-align":"center",align:"center",label:"签约邮箱"}}),e._v(" "),a("el-table-column",{attrs:{prop:"enable","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pay-enable",{attrs:{eUrl:e.remarkUrl,eId:t.row.id,eVal:t.row.enable},on:{refreshDataList:e.getDataList}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"remark","header-align":"center",align:"center",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"202",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{content:"查看",placement:"top"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-view",circle:"",size:"mini"},on:{click:function(a){e.seeHandle(t.row.id)}}})],1),e._v(" "),a("el-tooltip",{attrs:{content:"备注",placement:"top"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-edit-outline",circle:"",size:"mini"},on:{click:function(a){e.remarkHandle(t.row)}}})],1)]}}])})],1),e._v(" "),e.totalPage>e.pageSize?a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}):e._e(),e._v(" "),e.rVisible?a("remark",{ref:"sRemark",attrs:{rUrl:e.remarkUrl},on:{refreshDataList:e.getDataList}}):e._e()]:e._e()],2)},staticRenderFns:[]};var b=a("C7Lr")(c,m,!1,function(e){a("sipN")},"data-v-e8820e6e",null);t.default=b.exports},hzgC:function(e,t,a){var n=a("lFIw");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("FIqI")("f26f2318",n,!0,{})},lFIw:function(e,t,a){(e.exports=a("UTlt")(!1)).push([e.i,"\n.el-input[data-v-826b1df8] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-826b1df8],\n.el-date-editor.el-input__inner[data-v-826b1df8] {\n min-width: 220px;\n}\n[data-v-826b1df8] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-826b1df8] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-826b1df8] {\n margin-bottom: 20px;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-826b1df8]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-826b1df8] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-826b1df8] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-826b1df8] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-826b1df8] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-826b1df8] {\n margin-left: 5px;\n}\n.longText[data-v-826b1df8] {\n width: 350px;\n}\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-826b1df8] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-826b1df8] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-826b1df8] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-826b1df8] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-826b1df8] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-826b1df8] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-826b1df8] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-826b1df8] {\n font-size: 16px;\n color: #999;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.com-form .el-checkbox-group .el-checkbox[data-v-826b1df8] {\n float: left;\n width: 70px;\n}\n.com-form .el-checkbox-group .el-checkbox + .el-checkbox[data-v-826b1df8] {\n margin-left: 0;\n}\n",""])},sipN:function(e,t,a){var n=a("7Scg");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("FIqI")("4a60265a",n,!0,{})}});
\ No newline at end of file
webpackJsonp([7,21],{"7Scg":function(e,t,a){(e.exports=a("UTlt")(!1)).push([e.i,"\n.el-input[data-v-e8820e6e] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-e8820e6e],\n.el-date-editor.el-input__inner[data-v-e8820e6e] {\n min-width: 220px;\n}\n[data-v-e8820e6e] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-e8820e6e] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-e8820e6e] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-e8820e6e] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-e8820e6e] {\n margin-bottom: 20px;\n}\n.bar[data-v-e8820e6e] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-e8820e6e] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-e8820e6e]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-e8820e6e] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-e8820e6e] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-e8820e6e] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-e8820e6e] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-e8820e6e] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-e8820e6e] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-e8820e6e] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-e8820e6e] {\n margin-left: 5px;\n}\n.longText[data-v-e8820e6e] {\n width: 350px;\n}\n.hiddIpt[data-v-e8820e6e].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-e8820e6e].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-e8820e6e] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-e8820e6e] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-e8820e6e] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-e8820e6e] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-e8820e6e] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-e8820e6e] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-e8820e6e] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-e8820e6e]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-e8820e6e] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-e8820e6e] {\n font-size: 16px;\n color: #999;\n}\n.el-input[data-v-e8820e6e] {\n width: 300px;\n}\n",""])},JkyU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("aA9S"),i=a.n(n),o=a("ZLEe"),r=a.n(o),l=a("2B17"),s=a("E4LH"),d=a("osGO"),p=a.n(d),c=a("M1nh"),m=a.n(c),b={data:function(){var e=this;return{activeNames:["1","2","3","4","5","6"],isEdit:!1,subLoading:!1,dataForm:{name:"",bizIds:[],bizScopeIds:[],domain:"",enable:"1",email:"",phone:"",priceMax:"",priceMin:"",remark:"",shortName:""},dataRule:{name:[{required:!0,message:"请输入公司名称",trigger:"blur"}],shortName:[{required:!0,message:"请输入公司简称",trigger:"blur"}],bizScopeIds:[{type:"array",required:!0,message:"请选择经营范围",trigger:"change"}],domain:[{required:!0,message:"请输入备案域名",trigger:"blur"}],enable:[{required:!0,message:"是否启用",trigger:"change"}],phone:[{required:!0,message:"请输入签约电话",trigger:"blur"},{validator:function(e,t,a){Object(s.c)(t)?a():a(new Error("手机号格式错误"))},trigger:"blur"}],priceMax:[{required:!0,message:"请输入价格上限",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"},{validator:function(t,a,n){a<e.dataForm.priceMin?n(new Error("不能小于最低价格!")):n()},trigger:"blur"}],priceMin:[{required:!0,message:"请输入价格",trigger:"blur"},{type:"number",message:"价格必须为数字值",trigger:"blur"}],email:[{required:!0,message:"请输入签约邮箱",trigger:"blur"},{type:"email",message:"请输入正确的签约邮箱",trigger:["blur","change"]}],bizIds:[{required:!0,message:"请选择所属商家",trigger:"change"}]},photoList:[{src:a("zQrT"),title:"法人身份证人像面"},{src:a("zQrT"),title:"法人身份证国徽面"},{src:a("zQrT"),title:"法人手持身份证正面"},{src:a("zQrT"),title:"企业营业执照"},{src:a("zQrT"),title:"企业开户许可证"},{src:a("zQrT"),title:"企业对公银行卡正面"}],busScopeList:["服装","箱包","家电","数码","手机","电脑","美妆","洗护","珠宝","眼镜","手表","运动","乐器","农资","建材","家具","办公","餐厨","百货","汽车","游戏"],apiData:{}}},props:{isReview:{type:String,default:""}},components:{queryBiz:l.a},methods:{init:function(){var e=this;console.log("------init"),this.dataForm.id?(this.isEdit=!0,this.getCompany()):this.$nextTick(function(){e.$refs.bizTemp.init()})},bizChange:function(e){this.dataForm.bizIds=e},getCompany:function(){var e=this;this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company/"+this.dataForm.id,{params:{}}).then(function(t){if(1==t.res){if(!t.dt)return;var a=t.dt.lst,n=[];r()(a).length>0&&(a.enable=a.enable+"",a.bizNames&&a.bizNames.length>0&&a.bizNames.filter(function(t){e.dataForm.bizIds.push(t.bizId)}),a.bizScopes&&a.bizScopes.length>0&&a.bizScopes.filter(function(e){n.push(+e.id)}),a.bizScopeIds=n,e.$nextTick(function(){e.$refs.bizTemp.dataForm.bizIds=e.dataForm.bizIds,e.$refs.bizTemp.init()}),i()(e.dataForm,a),e.apiData=i()({},e.dataForm))}})},showHome:function(){this.$emit("goHome")},isBackHome:function(){this.dataForm.id?this.editHandle():this.showHome()},handleChange:function(e){console.log(e)},editHandle:function(){this.isEdit=!this.isEdit,this.isDisable=!this.isDisable},submitForm:function(){var e=this;this.$refs.dataForm.validate(function(t){if(!t)return console.log("error submit!!"),!1;console.log(e.dataForm),e.subLoading=!0,e.dataForm.id?e.filterData():e.addCompany()})},filterData:function(){var e=this;if(p()(this.dataForm,this.apiData))this.editHandle(),setTimeout(function(){e.subLoading=!1},1e3);else{var t=[];for(var a in this.dataForm)if(this.dataForm.hasOwnProperty(a)){var n=this.dataForm[a];n!=this.apiData[a]&&t.push({key:a,part:"",listValue:m()(n)?n:null,value:m()(n)?"":n})}this.updateCompany(t)}},addCompany:function(){var e=this,t=i()({},this.dataForm);t.enable=+t.enable,this.$http.post(window.SITE_CONFIG["baseURL-pay"]+"/company",t).then(function(t){1==t.res&&(console.log("---res",t),e.$message({message:"添加成功",type:"success",duration:1500,onClose:function(){e.showHome(),e.$emit("refreshDataList")}})),setTimeout(function(){e.subLoading=!1},1e3)})},updateCompany:function(e){var t=this,a={id:this.dataForm.id,lst:e};this.$http.put(window.SITE_CONFIG["baseURL-pay"]+"/company",a).then(function(e){1==e.res&&(console.log("---res",e),t.$message({message:"修改成功",type:"success",duration:1500,onClose:function(){t.showHome(),t.$emit("refreshDataList")}})),setTimeout(function(){t.subLoading=!1},1e3)})}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"auditInformation"}},[a("div",{staticClass:"bar"},[a("span",{staticClass:"tit"},[e._v(e._s(e.dataForm.id?"查看":"添加")+"公司")]),e._v(" "),a("el-button",{staticClass:"go-back",attrs:{type:"text"},on:{click:e.showHome}},[e._v("返回")])],1),e._v(" "),a("el-form",{ref:"dataForm",staticClass:"com-form",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"100px"}},[a("el-collapse",{on:{change:e.handleChange},model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:"公司信息",name:"2"}},[a("el-form-item",{attrs:{label:"公司名称:",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入公司名称",disabled:e.isEdit},model:{value:e.dataForm.name,callback:function(t){e.$set(e.dataForm,"name","string"==typeof t?t.trim():t)},expression:"dataForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"公司简称:",prop:"shortName"}},[a("el-input",{attrs:{placeholder:"请输入公司简称",disabled:e.isEdit},model:{value:e.dataForm.shortName,callback:function(t){e.$set(e.dataForm,"shortName","string"==typeof t?t.trim():t)},expression:"dataForm.shortName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备案域名:",prop:"domain"}},[a("el-input",{attrs:{placeholder:"请输入备案域名",disabled:e.isEdit},model:{value:e.dataForm.domain,callback:function(t){e.$set(e.dataForm,"domain","string"==typeof t?t.trim():t)},expression:"dataForm.domain"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属商家:",prop:"bizIds"}},[a("query-biz",{ref:"bizTemp",attrs:{bizIds:e.dataForm.bizIds,isMultiple:!0,isDisabled:e.isEdit},on:{backVal:e.bizChange}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签约电话:",prop:"phone"}},[a("el-input",{attrs:{placeholder:"请输入签约电话",disabled:e.isEdit,maxlength:"11"},model:{value:e.dataForm.phone,callback:function(t){e.$set(e.dataForm,"phone","string"==typeof t?t.trim():t)},expression:"dataForm.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"签约邮箱:",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入签约邮箱",disabled:e.isEdit},model:{value:e.dataForm.email,callback:function(t){e.$set(e.dataForm,"email","string"==typeof t?t.trim():t)},expression:"dataForm.email"}})],1)],1),e._v(" "),a("el-collapse-item",{attrs:{title:"经营信息",name:"4"}},[a("el-form-item",{attrs:{label:"经营范围:",prop:"bizScopeIds"}},[a("el-checkbox-group",{attrs:{disabled:e.isEdit},model:{value:e.dataForm.bizScopeIds,callback:function(t){e.$set(e.dataForm,"bizScopeIds",t)},expression:"dataForm.bizScopeIds"}},e._l(e.busScopeList,function(t,n){return a("el-checkbox",{key:n,attrs:{label:n+1}},[e._v(e._s(t))])}))],1),e._v(" "),a("el-form-item",{staticClass:"limit-col",attrs:{label:"价格范围:(人民币)"}},[a("el-form-item",{attrs:{prop:"priceMin"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:e.isEdit},model:{value:e.dataForm.priceMin,callback:function(t){e.$set(e.dataForm,"priceMin",e._n(t))},expression:"dataForm.priceMin"}})],1),e._v(" -\n "),a("el-form-item",{attrs:{prop:"priceMax"}},[a("el-input",{attrs:{placeholder:"请输入价格",disabled:e.isEdit},model:{value:e.dataForm.priceMax,callback:function(t){e.$set(e.dataForm,"priceMax",e._n(t))},expression:"dataForm.priceMax"}})],1)],1)],1),e._v(" "),a("el-collapse-item",{attrs:{title:"其他信息",name:"5"}},[a("el-form-item",{attrs:{label:"是否启用:",prop:"enable"}},[a("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.dataForm.enable,callback:function(t){e.$set(e.dataForm,"enable",t)},expression:"dataForm.enable"}},[a("el-radio",{attrs:{label:"1"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:"0"}},[e._v("否")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入备注信息",disabled:e.isEdit},model:{value:e.dataForm.remark,callback:function(t){e.$set(e.dataForm,"remark",t)},expression:"dataForm.remark"}})],1)],1)],1),e._v(" "),a("el-form-item",[e.isEdit?e._e():a("el-button",{on:{click:e.isBackHome}},[e._v("取消")]),e._v(" "),e.isEdit?e._e():a("el-button",{attrs:{type:"primary",loading:e.subLoading},on:{click:e.submitForm}},[e._v("保存")]),e._v(" "),e.isEdit?a("el-button",{attrs:{type:"primary"},on:{click:e.editHandle}},[e._v("编辑")]):e._e()],1)],1)],1)},staticRenderFns:[]};var u=a("C7Lr")(b,f,!1,function(e){a("hzgC")},"data-v-826b1df8",null);t.default=u.exports},N3E6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("aA9S"),i=a.n(n),o=a("4YfN"),r=a.n(o),l=a("JkyU"),s=a("Nhmt"),d=a("WGjs"),p=a("9rMa"),c={data:function(){return{visible:!1,rVisible:!1,remarkUrl:"company",isDetails:"home",dataForm:{enable:"",keyword:""},dataList:[],toolTip:{1:"启用",0:"禁用"},pageIndex:1,pageSize:10,totalPage:0,dataListLoading:!1,dataListSelections:[],addVisible:!1,channelVisible:!1}},components:{addCompany:l.default,remark:s.a,payEnable:d.a},computed:r()({},Object(p.c)({enableList:function(e){return e.payCommon.enableList}})),created:function(){this.getDataList()},methods:{selectionChangeHandle:function(){},resetForm:function(){this.$refs.dataForm.resetFields()},getDataList:function(){var e=this;this.dataListLoading=!0;var t=i()({},this.dataForm,{pageIndex:this.pageIndex,pageSize:this.pageSize});this.$http.get(window.SITE_CONFIG["baseURL-pay"]+"/company",{params:t}).then(function(t){if(console.log("-----data",t),0==t.ec){if(!t.dt)return void(e.dataListLoading=!1);var a=t.dt.lst;a&&a.length>0&&a.filter(function(t){e.enableList.filter(function(e){e.value==t.enable&&(t.statusText=e.label)});var a=[];t.bizNames.length&&t.bizNames.filter(function(e){a.push(e.bizName)}),t.bizName=a.toString()}),e.dataList=a;var n=t.dt.pg;e.pageIndex=n.idx,e.pageSize=n.ps,e.totalPage=n.dc,e.dataListLoading=!1}else e.dataListLoading=!1})},goHome:function(){this.isDetails="home"},addHandle:function(){var e=this;this.isDetails="add",this.$nextTick(function(){e.$refs.addCom.init()})},seeHandle:function(e){var t=this;this.isDetails="detail",this.$nextTick(function(){t.$refs.conDetail.dataForm.id=e||0,t.$refs.conDetail.init()})},remarkHandle:function(e){var t=this;this.rVisible=!0,this.$nextTick(function(){t.$refs.sRemark.dataForm.id=e.id||0,t.$refs.sRemark.dataForm.remark=e.remark||"",t.$refs.sRemark.init()})},sizeChangeHandle:function(e){this.pageSize=e,this.pageIndex=1,this.getDataList()},currentChangeHandle:function(e){this.pageIndex=e,this.getDataList()}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"b-management"}},["detail"==e.isDetails?[a("add-company",{ref:"conDetail",on:{goHome:e.goHome,refreshDataList:e.getDataList}})]:e._e(),e._v(" "),"add"==e.isDetails?[a("add-company",{ref:"addCom",on:{goHome:e.goHome,refreshDataList:e.getDataList}})]:e._e(),e._v(" "),"home"==e.isDetails?[a("el-form",{ref:"dataForm",attrs:{inline:!0,model:e.dataForm},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.currentChangeHandle(1)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{placeholder:"公司名称/备案域名/签约手机/签约邮箱",clearable:""},model:{value:e.dataForm.keyword,callback:function(t){e.$set(e.dataForm,"keyword","string"==typeof t?t.trim():t)},expression:"dataForm.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"enable"}},[a("el-select",{attrs:{placeholder:"请选择公司状态",clearable:""},model:{value:e.dataForm.enable,callback:function(t){e.$set(e.dataForm,"enable",t)},expression:"dataForm.enable"}},e._l(e.enableList,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{on:{click:function(t){e.currentChangeHandle(1)}}},[e._v("查询")]),e._v(" "),a("el-button",{on:{click:function(t){e.resetForm()}}},[e._v("重置")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addHandle()}}},[e._v("新增公司")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dataListLoading,expression:"dataListLoading"}],staticStyle:{width:"100%"},attrs:{data:e.dataList,border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{prop:"id","header-align":"center",align:"center",label:"公司编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name","header-align":"center",align:"center",label:"公司名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"shortName","header-align":"center",align:"center",label:"公司简称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"domain","header-align":"center",align:"center",label:"备案域名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"bizName","header-align":"center",align:"center",label:"所属商家"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone","header-align":"center",align:"center",label:"签约手机"}}),e._v(" "),a("el-table-column",{attrs:{prop:"email","header-align":"center",align:"center",label:"签约邮箱"}}),e._v(" "),a("el-table-column",{attrs:{prop:"enable","header-align":"center",align:"center",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("pay-enable",{attrs:{eUrl:e.remarkUrl,eId:t.row.id,eVal:t.row.enable},on:{refreshDataList:e.getDataList}})]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"remark","header-align":"center",align:"center",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",width:"202",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tooltip",{attrs:{content:"查看",placement:"top"}},[a("el-button",{attrs:{type:"success",icon:"el-icon-view",circle:"",size:"mini"},on:{click:function(a){e.seeHandle(t.row.id)}}})],1),e._v(" "),a("el-tooltip",{attrs:{content:"备注",placement:"top"}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-edit-outline",circle:"",size:"mini"},on:{click:function(a){e.remarkHandle(t.row)}}})],1)]}}])})],1),e._v(" "),e.totalPage>e.pageSize?a("el-pagination",{attrs:{"current-page":e.pageIndex,"page-sizes":[10,20,50,100],"page-size":e.pageSize,total:e.totalPage,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":e.sizeChangeHandle,"current-change":e.currentChangeHandle}}):e._e(),e._v(" "),e.rVisible?a("remark",{ref:"sRemark",attrs:{rUrl:e.remarkUrl},on:{refreshDataList:e.getDataList}}):e._e()]:e._e()],2)},staticRenderFns:[]};var b=a("C7Lr")(c,m,!1,function(e){a("sipN")},"data-v-e8820e6e",null);t.default=b.exports},hzgC:function(e,t,a){var n=a("lFIw");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("FIqI")("f26f2318",n,!0,{})},lFIw:function(e,t,a){(e.exports=a("UTlt")(!1)).push([e.i,"\n.el-input[data-v-826b1df8] {\n width: 205px;\n max-width: 414px;\n}\n.el-date-editor.el-input[data-v-826b1df8],\n.el-date-editor.el-input__inner[data-v-826b1df8] {\n min-width: 220px;\n}\n[data-v-826b1df8] .el-collapse-item__arrow {\n line-height: 48px;\n}\n[data-v-826b1df8] .el-collapse-item__header {\n background-color: #17b3a3;\n color: #fff;\n padding-left: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap {\n margin-top: 10px;\n}\n[data-v-826b1df8] .el-collapse-item__wrap:last-child {\n border-bottom: none;\n}\n.el-row[data-v-826b1df8] {\n margin-bottom: 20px;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n border-bottom: 1px solid #ebeef5;\n margin-bottom: 10px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n background-color: #17b3a3;\n color: #fff;\n padding: 8px 10px;\n position: relative;\n}\n.bar .tit[data-v-826b1df8]::after {\n content: '';\n border-top: 16px solid transparent;\n border-left: 16px solid #17b3a3;\n border-bottom: 17px solid transparent;\n position: absolute;\n right: -16px;\n top: 0;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.limit-col[data-v-826b1df8] {\n background-color: #fff;\n display: inline-block;\n}\n.limit-col[data-v-826b1df8] .el-form-item__content .el-form-item {\n display: inline-block;\n}\n[data-v-826b1df8] .el-dialog__header {\n background-color: #17B3A3;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__title {\n color: #fff;\n}\n[data-v-826b1df8] .el-dialog__header .el-dialog__headerbtn .el-dialog__close {\n color: #fff;\n}\n[data-v-826b1df8] .el-card__header {\n background-color: #17B3A3;\n color: #fff;\n}\n.el-button + .el-button[data-v-826b1df8] {\n margin-left: 5px;\n}\n.longText[data-v-826b1df8] {\n width: 350px;\n}\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__content,\n.hiddIpt[data-v-826b1df8].el-form-item--medium .el-form-item__label {\n height: 0;\n}\n.hiddIpt[data-v-826b1df8] .el-form-item__error {\n left: -16px;\n}\n.photo-box li[data-v-826b1df8] {\n display: inline-block;\n width: 32%;\n text-align: center;\n margin-top: 20px;\n}\n.photo-box li .p-img-box[data-v-826b1df8] {\n display: inline-block;\n position: relative;\n height: 154px;\n}\n.photo-box li .p-img-box.noImg img[data-v-826b1df8] {\n background-color: #e4e4e4;\n}\n.photo-box li .p-img-box img[data-v-826b1df8] {\n cursor: pointer;\n height: 100%;\n min-width: 216px;\n max-width: 216px;\n display: inline-block;\n}\n.photo-box li .p-img-box.disabled img[data-v-826b1df8] {\n cursor: default;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8] {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n cursor: pointer;\n text-align: center;\n color: #fff;\n opacity: 0;\n font-size: 20px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.photo-box li .p-img-box .p-mask[data-v-826b1df8]:hover {\n opacity: 1;\n}\n.photo-box li .p-img-box .p-mask i[data-v-826b1df8] {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n.photo-box li .tit[data-v-826b1df8] {\n font-size: 16px;\n color: #999;\n}\n.bar[data-v-826b1df8] {\n position: relative;\n text-align: left;\n height: 40px;\n line-height: 40px;\n}\n.bar .tit[data-v-826b1df8] {\n font-size: 16px;\n}\n.bar .go-back[data-v-826b1df8] {\n position: absolute;\n right: 4px;\n top: 4px;\n}\n.com-form .el-checkbox-group .el-checkbox[data-v-826b1df8] {\n float: left;\n width: 70px;\n}\n.com-form .el-checkbox-group .el-checkbox + .el-checkbox[data-v-826b1df8] {\n margin-left: 0;\n}\n",""])},sipN:function(e,t,a){var n=a("7Scg");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("FIqI")("4a60265a",n,!0,{})}});
\ No newline at end of file
webpackJsonp([80],{Unbz:function(e,t,n){var s=n("G7OI");e.exports=function(){return s.Date.now()}},Uyw1:function(e,t,n){var s=n("8JGq"),a=n("cC8b"),i=NaN,r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?i:+e}},"sRz/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n("4YfN"),a=n.n(s),i=n("rVsN"),r=n.n(i),o=n("0xDb"),u=n("9rMa"),c={data:function(){var e=this;return{visible:!1,dataForm:{password:"",newPassword:"",confirmPassword:""},dataRule:{password:[{required:!0,message:"必填项不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"必填项不能为空",trigger:"blur"}],confirmPassword:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(t,n,s){e.dataForm.newPassword!==n?s(new Error("确认密码与新密码不一致")):s()},trigger:"blur"}]}}},computed:a()({},Object(u.c)({userName:function(e){return e.user.name}})),methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/password",{password:e.dataForm.password,newPassword:e.dataForm.newPassword},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$nextTick(function(){Object(o.a)(),e.$router.replace({name:"login"})})}})})})}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"修改密码",visible:e.visible,"append-to-body":!0},on:{"update:visible":function(t){e.visible=t}}},[n("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[n("el-form-item",{attrs:{label:"账号"}},[n("span",[e._v(e._s(e.userName))])]),e._v(" "),n("el-form-item",{attrs:{label:"原密码",prop:"password"}},[n("el-input",{attrs:{type:"password",placeholder:"原密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[n("el-input",{attrs:{type:"password",placeholder:"新密码"},model:{value:e.dataForm.newPassword,callback:function(t){e.$set(e.dataForm,"newPassword",t)},expression:"dataForm.newPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[n("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.confirmPassword,callback:function(t){e.$set(e.dataForm,"confirmPassword",t)},expression:"dataForm.confirmPassword"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},d={data:function(){return{updatePassowrdVisible:!1}},components:{UpdatePassword:n("C7Lr")(c,l,!1,null,null,null).exports},computed:a()({},Object(u.c)({navbarLayoutType:function(e){return e.user.navbarLayoutType},sidebarFold:function(e){return e.user.sidebarFold},userName:function(e){return e.user.name}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}}}),methods:{updatePasswordHandle:function(){var e=this;this.updatePassowrdVisible=!0,this.$nextTick(function(){e.$refs.updatePassowrd.init()})},logoutHandle:function(){var e=this;this.$confirm("确定进行[退出]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http.post(window.SITE_CONFIG.baseURL+"/sys/logout").then(function(t){t&&0===t.code&&(Object(o.a)(),e.$router.push({name:"login"}))})}).catch(function(){})}}},m={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("nav",{staticClass:"site-navbar",class:"site-navbar--"+e.navbarLayoutType},[s("div",{staticClass:"site-navbar__header"},[s("h1",{staticClass:"site-navbar__brand",on:{click:function(t){e.$router.push({name:"home"})}}},[s("a",{staticClass:"site-navbar__brand-lg",attrs:{href:"javascript:;"}},[e._v("云支付"+e._s(e.$config.name))]),e._v(" "),s("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[e._v("云支付")])])]),e._v(" "),s("div",{staticClass:"site-navbar__body"},[s("el-menu",{staticClass:"site-navbar__menu mr-auto",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(t){e.sidebarFold=!e.sidebarFold}}},[s("icon-svg",{attrs:{name:"zhedie"}})],1)],1),e._v(" "),s("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"2"}},[s("el-dropdown",{attrs:{"show-timeout":0,placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("img",{attrs:{src:n("zQrT"),alt:e.userName}}),e._v(" "),s("span",[e._v(e._s(e.userName))])]),e._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(t){e.updatePasswordHandle()}}},[e._v("修改密码")]),e._v(" "),s("el-dropdown-item",{nativeOn:{click:function(t){e.logoutHandle()}}},[e._v("退出")])],1)],1)],1)],1)],1),e._v(" "),e.updatePassowrdVisible?s("update-password",{ref:"updatePassowrd"}):e._e()],1)},staticRenderFns:[]},f=n("C7Lr")(d,m,!1,null,null,null).exports,b={name:"sub-menu",props:{menu:{type:Object,required:!0},dynamicMenuRoutes:{type:Array,required:!0}},computed:a()({},Object(u.c)({sidebarLayoutSkin:function(e){return e.user.sidebarLayoutSkin}})),components:{SubMenu:h},methods:{gotoRouteHandle:function(e){var t=this.dynamicMenuRoutes.filter(function(t){return t.meta.menuId===e.id});t.length>=1&&this.$router.push({name:t[0].name})}}},v={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.menu.children&&e.menu.children.length>=1?n("el-submenu",{attrs:{index:e.menu.id+"","popper-class":"site-sidebar--"+e.sidebarLayoutSkin+"-popper"}},[n("template",{slot:"title"},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),n("span",[e._v(e._s(e.menu.title))])],1),e._v(" "),e._l(e.menu.children,function(t){return n("sub-menu",{key:t.id,attrs:{menu:t,dynamicMenuRoutes:e.dynamicMenuRoutes}})})],2):n("el-menu-item",{attrs:{index:e.menu.id+""},on:{click:function(t){e.gotoRouteHandle(e.menu)}}},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),n("span",[e._v(e._s(e.menu.title))])],1)},staticRenderFns:[]},h=n("C7Lr")(b,v,!1,null,null,null).exports,p=n("E4LH"),w={data:function(){return{menuList:[],dynamicMenuRoutes:[]}},components:{SubMenu:h},watch:{$route:"routeHandle"},computed:a()({},Object(u.c)({mainTabs:function(e){return e.user.mainTabs},menuActiveName:function(e){return e.user.menuActiveName},mainTabsActiveName:function(e){return e.user.mainTabsActiveName},sidebarFold:function(e){return e.user.sidebarFold},sidebarLayoutSkin:function(e){return e.user.sidebarLayoutSkin}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}},mainTabs:{get:function(){return this.$store.state.user.mainTabs},set:function(e){this.$store.state.user.mainTabs=e}},menuActiveName:{get:function(){return this.$store.state.user.menuActiveName},set:function(e){this.$store.state.user.menuActiveName=e}},mainTabsActiveName:{get:function(){return this.$store.state.user.mainTabsActiveName},set:function(e){this.$store.state.user.mainTabsActiveName=e}}}),created:function(){this.menuList=window.SITE_CONFIG.menuList||[],this.dynamicMenuRoutes=window.SITE_CONFIG.dynamicMenuRoutes||[],this.routeHandle(this.$route)},methods:{routeHandle:function(e){if(e.meta.isTab){var t=this.mainTabs.filter(function(t){return t.name===e.name})[0];if(!t){if(e.meta.isDynamic&&!(e=this.dynamicMenuRoutes.filter(function(t){return t.name===e.name})[0]))return console.error("未能找到可用标签页!");t={menuId:e.meta.menuId||e.name,name:e.name,title:e.meta.title,type:Object(p.c)(e.meta.iframeUrl)?"iframe":"module",iframeUrl:e.meta.iframeUrl||""},this.mainTabs=this.mainTabs.concat(t)}this.menuActiveName=t.menuId+"",this.mainTabsActiveName=t.name}}}},_={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"site-sidebar",class:"site-sidebar--"+e.sidebarLayoutSkin},[n("div",{staticClass:"site-sidebar__inner"},[n("el-menu",{staticClass:"site-sidebar__menu",attrs:{"default-active":e.menuActiveName,collapse:e.sidebarFold,collapseTransition:!1}},[n("el-menu-item",{attrs:{index:"home"},on:{click:function(t){e.$router.push({name:"home"})}}},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"shouye"}}),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("首页")])],1),e._v(" "),e._l(e.menuList,function(t){return n("sub-menu",{key:t.id,attrs:{menu:t,dynamicMenuRoutes:e.dynamicMenuRoutes}})})],2)],1)])},staticRenderFns:[]},T=n("C7Lr")(w,_,!1,null,null,null).exports,g={data:function(){return{dropActive:""}},computed:a()({},Object(u.c)({mainTabs:function(e){return e.user.mainTabs},mainTabsActiveName:function(e){return e.user.mainTabsActiveName},menuActiveName:function(e){return e.user.menuActiveName}}),{mainTabs:{get:function(){return this.$store.state.user.mainTabs},set:function(e){this.$store.state.user.mainTabs=e}},mainTabsActiveName:{get:function(){return this.$store.state.user.mainTabsActiveName},set:function(e){this.$store.state.user.mainTabsActiveName=e}},menuActiveName:{get:function(){return this.$store.state.user.menuActiveName},set:function(e){this.$store.state.user.menuActiveName=e}}}),methods:{selectedTabHandle:function(e,t){(e=this.mainTabs.filter(function(t){return t.name===e.name})).length>=1&&this.$router.push({name:e[0].name})},removeTabHandle:function(e){var t=this;this.mainTabs=this.mainTabs.filter(function(t){return t.name!==e}),this.mainTabs.length>=1?e===this.mainTabsActiveName&&this.$router.push({name:this.mainTabs[this.mainTabs.length-1].name},function(){t.mainTabsActiveName=t.$route.name}):(this.menuActiveName="home",this.$router.push({name:"home"}))},tabsCloseCurrentHandle:function(){this.removeTabHandle(this.mainTabsActiveName)},tabsCloseOtherHandle:function(){var e=this;this.mainTabs=this.mainTabs.filter(function(t){return t.name===e.mainTabsActiveName})},tabsCloseAllHandle:function(){this.mainTabs=[],this.menuActiveName="home",this.$router.push({name:"home"})}}},$={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"site-content",class:{"site-content--tabs":e.$route.meta.isTab}},[e.$route.meta.isTab?n("el-dropdown",{staticClass:"site-content--tabs-tools tab-close",attrs:{"show-timeout":0}},[n("i",{staticClass:"el-icon-close el-icon--right"}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseCurrentHandle(t)}}},[e._v("关闭当前标签页")]),e._v(" "),n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseOtherHandle(t)}}},[e._v("关闭其它标签页")]),e._v(" "),n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseAllHandle(t)}}},[e._v("关闭全部标签页")])],1)],1):e._e(),e._v(" "),e.$route.meta.isTab?n("el-dropdown",{staticClass:"site-content--tabs-tools",attrs:{"show-timeout":0}},[n("i",{staticClass:"el-icon-arrow-down el-icon--right"}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.mainTabs,function(t,s){return n("el-dropdown-item",{key:s,nativeOn:{click:function(n){e.selectedTabHandle(t,s)}}},[e._v(e._s(t.title))])}))],1):e._e(),e._v(" "),e.$route.meta.isTab?n("el-tabs",{on:{"tab-click":e.selectedTabHandle,"tab-remove":e.removeTabHandle},model:{value:e.mainTabsActiveName,callback:function(t){e.mainTabsActiveName=t},expression:"mainTabsActiveName"}},e._l(e.mainTabs,function(t){return n("el-tab-pane",{key:t.name,class:{"is-iframe":"iframe"===t.type},attrs:{closable:!0,label:t.title,name:t.name}},[n("el-card",{attrs:{shadow:"never"}},["iframe"===t.type?n("iframe",{attrs:{src:t.iframeUrl,width:"100%",height:"100%",frameborder:"0",scrolling:"yes"}}):n("keep-alive",[t.name===e.mainTabsActiveName?n("router-view"):e._e()],1)],1)],1)})):n("el-card",{attrs:{shadow:"never"}},[n("keep-alive",[n("router-view")],1)],1)],1)},staticRenderFns:[]},y=n("C7Lr")(g,$,!1,null,null,null).exports,F=n("yRAu"),N=n.n(F),C={data:function(){return{loading:!0}},components:{MainNavbar:f,MainSidebar:T,MainContent:y},created:function(){var e=this;r.a.all([this.getUserInfo(),this.getPermissions()]).then(function(){e.loading=!1})},computed:a()({},Object(u.c)({sidebarFold:function(e){return e.user.sidebarFold},userId:function(e){return e.user.id},userName:function(e){return e.user.name}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}},userId:{get:function(){return this.$store.state.user.id},set:function(e){this.$store.state.user.id=e}},userName:{get:function(){return this.$store.state.user.name},set:function(e){this.$store.state.user.name=e}}}),mounted:function(){var e=this;this.sidebarFold=document.documentElement.clientWidth<=992||!1,window.addEventListener("resize",N()(function(){e.sidebarFold=document.documentElement.clientWidth<=992||!1},150))},methods:{getUserInfo:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info").then(function(t){t&&0===t.code&&(e.userId=t.user.userId,e.userName=t.user.username)})},getPermissions:function(){return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/permissions").then(function(e){window.SITE_CONFIG.permissions=e&&0===e.code?e.permissions:[]})}}},k={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:this.loading,expression:"loading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"site-wrapper",class:{"site-sidebar--fold":this.sidebarFold},attrs:{"element-loading-text":"拼命加载中"}},[this.loading?this._e():[t("main-navbar"),this._v(" "),t("main-sidebar"),this._v(" "),t("div",{staticClass:"site-content__wrapper"},[t("main-content")],1)]],2)},staticRenderFns:[]},A=n("C7Lr")(C,k,!1,null,null,null);t.default=A.exports},yRAu:function(e,t,n){var s=n("8JGq"),a=n("Unbz"),i=n("Uyw1"),r="Expected a function",o=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,d,m,f,b,v=0,h=!1,p=!1,w=!0;if("function"!=typeof e)throw new TypeError(r);function _(t){var n=c,s=l;return c=l=void 0,v=t,m=e.apply(s,n)}function T(e){var n=e-b;return void 0===b||n>=t||n<0||p&&e-v>=d}function g(){var e=a();if(T(e))return $(e);f=setTimeout(g,function(e){var n=t-(e-b);return p?u(n,d-(e-v)):n}(e))}function $(e){return f=void 0,w&&c?_(e):(c=l=void 0,m)}function y(){var e=a(),n=T(e);if(c=arguments,l=this,b=e,n){if(void 0===f)return function(e){return v=e,f=setTimeout(g,t),h?_(e):m}(b);if(p)return f=setTimeout(g,t),_(b)}return void 0===f&&(f=setTimeout(g,t)),m}return t=i(t)||0,s(n)&&(h=!!n.leading,d=(p="maxWait"in n)?o(i(n.maxWait)||0,t):d,w="trailing"in n?!!n.trailing:w),y.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=b=l=f=void 0},y.flush=function(){return void 0===f?m:$(a())},y}}});
\ No newline at end of file
webpackJsonp([80],{Unbz:function(e,t,n){var s=n("G7OI");e.exports=function(){return s.Date.now()}},Uyw1:function(e,t,n){var s=n("8JGq"),a=n("cC8b"),i=NaN,r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return i;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?i:+e}},"sRz/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n("4YfN"),a=n.n(s),i=n("rVsN"),r=n.n(i),o=n("0xDb"),u=n("9rMa"),c={data:function(){var e=this;return{visible:!1,dataForm:{password:"",newPassword:"",confirmPassword:""},dataRule:{password:[{required:!0,message:"必填项不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"必填项不能为空",trigger:"blur"}],confirmPassword:[{required:!0,message:"必填项不能为空",trigger:"blur"},{validator:function(t,n,s){e.dataForm.newPassword!==n?s(new Error("确认密码与新密码不一致")):s()},trigger:"blur"}]}}},computed:a()({},Object(u.c)({userName:function(e){return e.user.name}})),methods:{init:function(){var e=this;this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http.post(window.SITE_CONFIG.baseURL+"/sys/user/password",{password:e.dataForm.password,newPassword:e.dataForm.newPassword},{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(function(t){t&&0===t.code&&e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$nextTick(function(){Object(o.a)(),e.$router.replace({name:"login"})})}})})})}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"修改密码",visible:e.visible,"append-to-body":!0},on:{"update:visible":function(t){e.visible=t}}},[n("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[n("el-form-item",{attrs:{label:"账号"}},[n("span",[e._v(e._s(e.userName))])]),e._v(" "),n("el-form-item",{attrs:{label:"原密码",prop:"password"}},[n("el-input",{attrs:{type:"password",placeholder:"原密码"},model:{value:e.dataForm.password,callback:function(t){e.$set(e.dataForm,"password",t)},expression:"dataForm.password"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[n("el-input",{attrs:{type:"password",placeholder:"新密码"},model:{value:e.dataForm.newPassword,callback:function(t){e.$set(e.dataForm,"newPassword",t)},expression:"dataForm.newPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[n("el-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:e.dataForm.confirmPassword,callback:function(t){e.$set(e.dataForm,"confirmPassword",t)},expression:"dataForm.confirmPassword"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)},staticRenderFns:[]},d={data:function(){return{updatePassowrdVisible:!1}},components:{UpdatePassword:n("C7Lr")(c,l,!1,null,null,null).exports},computed:a()({},Object(u.c)({navbarLayoutType:function(e){return e.user.navbarLayoutType},sidebarFold:function(e){return e.user.sidebarFold},userName:function(e){return e.user.name}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}}}),methods:{updatePasswordHandle:function(){var e=this;this.updatePassowrdVisible=!0,this.$nextTick(function(){e.$refs.updatePassowrd.init()})},logoutHandle:function(){var e=this;this.$confirm("确定进行[退出]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$http.post(window.SITE_CONFIG.baseURL+"/sys/logout").then(function(t){t&&0===t.code&&(Object(o.a)(),e.$router.push({name:"login"}))})}).catch(function(){})}}},m={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("nav",{staticClass:"site-navbar",class:"site-navbar--"+e.navbarLayoutType},[s("div",{staticClass:"site-navbar__header"},[s("h1",{staticClass:"site-navbar__brand",on:{click:function(t){e.$router.push({name:"home"})}}},[s("a",{staticClass:"site-navbar__brand-lg",attrs:{href:"javascript:;"}},[e._v("云支付"+e._s(e.$config.name))]),e._v(" "),s("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[e._v("云支付")])])]),e._v(" "),s("div",{staticClass:"site-navbar__body"},[s("el-menu",{staticClass:"site-navbar__menu mr-auto",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(t){e.sidebarFold=!e.sidebarFold}}},[s("icon-svg",{attrs:{name:"zhedie"}})],1)],1),e._v(" "),s("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"2"}},[s("el-dropdown",{attrs:{"show-timeout":0,placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("img",{attrs:{src:n("zQrT"),alt:e.userName}}),e._v(" "),s("span",[e._v(e._s(e.userName))])]),e._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(t){e.updatePasswordHandle()}}},[e._v("修改密码")]),e._v(" "),s("el-dropdown-item",{nativeOn:{click:function(t){e.logoutHandle()}}},[e._v("退出")])],1)],1)],1)],1)],1),e._v(" "),e.updatePassowrdVisible?s("update-password",{ref:"updatePassowrd"}):e._e()],1)},staticRenderFns:[]},f=n("C7Lr")(d,m,!1,null,null,null).exports,b={name:"sub-menu",props:{menu:{type:Object,required:!0},dynamicMenuRoutes:{type:Array,required:!0}},computed:a()({},Object(u.c)({sidebarLayoutSkin:function(e){return e.user.sidebarLayoutSkin}})),components:{SubMenu:h},methods:{gotoRouteHandle:function(e){var t=this.dynamicMenuRoutes.filter(function(t){return t.meta.menuId===e.id});t.length>=1&&this.$router.push({name:t[0].name})}}},v={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.menu.children&&e.menu.children.length>=1?n("el-submenu",{attrs:{index:e.menu.id+"","popper-class":"site-sidebar--"+e.sidebarLayoutSkin+"-popper"}},[n("template",{slot:"title"},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),n("span",[e._v(e._s(e.menu.title))])],1),e._v(" "),e._l(e.menu.children,function(t){return n("sub-menu",{key:t.id,attrs:{menu:t,dynamicMenuRoutes:e.dynamicMenuRoutes}})})],2):n("el-menu-item",{attrs:{index:e.menu.id+""},on:{click:function(t){e.gotoRouteHandle(e.menu)}}},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:e.menu.icon||""}}),e._v(" "),n("span",[e._v(e._s(e.menu.title))])],1)},staticRenderFns:[]},h=n("C7Lr")(b,v,!1,null,null,null).exports,p=n("E4LH"),w={data:function(){return{menuList:[],dynamicMenuRoutes:[]}},components:{SubMenu:h},watch:{$route:"routeHandle"},computed:a()({},Object(u.c)({mainTabs:function(e){return e.user.mainTabs},menuActiveName:function(e){return e.user.menuActiveName},mainTabsActiveName:function(e){return e.user.mainTabsActiveName},sidebarFold:function(e){return e.user.sidebarFold},sidebarLayoutSkin:function(e){return e.user.sidebarLayoutSkin}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}},mainTabs:{get:function(){return this.$store.state.user.mainTabs},set:function(e){this.$store.state.user.mainTabs=e}},menuActiveName:{get:function(){return this.$store.state.user.menuActiveName},set:function(e){this.$store.state.user.menuActiveName=e}},mainTabsActiveName:{get:function(){return this.$store.state.user.mainTabsActiveName},set:function(e){this.$store.state.user.mainTabsActiveName=e}}}),created:function(){this.menuList=window.SITE_CONFIG.menuList||[],this.dynamicMenuRoutes=window.SITE_CONFIG.dynamicMenuRoutes||[],this.routeHandle(this.$route)},methods:{routeHandle:function(e){if(e.meta.isTab){var t=this.mainTabs.filter(function(t){return t.name===e.name})[0];if(!t){if(e.meta.isDynamic&&!(e=this.dynamicMenuRoutes.filter(function(t){return t.name===e.name})[0]))return console.error("未能找到可用标签页!");t={menuId:e.meta.menuId||e.name,name:e.name,title:e.meta.title,type:Object(p.d)(e.meta.iframeUrl)?"iframe":"module",iframeUrl:e.meta.iframeUrl||""},this.mainTabs=this.mainTabs.concat(t)}this.menuActiveName=t.menuId+"",this.mainTabsActiveName=t.name}}}},_={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"site-sidebar",class:"site-sidebar--"+e.sidebarLayoutSkin},[n("div",{staticClass:"site-sidebar__inner"},[n("el-menu",{staticClass:"site-sidebar__menu",attrs:{"default-active":e.menuActiveName,collapse:e.sidebarFold,collapseTransition:!1}},[n("el-menu-item",{attrs:{index:"home"},on:{click:function(t){e.$router.push({name:"home"})}}},[n("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"shouye"}}),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("首页")])],1),e._v(" "),e._l(e.menuList,function(t){return n("sub-menu",{key:t.id,attrs:{menu:t,dynamicMenuRoutes:e.dynamicMenuRoutes}})})],2)],1)])},staticRenderFns:[]},T=n("C7Lr")(w,_,!1,null,null,null).exports,g={data:function(){return{dropActive:""}},computed:a()({},Object(u.c)({mainTabs:function(e){return e.user.mainTabs},mainTabsActiveName:function(e){return e.user.mainTabsActiveName},menuActiveName:function(e){return e.user.menuActiveName}}),{mainTabs:{get:function(){return this.$store.state.user.mainTabs},set:function(e){this.$store.state.user.mainTabs=e}},mainTabsActiveName:{get:function(){return this.$store.state.user.mainTabsActiveName},set:function(e){this.$store.state.user.mainTabsActiveName=e}},menuActiveName:{get:function(){return this.$store.state.user.menuActiveName},set:function(e){this.$store.state.user.menuActiveName=e}}}),methods:{selectedTabHandle:function(e,t){(e=this.mainTabs.filter(function(t){return t.name===e.name})).length>=1&&this.$router.push({name:e[0].name})},removeTabHandle:function(e){var t=this;this.mainTabs=this.mainTabs.filter(function(t){return t.name!==e}),this.mainTabs.length>=1?e===this.mainTabsActiveName&&this.$router.push({name:this.mainTabs[this.mainTabs.length-1].name},function(){t.mainTabsActiveName=t.$route.name}):(this.menuActiveName="home",this.$router.push({name:"home"}))},tabsCloseCurrentHandle:function(){this.removeTabHandle(this.mainTabsActiveName)},tabsCloseOtherHandle:function(){var e=this;this.mainTabs=this.mainTabs.filter(function(t){return t.name===e.mainTabsActiveName})},tabsCloseAllHandle:function(){this.mainTabs=[],this.menuActiveName="home",this.$router.push({name:"home"})}}},$={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"site-content",class:{"site-content--tabs":e.$route.meta.isTab}},[e.$route.meta.isTab?n("el-dropdown",{staticClass:"site-content--tabs-tools tab-close",attrs:{"show-timeout":0}},[n("i",{staticClass:"el-icon-close el-icon--right"}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseCurrentHandle(t)}}},[e._v("关闭当前标签页")]),e._v(" "),n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseOtherHandle(t)}}},[e._v("关闭其它标签页")]),e._v(" "),n("el-dropdown-item",{nativeOn:{click:function(t){return e.tabsCloseAllHandle(t)}}},[e._v("关闭全部标签页")])],1)],1):e._e(),e._v(" "),e.$route.meta.isTab?n("el-dropdown",{staticClass:"site-content--tabs-tools",attrs:{"show-timeout":0}},[n("i",{staticClass:"el-icon-arrow-down el-icon--right"}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.mainTabs,function(t,s){return n("el-dropdown-item",{key:s,nativeOn:{click:function(n){e.selectedTabHandle(t,s)}}},[e._v(e._s(t.title))])}))],1):e._e(),e._v(" "),e.$route.meta.isTab?n("el-tabs",{on:{"tab-click":e.selectedTabHandle,"tab-remove":e.removeTabHandle},model:{value:e.mainTabsActiveName,callback:function(t){e.mainTabsActiveName=t},expression:"mainTabsActiveName"}},e._l(e.mainTabs,function(t){return n("el-tab-pane",{key:t.name,class:{"is-iframe":"iframe"===t.type},attrs:{closable:!0,label:t.title,name:t.name}},[n("el-card",{attrs:{shadow:"never"}},["iframe"===t.type?n("iframe",{attrs:{src:t.iframeUrl,width:"100%",height:"100%",frameborder:"0",scrolling:"yes"}}):n("keep-alive",[t.name===e.mainTabsActiveName?n("router-view"):e._e()],1)],1)],1)})):n("el-card",{attrs:{shadow:"never"}},[n("keep-alive",[n("router-view")],1)],1)],1)},staticRenderFns:[]},y=n("C7Lr")(g,$,!1,null,null,null).exports,F=n("yRAu"),N=n.n(F),C={data:function(){return{loading:!0}},components:{MainNavbar:f,MainSidebar:T,MainContent:y},created:function(){var e=this;r.a.all([this.getUserInfo(),this.getPermissions()]).then(function(){e.loading=!1})},computed:a()({},Object(u.c)({sidebarFold:function(e){return e.user.sidebarFold},userId:function(e){return e.user.id},userName:function(e){return e.user.name}}),{sidebarFold:{get:function(){return this.$store.state.user.sidebarFold},set:function(e){this.$store.state.user.sidebarFold=e}},userId:{get:function(){return this.$store.state.user.id},set:function(e){this.$store.state.user.id=e}},userName:{get:function(){return this.$store.state.user.name},set:function(e){this.$store.state.user.name=e}}}),mounted:function(){var e=this;this.sidebarFold=document.documentElement.clientWidth<=992||!1,window.addEventListener("resize",N()(function(){e.sidebarFold=document.documentElement.clientWidth<=992||!1},150))},methods:{getUserInfo:function(){var e=this;return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/user/info").then(function(t){t&&0===t.code&&(e.userId=t.user.userId,e.userName=t.user.username)})},getPermissions:function(){return this.$http.get(window.SITE_CONFIG.baseURL+"/sys/permissions").then(function(e){window.SITE_CONFIG.permissions=e&&0===e.code?e.permissions:[]})}}},k={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:this.loading,expression:"loading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"site-wrapper",class:{"site-sidebar--fold":this.sidebarFold},attrs:{"element-loading-text":"拼命加载中"}},[this.loading?this._e():[t("main-navbar"),this._v(" "),t("main-sidebar"),this._v(" "),t("div",{staticClass:"site-content__wrapper"},[t("main-content")],1)]],2)},staticRenderFns:[]},A=n("C7Lr")(C,k,!1,null,null,null);t.default=A.exports},yRAu:function(e,t,n){var s=n("8JGq"),a=n("Unbz"),i=n("Uyw1"),r="Expected a function",o=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,d,m,f,b,v=0,h=!1,p=!1,w=!0;if("function"!=typeof e)throw new TypeError(r);function _(t){var n=c,s=l;return c=l=void 0,v=t,m=e.apply(s,n)}function T(e){var n=e-b;return void 0===b||n>=t||n<0||p&&e-v>=d}function g(){var e=a();if(T(e))return $(e);f=setTimeout(g,function(e){var n=t-(e-b);return p?u(n,d-(e-v)):n}(e))}function $(e){return f=void 0,w&&c?_(e):(c=l=void 0,m)}function y(){var e=a(),n=T(e);if(c=arguments,l=this,b=e,n){if(void 0===f)return function(e){return v=e,f=setTimeout(g,t),h?_(e):m}(b);if(p)return f=setTimeout(g,t),_(b)}return void 0===f&&(f=setTimeout(g,t)),m}return t=i(t)||0,s(n)&&(h=!!n.leading,d=(p="maxWait"in n)?o(i(n.maxWait)||0,t):d,w="trailing"in n?!!n.trailing:w),y.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=b=l=f=void 0},y.flush=function(){return void 0===f?m:$(a())},y}}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={86:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"2a87c5d9edcf882b3c5b",1:"f7df02ce4234fd2e3187",2:"a48b7d47feba618dfed4",3:"74e359d8a38974c0c631",4:"f7943c3e62b15dd39ded",5:"cc67211e56d0fc54a25f",6:"81b9ef4b9badde2c16b8",7:"a39110cd4f999e737302",8:"1ecb3c3c0f0ca92f4cc9",9:"2260b3fb9484413b6eeb",10:"b91a5481a6f97cab002f",11:"5aa38593f7644d31afb5",12:"3757fa814310f9a0cc1b",13:"e81ef00cc63edf62cf32",14:"e0a5a9864d28a7d2c5c3",15:"e572e44dd22c946b6475",16:"ca511c948125fc2a12ed",17:"5ec41b92bd50ac8e7973",18:"d801f5aa85ffda5c7751",19:"201851cbad5b6d2958eb",20:"8d3235dfa503ded6eb88",21:"def3deb8a3411d1f9116",22:"06ba60b4fae1545a2732",23:"4363bf98e5ec5225d76f",24:"7b679abe54d75452cd8f",25:"06587f3d1c2a494430e5",26:"7b18911f09d5bf2961d3",27:"6b8e10a1f09d80325c57",28:"306809d7e8c4b7c1fda0",29:"f72d7353ee1e15b67307",30:"35fb9149886ef819d782",31:"a2078ad9b35976f6acf5",32:"7dc632bae6768f9153fb",33:"f20ebe26ac04b878139f",34:"08c9032574505ea6c54c",35:"70a1ed7212f950adeb89",36:"42afa519ccfc53fd8664",37:"ac3ede61b0d50c1a78b0",38:"95efca5d9d7a60cc5585",39:"459133f3b8b13dc5f3d4",40:"98841d4a186e0a189530",41:"9974a5f8a038a5ae96a7",42:"2b723cfaecfc488c8bd7",43:"7f15580169fb8f12a7f8",44:"61bacadea4f5a676acac",45:"70b876dc8ee015d35196",46:"6577a7c1f3f542914ac5",47:"53fe4594fe65c67069e2",48:"c015e97c2efc742c19c5",49:"ef65558f403730608b5e",50:"de6503e61b6160535300",51:"088c62f054c73f45d730",52:"4bb11448473862475b2f",53:"f0752b661dde2ef36a87",54:"e85e3af8fd87d5691c25",55:"53cb8dd27ccc24cbe237",56:"45223ab77849beb3ee25",57:"a2ce455d8edc556b673f",58:"40d7daec6edccaa580d4",59:"909b1deb93acd8f7eec2",60:"bde907b2b21013f2958d",61:"afe8ca7cca020446b036",62:"8ad732767a3f81d37121",63:"36c1116491ba93a36312",64:"dfebe4e56424636bf960",65:"1ccc7baa703896762a23",66:"7cf7361c067b4e356384",67:"b1f67ac6a6ef91399d49",68:"1dd0cb7a9e7ff0c65fae",69:"6694b5076be29c0282d5",70:"d5b18601e22f3e99195c",71:"4b2028b4fbadd769f489",72:"fe9c97b177265f8c41f5",73:"b34d08f45602ca0ef78a",74:"0dcf77646cb07d337a23",75:"1f467899ffe4faeaea53",76:"5bd60458c9591da43199",77:"2518a40af2c9ecfc268c",78:"ac24c0f68ee6541b07ad",79:"d14f0ed225fa79793e38",80:"877accb8ea4fa35bfbb1",81:"63157fcd4111ac493243",82:"1ff4e141d44e46edfc62",83:"7f54dbe218d3aac24980"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={86:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"299e097575e5f3473c09",1:"f7df02ce4234fd2e3187",2:"a48b7d47feba618dfed4",3:"0a402c9f03fdb679a845",4:"f7943c3e62b15dd39ded",5:"cc67211e56d0fc54a25f",6:"81b9ef4b9badde2c16b8",7:"fa3e3fd5028b72498523",8:"1ecb3c3c0f0ca92f4cc9",9:"2260b3fb9484413b6eeb",10:"b91a5481a6f97cab002f",11:"0cc470c620ef48483583",12:"3757fa814310f9a0cc1b",13:"f29508bccc878a8204f6",14:"e0a5a9864d28a7d2c5c3",15:"e572e44dd22c946b6475",16:"ca511c948125fc2a12ed",17:"5ec41b92bd50ac8e7973",18:"d801f5aa85ffda5c7751",19:"201851cbad5b6d2958eb",20:"8d3235dfa503ded6eb88",21:"5a5a558c3afcb4f27724",22:"06ba60b4fae1545a2732",23:"4363bf98e5ec5225d76f",24:"7b679abe54d75452cd8f",25:"06587f3d1c2a494430e5",26:"20da71a38bd0b9eba821",27:"6b8e10a1f09d80325c57",28:"306809d7e8c4b7c1fda0",29:"f72d7353ee1e15b67307",30:"35fb9149886ef819d782",31:"f3621566ece1efc829e2",32:"7dc632bae6768f9153fb",33:"f20ebe26ac04b878139f",34:"08c9032574505ea6c54c",35:"70a1ed7212f950adeb89",36:"e519138da46179cdb835",37:"ac3ede61b0d50c1a78b0",38:"95efca5d9d7a60cc5585",39:"459133f3b8b13dc5f3d4",40:"98841d4a186e0a189530",41:"9974a5f8a038a5ae96a7",42:"2b723cfaecfc488c8bd7",43:"7f15580169fb8f12a7f8",44:"61bacadea4f5a676acac",45:"70b876dc8ee015d35196",46:"6577a7c1f3f542914ac5",47:"3a891f951cf26aab8e21",48:"c015e97c2efc742c19c5",49:"ef65558f403730608b5e",50:"de6503e61b6160535300",51:"088c62f054c73f45d730",52:"4bb11448473862475b2f",53:"f0752b661dde2ef36a87",54:"e85e3af8fd87d5691c25",55:"53cb8dd27ccc24cbe237",56:"45223ab77849beb3ee25",57:"a2ce455d8edc556b673f",58:"40d7daec6edccaa580d4",59:"909b1deb93acd8f7eec2",60:"f64a65291a3bd7781f7b",61:"afe8ca7cca020446b036",62:"601d3cbc0dbd44ef419b",63:"36c1116491ba93a36312",64:"dfebe4e56424636bf960",65:"1ccc7baa703896762a23",66:"7cf7361c067b4e356384",67:"b1f67ac6a6ef91399d49",68:"1dd0cb7a9e7ff0c65fae",69:"6694b5076be29c0282d5",70:"d5b18601e22f3e99195c",71:"4b2028b4fbadd769f489",72:"fe9c97b177265f8c41f5",73:"b34d08f45602ca0ef78a",74:"0dcf77646cb07d337a23",75:"1f467899ffe4faeaea53",76:"5bd60458c9591da43199",77:"2518a40af2c9ecfc268c",78:"ac24c0f68ee6541b07ad",79:"d14f0ed225fa79793e38",80:"0f7aed73b1c96f9d1f3b",81:"63157fcd4111ac493243",82:"1ff4e141d44e46edfc62",83:"7f54dbe218d3aac24980"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment