forked from mt-fe-group/mt-yd-ui
update AttrForm详情时屏蔽操作列
This commit is contained in:
parent
72f9793edf
commit
246baa1768
@ -127,18 +127,11 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** filter tableConfigs */
|
||||
filterTableConfigs() {
|
||||
// return this.tableConfigs.map(item => {
|
||||
// const {prop, name, filter} = item
|
||||
// const newConfigs = {prop,name,filter}
|
||||
// if (item.type) newConfigs.type = item.type
|
||||
// if (item.fixed) newConfigs.fixed = item.fixed
|
||||
// if (item.width) newConfigs.width = item.width
|
||||
// if (item.subcomponent) newConfigs.subcomponent = item.subcomponent
|
||||
// if (item.options) newConfigs.options = item.options
|
||||
// return newConfigs
|
||||
// })
|
||||
if (this.isDetail) {
|
||||
/** 如果是查看详情,就屏蔽操作列 */
|
||||
return this.tableConfigs.filter(opt => opt.prop !== 'operations')
|
||||
}
|
||||
return this.tableConfigs
|
||||
},
|
||||
/** init dataform */
|
||||
|
Loading…
Reference in New Issue
Block a user