Commit c6e736a1 by 无尘

fix: 修改选择管理员回显

parent 2dc06ec8
.bind-store-body[data-v-4ad454ac]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-4ad454ac]{width:215px}.bind-store-body .w-115[data-v-4ad454ac]{width:115px}.bind-store-body .select-tree-wrap[data-v-4ad454ac]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-4ad454ac]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-4ad454ac]{-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-4ad454ac]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-4ad454ac]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-4ad454ac]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-4ad454ac]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-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-1f8586f8]{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-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{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-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{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-6a673ce6]{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-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{max-width:348px;white-space:nowrap;overflow:hidden} .bind-store-body[data-v-3cdff39a]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-3cdff39a]{width:215px}.bind-store-body .w-115[data-v-3cdff39a]{width:115px}.bind-store-body .select-tree-wrap[data-v-3cdff39a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-3cdff39a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-3cdff39a]{-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-3cdff39a]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-3cdff39a]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-3cdff39a]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-3cdff39a]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-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-1f8586f8]{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-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{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-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{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-6a673ce6]{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-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{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-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-13eadedb.2e6324cf.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.ae07c758.js rel=prefetch><link href=js/chunk-0e261f8e.afea68bc.js rel=prefetch><link href=js/chunk-13eadedb.66ab8fdd.js rel=prefetch><link href=js/chunk-22274e8e.15736c32.js rel=prefetch><link href=js/chunk-2308777a.8d1a528e.js rel=prefetch><link href=js/chunk-286e5feb.64db64a0.js rel=prefetch><link href=js/chunk-2966b566.b6b16bb3.js rel=prefetch><link href=js/chunk-33fdfb11.d73cc037.js rel=prefetch><link href=js/chunk-3feed9c7.6734b2de.js rel=prefetch><link href=js/chunk-455ce796.c004c241.js rel=prefetch><link href=js/chunk-48391fe3.2ed40ff7.js rel=prefetch><link href=js/chunk-4b3bcf32.576556bc.js rel=prefetch><link href=js/chunk-4badec06.1aa2db84.js rel=prefetch><link href=js/chunk-55339910.b3966479.js rel=prefetch><link href=js/chunk-55cc2c59.92b2c7d3.js rel=prefetch><link href=js/chunk-5f5b6428.575cacb3.js rel=prefetch><link href=js/chunk-60db2d5e.3cc2f1b0.js rel=prefetch><link href=js/chunk-63077e53.47b600a7.js rel=prefetch><link href=js/chunk-6fb5055b.841a0818.js rel=prefetch><link href=js/chunk-71d9e72b.f6cbfc57.js rel=prefetch><link href=js/chunk-79b0d838.9805521d.js rel=prefetch><link href=js/chunk-7ebef5b3.d59e6025.js rel=prefetch><link href=js/chunk-872ed9ae.6c413584.js rel=prefetch><link href=js/chunk-a01687d6.7c4597bf.js rel=prefetch><link href=js/chunk-ab6d529c.d75df545.js rel=prefetch><link href=js/chunk-eaa74a32.b68843ab.js rel=prefetch><link href=js/chunk-f2cea2de.7a62d87e.js rel=prefetch><link href=js/chunk-fcf99900.a9437183.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.27f36920.js rel=preload as=script><link href=js/chunk-vendors.4dbffdb2.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.4dbffdb2.js></script><script src=js/app.27f36920.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-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7bb169e8.77eb3ce4.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.ae07c758.js rel=prefetch><link href=js/chunk-0e261f8e.afea68bc.js rel=prefetch><link href=js/chunk-22274e8e.15736c32.js rel=prefetch><link href=js/chunk-2308777a.8d1a528e.js rel=prefetch><link href=js/chunk-286e5feb.64db64a0.js rel=prefetch><link href=js/chunk-2966b566.b6b16bb3.js rel=prefetch><link href=js/chunk-33fdfb11.d73cc037.js rel=prefetch><link href=js/chunk-3feed9c7.6734b2de.js rel=prefetch><link href=js/chunk-455ce796.c004c241.js rel=prefetch><link href=js/chunk-48391fe3.2ed40ff7.js rel=prefetch><link href=js/chunk-4b3bcf32.576556bc.js rel=prefetch><link href=js/chunk-4badec06.1aa2db84.js rel=prefetch><link href=js/chunk-55339910.b3966479.js rel=prefetch><link href=js/chunk-55cc2c59.92b2c7d3.js rel=prefetch><link href=js/chunk-5f5b6428.575cacb3.js rel=prefetch><link href=js/chunk-60db2d5e.3cc2f1b0.js rel=prefetch><link href=js/chunk-63077e53.47b600a7.js rel=prefetch><link href=js/chunk-6fb5055b.841a0818.js rel=prefetch><link href=js/chunk-71d9e72b.f6cbfc57.js rel=prefetch><link href=js/chunk-79b0d838.9805521d.js rel=prefetch><link href=js/chunk-7bb169e8.1b6de92b.js rel=prefetch><link href=js/chunk-7ebef5b3.d59e6025.js rel=prefetch><link href=js/chunk-872ed9ae.6c413584.js rel=prefetch><link href=js/chunk-a01687d6.7c4597bf.js rel=prefetch><link href=js/chunk-ab6d529c.d75df545.js rel=prefetch><link href=js/chunk-eaa74a32.b68843ab.js rel=prefetch><link href=js/chunk-f2cea2de.7a62d87e.js rel=prefetch><link href=js/chunk-fcf99900.a9437183.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.3dad2139.js rel=preload as=script><link href=js/chunk-vendors.4dbffdb2.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.4dbffdb2.js></script><script src=js/app.3dad2139.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 14:41:32 * @LastEditTime: 2020-08-17 14:53:54
--> -->
<!-- <!--
选择管理员 选择管理员
...@@ -275,8 +275,8 @@ export default { ...@@ -275,8 +275,8 @@ export default {
}); });
}, },
/** /**
* 输入 * 输入
*/ */
toInput: _debounce(function(e, value) { toInput: _debounce(function(e, value) {
const that = this; const that = this;
if (String(that.searchSelect).trim() == '') { if (String(that.searchSelect).trim() == '') {
...@@ -327,11 +327,36 @@ export default { ...@@ -327,11 +327,36 @@ export default {
.catch(function(error) { .catch(function(error) {
}); });
},
/**
* 回显设置树形数据中的人员选中和不选中
*/
async setSelectData(value) {
const that = this;
for (let index = 0; index < that.groupData.length; index++) {
const ele = that.groupData[index];
if (value.includes(ele.levelId)) {
ele.checked = true;
}else {
ele.checked = false;
}
if (!!ele.children && !!ele.children.length) {
await that.setChildCheck(ele, value);
}
}
} }
}, },
watch: { watch: {
showAdminFlag(val) { showAdminFlag(val) {
this.setVisible = val; this.setVisible = val;
},
selectAdmin(val) {
const that = this;
that.totalNum = val.length;
that.totalIds = val.map(ele => ele.levelId) || [];
that.checkedList = val.map(ele => ele.levelId) || [];
that.totalArr = JSON.parse(JSON.stringify(val)) || []; // 总的
that.setSelectData(that.checkedList);
} }
} }
}; };
......
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