|
@@ -82,8 +82,8 @@ export default {
|
|
|
activeName: 'pending',
|
|
|
tableData: [],
|
|
|
tableOptions: {
|
|
|
- maxHeight: 'calc(100vh - 310px)',
|
|
|
- height: 'calc(100vh - 310px)'
|
|
|
+ maxHeight: 'calc(100vh - 410px)',
|
|
|
+ height: 'calc(100vh - 410px)'
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
@@ -177,23 +177,23 @@ export default {
|
|
|
{
|
|
|
msg: '修改',
|
|
|
icon: 'iconfont icon-xiugai',
|
|
|
- power: '',
|
|
|
- tabPower: ['pending'],
|
|
|
+ power: 'capitalUpdate',
|
|
|
+ tabPower: ['all', 'pending'],
|
|
|
+ rowPower: ['待生效', '生效'],
|
|
|
category: 'edit'
|
|
|
},
|
|
|
{
|
|
|
msg: '查看',
|
|
|
icon: 'iconfont icon-Magnifier',
|
|
|
- power: '',
|
|
|
+ power: 'capitalView',
|
|
|
tabPower: ['all', 'pending'],
|
|
|
- // rowPower: [],
|
|
|
+ rowPower: [],
|
|
|
category: 'see'
|
|
|
}
|
|
|
]
|
|
|
const options = btnList.map(item => {
|
|
|
- // this.tablePower({ item, tab: this.activeName, row }) &&
|
|
|
return (
|
|
|
- <el-tooltip class='item' effect='dark' content={item.msg} placement='top'>
|
|
|
+ this.tablePower({ item, tab: this.activeName, row }) && <el-tooltip class='item' effect='dark' content={item.msg} placement='top'>
|
|
|
<span class='table-icon-box' v-power={item.power}>
|
|
|
<i class={item.icon} onClick={() => { this.handlerOperate(item.category, row) }}></i>
|
|
|
</span>
|
|
@@ -212,8 +212,8 @@ export default {
|
|
|
tablePower() {
|
|
|
return ({ item, tab, row }) => {
|
|
|
const { tabPower, rowPower } = item
|
|
|
- if (rowPower) {
|
|
|
- if (tabPower.includes(tab) && rowPower.includes(row.statusName)) {
|
|
|
+ if (rowPower && rowPower.length) {
|
|
|
+ if (tabPower.includes(tab) && rowPower.includes(row.capitalStatus)) {
|
|
|
return true
|
|
|
}
|
|
|
} else {
|