Browse Source

footbar

master
jiangyy 4 years ago
parent
commit
7f260e179b
  1. 50
      epmet-oper-web/src/views/modules/productConfig/footbar/FootbarDefault.vue
  2. 25
      epmet-oper-web/src/views/modules/productConfig/footbar/FootbarSync.vue

50
epmet-oper-web/src/views/modules/productConfig/footbar/FootbarDefault.vue

@ -0,0 +1,50 @@
<template>
<div>
<el-card shadow="never"
class="aui-card--fill">
<footbar-list ref="ref_footbarlist"
:showFrom="'default'"
:tableKeywork="'FootBar'"></footbar-list>
</el-card>
</div>
</template>
<script>
import FootbarList from './FootbarList'
export default {
data () {
return {
}
},
activated () {
this.$nextTick(() => {
this.$refs['ref_footbarlist'].doLayout() //
})
},
components: {
FootbarList
},
mounted () {
},
computed: {
},
methods: {
}
}
</script>
<style>
</style>

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

@ -1,6 +1,6 @@
<template>
<el-dialog :visible.sync="visible"
:title="title"
title="Footbar同步"
:close-on-click-modal="false"
:before-close="handleClose"
:close-on-press-escape="false"
@ -26,6 +26,7 @@
<el-table-column type="selection"></el-table-column>
<el-table-column label="名称"
prop="barName"
align="center"
header-align="center">
@ -37,10 +38,10 @@
<el-card class="box-card">
<div slot="header"
class="clearfix">
<span>采集列表客户的Footbar同部为默认配置</span>
<span>采集列表添加客户没有的Footbar</span>
</div>
<!-- <div class="div_list"></div> -->
<el-table id="have_table"
ref="table"
:height="tableHeight"
@ -53,6 +54,7 @@
<el-table-column type="selection"></el-table-column>
<el-table-column label="名称"
prop="barName"
align="center"
header-align="center">
@ -86,6 +88,7 @@ export default {
allHaveList: [],//bar
allNoList: [],//bar
syncBarKeyList: [],//bar
addBarKeyList: []//bar
@ -101,21 +104,31 @@ export default {
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 280 - 100
},
...mapGetters(['clientHeight', 'env'])
diaWidth () {
return this.resolution === 'small' ? 60 : 50
},
diaTop () {
return this.resolution === 'small' ? '30px' : '100px'
},
...mapGetters(['clientHeight', 'resolution']),
},
methods: {
init (customerId, appType, allHaveList) {
this.customerId = customerId
this.appType = appType
this.allHaveList = allHaveList
console.log(this.allHaveList)
this.visible = true
this.loadNoBarList()
},
//
handleSelect (selection, row) {
debugger
selection.forEach(item => {
this.syncBarKeyList.push(item)
});
},
//

Loading…
Cancel
Save