Browse Source

footbar

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

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

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

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

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

Loading…
Cancel
Save