fix(测试计划): 修改代码cr问题
This commit is contained in:
parent
4358a82355
commit
c89a858f52
|
@ -76,7 +76,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDeleteTip() {
|
const contentTip = computed(() => {
|
||||||
switch (props.record && props.record.status) {
|
switch (props.record && props.record.status) {
|
||||||
case 'ARCHIVED':
|
case 'ARCHIVED':
|
||||||
return t('testPlan.testPlanIndex.deleteArchivedPlan');
|
return t('testPlan.testPlanIndex.deleteArchivedPlan');
|
||||||
|
@ -87,10 +87,6 @@
|
||||||
default:
|
default:
|
||||||
return t('testPlan.testPlanIndex.deletePendingPlan');
|
return t('testPlan.testPlanIndex.deletePendingPlan');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const contentTip = computed(() => {
|
|
||||||
return getDeleteTip();
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,8 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { FormInstance } from '@arco-design/web-vue';
|
import { FormInstance, ValidatedError } from '@arco-design/web-vue';
|
||||||
|
import { cloneDeep } from 'lodash-es';
|
||||||
|
|
||||||
import MsDialog from '@/components/pure/ms-dialog/index.vue';
|
import MsDialog from '@/components/pure/ms-dialog/index.vue';
|
||||||
import type { BatchActionQueryParams } from '@/components/pure/ms-table/type';
|
import type { BatchActionQueryParams } from '@/components/pure/ms-table/type';
|
||||||
|
@ -108,7 +109,7 @@
|
||||||
tags: [],
|
tags: [],
|
||||||
value: '',
|
value: '',
|
||||||
};
|
};
|
||||||
const form = ref({ ...initForm });
|
const form = ref(cloneDeep(initForm));
|
||||||
|
|
||||||
const attrOptions = [
|
const attrOptions = [
|
||||||
{
|
{
|
||||||
|
@ -123,12 +124,11 @@
|
||||||
isVisible.value = false;
|
isVisible.value = false;
|
||||||
formRef.value?.resetFields();
|
formRef.value?.resetFields();
|
||||||
form.value = { ...initForm };
|
form.value = { ...initForm };
|
||||||
form.value.tags = [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function confirmHandler(enable: boolean | undefined) {
|
async function confirmHandler(enable: boolean | undefined) {
|
||||||
await formRef.value?.validate().then(async (error) => {
|
formRef.value?.validate(async (errors: undefined | Record<string, ValidatedError>) => {
|
||||||
if (!error) {
|
if (!errors) {
|
||||||
try {
|
try {
|
||||||
const customField = {
|
const customField = {
|
||||||
fieldId: '',
|
fieldId: '',
|
||||||
|
|
Loading…
Reference in New Issue