From 246baa176876ab83e0a6032a1a27529236854b38 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Thu, 29 Sep 2022 10:09:09 +0800 Subject: [PATCH] =?UTF-8?q?update=20AttrForm=E8=AF=A6=E6=83=85=E6=97=B6?= =?UTF-8?q?=E5=B1=8F=E8=94=BD=E6=93=8D=E4=BD=9C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base-dialog/AttrForm/index.vue | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/components/base-dialog/AttrForm/index.vue b/src/components/base-dialog/AttrForm/index.vue index 5e9f505..df52b4b 100644 --- a/src/components/base-dialog/AttrForm/index.vue +++ b/src/components/base-dialog/AttrForm/index.vue @@ -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 */