fix(系统设置): 自定义字段,系统字段可以编辑选项

--bug=1010054 --user=lyh 【系统设置】模板管理-自定义字段,系统字段可以编辑选项
https://www.tapd.cn/55049933/s/1099946
This commit is contained in:
shiziyuan9527 2022-01-27 14:50:00 +08:00 committed by shiziyuan9527
parent c79c49fd8f
commit 2f99722238
5 changed files with 11 additions and 6 deletions

View File

@ -3,7 +3,7 @@
width="30%"
:visible.sync="visible"
@confirm="save"
:title="$t('custom_field.create')"
:title="title"
append-to-body
ref="msEditDialog">
@ -45,7 +45,7 @@
prop="options" :label-width="labelWidth">
<ms-single-handle-drag
:is-kv="form.scene === 'ISSUE'"
:disable="form.name === '用例等级'"
:disable="form.name === '用例等级' || isSystem"
:data="form.options"/>
</el-form-item>
@ -91,7 +91,8 @@ export default {
type: [{required: true, trigger: 'change'}],
},
visible: false,
url: ''
url: '',
title: this.$t('custom_field.create')
};
},
computed: {
@ -123,8 +124,9 @@ export default {
}
},
methods: {
open(data) {
open(data, title) {
this.visible = true;
this.title = title;
if (data) {
Object.assign(this.form, data);
if (!(data.options instanceof Array)) {

View File

@ -203,10 +203,10 @@ export default {
});
},
handleEdit(data) {
this.$refs.customFieldEdit.open(data);
this.$refs.customFieldEdit.open(data, this.$t('custom_field.update'));
},
handleCreate() {
this.$refs.customFieldEdit.open();
this.$refs.customFieldEdit.open(null, this.$t('custom_field.create'));
},
handleCopy(data) {
let copyData = {};

View File

@ -502,6 +502,7 @@ export default {
issue_status: 'Status',
issue_severity: 'Severity',
create: 'Create Field',
update: 'Update Field',
name: 'Custom Field',
system_field: 'System Field',
scene: 'Use Scene',

View File

@ -504,6 +504,7 @@ export default {
issue_status: '状态',
issue_severity: '严重程度',
create: '创建字段',
update: '更新字段',
name: '自定义字段',
system_field: '系统字段',
scene: '使用场景',

View File

@ -504,6 +504,7 @@ export default {
issue_status: '狀態',
issue_severity: '嚴重程度',
create: '創建字段',
update: '更新字段',
name: '自定義字段',
system_field: '系統字段',
scene: '使用場景',