From 7360dcff84d77ec09c7440ce28b129a656c243dc Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 21 Sep 2023 17:42:05 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=96=B0=E5=A2=9E=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E5=8F=AF=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 10 ++++++- .../modules/EnterpriseStandardModal.vue | 28 +++++++++++++------ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index fdd3bcee..5de86d3a 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -155,7 +155,7 @@ - +
* @@ -343,6 +343,14 @@ export default { default: () => { return [] } + }, + // 需要隐藏的字段 + hiddenFieldList: { + type: Array, + required: false, + default: () => { + return [] + } } }, data () { diff --git a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue index 011b6cc1..48fbdae9 100644 --- a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue +++ b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue @@ -14,7 +14,8 @@ @@ -22,7 +23,7 @@

稽查内容

{{ $t('newlyAdded') }}
-
+
-
- - {{ $t('preservation') }} - - {{ $t('close') }} -
+
+
+ + {{ $t('preservation') }} + + {{ $t('close') }}
@@ -66,6 +67,11 @@ import CheckContentModal from './CheckContentModal' export default { name: 'EnterpriseStandardModal', components: { CheckContentModal, AddForm }, + computed: { + hiddenFieldList () { + return this.type === 'add' ? ['standard_number'] : [] + } + }, data () { return { visible: false, @@ -99,6 +105,7 @@ export default { } ], dataSource: [], + type: '', // 是新增还是编辑 url: { add: '/laws/standard/enterprise/commonAdd', edit: '/laws/standard/enterprise/commonEdit' @@ -108,12 +115,14 @@ export default { methods: { add () { this.visible = true + this.type = 'add' this.$nextTick(() => { this.$refs.addForm.add() }) }, edit (record) { this.visible = true + this.type = 'edit' this.$nextTick(() => { this.$refs.addForm.edit(record) }) @@ -189,4 +198,7 @@ export default { margin-bottom: 0; } } +.check-content-table { + padding-bottom: 40px; +}