Commit 3c474d14 by fairyly

fix: 修改接口

parent 10f42b94
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.9b1e7b0a1668fbd27a6bff4abd61da49.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.24aacf23cd2c95d46ee6.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.02c6842c787a4505fee7.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.ae4163de1639f3da092a3eae6275c20d.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.95d3f6e785589194ab2b.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.4ad545414a2bd6f8aef7.js></script></body></html>
\ No newline at end of file
webpackJsonp([10],{ALsN:function(t,s){},AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("ALsN")},"data-v-18a2f51c",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
webpackJsonp([13],{JARP:function(t,e){},Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),o=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfo")).wxEnterpriseId,myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(o.b)(n,a).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(o.b)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("JARP")},"data-v-5eaead02",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([12],{JARP:function(t,e){},Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),o=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfo")).wxEnterpriseId,myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(o.b)(n,a).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(o.b)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("JARP")},"data-v-5eaead02",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([14],{vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("wPOC")},"data-v-4d4471f2",null);e.default=c.exports},wPOC:function(t,e){}});
\ No newline at end of file
webpackJsonp([13],{vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("wPOC")},"data-v-4d4471f2",null);e.default=c.exports},wPOC:function(t,e){}});
\ No newline at end of file
webpackJsonp([14],{"0IVV":function(e,t){},JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),o=a.n(r),s=a("exGp"),n=a.n(s),i=a("3E4D"),l=a("Ch4/"),c=a("PI0u"),u=a("P9l9"),p={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfo")).wxEnterpriseId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.b)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(c.a)(function(){var e=this,t={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(u.b)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("同步成功","success"),void e.getSyncDate();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return n()(o.a.mark(function t(){var r;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a,"first"!=e.name){t.next=5;break}r.getCustomerSet(r.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}r.getShowSet(r.brandId),t.next=15;break;case 9:return t.next=11,r.getGroupClassSet(r.brandId);case 11:return t.next=13,r.getGroupClassify(r.brandId);case 13:return t.next=15,r.getGroupList(r.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.b)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(u.b)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("设置成功","success"),!1;l.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.b)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toChangeTemp:function(e,t,a){var r=this;console.log(e,t,a);var o={wxEnterpriseRelatedId:r.wxEnterpriseRelatedId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(u.b)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("操作成功","success"),r.pageNum=1,void r.getGroupList(r.brandId);a.isSendTemplate=!1,l.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.b)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab","12"),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)},components:{}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),e._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),e._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[a("el-checkbox",{on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员分组到期后不展示")])]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")]),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},staticRenderFns:[]};var m=a("VU/8")(p,d,!1,function(e){a("0IVV")},"data-v-49f279b9",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([17],{"4hLM":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-manage3-web/application-list",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.dataOverview=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("4hLM")},"data-v-0e599eb6",null);e.default=p.exports}});
\ No newline at end of file
webpackJsonp([17],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-manage3-web/application-list",a).then(function(a){var s=a.data;1!=s.errorCode?r.a.errorMsg(s):1==t?e.purchaseApp=JSON.parse(o()(s.result)):e.noPurchaseApp=JSON.parse(o()(s.result))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppData(1),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("eEib")},"data-v-1ba71bd8",null);e.default=p.exports},eEib:function(t,e){}});
\ 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.
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.
webpackJsonp([6],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("Zwp/")},"data-v-d1f21788",null);s.default=r.exports},"Zwp/":function(t,s){}});
\ No newline at end of file
webpackJsonp([5],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("Zwp/")},"data-v-d1f21788",null);s.default=r.exports},"Zwp/":function(t,s){}});
\ No newline at end of file
webpackJsonp([7],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("kUQV")},"data-v-45ea1cc1",null);s.default=c.exports},kUQV:function(t,s){}});
\ No newline at end of file
webpackJsonp([6],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("kUQV")},"data-v-45ea1cc1",null);s.default=c.exports},kUQV:function(t,s){}});
\ No newline at end of file
webpackJsonp([8],{QHTa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,e,a){if(e?this.tabData[a].onlyIconActive=!0:(this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children")&&t.children.length&&(this.collapsFlag=!(this.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children"))return this.tabData[a].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){this.tabData=t},activeSelTab:function(t,e){this.activeTab=t}},mounted:function(){this.activeTab=this.activeSelTab}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,!1,i)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.icon,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName)+"\n ")]),t._v(" "),t.collapsFlag?a("ul",{key:"childitem"+i,staticClass:"child-tab-left-list"},[t._l(e.children,function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,"child",i)}}},[t._v(t._s(e.tabName))]),t._v(" "),a("ul",{key:"thirditem"+n,staticClass:"third-tab-left-list"},[t._l(e.children,function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,"child",i)}}},[t._v(t._s(e.tabName))])]})],2)]})],2):t._e()]})],2)])},staticRenderFns:[]};var o=a("VU/8")(n,c,!1,function(t){a("k6cF")},"data-v-3b101a00",null).exports,s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"会员展示设置",icon:""},{tabId:"12",tabName:"会员分组设置",icon:""},{tabId:"13",tabName:"会员搜索设置",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:o}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var l=a("VU/8")(s,r,!1,function(t){a("hFKD")},"data-v-6aa87708",null);e.default=l.exports},hFKD:function(t,e){},k6cF:function(t,e){}});
\ No newline at end of file
webpackJsonp([7],{QHTa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return"1"}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t,e,a){if(e?this.tabData[a].onlyIconActive=!0:(this.tabData.forEach(function(t){t.onlyIconActive=!1}),t.hasOwnProperty("children")&&t.children.length&&(this.collapsFlag=!(this.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children"))return this.tabData[a].onlyIconActive=!0,t.children[0].hasOwnProperty("children")?(this.activeTab=t.children[0].children[0].tabId,this.$emit("setSelectTab",t),!1):(this.activeTab=t.children[0].tabId,this.$emit("setSelectTab",t),!1);this.activeTab=t.tabId,this.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){this.tabData=t},activeSelTab:function(t,e){this.activeTab=t}},mounted:function(){this.activeTab=this.activeSelTab}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,!1,i)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.icon,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName)+"\n ")]),t._v(" "),t.collapsFlag?a("ul",{key:"childitem"+i,staticClass:"child-tab-left-list"},[t._l(e.children,function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,"child",i)}}},[t._v(t._s(e.tabName))]),t._v(" "),a("ul",{key:"thirditem"+n,staticClass:"third-tab-left-list"},[t._l(e.children,function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.tabId==t.activeTab?"active-tab":""],on:{click:function(a){return t.selectTab(e,"child",i)}}},[t._v(t._s(e.tabName))])]})],2)]})],2):t._e()]})],2)])},staticRenderFns:[]};var o=a("VU/8")(n,c,!1,function(t){a("k6cF")},"data-v-3b101a00",null).exports,s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"会员展示设置",icon:""},{tabId:"12",tabName:"会员分组设置",icon:""},{tabId:"13",tabName:"会员搜索设置",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:o}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var l=a("VU/8")(s,r,!1,function(t){a("hFKD")},"data-v-6aa87708",null);e.default=l.exports},hFKD:function(t,e){},k6cF:function(t,e){}});
\ No newline at end of file
webpackJsonp([9],{ALsN:function(t,s){},AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("ALsN")},"data-v-18a2f51c",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,d,i,u=0,s=[];u<r.length;u++)d=r[u],t[d]&&s.push(t[d][0]),t[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);s.length;)s.shift()();if(c)for(u=0;u<c.length;u++)i=o(o.s=c[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"1950ba81fb9e6591f955",1:"9a1776fdc262362d75b8",2:"f8bee3d8e2b83f6a7c8b",3:"d8e37aeae6d56520acad",4:"a0c4f09c879548585390",5:"82d0792d81d7318307e9",6:"689a47e3c9b781d2fb24",7:"e0cce9483623d0364430",8:"8e77474758fd36663e34",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"a8374649133a25199e44",12:"d90be435e90fc03b61dd",13:"863fcfef38d982f04a9d",14:"6ddcbf8576b81570a798",15:"b2964c8a20328a2a5e5f",16:"188fa59e318626239ae8",17:"213863e51a31745d52c8",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,a.appendChild(c),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=c(c.s=o[u]);return i};var r={},t={21:0};function c(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,c){n=t[e]=[r,c]});n[2]=r;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,c.nc&&o.setAttribute("nonce",c.nc),o.src=c.p+"static/js/"+e+"."+{0:"dd15fc8f789c4a23939c",1:"9a1776fdc262362d75b8",2:"785eef5b66707ef6f90b",3:"dae2125b16d290c1fb11",4:"397d2b5066a8e689096c",5:"afc7b726a46486df899a",6:"9e12ea68528f2ad5f9a5",7:"4c95fe66c59573d7da03",8:"c2a3c1c2b9ffb4687826",9:"4b8efecc95608bc88200",10:"9c5ebbe659b7a663ddb3",11:"29941951e052f4942eca",12:"c95e6e2e763aa2d73679",13:"610798bb673465353c40",14:"5d02db8ed545dbc606d9",15:"b2964c8a20328a2a5e5f",16:"188fa59e318626239ae8",17:"51b70d6c25a1be5ec7ba",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-08-14 16:51:07
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 10:20:08
* @LastEditTime : 2020-02-20 14:43:35
-->
<!--
<contact-tree :itemData="itemData" v-model="itemData" ></contact-tree>
......@@ -15,8 +15,8 @@ import contactTree from '/components/company/contact-tree.vue';
<ul class="m-l-10">
<draggable :list="itemData" class="wx-component" :options="rightOption" @input="emitter" @change="changeData">
<li v-for="(item, index) in itemData" :key="index + 'gic'">
<div class="li-cell cursor-pointer" v-contextmenu:contextmenu @click="toggleExpand(item)">
<span :class="['font-12 color-606266', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['font-14 p-l-10 p-r-10 iconfont', item.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', item.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ item.label }}</span>
<div class="li-cell cursor-pointer" @click="toggleExpand(item)">
<span :class="['font-12 color-606266', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['font-14 p-l-10 p-r-10 iconfont', item.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', item.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ item.departmentName }}</span>
</div>
<li-row v-if="item.expand" :itemData="item.children" @getSelectData="getSelectData"></li-row
><!-- v-show="!!item.children.length && item.expand" -->
......@@ -76,13 +76,13 @@ export default {
/**
* 展开或者关闭下级
*/
toggleExpand(item) {
async toggleExpand(item) {
const that = this;
// console.log(item);
item.expand = item.expand ? false : true;
/* if (!item.children.length) {
item.expand = true;
} */
if (!item.children.length) {
item.children = await that.getChildData(item);
}
if (item.expand) {
localforage.setItem(item.departmentId, item);
} else {
......@@ -108,9 +108,10 @@ export default {
let para = {
parentId: item.departmentId, //
isStore: item.isStore, //
pageSize: that.pageSize // 一页显示个数
keyword: '' //
};
getRequest('/haoban-app-member-web/customer/find_message_list', para)
return new Promise((resolve, reject) => {
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -119,20 +120,23 @@ export default {
ele.expand = false;
ele.children = [];
ele.label = ele.departmentName;
item.children.push(ele);
});
}
that.$forceUpdate();
resolve(resData.result.list || []);
return false;
}
resolve([]);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve([]);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
}
},
watch: {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 10:21:30
* @LastEditTime : 2020-02-20 14:52:09
-->
<template>
<div class="contacts-wrap common-set-wrap">
......@@ -72,33 +72,28 @@ export default {
],
searchInput: '',
wxData: [
{
id: 2,
expand: false,
isStore: 0,
label: '总部2',
bindFlag: 0,
children: [
{
id: 22,
expand: false,
isStore: 1,
label: '总部2',
bindFlag: 1,
children: []
}
]
}
// {
// id: 2,
// level: 0,
// expand: false,
// isStore: 0,
// departmentName: '总部2',
// bindFlag: 0,
// children: [
// {
// id: 22,
// expand: false,
// isStore: 1,
// departmentName: '总部2',
// bindFlag: 1,
// children: []
// }]
// }
],
selectData: {},
departObj: {
isStore: 0
},
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
tableData: []
}
};
},
computed: {},
......@@ -139,39 +134,29 @@ export default {
that.currentPage = 1;
that.getTableList();
},
/**
* 分页---页码变化
*/
handleSizeChange(val) {
const that = this;
that.pageSize = val;
that.getTableList();
},
/**
* 分页---当前页变化
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableList();
},
/**
* 获取列表数据
*/
getTableList(val) {
const that = this;
let para = {
keyWord: that.searchInput || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
isStore: 0, // 当前页
parentId: '' // 一页显示个数
};
getRequest('/haoban-app-member-web/customer/find_message_list', para)
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.tableData = resData.result.list || [];
that.total = resData.result.total;
if (!!resData.result.list && resData.result.list.length) {
resData.result.list.forEach(ele => {
ele.expand = false;
ele.children = [];
ele.label = ele.departmentName;
});
}
that.wxData = resData.result.list || [];
return false;
}
errMsg.errorMsg(resData);
......@@ -186,11 +171,8 @@ export default {
},
watch: {},
mounted() {
let that = this;
let iconUrl = that.$route.query.appIcon;
if (iconUrl) {
that.appIcon = window.unescape(iconUrl);
}
const that = this;
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-02-19 15:32:09
* @LastEditTime : 2020-02-20 11:13:06
-->
<template>
<div id="index">
......@@ -279,7 +279,12 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.dataOverview = resData.result;
if (type == 1) {
that.purchaseApp = JSON.parse(JSON.stringify(resData.result));
} else {
that.noPurchaseApp = JSON.parse(JSON.stringify(resData.result));
}
return;
}
errMsg.errorMsg(resData);
......@@ -294,8 +299,8 @@ export default {
},
mounted() {
const that = this;
/* that.getAppData(1);
that.getAppData(2); */
that.getAppData(1);
/* that.getAppData(2); */
that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 204 + 'px';
},
components: {
......
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