diff --git a/epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue b/epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue index ef6e7e4..6cb2df9 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue @@ -214,7 +214,6 @@ export default { // 平台菜单 showMenu(customerId, customerName) { this.showType = 'menuCustomer'; - this.$nextTick(() => { this.$refs['ref_menu_customer'].initData(customerId, customerName); }); diff --git a/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue b/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue index 01ff709..43b7caf 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue @@ -66,7 +66,7 @@ export default { tableParams: { customerId: '' }, - search: '', + dataList: [], selection: [], selAllFlag: false, @@ -74,7 +74,8 @@ export default { dataListLoading: false, mixinViewModuleOptions: { - getDataListURL: '/gov/access/menu/customerMenuList' + getDataListURL: '/gov/access/menu/customerMenuList', + createdIsNeed:false } }; }, @@ -83,15 +84,15 @@ export default { components: { AddOrUpdate }, - created() {}, + methods: { search() { if (this.menuName != '') { let saveList = []; this.onFuzzyTreeList('name', this.menuName, this.dataList, saveList); - this.$refs.form.data = saveList; + this.dataList = [...saveList]; } else { - this.$refs.form.data = this.dataList; + this.query(); } }, @@ -174,6 +175,7 @@ export default { .then(({ data: res }) => { return this.$message.success('操作成功'); }); + this.query(); }, query() { @@ -198,12 +200,15 @@ export default { }, initData(customerId, customerName) { - this.customerId = customerId; - this.customerName = customerName; - // if (this.mixinViewModuleOptions.createdIsNeed) { - // console.log(this.customerId+"22222"); - this.query(); - // } + if (customerId != '') { + this.customerId = customerId; + this.customerName = customerName; + + // if (this.mixinViewModuleOptions.createdIsNeed) { + // console.log(this.customerId+"22222"); + this.query(); + // } + } }, handleSelectionChange(val) { @@ -225,8 +230,9 @@ export default { .div_btn { margin: 0 0 20px 0; } -.little-head{ - border-bottom: dashed 1px #ccc; line-height: 50px; +.little-head { + border-bottom: dashed 1px #ccc; + line-height: 50px; margin-bottom: 20px; } diff --git a/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue b/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue index 8a74704..77cafa3 100644 --- a/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue +++ b/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue @@ -12,7 +12,7 @@ 查询 - +
开启 关闭 @@ -30,8 +30,8 @@ @@ -73,7 +73,8 @@ export default { dataListLoading: false, mixinViewModuleOptions: { - getDataListURL: '/gov/access/menu/customerMenuList' + getDataListURL: '/gov/access/menu/customerMenuList', + createdIsNeed: false } }; }, @@ -88,9 +89,9 @@ export default { if (this.menuName != '') { let saveList = []; this.onFuzzyTreeList('name', this.menuName, this.dataList, saveList); - this.$refs.form.data = saveList; + this.dataList = [...saveList]; } else { - this.$refs.form.data = this.dataList; + this.query(); } }, @@ -114,7 +115,7 @@ export default { resolve(saveList); }); }, - + open(id) { let menuIds = []; if (id != '') { @@ -221,8 +222,9 @@ export default { .div_btn { margin: 0 0 20px 0; } -.little-head{ - border-bottom: dashed 1px #ccc; line-height: 50px; +.little-head { + border-bottom: dashed 1px #ccc; + line-height: 50px; margin-bottom: 20px; } diff --git a/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue b/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue index 0f4b00e..823d55c 100644 --- a/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue +++ b/epmet-oper-web/src/views/modules/customer/manage/CustomerList.vue @@ -1,187 +1,223 @@