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; +}