fix(用例管理): 详情页面编辑自定义字段问题
--bug=1038303 --user=王旭 【功能用例】设置自定义字段必填,列表点击ID,自定义属性非必填 https://www.tapd.cn/55049933/s/1487085
This commit is contained in:
parent
cffa60193c
commit
d77405ea25
|
@ -131,6 +131,7 @@
|
|||
:form="detailInfo"
|
||||
:allow-edit="true"
|
||||
:form-rules="formItem"
|
||||
:form-api="fApi"
|
||||
@update-success="updateSuccess"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
@ -326,6 +326,7 @@
|
|||
form: DetailCase;
|
||||
allowEdit?: boolean; // 是否允许编辑
|
||||
formRules?: FormRuleItem[]; // 编辑表单
|
||||
formApi?: any;
|
||||
}>(),
|
||||
{
|
||||
allowEdit: true, // 是否允许编辑
|
||||
|
@ -504,13 +505,17 @@
|
|||
caseFormRef.value?.validate().then(async (res: any) => {
|
||||
if (!res) {
|
||||
try {
|
||||
props.formApi?.validate().then(async (valid: any) => {
|
||||
if (valid === true) {
|
||||
confirmLoading.value = true;
|
||||
await updateCaseRequest(getParams());
|
||||
Message.success(t('caseManagement.featureCase.editSuccess'));
|
||||
isEditPreposition.value = false;
|
||||
emit('updateSuccess');
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
// console.log(error);
|
||||
} finally {
|
||||
confirmLoading.value = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue