Commit e67c7ae5 by 无尘

fix: 修改编辑账号

parent 1e12b852
This source diff could not be displayed because it is too large. You can view the blob instead.
.model-title[data-v-ce8c8b2a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 0 15px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.model-title[data-v-ce8c8b2a]:first-child{margin-top:0}.end-time[data-v-ce8c8b2a]{font-size:12px;font-weight:400;color:#909399;line-height:17px}.hb-app[data-v-ce8c8b2a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:789px;min-height:115px;border:1px solid #e4e7ed}.hb-app+.hb-app[data-v-ce8c8b2a]{margin-top:10px}.hb-app .hb-app-name[data-v-ce8c8b2a]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:126px;border-right:1px solid #e4e7ed}.hb-app .hb-app-info[data-v-ce8c8b2a],.hb-app .hb-app-name[data-v-ce8c8b2a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hb-app .hb-app-info[data-v-ce8c8b2a]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:12px 0}.hb-app .hb-app-info .hb-app-info-item[data-v-ce8c8b2a]{margin-bottom:10px;font-size:14px;font-weight:400}.hb-app .hb-app-info .hb-app-info-item[data-v-ce8c8b2a]:last-child{margin-bottom:0}.hb-app .hb-app-info .hb-app-info-item[data-v-ce8c8b2a] .el-form-item__content,.hb-app .hb-app-info .hb-app-info-item[data-v-ce8c8b2a] .el-form-item__label{line-height:20px}.store-info[data-v-ce8c8b2a]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.store-info .store-logo[data-v-ce8c8b2a],.store-info[data-v-ce8c8b2a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.store-info .store-logo[data-v-ce8c8b2a]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;width:40px;height:40px}.store-info .store-logo img[data-v-ce8c8b2a]{max-width:100%;max-height:100%;border-radius:2px}.store-info .store-name[data-v-ce8c8b2a]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.model-title[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:20px 0 15px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.model-title[data-v-c8f38f6e]:first-child{margin-top:0}.end-time[data-v-c8f38f6e]{font-size:12px;font-weight:400;color:#909399;line-height:17px}.hb-app[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:789px;min-height:115px;border:1px solid #e4e7ed}.hb-app+.hb-app[data-v-c8f38f6e]{margin-top:10px}.hb-app .hb-app-name[data-v-c8f38f6e]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:126px;border-right:1px solid #e4e7ed}.hb-app .hb-app-info[data-v-c8f38f6e],.hb-app .hb-app-name[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hb-app .hb-app-info[data-v-c8f38f6e]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:12px 0}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e]{margin-bottom:10px;font-size:14px;font-weight:400}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e]:last-child{margin-bottom:0}.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e] .el-form-item__content,.hb-app .hb-app-info .hb-app-info-item[data-v-c8f38f6e] .el-form-item__label{line-height:20px}.store-info[data-v-c8f38f6e]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.store-info .store-logo[data-v-c8f38f6e],.store-info[data-v-c8f38f6e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.store-info .store-logo[data-v-c8f38f6e]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px;width:40px;height:40px}.store-info .store-logo img[data-v-c8f38f6e]{max-width:100%;max-height:100%;border-radius:2px}.store-info .store-name[data-v-c8f38f6e]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0c6041b4.d0755970.css rel=prefetch><link href=css/chunk-11549bab.3ac98af4.css rel=prefetch><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-3152c770.6be6df10.css rel=prefetch><link href=css/chunk-3755b490.611f7cc1.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-512af800.73a18d33.css rel=prefetch><link href=css/chunk-59f6fc24.e02f1efd.css rel=prefetch><link href=css/chunk-62d41a63.5247af2c.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=js/chunk-0c6041b4.b88270a4.js rel=prefetch><link href=js/chunk-11549bab.bf3ec277.js rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-22af8244.7ccdae87.js rel=prefetch><link href=js/chunk-3152c770.12ced815.js rel=prefetch><link href=js/chunk-3755b490.5a0d1b17.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.a7b7d1df.js rel=prefetch><link href=js/chunk-59f6fc24.5cfb7fed.js rel=prefetch><link href=js/chunk-62d41a63.bd50cf21.js rel=prefetch><link href=js/chunk-ce6e75c2.9409f4b5.js rel=prefetch><link href=js/chunk-e0354b28.47793da0.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=css/app.d87f34d2.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.453505a7.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.d87f34d2.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.453505a7.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0c6041b4.d0755970.css rel=prefetch><link href=css/chunk-11549bab.3ac98af4.css rel=prefetch><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-3152c770.6be6df10.css rel=prefetch><link href=css/chunk-33c32aa6.6637d699.css rel=prefetch><link href=css/chunk-3755b490.611f7cc1.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-59f6fc24.e02f1efd.css rel=prefetch><link href=css/chunk-62d41a63.5247af2c.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=js/chunk-0c6041b4.b88270a4.js rel=prefetch><link href=js/chunk-11549bab.bf3ec277.js rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-22af8244.a124460f.js rel=prefetch><link href=js/chunk-3152c770.12ced815.js rel=prefetch><link href=js/chunk-33c32aa6.77aca00c.js rel=prefetch><link href=js/chunk-3755b490.5a0d1b17.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-59f6fc24.5cfb7fed.js rel=prefetch><link href=js/chunk-62d41a63.bd50cf21.js rel=prefetch><link href=js/chunk-ce6e75c2.9409f4b5.js rel=prefetch><link href=js/chunk-e0354b28.47793da0.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=css/app.343858c9.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.c3d348df.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.343858c9.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.c3d348df.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33c32aa6"],{a30a:function(e,t,i){"use strict";var r=i("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")},d1a4:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"20px"}},[i("h3",{staticClass:"model-title"},[e._v("\n 企业信息\n "),e._e()],1),i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),i("el-form-item",{attrs:{label:"企业名称"}},[i("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),i("el-tag",{staticStyle:{margin:"0 10px"},attrs:{type:"verified"==e.enterpriseDetail.corpType?"":"info",effect:"plain"}},[e._v("\n "+e._s("verified"==e.enterpriseDetail.corpType?"已认证":"未认证")+"\n ")]),e.enterpriseDetail.verifiedEndTime?i("span",{staticClass:"end-time"},[e._v("\n 认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime))+"\n ")]):e._e()],1),i("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),i("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.formatCorpIndustry()))]),i("el-form-item",{attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.displayRange)&&e.enterpriseDetail.displayRange.length>0?e.enterpriseDetail.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1),e.enterpriseDetail.secret.secretName?[i("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),i("div",{staticClass:"hb-app"},[i("div",{staticClass:"hb-app-name"},[e._v(e._s(e.enterpriseDetail.secret.secretName))]),i("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(e.enterpriseDetail.secret.agentId))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(e.enterpriseDetail.secret.secretVal))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.secret.displayRange)&&e.enterpriseDetail.secret.displayRange.length>0?e.enterpriseDetail.secret.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1)],1)]:e._e(),i("h3",{staticClass:"model-title"},[e._v("授权信息")]),i("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[i("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return i("div",{staticClass:"store-info"},[r.enterpriseLogo?i("div",{staticClass:"store-logo"},[i("img",{attrs:{src:r.enterpriseLogo,alt:""}})]):e._e(),i("span",{staticClass:"store-name"},[e._v(e._s(r.enterpriseName))])])}}])}),i("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.bindStoreMode?i("span",[e._v("所有门店")]):r.bindStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(r,0)}}},[e._v("\n "+e._s(r.bindCount)+e._s(1==r.bindStoreMode?"个分组":2==r.bindStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])}),i("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.shareStoreMode?i("span",[e._v("所有门店")]):r.shareStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(r,1)}}},[e._v("\n "+e._s(r.shareCount)+e._s(1==r.shareStoreMode?"个分组":2==r.shareStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])})],1),i("el-dialog",{attrs:{visible:e.bindInfo.show,title:"门店授权范围",width:"600px"},on:{"update:visible":function(t){return e.$set(e.bindInfo,"show",t)},closed:e.onBindInfoClose}},[i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:0==e.bindInfo.type?"门店绑定授权范围":"门店共享授权范围"}},[i("el-select",{staticStyle:{width:"392px"},attrs:{disabled:"",multiple:"",value:e.bindInfo.selected}},e._l(e.bindInfo.data,(function(e){return i("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],2)},n=[],s=i("a30a"),a=s["a"].getEnterpriseDetail,l=s["a"].refreshEnterpriseInfo,o=s["a"].storeRangeDetail,p={name:"EnterpriseDetail",data:function(){return{bread:[{path:"/enterprise-list",name:"企业列表"},{name:"查看"}],enterpriseId:"",enterpriseDetail:{displayRange:[],secret:{},enterpriseList:[]},bindInfo:{show:!1,type:0,data:[],selected:[]}}},created:function(){var e=this.$route.query.enterpriseId;if(!e)return this.$router.go(-1);this.enterpriseId=e,this.getEnterpriseDetail(),this.$emit("updateBread",this.bread),this.$emit("showTab","/enterprise-list")},methods:{getEnterpriseDetail:function(){var e=this;a({wxEnterpriseId:this.enterpriseId}).then((function(t){Object.assign(e.enterpriseDetail,t.result)}))},onRefresh:function(){l().then(this.getEnterpriseDetail)},formatCorpIndustry:function(){var e=[];return this.enterpriseDetail.corpIndustry&&e.push(this.enterpriseDetail.corpIndustry),this.enterpriseDetail.corpSubIndustry&&e.push(this.enterpriseDetail.corpSubIndustry),e.length>0?e.join("/"):"--"},getBindDetail:function(e,t){var i=this,r=e.wxEnterpriseId,n=e.enterpriseId,s={wxEnterpriseId:r,enterpriseId:n,operationType:t};this.bindInfo.show=!0,this.bindInfo.type=t,o(s).then((function(e){i.bindInfo.data=e.result||[],i.bindInfo.selected=i.bindInfo.data.map((function(e){return e.id}))}))},onBindInfoClose:function(){this.bindInfo.data=[],this.bindInfo.selected=[]}}},d=p,c=(i("e16f"),i("2877")),f=Object(c["a"])(d,r,n,!1,null,"ce8c8b2a",null);t["default"]=f.exports},dcb9:function(e,t,i){},e16f:function(e,t,i){"use strict";var r=i("dcb9"),n=i.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-512af800"],{"34ff":function(e,t,i){},a30a:function(e,t,i){"use strict";var n=i("71f6"),r={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(n["a"])(r,"/hb-manage-operation-web")},bed5:function(e,t,i){"use strict";var n=i("34ff"),r=i.n(n);r.a},d1a4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"20px"}},[i("h3",{staticClass:"model-title"},[e._v("\n 企业信息\n "),e._e()],1),i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),i("el-form-item",{attrs:{label:"企业名称"}},[i("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),i("el-tag",{staticStyle:{margin:"0 10px"},attrs:{type:"verified"==e.enterpriseDetail.corpType?"":"info",effect:"plain"}},[e._v("\n "+e._s("verified"==e.enterpriseDetail.corpType?"已认证":"未认证")+"\n ")]),e.enterpriseDetail.verifiedEndTime?i("span",{staticClass:"end-time"},[e._v("\n 认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime))+"\n ")]):e._e()],1),i("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),i("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.formatCorpIndustry()))]),i("el-form-item",{attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.displayRange)&&e.enterpriseDetail.displayRange.length>0?e.enterpriseDetail.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1),e.enterpriseDetail.secret.secretName?[i("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),i("div",{staticClass:"hb-app"},[i("div",{staticClass:"hb-app-name"},[e._v(e._s(e.enterpriseDetail.secret.secretName))]),i("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(e.enterpriseDetail.secret.agentId))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(e.enterpriseDetail.secret.secretVal))]),i("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"应用可见范围"}},[e._v("\n "+e._s(Array.isArray(e.enterpriseDetail.secret.displayRange)&&e.enterpriseDetail.secret.displayRange.length>0?e.enterpriseDetail.secret.displayRange.map((function(e){return e.name})).join(","):"--")+"\n ")])],1)],1)]:e._e(),i("h3",{staticClass:"model-title"},[e._v("授权信息")]),i("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[i("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return i("div",{staticClass:"store-info"},[n.enterpriseLogo?i("div",{staticClass:"store-logo"},[i("img",{attrs:{src:n.enterpriseLogo,alt:""}})]):e._e(),i("span",{staticClass:"store-name"},[e._v(e._s(n.enterpriseName))])])}}])}),i("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.bindStoreMode?i("span",[e._v("所有门店")]):n.bindStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(n,0)}}},[e._v("\n "+e._s(n.bindCount)+e._s(1==n.bindStoreMode?"个分组":2==n.bindStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])}),i("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.shareStoreMode?i("span",[e._v("所有门店")]):n.shareStoreMode>0?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getBindDetail(n,1)}}},[e._v("\n "+e._s(n.shareCount)+e._s(1==n.shareStoreMode?"个分组":2==n.shareStoreMode?"家门店":"")+"\n ")]):i("span",[e._v("无")])]}}])})],1),i("el-dialog",{attrs:{visible:e.bindInfo.show,title:"门店授权范围",width:"600px"},on:{"update:visible":function(t){return e.$set(e.bindInfo,"show",t)},closed:e.onBindInfoClose}},[i("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:0==e.bindInfo.type?"门店绑定授权范围":"门店共享授权范围"}},[i("el-select",{staticStyle:{width:"392px"},attrs:{disabled:"",multiple:"",value:e.bindInfo.selected}},e._l(e.bindInfo.data,(function(e){return i("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],2)},r=[],s=i("a30a"),a=s["a"].getEnterpriseDetail,l=s["a"].refreshEnterpriseInfo,o=s["a"].storeRangeDetail,p={name:"EnterpriseDetail",data:function(){return{bread:[{path:"/enterprise-list",name:"企业列表"},{name:"查看"}],enterpriseId:"",enterpriseDetail:{displayRange:[],secret:{},enterpriseList:[]},bindInfo:{show:!1,type:0,data:[],selected:[]}}},created:function(){var e=this.$route.query.enterpriseId;if(!e)return this.$router.go(-1);this.enterpriseId=e,this.getEnterpriseDetail(),this.$emit("updateBread",this.bread)},methods:{getEnterpriseDetail:function(){var e=this;a({wxEnterpriseId:this.enterpriseId}).then((function(t){Object.assign(e.enterpriseDetail,t.result)}))},onRefresh:function(){l().then(this.getEnterpriseDetail)},formatCorpIndustry:function(){var e=[];return this.enterpriseDetail.corpIndustry&&e.push(this.enterpriseDetail.corpIndustry),this.enterpriseDetail.corpSubIndustry&&e.push(this.enterpriseDetail.corpSubIndustry),e.length>0?e.join("/"):"--"},getBindDetail:function(e,t){var i=this,n=e.wxEnterpriseId,r=e.enterpriseId,s={wxEnterpriseId:n,enterpriseId:r,operationType:t};this.bindInfo.show=!0,this.bindInfo.type=t,o(s).then((function(e){i.bindInfo.data=e.result||[],i.bindInfo.selected=i.bindInfo.data.map((function(e){return e.id}))}))},onBindInfoClose:function(){this.bindInfo.data=[],this.bindInfo.selected=[]}}},d=p,f=(i("bed5"),i("2877")),c=Object(f["a"])(d,n,r,!1,null,"c8f38f6e",null);t["default"]=c.exports}}]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-30 11:22:05
* @LastEditors: 无尘
* @LastEditTime: 2020-11-18 11:19:31
* @LastEditTime: 2020-11-18 11:25:09
-->
<template>
<el-form :model="dictData" :rules="dictRule" ref="dictData" label-width="165px" style="padding-top: 20px">
......
......@@ -113,6 +113,7 @@ export default {
this.enterpriseId = enterpriseId;
this.getEnterpriseDetail();
this.$emit('updateBread', this.bread);
this.$emit('showTab', '/enterprise-list');
},
methods: {
getEnterpriseDetail() {
......
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