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..c77437a 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,7 +84,7 @@ export default {
components: {
AddOrUpdate
},
- created() {},
+
methods: {
search() {
if (this.menuName != '') {
@@ -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..3753cb6 100644
--- a/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue
+++ b/epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue
@@ -30,8 +30,8 @@
- {{ $t('menu.status0') }}
- {{ $t('menu.status1') }}
+ {{ $t('menu.status0') }}
+ {{ $t('menu.status1') }}
@@ -73,7 +73,8 @@ export default {
dataListLoading: false,
mixinViewModuleOptions: {
- getDataListURL: '/gov/access/menu/customerMenuList'
+ getDataListURL: '/gov/access/menu/customerMenuList',
+ createdIsNeed:false
}
};
},