Commit cfe219cf by 无尘

fix: 修改接口字段

parent b6de87d8
.store-wrap[data-v-9f0a22ec]{width:100%}.store-wrap .van-cell-group__title[data-v-9f0a22ec]{background:#f0f0f0}.store-wrap .look-show[data-v-9f0a22ec]{height:100%;padding:0 .42667rem;font-size:.37333rem;color:#4b69e5;background-color:initial;border:none;cursor:pointer} .store-wrap[data-v-72392286]{width:100%}.store-wrap .van-cell-group__title[data-v-72392286]{background:#f0f0f0}.store-wrap .look-show[data-v-72392286]{height:100%;padding:0 .42667rem;font-size:.37333rem;color:#4b69e5;background-color:initial;border:none;cursor:pointer}
\ No newline at end of file \ No newline at end of file
.store-wrap[data-v-5a9c79d2]{width:100%}.store-wrap .store-breadcrumb[data-v-5a9c79d2]{white-space:nowrap;overflow-x:auto}.store-wrap .store-breadcrumb .store-breadcrumb__item .is-link[data-v-5a9c79d2]{color:#4b69e5;cursor:pointer}.store-wrap .store-breadcrumb .store-breadcrumb__item .van-icon[data-v-5a9c79d2]{color:#afb1b8;vertical-align:middle}.store-wrap .van-cell-group__title[data-v-5a9c79d2]{background:#f0f0f0}.store-wrap .look-show[data-v-5a9c79d2]{height:100%;font-size:.37333rem;color:#4b69e5;background-color:initial;border:none;cursor:pointer}
\ No newline at end of file
.store-wrap[data-v-429b68ca]{width:100%}.store-wrap .store-breadcrumb[data-v-429b68ca]{white-space:nowrap;overflow-x:auto}.store-wrap .store-breadcrumb .store-breadcrumb__item .is-link[data-v-429b68ca]{color:#4b69e5;cursor:pointer}.store-wrap .store-breadcrumb .store-breadcrumb__item .van-icon[data-v-429b68ca]{color:#afb1b8;vertical-align:middle}.store-wrap .van-cell-group__title[data-v-429b68ca]{background:#f0f0f0}.store-wrap .look-show[data-v-429b68ca]{height:100%;font-size:.37333rem;color:#4b69e5;background-color:initial;border:none;cursor:pointer}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>达摩</title><link href=css/chunk-144000a6.bf249446.css rel=prefetch><link href=css/chunk-168aaab2.2aa111ce.css rel=prefetch><link href=css/chunk-522494e2.41d8fadc.css rel=prefetch><link href=css/chunk-566730a9.2a98a42b.css rel=prefetch><link href=js/chunk-144000a6.e0ef8f25.js rel=prefetch><link href=js/chunk-168aaab2.b93b22eb.js rel=prefetch><link href=js/chunk-522494e2.89394bfd.js rel=prefetch><link href=js/chunk-566730a9.2da25c72.js rel=prefetch><link href=css/app.43bbc0d9.css rel=preload as=style><link href=js/app.40e2bb9d.js rel=preload as=script><link href=js/chunk-vendors.4af1e6db.js rel=preload as=script><link href=css/app.43bbc0d9.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.4af1e6db.js></script><script src=js/app.40e2bb9d.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>达摩</title><link href=css/chunk-00884f48.aff90400.css rel=prefetch><link href=css/chunk-144000a6.bf249446.css rel=prefetch><link href=css/chunk-168aaab2.2aa111ce.css rel=prefetch><link href=css/chunk-4dfb076c.412db61f.css rel=prefetch><link href=js/chunk-00884f48.88a29dae.js rel=prefetch><link href=js/chunk-144000a6.cb245e18.js rel=prefetch><link href=js/chunk-168aaab2.eae80ae0.js rel=prefetch><link href=js/chunk-4dfb076c.08003fb8.js rel=prefetch><link href=css/app.51b89d1b.css rel=preload as=style><link href=js/app.ca85126b.js rel=preload as=script><link href=js/chunk-vendors.4af1e6db.js rel=preload as=script><link href=css/app.51b89d1b.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.4af1e6db.js></script><script src=js/app.ca85126b.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00884f48"],{"1cab":function(e,t,r){"use strict";r.r(t);var n,a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"store-wrap border-box"},[r("van-cell",{attrs:{title:e.enterpriseData.enterpiseName,"is-link":""},on:{click:function(t){e.toChild(e.item)}}},[[1==e.enterpriseData.bindFlag?r("span",[r("span",{staticClass:"font_family icon-shouquan color-4b69e5"}),e._v(e._s(e.enterpriseData.bindWxEnterpriseName)+" 企业已授权")]):e._e()]],2),r("van-cell-group",{attrs:{title:1==e.bindType?"门店绑定":"门店共享"}},[e._l(e.bindData,function(t,n){return r("van-cell",{key:n+"bind",attrs:{title:t.storeGroupName||t.storeInfoName}},[[r("button",{staticClass:"look-show",attrs:{type:"button"},on:{click:function(r){e.toChild(t)}}},[e._v("查看")])]],2)})],2)],1)},i=[],u=(r("96cf"),r("3b8d")),o=r("bd86"),s=(r("0653"),r("34e9")),c=(r("c194"),r("7744")),d=(r("cadf"),r("551c"),r("097d"),r("365c")),p={components:(n={},Object(o["a"])(n,c["a"].name,c["a"]),Object(o["a"])(n,s["a"].name,s["a"]),n),data:function(){return{enterpriseData:{enterpriseId:"",enterpiseName:""},bindData:[],bindType:this.$route.query.type}},methods:{toChild:function(e){var t=this;t.$router.push("/childLevel?type=".concat(t.$route.query.type,"&bindMode=").concat(t.$route.query.bindMode,"&bindId=").concat(e.storeGroupId,"&enterpriseId=").concat(t.$route.query.enterpriseId,"&storeRangeAuditId=").concat(t.$route.query.storeRangeAuditId,"&wxEnterpriseId=").concat(t.$route.query.wxEnterpriseId))},getGroupData:function(){var e=Object(u["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={type:t.$route.query.type,enterpriseId:t.$route.query.enterpriseId,storeRangeAuditId:t.$route.query.storeRangeAuditId,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(d["b"])(r);case 4:n=e.sent,"0000"==n.code&&(t.bindData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getStoreData:function(){var e=Object(u["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={type:t.$route.query.type,enterpriseId:t.$route.query.enterpriseId,storeRangeAuditId:t.$route.query.storeRangeAuditId,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(d["f"])(r);case 4:n=e.sent,"0000"==n.code&&(t.bindData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getEnterpriseData:function(){var e=Object(u["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={enterpriseId:t.$route.query.enterpriseId},e.next=4,Object(d["e"])(r);case 4:n=e.sent,"0000"==n.code&&(t.enterpriseData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){var e=this;e.getEnterpriseData(),1==e.$route.query.bindMode&&e.getGroupData(),2==e.$route.query.bindMode&&e.getStoreData()}},l=p,b=(r("d9f7"),r("2877")),f=Object(b["a"])(l,a,i,!1,null,"72392286",null);f.options.__file="index.vue";t["default"]=f.exports},d060:function(e,t,r){},d9f7:function(e,t,r){"use strict";var n=r("d060"),a=r.n(n);a.a}}]);
//# sourceMappingURL=chunk-00884f48.88a29dae.js.map
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4dfb076c"],{"3f58":function(e,t,r){"use strict";r.r(t);var n,a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"store-wrap border-box"},[r("van-cell",[[r("div",{staticClass:"store-breadcrumb"},[e._l(e.navData,function(t,n){return[n!=e.navData.length-1?[r("span",{key:n+"nav",staticClass:"store-breadcrumb__item"},[r("span",{staticClass:"store-breadcrumb__inner is-link",on:{click:function(r){e.changeDepart(t,n)}}},[r("span",{staticClass:"store-breadcrumb__inner is-link font-13"},[e._v("\n "+e._s(e._f("formatWord")(t.storeGroupName))+"\n ")])]),n!=e.navData.length-1?r("van-icon",{attrs:{name:"arrow"}}):e._e()],1)]:[r("span",{key:n+"nav2",staticClass:"store-breadcrumb__item"},[r("span",{staticClass:"store-breadcrumb__inner"},[r("span",{staticClass:"store-breadcrumb__inner font-13 color-606266"},[e._v("\n "+e._s(e._f("formatWord")(t.storeGroupName))+"\n ")])])])]]})],2)]],2),r("van-cell-group",{attrs:{title:"门店共享"}},[e._l(e.bindData,function(t,n){return r("van-cell",{key:n+"bind",attrs:{"is-link":"",title:t.storeGroupName||t.storeInfoName},on:{click:function(r){e.toChild(t)}}},[[r("span",{staticClass:"font_family icon-chenggong color-e2574d"}),r("span",[e._v("已选择")]),r("span",{staticClass:"font_family icon-shouquan color-4b69e5"}),r("span",[e._v(e._s(t.enterpriseName)+"企业已授权")])]],2)})],2)],1)},s=[],o=(r("96cf"),r("3b8d")),c=r("bd86"),i=(r("68ef"),r("9d70"),r("3743"),r("ad06")),u=(r("0653"),r("34e9")),d=(r("c194"),r("7744")),p=(r("cadf"),r("551c"),r("097d"),r("365c")),l={components:(n={},Object(c["a"])(n,d["a"].name,d["a"]),Object(c["a"])(n,u["a"].name,u["a"]),Object(c["a"])(n,i["a"].name,i["a"]),n),data:function(){return{navData:[{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"}],groupId:"",bindData:[],bindType:""}},methods:{toChild:function(){var e=this;e.$router.push("/")},changeDepart:function(e,t){var r=this;0!=t?(r.getNavData(),r.getData()):r.$router.push("/storeBind?type=".concat(r.$route.query.type,"&bindMode=").concat(r.$route.query.bindMode,"&enterpriseId=").concat(r.$route.query.enterpriseId,"&storeRangeAuditId=").concat(r.$route.query.storeRangeAuditId,"&wxEnterpriseId=").concat(r.$route.query.wxEnterpriseId))},getNavData:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={},e.next=4,Object(p["d"])(r);case 4:n=e.sent,"0000"==n.code&&(t.navData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getData:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={departmentId:t.groupId,enterpriseId:t.$route.query.enterpriseId,type:t.$route.query.type,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(p["c"])(r);case 4:n=e.sent,"0000"==n.code&&(t.bindData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){var e=this;e.groupId=e.$route.query.bindId,e.getData()}},b=l,f=(r("5b6d"),r("2877")),m=Object(f["a"])(b,a,s,!1,null,"5a9c79d2",null);m.options.__file="child-level.vue";t["default"]=m.exports},"5b6d":function(e,t,r){"use strict";var n=r("6ecb"),a=r.n(n);a.a},"6ecb":function(e,t,r){}}]);
//# sourceMappingURL=chunk-4dfb076c.08003fb8.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-522494e2"],{"1cab":function(e,t,r){"use strict";r.r(t);var n,u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"store-wrap border-box"},[r("van-cell",{attrs:{title:"单元格","is-link":""}}),r("van-cell-group",{attrs:{title:1==e.bindType?"门店绑定":"门店共享"}},[e._l(e.bindData,function(t,n){return r("van-cell",{key:n+"bind",attrs:{title:t.storeGroupName||t.storeInfoName}},[[r("button",{staticClass:"look-show",attrs:{type:"button"},on:{click:function(r){e.toChild(t)}}},[e._v("查看")])]],2)})],2)],1)},o=[],a=(r("96cf"),r("3b8d")),i=r("bd86"),c=(r("0653"),r("34e9")),s=(r("c194"),r("7744")),d=(r("cadf"),r("551c"),r("097d"),r("365c")),p={components:(n={},Object(i["a"])(n,s["a"].name,s["a"]),Object(i["a"])(n,c["a"].name,c["a"]),n),data:function(){return{bindData:[],bindType:this.$route.query.type}},methods:{toChild:function(e){var t=this;t.$router.push("/childLevel?type=".concat(t.$route.query.type,"&bindMode=").concat(t.$route.query.bindMode,"&bindId=").concat(e.storeGroupId,"&enterpriseId=").concat(t.$route.query.enterpriseId,"&storeRangeAuditId=").concat(t.$route.query.storeRangeAuditId,"&wxEnterpriseId=").concat(t.$route.query.wxEnterpriseId))},getGroupData:function(){var e=Object(a["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={type:t.$route.query.type,enterpriseId:t.$route.query.enterpriseId,storeRangeAuditId:t.$route.query.storeRangeAuditId,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(d["b"])(r);case 4:n=e.sent,"0000"==n.code&&(t.bindData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getStoreData:function(){var e=Object(a["a"])(regeneratorRuntime.mark(function e(){var t,r,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={type:t.$route.query.type,enterpriseId:t.$route.query.enterpriseId,storeRangeAuditId:t.$route.query.storeRangeAuditId,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(d["e"])(r);case 4:n=e.sent,"0000"==n.code&&(t.bindData=n.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){var e=this;1==e.$route.query.bindMode&&e.getGroupData(),2==e.$route.query.bindMode&&e.getStoreData()}},l=p,b=(r("2323"),r("2877")),y=Object(b["a"])(l,u,o,!1,null,"9f0a22ec",null);y.options.__file="index.vue";t["default"]=y.exports},2323:function(e,t,r){"use strict";var n=r("e4cc"),u=r.n(n);u.a},e4cc:function(e,t,r){}}]);
//# sourceMappingURL=chunk-522494e2.89394bfd.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-566730a9"],{"3f58":function(e,t,r){"use strict";r.r(t);var a,n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"store-wrap border-box"},[r("van-cell",[[r("div",{staticClass:"store-breadcrumb"},[e._l(e.navData,function(t,a){return[a!=e.navData.length-1?[r("span",{key:a+"nav",staticClass:"store-breadcrumb__item"},[r("span",{staticClass:"store-breadcrumb__inner is-link",on:{click:function(r){e.changeDepart(t,a)}}},[r("span",{staticClass:"store-breadcrumb__inner is-link font-13"},[e._v("\n "+e._s(e._f("formatWord")(t.storeGroupName))+"\n ")])]),a!=e.navData.length-1?r("van-icon",{attrs:{name:"arrow"}}):e._e()],1)]:[r("span",{key:a+"nav2",staticClass:"store-breadcrumb__item"},[r("span",{staticClass:"store-breadcrumb__inner"},[r("span",{staticClass:"store-breadcrumb__inner font-13 color-606266"},[e._v("\n "+e._s(e._f("formatWord")(t.storeGroupName))+"\n ")])])])]]})],2)]],2),r("van-cell-group",{attrs:{title:"门店共享"}},[e._l(e.bindData,function(t,a){return r("van-cell",{key:a+"bind",attrs:{"is-link":"",title:t.storeGroupName||t.storeInfoName},on:{click:function(r){e.toChild(t)}}},[[r("span",{staticClass:"font_family icon-chenggong"}),r("span",[e._v("已选择")]),r("span",{staticClass:"font_family icon-shouquan"}),r("span",[e._v(e._s(t.enterpriseName)+"企业已授权")])]],2)})],2)],1)},s=[],o=(r("96cf"),r("3b8d")),i=r("bd86"),c=(r("68ef"),r("9d70"),r("3743"),r("ad06")),u=(r("0653"),r("34e9")),d=(r("c194"),r("7744")),p=(r("cadf"),r("551c"),r("097d"),r("365c")),l={components:(a={},Object(i["a"])(a,d["a"].name,d["a"]),Object(i["a"])(a,u["a"].name,u["a"]),Object(i["a"])(a,c["a"].name,c["a"]),a),data:function(){return{navData:[{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"},{storeGroupName:"达摩测试达摩达摩测试达摩"}],groupId:"",bindData:[],bindType:""}},methods:{toChild:function(){var e=this;e.$router.push("/")},changeDepart:function(e,t){var r=this;0!=t?(r.getNavData(),r.getData()):r.$router.push("/storeBind?type=".concat(r.$route.query.type,"&bindMode=").concat(r.$route.query.bindMode,"&enterpriseId=").concat(r.$route.query.enterpriseId,"&storeRangeAuditId=").concat(r.$route.query.storeRangeAuditId,"&wxEnterpriseId=").concat(r.$route.query.wxEnterpriseId))},getNavData:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(){var t,r,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={},e.next=4,Object(p["d"])(r);case 4:a=e.sent,"0000"==a.code&&(t.navData=a.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),getData:function(){var e=Object(o["a"])(regeneratorRuntime.mark(function e(){var t,r,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this,r={departmentId:t.groupId,enterpriseId:t.$route.query.enterpriseId,type:t.$route.query.type,wxEnterpriseId:t.$route.query.wxEnterpriseId},e.next=4,Object(p["c"])(r);case 4:a=e.sent,"0000"==a.code&&(t.bindData=a.result);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){var e=this;e.groupId=e.$route.query.bindId,e.getData()}},f=l,m=(r("d2f3"),r("2877")),b=Object(m["a"])(f,n,s,!1,null,"429b68ca",null);b.options.__file="child-level.vue";t["default"]=b.exports},a079:function(e,t,r){},d2f3:function(e,t,r){"use strict";var a=r("a079"),n=r.n(a);n.a}}]);
//# sourceMappingURL=chunk-566730a9.2da25c72.js.map
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-24 15:07:58 * @Date: 2020-07-24 15:07:58
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-30 20:22:46 * @LastEditTime: 2020-07-31 10:35:11
*/ */
/** /**
* 商户绑定 api * 商户绑定 api
...@@ -20,3 +20,4 @@ export const getStore = data => postRequest('/hb-manage-web/auth-store-list', da ...@@ -20,3 +20,4 @@ export const getStore = data => postRequest('/hb-manage-web/auth-store-list', da
export const getDepartment = data => postRequest('/hb-manage-web/auth-department-list', data); export const getDepartment = data => postRequest('/hb-manage-web/auth-department-list', data);
export const getDepartmentNav = data => postRequest('/hb-manage-web/department-list-level', data); export const getDepartmentNav = data => postRequest('/hb-manage-web/department-list-level', data);
export const getDepartmentChild = data => postRequest('/hb-manage-web/department-list-by-department-id', data); export const getDepartmentChild = data => postRequest('/hb-manage-web/department-list-by-department-id', data);
export const getEnterpriseDetail = data => postRequest('/hb-manage-web/gic-enterprise-detail', data);
...@@ -196,6 +196,14 @@ a { ...@@ -196,6 +196,14 @@ a {
font-weight: 500; font-weight: 500;
} }
.color-4b69e5 {
color: #4b69e5;
}
.color-e2574d {
color: #e2574d;
}
.color-232326 { .color-232326 {
color: #232326; color: #232326;
} }
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<template> <template>
<van-cell is-link :title="item.storeGroupName||item.storeInfoName" v-for="(item, index) in bindData" :key="index+'bind'" @click="toChild(item)"> <van-cell is-link :title="item.storeGroupName||item.storeInfoName" v-for="(item, index) in bindData" :key="index+'bind'" @click="toChild(item)">
<template #extra> <template #extra>
<span class="font_family icon-chenggong"></span><span>已选择</span> <span class="font_family icon-chenggong color-e2574d"></span><span>已选择</span>
<span class="font_family icon-shouquan"></span><span>{{item.enterpriseName}}企业已授权</span> <span class="font_family icon-shouquan color-4b69e5"></span><span>{{item.enterpriseName}}企业已授权</span>
</template> </template>
</van-cell> </van-cell>
</template> </template>
......
...@@ -4,11 +4,15 @@ ...@@ -4,11 +4,15 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-23 17:18:25 * @Date: 2020-07-23 17:18:25
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-30 21:00:51 * @LastEditTime: 2020-07-31 10:46:44
--> -->
<template> <template>
<div class="store-wrap border-box"> <div class="store-wrap border-box">
<van-cell title="单元格" is-link /> <van-cell :title="enterpriseData.enterpiseName" is-link @click="toChild(item)">
<template #extra>
<span v-if="enterpriseData.bindFlag == 1"><span class="font_family icon-shouquan color-4b69e5"></span>{{ enterpriseData.bindWxEnterpriseName }} 企业已授权</span>
</template>
</van-cell>
<van-cell-group :title="bindType == 1? '门店绑定':'门店共享'"> <van-cell-group :title="bindType == 1? '门店绑定':'门店共享'">
<template> <template>
<van-cell :title="item.storeGroupName||item.storeInfoName" v-for="(item, index) in bindData" :key="index+'bind'"> <van-cell :title="item.storeGroupName||item.storeInfoName" v-for="(item, index) in bindData" :key="index+'bind'">
...@@ -22,7 +26,7 @@ ...@@ -22,7 +26,7 @@
</template> </template>
<script> <script>
import { Cell, CellGroup } from 'vant'; import { Cell, CellGroup } from 'vant';
import { getDepartment, getStore } from '@/api/index.js'; import { getDepartment, getStore, getEnterpriseDetail } from '@/api/index.js';
export default { export default {
components: { components: {
[Cell.name]: Cell, [Cell.name]: Cell,
...@@ -30,6 +34,10 @@ export default { ...@@ -30,6 +34,10 @@ export default {
}, },
data() { data() {
return { return {
enterpriseData: {
enterpriseId: '',
enterpiseName: ''
},
bindData: [], bindData: [],
bindType: this.$route.query.type bindType: this.$route.query.type
} }
...@@ -64,10 +72,21 @@ export default { ...@@ -64,10 +72,21 @@ export default {
if (resData.code == '0000') { if (resData.code == '0000') {
that.bindData = resData.result; that.bindData = resData.result;
} }
},
async getEnterpriseData() {
const that = this;
let param = {
enterpriseId: that.$route.query.enterpriseId
}
let resData = await getEnterpriseDetail(param);
if (resData.code == '0000') {
that.enterpriseData = resData.result;
}
} }
}, },
mounted() { mounted() {
const that = this; const that = this;
that.getEnterpriseData();
if (that.$route.query.bindMode == 1) { if (that.$route.query.bindMode == 1) {
that.getGroupData(); that.getGroupData();
} }
......
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