update 国内标准编辑禁用修改

This commit is contained in:
赵霄
2023-09-22 11:36:05 +08:00
parent 666dd4033f
commit 7592e2f010
2 changed files with 3 additions and 5 deletions
@@ -19,7 +19,7 @@
:placeholder="$t('pleaseSelect') + $t('standardSelect.source')" :placeholder="$t('pleaseSelect') + $t('standardSelect.source')"
:type="'select'" :type="'select'"
:triggerChange="false" :triggerChange="false"
:dictCode="'project_health'" /> :dictCode="'split_standard_source'" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<!--标准号--> <!--标准号-->
@@ -75,7 +75,6 @@
<script> <script>
import JTable from '../../../../components/jero/JTable.vue' import JTable from '../../../../components/jero/JTable.vue'
import { postAction, httpAction } from '../../../../api/manage.js'
import { JeroListMixin } from '../../../../mixins/JeroListMixin.js' import { JeroListMixin } from '../../../../mixins/JeroListMixin.js'
import { addDocSplit } from '../../../../api/documentToolApi.js' import { addDocSplit } from '../../../../api/documentToolApi.js'
@@ -124,7 +123,7 @@ export default {
}, },
// 附件 // 附件
{ {
dataIndex: 'file_name', dataIndex: 'fileName',
title: this.$t('businessSupport.questionAnswer.attach'), title: this.$t('businessSupport.questionAnswer.attach'),
width: 150 width: 150
} }
@@ -64,10 +64,9 @@ export default {
computed: { computed: {
// 不可编辑的字段 // 不可编辑的字段
disabledField () { disabledField () {
console.log(this.isEdit)
if (this.isEdit) { if (this.isEdit) {
// 标准编号,被代替标准号,被引用标准号 // 标准编号,被代替标准号,被引用标准号
return ['standard_number', 'replaced_by_standard_number', 'referenced_standard'] return ['standard_number_temp', 'replaced_by_standard_number', 'referenced_standard']
} }
return ['replaced_by_standard_number', 'referenced_standard'] return ['replaced_by_standard_number', 'referenced_standard']
} }