Browse Source

footbar

master
jiangyy 4 years ago
parent
commit
52f84dd06c
  1. 12
      epmet-oper-web/src/views/modules/productConfig/footbar/FootbarList.vue
  2. 44
      epmet-oper-web/src/views/modules/productConfig/footbar/FootbarSync.vue

12
epmet-oper-web/src/views/modules/productConfig/footbar/FootbarList.vue

@ -165,11 +165,11 @@ export default {
plain: false,
methodName: 'del', //
isShow: (row) => {
if (this.env === 'prod' || this.showFrom === 'customize') {
return false
} else {
// if (this.env === 'prod' || this.showFrom === 'customize') {
// return false
// } else {
return true
}
// }
}
}
],
@ -503,7 +503,9 @@ export default {
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/oper/customize/customerfootbar/deletefootbar'
const url = '/oper/customize/customerfootbar/deletefootbar'
const param = {
id: row.id
id: row.id,
customerId: row.customerId,
barKey: row.barKey
}
window.app.ajax.post(url, param,
(data, rspMsg) => {

44
epmet-oper-web/src/views/modules/productConfig/footbar/FootbarSync.vue

@ -6,8 +6,7 @@
:close-on-press-escape="false"
:width="diaWidth+'%'"
:top="diaTop">
<el-row class="wrap"
:gutter="24">
<el-row :gutter="24">
<el-col :span="12">
<el-card class="box-card">
<div slot="header"
@ -20,8 +19,8 @@
:height="tableHeight"
:data="allHaveList"
border
@select="handleSelect"
@select-all="handleSelectAll">
@select="handleSelectSync"
@select-all="handleSelectAllSync">
<el-table-column type="selection"></el-table-column>
@ -48,8 +47,8 @@
:data="allNoList"
border
v-loading="tableLoading"
@select="handleSelect"
@select-all="handleSelectAll">
@select="handleSelectNo"
@select-all="handleSelectAllNo">
<el-table-column type="selection"></el-table-column>
@ -102,10 +101,9 @@ export default {
return this.clientHeight - 60 - 80 - 80 - 280
},
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 280 - 100
return this.clientHeight - 60 - 80 - 80 - 280
},
diaWidth () {
return this.resolution === 'small' ? 60 : 50
},
diaTop () {
@ -125,17 +123,35 @@ export default {
},
//
handleSelect (selection, row) {
handleSelectSync (selection, row) {
this.syncBarKeyList = []
selection.forEach(item => {
this.syncBarKeyList.push(item)
this.syncBarKeyList.push(item.barKey)
});
},
//
handleSelectAll (selection) {
debugger
handleSelectAllSync (selection) {
this.syncBarKeyList = []
selection.forEach(item => {
this.syncBarKeyList.push(item.barKey)
});
},
//
handleSelectNo (selection, row) {
this.addBarKeyList = []
selection.forEach(item => {
this.addBarKeyList.push(item.barKey)
});
},
//
handleSelectAllNo (selection) {
this.addBarKeyList = []
selection.forEach(item => {
this.addBarKeyList.push(item.barKey)
});
},
async loadNoBarList () {
@ -167,6 +183,7 @@ export default {
syncBarKeyList: this.syncBarKeyList,
addBarKeyList: this.addBarKeyList,
}
console.log("params", params)
this.startLoading()
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
@ -211,7 +228,4 @@ export default {
.wrap {
height: 400px;
}
.div_list {
height: 300px;
}
</style>

Loading…
Cancel
Save