修改禅道已知bug

This commit is contained in:
qq787203167
2022-05-05 15:17:36 +08:00
parent 298e699d7c
commit 6588942843
6 changed files with 56 additions and 22 deletions
+2
View File
@@ -745,4 +745,6 @@ module.exports = {
noComment:'No comment', noComment:'No comment',
theReceived:'The final version can be made only when the list confirmation status and task confirmation status of all data are received', theReceived:'The final version can be made only when the list confirmation status and task confirmation status of all data are received',
notEvaluated:'Not evaluated', notEvaluated:'Not evaluated',
cannotExceed:'cannot exceed',
Characters:'Characters',
} }
+2
View File
@@ -750,4 +750,6 @@ module.exports = {
noComment:'暂无评论', noComment:'暂无评论',
theReceived:'所有数据的清单确认状态和任务确认状态都为接受才可以定版', theReceived:'所有数据的清单确认状态和任务确认状态都为接受才可以定版',
notEvaluated:'未评估', notEvaluated:'未评估',
cannotExceed:'不能超出',
Characters:'个字符',
} }
@@ -429,7 +429,7 @@
|| res.field_show_type === '11') { || res.field_show_type === '11') {
rule.push({ rule.push({
max: res.db_length, max: res.db_length,
message: res.db_field_txt + '不能超出' + res.db_length + '个字符', message: res.db_field_txt + this.$t('cannotExceed') + res.db_length + this.$t('Characters'),
trigger: 'blur' trigger: 'blur'
}) })
} }
@@ -290,6 +290,12 @@
fixed: 'left', fixed: 'left',
scopedSlots: { customRender: 'titleName' } scopedSlots: { customRender: 'titleName' }
}, },
{
title: this.$t('zoneOfApplication'),
align: 'center',
ellipsis: true,
dataIndex: 'region_dictText'
},
{ {
title: this.$t('scopeOfApplication'), title: this.$t('scopeOfApplication'),
align: 'center', align: 'center',
@@ -308,12 +314,6 @@
ellipsis: true, ellipsis: true,
dataIndex: 'correspondingStandardName' dataIndex: 'correspondingStandardName'
}, },
{
title: this.$t('zoneOfApplication'),
align: 'center',
ellipsis: true,
dataIndex: 'region_dictText'
},
{ {
title: this.$t('implementationCategory'), title: this.$t('implementationCategory'),
align: 'center', align: 'center',
@@ -99,7 +99,7 @@
</div> </div>
<a-form-model-item class="itemModel" prop="name"> <a-form-model-item class="itemModel" prop="name">
<a-input class="box-input-add" <a-input class="box-input-add"
v-model="formInline.name" v-model.trim="formInline.name"
:placeholder="$t('PleaseEnter')+$t('VirtualListName')"/> :placeholder="$t('PleaseEnter')+$t('VirtualListName')"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -107,12 +107,13 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text-add"> <div class="box-title-text-add">
<div class="title-text-add"> <div class="title-text-add">
<span class="Required">*</span>
<span class="title-text-text" :title="$t('instructionForUse')">{{$t('instructionForUse')}}</span> <span class="title-text-text" :title="$t('instructionForUse')">{{$t('instructionForUse')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="instructionForUse"> <a-form-model-item class="itemModel" prop="useExplain">
<a-textarea <a-textarea
:placeholder="$t('PleaseEnter')+$t('instructionForUse')" :placeholder="$t('PleaseEnter')+$t('instructionForUse')"
v-model="formInline.useExplain" :rows="4"/> v-model.trim="formInline.useExplain" :rows="4"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -139,11 +140,30 @@
selectedRowKeys: [], selectedRowKeys: [],
formInline: {}, formInline: {},
rules: { rules: {
name: [{ name: [
required: true, {
message: this.$t('VirtualListName') + this.$t('cannotEmpty'), required: true,
trigger: 'blur' message: this.$t('VirtualListName') + this.$t('cannotEmpty'),
}] trigger: 'blur'
},
{
max: 100,
message: this.$t('VirtualListName') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
trigger: 'blur'
}
],
useExplain: [
{
required: true,
message: this.$t('instructionForUse') + this.$t('cannotEmpty'),
trigger: 'blur'
},
{
max: 500,
message: this.$t('instructionForUse') + this.$t('cannotExceed') + 500 + this.$t('Characters'),
trigger: 'blur'
}
]
}, },
visible: false, visible: false,
dataSource: [], dataSource: [],
@@ -200,6 +220,9 @@
this.title = '新增' this.title = '新增'
this.formInline = {} this.formInline = {}
this.visible = true this.visible = true
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
}, },
//批量删除 //批量删除
handleDel() { handleDel() {
@@ -229,6 +252,9 @@
this.title = '编辑' this.title = '编辑'
this.formInline = JSON.parse(JSON.stringify(item)) this.formInline = JSON.parse(JSON.stringify(item))
this.visible = true this.visible = true
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
}, },
//撤回 //撤回
withdraw(val) { withdraw(val) {
@@ -218,34 +218,34 @@
message: this.$t('pleaseEnterTheCorrectWebAddress') message: this.$t('pleaseEnterTheCorrectWebAddress')
} }
], ],
projectNameId:[ projectNameId: [
{ {
required: true, required: true,
message: this.$t('entryName') + this.$t('cannotEmpty'), message: this.$t('entryName') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
targetMarket:[ targetMarket: [
{ {
required: true, required: true,
message: this.$t('targetMarket') + this.$t('cannotEmpty'), message: this.$t('targetMarket') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
projectStatus:[ projectStatus: [
{ {
required: true, required: true,
message: this.$t('projectStatus') + this.$t('cannotEmpty'), message: this.$t('projectStatus') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ],
studioEngineerName:[ studioEngineerName: [
{ {
required: true, required: true,
message: this.$t('StudioEngineer') + this.$t('cannotEmpty'), message: this.$t('StudioEngineer') + this.$t('cannotEmpty'),
trigger: 'change' trigger: 'change'
} }
], ]
}, },
disabled: false, disabled: false,
projectNameList: [], projectNameList: [],
@@ -269,12 +269,16 @@
this.visible = true this.visible = true
this.title = '新增' this.title = '新增'
this.formInline = {} this.formInline = {}
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
}, },
editModel(value) { editModel(value) {
this.visible = true this.visible = true
this.title = '编辑' this.title = '编辑'
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = value this.formInline = value
this.$refs.ruleForm.clearValidate()
}) })
}, },
handleCancel() { handleCancel() {
@@ -323,9 +327,9 @@
this.formInline[value] = id this.formInline[value] = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
projectNameChange(value){ projectNameChange(value) {
console.log(value) console.log(value)
}, }
} }
} }
</script> </script>