Commit a6710bca by 无尘

fix: 修改选择管理员回显

parent 1fdfd8d3
.bind-store-body[data-v-47964409]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-47964409]{width:215px}.bind-store-body .w-115[data-v-47964409]{width:115px}.bind-store-body .select-tree-wrap[data-v-47964409]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-47964409]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-47964409]{-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-47964409]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-47964409]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-47964409]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-47964409]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-12b54240]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-12b54240]{width:215px}.bind-store-body .w-115[data-v-12b54240]{width:115px}.bind-store-body .select-tree-wrap[data-v-12b54240]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-12b54240]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-12b54240]{-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-4047bb12]{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-4047bb12]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-4047bb12]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-4047bb12]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-4047bb12]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6af54eb5]{height:100%}.my-customer-wrap .navwrap[data-v-6af54eb5]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6af54eb5]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6af54eb5]{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-6af54eb5]{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-6af54eb5]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6af54eb5]{max-width:348px;white-space:nowrap;overflow:hidden} .bind-store-body[data-v-45dafedb]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-45dafedb]{width:215px}.bind-store-body .w-115[data-v-45dafedb]{width:115px}.bind-store-body .select-tree-wrap[data-v-45dafedb]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-45dafedb]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-45dafedb]{-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-45dafedb]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-45dafedb]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-45dafedb]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-45dafedb]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-12b54240]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-12b54240]{width:215px}.bind-store-body .w-115[data-v-12b54240]{width:115px}.bind-store-body .select-tree-wrap[data-v-12b54240]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-12b54240]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-12b54240]{-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-4047bb12]{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-4047bb12]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-4047bb12]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-4047bb12]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-4047bb12]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6af54eb5]{height:100%}.my-customer-wrap .navwrap[data-v-6af54eb5]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6af54eb5]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6af54eb5]{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-6af54eb5]{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-6af54eb5]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6af54eb5]{max-width:348px;white-space:nowrap;overflow:hidden}
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0317192b.deef7f81.css rel=prefetch><link href=css/chunk-0611cfcf.def174ec.css rel=prefetch><link href=css/chunk-0a49af1e.60d9c695.css rel=prefetch><link href=css/chunk-0c0353ae.d87d748d.css rel=prefetch><link href=css/chunk-1063f64e.8b943f7b.css rel=prefetch><link href=css/chunk-1685237b.4b82a532.css rel=prefetch><link href=css/chunk-1f4b62da.e94e7d9f.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-2abf9118.d7b89218.css rel=prefetch><link href=css/chunk-3a73956e.4ee9683f.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-4150d7a4.ace8312b.css rel=prefetch><link href=css/chunk-475afdef.36fb71d9.css rel=prefetch><link href=css/chunk-4a7c84a6.1be68573.css rel=prefetch><link href=css/chunk-53e999a8.20904c97.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-6751f6be.965cbb9f.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7fa3650e.fb87d1f0.css rel=prefetch><link href=css/chunk-9713842e.de0efd8d.css rel=prefetch><link href=css/chunk-a35e9c4c.fe92a385.css rel=prefetch><link href=css/chunk-a66abe70.d7b7c2ef.css rel=prefetch><link href=css/chunk-a92eb3ac.b6cafd6b.css rel=prefetch><link href=css/chunk-d3d2a5be.4d0be1a6.css rel=prefetch><link href=css/chunk-e4785f76.fc90059d.css rel=prefetch><link href=css/chunk-e5af42ea.a6c91992.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0317192b.8de2fcd4.js rel=prefetch><link href=js/chunk-0611cfcf.b24e6f78.js rel=prefetch><link href=js/chunk-0a49af1e.75717ecd.js rel=prefetch><link href=js/chunk-0c0353ae.f3e07e5b.js rel=prefetch><link href=js/chunk-1063f64e.6f181400.js rel=prefetch><link href=js/chunk-1685237b.f0721e5d.js rel=prefetch><link href=js/chunk-1f4b62da.dc8ce0ca.js rel=prefetch><link href=js/chunk-2966b566.b18fffe4.js rel=prefetch><link href=js/chunk-2abf9118.473a3035.js rel=prefetch><link href=js/chunk-3a73956e.12129178.js rel=prefetch><link href=js/chunk-3feed9c7.f1e388ea.js rel=prefetch><link href=js/chunk-4150d7a4.60516fc9.js rel=prefetch><link href=js/chunk-475afdef.9a0fca8a.js rel=prefetch><link href=js/chunk-4a7c84a6.d645108e.js rel=prefetch><link href=js/chunk-53e999a8.d4891aed.js rel=prefetch><link href=js/chunk-55339910.291ec2a1.js rel=prefetch><link href=js/chunk-6751f6be.68b6fe79.js rel=prefetch><link href=js/chunk-6fb5055b.d46de816.js rel=prefetch><link href=js/chunk-79b0d838.f2f0b7d5.js rel=prefetch><link href=js/chunk-7fa3650e.dba916b1.js rel=prefetch><link href=js/chunk-9713842e.f08ef502.js rel=prefetch><link href=js/chunk-a35e9c4c.ec40372e.js rel=prefetch><link href=js/chunk-a66abe70.810c3da1.js rel=prefetch><link href=js/chunk-a92eb3ac.316470b5.js rel=prefetch><link href=js/chunk-d3d2a5be.5746bd4c.js rel=prefetch><link href=js/chunk-e4785f76.a901bf2e.js rel=prefetch><link href=js/chunk-e5af42ea.59e64234.js rel=prefetch><link href=js/chunk-fcf99900.77c291c5.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.cb3c3fd9.js rel=preload as=script><link href=js/chunk-vendors.4646af85.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.dc6afa5f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=js/chunk-vendors.4646af85.js></script><script src=js/app.cb3c3fd9.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0317192b.deef7f81.css rel=prefetch><link href=css/chunk-0611cfcf.def174ec.css rel=prefetch><link href=css/chunk-0a49af1e.60d9c695.css rel=prefetch><link href=css/chunk-0c0353ae.d87d748d.css rel=prefetch><link href=css/chunk-1063f64e.8b943f7b.css rel=prefetch><link href=css/chunk-1685237b.4b82a532.css rel=prefetch><link href=css/chunk-1f4b62da.e94e7d9f.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-2abf9118.d7b89218.css rel=prefetch><link href=css/chunk-3a73956e.4ee9683f.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-4150d7a4.ace8312b.css rel=prefetch><link href=css/chunk-475afdef.36fb71d9.css rel=prefetch><link href=css/chunk-4a7c84a6.1be68573.css rel=prefetch><link href=css/chunk-53e999a8.20904c97.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-631c047e.f30739e0.css rel=prefetch><link href=css/chunk-6751f6be.965cbb9f.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7fa3650e.fb87d1f0.css rel=prefetch><link href=css/chunk-9713842e.de0efd8d.css rel=prefetch><link href=css/chunk-a35e9c4c.fe92a385.css rel=prefetch><link href=css/chunk-a66abe70.d7b7c2ef.css rel=prefetch><link href=css/chunk-a92eb3ac.b6cafd6b.css rel=prefetch><link href=css/chunk-e4785f76.fc90059d.css rel=prefetch><link href=css/chunk-e5af42ea.a6c91992.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0317192b.8de2fcd4.js rel=prefetch><link href=js/chunk-0611cfcf.b24e6f78.js rel=prefetch><link href=js/chunk-0a49af1e.75717ecd.js rel=prefetch><link href=js/chunk-0c0353ae.f3e07e5b.js rel=prefetch><link href=js/chunk-1063f64e.6f181400.js rel=prefetch><link href=js/chunk-1685237b.f0721e5d.js rel=prefetch><link href=js/chunk-1f4b62da.dc8ce0ca.js rel=prefetch><link href=js/chunk-2966b566.b18fffe4.js rel=prefetch><link href=js/chunk-2abf9118.473a3035.js rel=prefetch><link href=js/chunk-3a73956e.12129178.js rel=prefetch><link href=js/chunk-3feed9c7.f1e388ea.js rel=prefetch><link href=js/chunk-4150d7a4.60516fc9.js rel=prefetch><link href=js/chunk-475afdef.9a0fca8a.js rel=prefetch><link href=js/chunk-4a7c84a6.d645108e.js rel=prefetch><link href=js/chunk-53e999a8.d4891aed.js rel=prefetch><link href=js/chunk-55339910.291ec2a1.js rel=prefetch><link href=js/chunk-631c047e.5abd7337.js rel=prefetch><link href=js/chunk-6751f6be.68b6fe79.js rel=prefetch><link href=js/chunk-6fb5055b.d46de816.js rel=prefetch><link href=js/chunk-79b0d838.f2f0b7d5.js rel=prefetch><link href=js/chunk-7fa3650e.dba916b1.js rel=prefetch><link href=js/chunk-9713842e.f08ef502.js rel=prefetch><link href=js/chunk-a35e9c4c.ec40372e.js rel=prefetch><link href=js/chunk-a66abe70.810c3da1.js rel=prefetch><link href=js/chunk-a92eb3ac.316470b5.js rel=prefetch><link href=js/chunk-e4785f76.a901bf2e.js rel=prefetch><link href=js/chunk-e5af42ea.59e64234.js rel=prefetch><link href=js/chunk-fcf99900.77c291c5.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.e3077df9.js rel=preload as=script><link href=js/chunk-vendors.4646af85.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.dc6afa5f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=js/chunk-vendors.4646af85.js></script><script src=js/app.e3077df9.js></script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-21 10:10:57 * @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-17 17:12:23 * @LastEditTime: 2020-08-17 18:00:41
--> -->
<!-- <!--
选择管理员 选择管理员
...@@ -116,6 +116,15 @@ export default { ...@@ -116,6 +116,15 @@ export default {
let arr = JSON.parse(JSON.stringify(that.totalArr)); let arr = JSON.parse(JSON.stringify(that.totalArr));
arr = arr.concat(that.checkedPeople); arr = arr.concat(that.checkedPeople);
await that.delDubbleData(arr); await that.delDubbleData(arr);
if (!val && that.totalArr.map(ele => ele.levelId).indexOf(item.levelId)) {
let newArr = [];
that.totalArr.forEach(ele => {
if (ele.levelId != item.levelId) {
newArr.push(ele);
}
});
that.totalArr = JSON.parse(JSON.stringify(newArr));
}
}, },
/** /**
* 数组对象去重 * 数组对象去重
...@@ -149,10 +158,7 @@ export default { ...@@ -149,10 +158,7 @@ export default {
*/ */
async submitForm() { async submitForm() {
const that = this; const that = this;
// 需要先获取已选人员 if (!that.totalArr.length) {
that.checkedPeople = []; // 这里只获取了已经加载的选择数据,还有选择了未加载的数据
await that.getCheckData();
if (!that.checkedPeople.length && !that.checkedList.length) {
showMsg.showmsg('请选择管理员', 'warning'); showMsg.showmsg('请选择管理员', 'warning');
return false; return false;
} }
......
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