Commit 72cebea1 by 无尘

fix: 修改加载

parent 88a7450d
.audit-config[data-v-7c83d98c]{padding:30px;min-height:100%;background-color:#fff}.audit-config .audit-config-title[data-v-7c83d98c]{margin-bottom:20px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.audit-config .audit-config-content[data-v-7c83d98c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.audit-config .audit-config-content .audit-config-desc[data-v-7c83d98c]{margin-left:17px}.audit-config .audit-config-content .desc-content[data-v-7c83d98c]{font-size:14px;font-weight:400;color:#606266;line-height:20px}.audit-config .audit-config-content .desc-tip[data-v-7c83d98c]{font-size:12px;font-weight:400;color:#909399;line-height:22px}
\ No newline at end of file
.audit-config[data-v-52a837f4]{padding:30px;min-height:100%;background-color:#fff}.audit-config .audit-config-title[data-v-52a837f4]{margin-bottom:20px;font-size:14px;font-weight:700;color:#303133;line-height:20px}.audit-config .audit-config-content[data-v-52a837f4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.audit-config .audit-config-content .audit-config-desc[data-v-52a837f4]{margin-left:17px}.audit-config .audit-config-content .desc-content[data-v-52a837f4]{font-size:14px;font-weight:400;color:#606266;line-height:20px}.audit-config .audit-config-content .desc-tip[data-v-52a837f4]{font-size:12px;font-weight:400;color:#909399;line-height:22px}
\ No newline at end of file
.bind-store-body[data-v-0e52bdc3]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-0e52bdc3]{width:215px}.bind-store-body .w-115[data-v-0e52bdc3]{width:115px}.bind-store-body .select-tree-wrap[data-v-0e52bdc3]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-0e52bdc3]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-0e52bdc3]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-0e52bdc3]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-0e52bdc3]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-0e52bdc3]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-0e52bdc3]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-0bd6b018]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-0bd6b018]{width:215px}.bind-store-body .w-115[data-v-0bd6b018]{width:115px}.bind-store-body .select-tree-wrap[data-v-0bd6b018]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-0bd6b018]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-0bd6b018]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-67a6c45b]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-67a6c45b]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-67a6c45b]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-67a6c45b]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-67a6c45b]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-0f33a509]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-0f33a509],.store-auth-range.show-range[data-v-0f33a509]{display:block}.store-auth-range.show-range .bind-body[data-v-0f33a509]{right:0}.store-auth-range.hide-range .common-mask[data-v-0f33a509]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-0f33a509]{right:-620px}.common-mask[data-v-0f33a509]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-0f33a509],.common-mask[data-v-0f33a509]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-0f33a509]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-ffff2a3c]{height:100%}.my-customer-wrap .nav-wrap[data-v-ffff2a3c]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-ffff2a3c]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-ffff2a3c]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-ffff2a3c]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-ffff2a3c]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-ffff2a3c]{max-width:348px;white-space:nowrap;overflow:hidden}
\ No newline at end of file
.bind-store-body[data-v-0e52bdc3]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-0e52bdc3]{width:215px}.bind-store-body .w-115[data-v-0e52bdc3]{width:115px}.bind-store-body .select-tree-wrap[data-v-0e52bdc3]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-0e52bdc3]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-0e52bdc3]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-0e52bdc3]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-0e52bdc3]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-0e52bdc3]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-0e52bdc3]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-0bd6b018]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-0bd6b018]{width:215px}.bind-store-body .w-115[data-v-0bd6b018]{width:115px}.bind-store-body .select-tree-wrap[data-v-0bd6b018]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-0bd6b018]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-0bd6b018]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-67a6c45b]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-67a6c45b]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-67a6c45b]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-67a6c45b]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-67a6c45b]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-0f33a509]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-0f33a509],.store-auth-range.show-range[data-v-0f33a509]{display:block}.store-auth-range.show-range .bind-body[data-v-0f33a509]{right:0}.store-auth-range.hide-range .common-mask[data-v-0f33a509]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-0f33a509]{right:-620px}.common-mask[data-v-0f33a509]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-0f33a509],.common-mask[data-v-0f33a509]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-0f33a509]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-cb8bfcac]{height:100%}.my-customer-wrap .nav-wrap[data-v-cb8bfcac]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-cb8bfcac]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-cb8bfcac]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-cb8bfcac]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-cb8bfcac]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-cb8bfcac]{max-width:348px;white-space:nowrap;overflow:hidden}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b898c1e"],{"2d38":function(t,i,e){"use strict";var a=e("94dc"),u=e.n(a);u.a},"71f6":function(t,i,e){"use strict";e.d(i,"a",(function(){return u}));e("ac6a"),e("456d");var a=e("b775");function u(t,i){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(i).concat(u.url),t[e]=function(t,i){return Object(a["a"])(u,t,i)}})),t}},"94dc":function(t,i,e){},"96b6":function(t,i,e){"use strict";var a=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(a["a"])(u,"/hb-manage-web"),i["a"]=u},daa8:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"audit-config"},[e("h3",{staticClass:"audit-config-title"},[t._v("需要进行审核的事项")]),e("div",{staticClass:"audit-config-content"},[e("el-switch",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{value:1==t.clerkAddFlag},on:{change:t.saveAuditConfig}}),t._m(0)],1)])},u=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"audit-config-desc"},[e("p",{staticClass:"desc-content"},[t._v("导购账号新增")]),e("p",{staticClass:"desc-tip"},[t._v("门店角色添加导购账号,需要经过管理员审批同意后才能新增成功,管理员新增导购无需审核")])])}],d=(e("c5f6"),e("96b6")),n=d["a"].findAuditSetting,r=d["a"].saveAuditSetting,s={name:"AuditConfig",data:function(){return{wxEnterpriseId:"",clerkAddFlag:1,loading:!1}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.getAuditConfig(),this.$emit("showTab","/audit-config")},methods:{getAuditConfig:function(){var t=this;n({wxEnterpriseId:this.wxEnterpriseId}).then((function(i){var e=i.result||{},a=e.clerkAddFlag;t.clerkAddFlag=a}))},saveAuditConfig:function(t){var i=this,e={clerkAddFlag:Number(t),wxEnterpriseId:this.wxEnterpriseId};this.loading=!0,r(e).then((function(t){i.$message.success("保存成功!"),i.getAuditConfig()})).finally((function(){return i.loading=!1}))}}},o=s,c=(e("2d38"),e("2877")),l=Object(c["a"])(o,a,u,!1,null,"7c83d98c",null);i["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6748dc46"],{"64a4":function(t,i,e){"use strict";var a=e("efdc"),u=e.n(a);u.a},"71f6":function(t,i,e){"use strict";e.d(i,"a",(function(){return u}));e("ac6a"),e("456d");var a=e("b775");function u(t,i){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(i).concat(u.url),t[e]=function(t,i){return Object(a["a"])(u,t,i)}})),t}},"96b6":function(t,i,e){"use strict";var a=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(a["a"])(u,"/hb-manage-web"),i["a"]=u},daa8:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"audit-config"},[e("h3",{staticClass:"audit-config-title"},[t._v("需要进行审核的事项")]),e("div",{staticClass:"audit-config-content"},[e("el-switch",{attrs:{value:1==t.clerkAddFlag},on:{change:t.saveAuditConfig}}),t._m(0)],1)])},u=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"audit-config-desc"},[e("p",{staticClass:"desc-content"},[t._v("导购账号新增")]),e("p",{staticClass:"desc-tip"},[t._v("门店角色添加导购账号,需要经过管理员审批同意后才能新增成功,管理员新增导购无需审核")])])}],d=(e("c5f6"),e("96b6")),n=d["a"].findAuditSetting,r=d["a"].saveAuditSetting,s={name:"AuditConfig",data:function(){return{wxEnterpriseId:"",clerkAddFlag:1,loading:!1}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.getAuditConfig(),this.$emit("showTab","/audit-config")},methods:{getAuditConfig:function(){var t=this;this.loading=!0,n({wxEnterpriseId:this.wxEnterpriseId}).then((function(i){var e=i.result||{},a=e.clerkAddFlag;t.clerkAddFlag=a})).finally((function(){return t.loading=!1}))},saveAuditConfig:function(t){var i=this,e={clerkAddFlag:Number(t),wxEnterpriseId:this.wxEnterpriseId};this.loading=!0,r(e).then((function(t){i.$message.success("保存成功!"),i.getAuditConfig()})).finally((function(){return i.loading=!1}))}}},o=s,c=(e("64a4"),e("2877")),l=Object(c["a"])(o,a,u,!1,null,"52a837f4",null);i["default"]=l.exports},efdc:function(t,i,e){}}]);
\ No newline at end of file
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-30 10:51:04
* @LastEditors: 无尘
* @LastEditTime: 2020-12-25 15:50:27
-->
<template>
<div class="audit-config">
<div class="audit-config" v-loading="loading">
<h3 class="audit-config-title">需要进行审核的事项</h3>
<div class="audit-config-content">
<el-switch :value="clerkAddFlag == 1" v-loading="loading" @change="saveAuditConfig"></el-switch>
<el-switch :value="clerkAddFlag == 1" @change="saveAuditConfig"></el-switch>
<div class="audit-config-desc">
<p class="desc-content">导购账号新增</p>
<p class="desc-tip">门店角色添加导购账号,需要经过管理员审批同意后才能新增成功,管理员新增导购无需审核</p>
......@@ -31,10 +39,11 @@ export default {
},
methods: {
getAuditConfig() {
this.loading = true;
findAuditSetting({ wxEnterpriseId: this.wxEnterpriseId }).then(res => {
const { clerkAddFlag } = res.result || {};
this.clerkAddFlag = clerkAddFlag;
});
}).finally(() => this.loading = false);
},
saveAuditConfig(flag) {
const params = {
......
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