update:数据总览优化

This commit is contained in:
2025-12-03 17:27:07 +08:00
parent b74b34c113
commit 43badb029d

View File

@@ -1,10 +1,5 @@
<template>
<Dialog
v-model="visible"
diaTitle="选择删除审核流程"
:width="400"
@close="closeFun"
>
<Dialog v-model="visible" diaTitle="选择删除审核流程" :width="400" @close="closeFun">
<div class="content">
<div class="tip">
<el-icon class="icon" :size="16">
@@ -49,14 +44,17 @@ const props = withDefaults(defineProps<Props>(), {
params: {},
});
watch(() => props.modelValue, (val: boolean) => {
visible.value = val;
if (!val) {
if (TableFormRef.value) {
TableFormRef.value.resetFun();
watch(
() => props.modelValue,
(val: boolean) => {
visible.value = val;
if (!val) {
if (TableFormRef.value) {
TableFormRef.value.resetFun();
}
}
}
});
);
const emit = defineEmits(['update:modelValue', 'confirm']);
const TableFormRef = ref<any>();
@@ -66,11 +64,12 @@ const visible = ref(false);
const changeFun = (data: any) => {
const { key, val } = data;
if (key === 'templateId') {
formData.value.templateId = val.value;
formData.value.templateName = val.label;
}
};
const submitFun = async() => {
const submitFun = async () => {
const valid = await TableFormRef.value.validateFun();
if (valid) {
if (props.api) {