Commit 3ea1c42b by 无尘

fix: 修改登录

parent 50ad8482
.enterprise-info[data-v-7b180daa]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-7b180daa],.logo[data-v-7b180daa]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-7b180daa]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-7b180daa]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-7b180daa]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.enterprise-info[data-v-410ae982]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-410ae982],.logo[data-v-410ae982]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-410ae982]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-410ae982]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-410ae982]{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.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0b9cb433.62650d38.css rel=prefetch><link href=css/chunk-2c70a223.1f329e00.css rel=prefetch><link href=css/chunk-448cb576.d0755970.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-769e0a22.ddcc7c12.css rel=prefetch><link href=js/chunk-0b9cb433.72c0e05a.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.js rel=prefetch><link href=js/chunk-2c70a223.b8b81817.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.71d05044.js rel=prefetch><link href=js/chunk-769e0a22.6dd0ea91.js rel=prefetch><link href=js/chunk-e0354b28.e77fc6d6.js rel=prefetch><link href=css/app.b864e748.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.557aa5be.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.b864e748.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.557aa5be.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.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-2c70a223.1f329e00.css rel=prefetch><link href=css/chunk-350d7fc4.0c713acd.css rel=prefetch><link href=css/chunk-448cb576.d0755970.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-769e0a22.ddcc7c12.css rel=prefetch><link href=js/chunk-22af8244.f7b854db.js rel=prefetch><link href=js/chunk-2c70a223.b8b81817.js rel=prefetch><link href=js/chunk-350d7fc4.a6c6fda7.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.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-769e0a22.6dd0ea91.js rel=prefetch><link href=js/chunk-e0354b28.e77fc6d6.js rel=prefetch><link href=css/app.b864e748.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.478e5b84.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.b864e748.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.478e5b84.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b9cb433"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=s(a,e,this);if(t.done)return t.value;var l=r(e),o=String(this),c=l.lastIndex;n(c,0)||(l.lastIndex=0);var u=i(l,o);return n(l.lastIndex,c)||(l.lastIndex=c),null===u?-1:u.index}]}))},"3a88":function(e,t,a){"use strict";var r=a("6182"),n=a.n(r);n.a},6182:function(e,t,a){},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),s=i["a"].getEnterpriseList,l=i["a"].loginBack,o={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",username:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.username};l(a).then((function(e){}))},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,l=i.pageSize,o=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:l,pageNum:o};s(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},c=o,u=(a("3a88"),a("2877")),p=Object(u["a"])(c,r,n,!1,null,"7b180daa",null);t["default"]=p.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a30a:function(e,t,a){"use strict";var r=a("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail",loginBack:{url:"/login",method:"post",useFormData:!0,useIntercept:!1}};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-350d7fc4"],{"0a92":function(e,t,a){"use strict";var r=a("a122"),n=a.n(r);n.a},"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=s(a,e,this);if(t.done)return t.value;var l=r(e),o=String(this),c=l.lastIndex;n(c,0)||(l.lastIndex=0);var u=i(l,o);return n(l.lastIndex,c)||(l.lastIndex=c),null===u?-1:u.index}]}))},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),s=i["a"].getEnterpriseList,l=i["a"].loginBack,o={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",username:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.username};l(a).then((function(e){}))},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,l=i.pageSize,o=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:l,pageNum:o};s(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},c=o,u=(a("0a92"),a("2877")),p=Object(u["a"])(c,r,n,!1,null,"410ae982",null);t["default"]=p.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a122:function(e,t,a){},a30a:function(e,t,a){"use strict";var r=a("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")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-512af800"],{"34ff":function(e,t,n){},a30a:function(e,t,n){"use strict";var r=n("71f6"),i={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail",loginBack:{url:"/login",method:"post",useFormData:!0,useIntercept:!1}};t["a"]=Object(r["a"])(i,"/hb-manage-operation-web")},bed5:function(e,t,n){"use strict";var r=n("34ff"),i=n.n(r);i.a},d1a4:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"20px"}},[n("h3",{staticClass:"model-title"},[e._v("\n 企业信息\n "),e._e()],1),n("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{label:"小程序版本"}},[e._v("免费版")]),n("el-form-item",{attrs:{label:"企业名称"}},[n("span",[e._v(e._s(e.enterpriseDetail.wxEnterpriseName))]),n("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?n("span",{staticClass:"end-time"},[e._v("\n 认证到期 "+e._s(e._f("timeStampToYmd")(e.enterpriseDetail.verifiedEndTime))+"\n ")]):e._e()],1),n("el-form-item",{attrs:{label:"企业ID"}},[e._v(e._s(e.enterpriseDetail.corpId||"--"))]),n("el-form-item",{attrs:{label:"行业类型"}},[e._v(e._s(e.formatCorpIndustry()))]),n("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?[n("h3",{staticClass:"model-title"},[e._v("好办自建应用")]),n("div",{staticClass:"hb-app"},[n("div",{staticClass:"hb-app-name"},[e._v(e._s(e.enterpriseDetail.secret.secretName))]),n("el-form",{staticClass:"hb-app-info",attrs:{"label-width":"150px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Agentld"}},[e._v(e._s(e.enterpriseDetail.secret.agentId))]),n("el-form-item",{staticClass:"hb-app-info-item",attrs:{label:"Secret"}},[e._v(e._s(e.enterpriseDetail.secret.secretVal))]),n("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(),n("h3",{staticClass:"model-title"},[e._v("授权信息")]),n("el-table",{attrs:{data:e.enterpriseDetail.enterpriseList}},[n("el-table-column",{attrs:{label:"授权商户"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return n("div",{staticClass:"store-info"},[r.enterpriseLogo?n("div",{staticClass:"store-logo"},[n("img",{attrs:{src:r.enterpriseLogo,alt:""}})]):e._e(),n("span",{staticClass:"store-name"},[e._v(e._s(r.enterpriseName))])])}}])}),n("el-table-column",{attrs:{label:"门店绑定授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.bindStoreMode?n("span",[e._v("所有门店")]):r.bindStoreMode>0?n("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 ")]):n("span",[e._v("无")])]}}])}),n("el-table-column",{attrs:{label:"门店共享授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[0==r.shareStoreMode?n("span",[e._v("所有门店")]):r.shareStoreMode>0?n("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 ")]):n("span",[e._v("无")])]}}])})],1),n("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}},[n("el-form",{attrs:{"label-width":"140px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{label:0==e.bindInfo.type?"门店绑定授权范围":"门店共享授权范围"}},[n("el-select",{staticStyle:{width:"392px"},attrs:{disabled:"",multiple:"",value:e.bindInfo.selected}},e._l(e.bindInfo.data,(function(e){return n("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],2)},i=[],s=n("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 n=this,r=e.wxEnterpriseId,i=e.enterpriseId,s={wxEnterpriseId:r,enterpriseId:i,operationType:t};this.bindInfo.show=!0,this.bindInfo.type=t,o(s).then((function(e){n.bindInfo.data=e.result||[],n.bindInfo.selected=n.bindInfo.data.map((function(e){return e.id}))}))},onBindInfoClose:function(){this.bindInfo.data=[],this.bindInfo.selected=[]}}},d=p,f=(n("bed5"),n("2877")),c=Object(f["a"])(d,r,i,!1,null,"c8f38f6e",null);t["default"]=c.exports}}]);
\ 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
......@@ -5,12 +5,6 @@ let api = {
getEnterpriseDetail: '/enterprise-detail', // 获取企业详情
refreshEnterpriseInfo: '/setting/wx-enterprise-info-flush', // 刷新企业信息
storeRangeDetail: '/store-range-detail', // 查询绑定信息
loginBack: {
url: '/login',
method: 'post',
useFormData: true,
useIntercept: false
}
};
export default getFetch(api, '/hb-manage-operation-web');
/*
* @Descripttion: 登录好办
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-20 14:25:47
* @LastEditors: 无尘
* @LastEditTime: 2020-10-20 14:26:14
*/
import getFetch from './get-fetch';
let api = {
loginBack: {
url: '/operation-login',
method: 'post',
useFormData: true,
useIntercept: false
}
};
export default getFetch(api, '/hb-manage-web');
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-03 10:08:57
* @LastEditors: 无尘
* @LastEditTime: 2020-10-20 14:17:34
* @LastEditTime: 2020-10-20 14:26:55
-->
<template>
<div style="padding: 20px">
......@@ -67,9 +67,9 @@
<script>
import api from '@/api/enterprise.js';
const { getEnterpriseList, loginBack } = api;
const { getEnterpriseList } = api;
import apiLogin from '@/api/enterprise.js';
const { loginBack } = apiLogin;
export default {
name: 'EnterpriseList',
data() {
......
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