Browse Source

bug

preview
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) { showMenu(customerId, customerName) {
this.showType = 'menuCustomer'; this.showType = 'menuCustomer';
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['ref_menu_customer'].initData(customerId, customerName); 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: { tableParams: {
customerId: '' customerId: ''
}, },
search: '',
dataList: [], dataList: [],
selection: [], selection: [],
selAllFlag: false, selAllFlag: false,
@ -74,7 +74,8 @@ export default {
dataListLoading: false, dataListLoading: false,
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/gov/access/menu/customerMenuList' getDataListURL: '/gov/access/menu/customerMenuList',
createdIsNeed:false
} }
}; };
}, },
@ -83,7 +84,7 @@ export default {
components: { components: {
AddOrUpdate AddOrUpdate
}, },
created() {},
methods: { methods: {
search() { search() {
if (this.menuName != '') { if (this.menuName != '') {
@ -174,6 +175,7 @@ export default {
.then(({ data: res }) => { .then(({ data: res }) => {
return this.$message.success('操作成功'); return this.$message.success('操作成功');
}); });
this.query(); this.query();
}, },
query() { query() {
@ -198,12 +200,15 @@ export default {
}, },
initData(customerId, customerName) { initData(customerId, customerName) {
this.customerId = customerId; if (customerId != '') {
this.customerName = customerName; this.customerId = customerId;
// if (this.mixinViewModuleOptions.createdIsNeed) { this.customerName = customerName;
// console.log(this.customerId+"22222");
this.query(); // if (this.mixinViewModuleOptions.createdIsNeed) {
// } // console.log(this.customerId+"22222");
this.query();
// }
}
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
@ -225,8 +230,9 @@ export default {
.div_btn { .div_btn {
margin: 0 0 20px 0; margin: 0 0 20px 0;
} }
.little-head{ .little-head {
border-bottom: dashed 1px #ccc; line-height: 50px; border-bottom: dashed 1px #ccc;
line-height: 50px;
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </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="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"> <el-table-column prop="useFlag" :label="$t('menu.status')" header-align="center" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.useFlag === '0'" size="small">{{ $t('menu.status0') }}</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" type="info">{{ $t('menu.status1') }}</el-tag> <el-tag v-else size="small">{{ $t('menu.status1') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -73,7 +73,8 @@ export default {
dataListLoading: false, dataListLoading: false,
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/gov/access/menu/customerMenuList' getDataListURL: '/gov/access/menu/customerMenuList',
createdIsNeed:false
} }
}; };
}, },

Loading…
Cancel
Save