Browse Source

bug

wxz_dy_form_config
tianq 2 years ago
parent
commit
e6edc820f2
  1. 1
      epmet-oper-web/src/views/modules/customer/customize/CustomerList.vue
  2. 28
      epmet-oper-web/src/views/modules/customer/customize/menuCustomer.vue
  3. 7
      epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue

1
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);
});

28
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;
}
</style>

7
epmet-oper-web/src/views/modules/customer/customize/menuDataCustomer.vue

@ -30,8 +30,8 @@
<el-table-column prop="sort" :label="$t('menu.sort')" header-align="center" align="center"></el-table-column>
<el-table-column prop="useFlag" :label="$t('menu.status')" header-align="center" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.useFlag === '0'" size="small">{{ $t('menu.status0') }}</el-tag>
<el-tag v-else size="small" type="info">{{ $t('menu.status1') }}</el-tag>
<el-tag v-if="scope.row.useFlag === '0'" size="small" type="info">{{ $t('menu.status0') }}</el-tag>
<el-tag v-else size="small">{{ $t('menu.status1') }}</el-tag>
</template>
</el-table-column>
@ -73,7 +73,8 @@ export default {
dataListLoading: false,
mixinViewModuleOptions: {
getDataListURL: '/gov/access/menu/customerMenuList'
getDataListURL: '/gov/access/menu/customerMenuList',
createdIsNeed:false
}
};
},

Loading…
Cancel
Save