update:tableForm传参优化

This commit is contained in:
2026-01-21 11:30:22 +08:00
parent 1dd09ecaaa
commit a25b3dcde9
24 changed files with 25 additions and 24 deletions

View File

@@ -10,7 +10,7 @@
<div class="form">
<TableForm
ref="TableFormRef"
:data="formData"
v-model:data="formData"
tableName="APPROVE_DEL_FORM"
@change="changeFun"
/>

View File

@@ -42,7 +42,7 @@
:height="500"
show-footer
>
<TableForm ref="tableFormRef" tableName="NODE_LIST_LEVEL2" :data="editRowInfo" />
<TableForm ref="tableFormRef" tableName="NODE_LIST_LEVEL2" v-model:data="editRowInfo" />
<!-- <el-form :model="nodeForm" label-width="100px">
<el-form-item label="名称">
<el-input v-model="nodeForm.nodeName" />

View File

@@ -15,7 +15,7 @@
:formAttrs="formAttrs"
@load="loadFun"
@change="formChangeFun"
:data="editRowInfo"
v-model:data="editRowInfo"
>
<template #form-epProjectSelect="{ attrs: slotAttrs }">
<EpProjectSelect

View File

@@ -4,7 +4,7 @@
<TableForm
ref="tableFormRef"
:tableName="tableName"
:data="formData"
v-model:data="formData"
:formAttrs="formAttrs"
:itemNum="5"
@change="onFormChangeFun"

View File

@@ -56,7 +56,7 @@
<TableForm
ref="tableFormRef"
:hideKeys="hideKeys"
:data="editRowInfo"
v-model:data="editRowInfo"
tableName="CREATE_WORK_TIME"
>
<template #form-workName>

View File

@@ -4,7 +4,7 @@
<TableForm
ref="tableFormRef"
:tableName="tableName"
:data="formData"
v-model:data="formData"
:formAttrs="formAttrs"
:itemNum="6"
@change="onFormChangeFun"

View File

@@ -1,7 +1,7 @@
<template>
<Dialog v-model="diaVisible" diaTitle="上传文件" :width="400" @close="closeFun">
<div>
<TableForm ref="tableFormRef" tableName="DATA_OVERVIEW_ADD_FILE" :data="formData" />
<TableForm ref="tableFormRef" tableName="DATA_OVERVIEW_ADD_FILE" v-model:data="formData" />
</div>
<template #footer>
<div>

View File

@@ -7,7 +7,7 @@
@close="closeFun"
>
<div class="content">
<TableForm ref="tableFormRef" :data="formData" tableName="DATA_OVERVIEW_DIR_DETAIL" />
<TableForm ref="tableFormRef" v-model:data="formData" tableName="DATA_OVERVIEW_DIR_DETAIL" />
</div>
<template #footer>
<div>

View File

@@ -7,7 +7,7 @@
@close="closeFun"
>
<div class="content">
<TableForm ref="tableFormRef" :data="formData" tableName="DATA_OVERVIEW_FILE_DETAIL" />
<TableForm ref="tableFormRef" v-model:data="formData" tableName="DATA_OVERVIEW_FILE_DETAIL" />
</div>
<template #footer>
<div>

View File

@@ -7,7 +7,7 @@
@close="closeFun"
>
<div class="content">
<TableForm ref="tableFormRef" :data="searchData" tableName="DATA_OVERVIEW_SEARCH">
<TableForm ref="tableFormRef" v-model:data="searchData" tableName="DATA_OVERVIEW_SEARCH">
<template #form-fileSize>
<div class="file-size">
<el-input-number class="size" v-model="searchData.fileSize" />

View File

@@ -8,7 +8,7 @@
@close="closeFun"
show-footer
>
<TableForm :data="appInfo" ref="tableFormRef" tableName="APP_CENTER" showDisabled>
<TableForm v-model:data="appInfo" ref="tableFormRef" tableName="APP_CENTER" showDisabled>
</TableForm>
<template #footer>
<div>

View File

@@ -8,7 +8,7 @@
@close="closeFun"
>
<div class="content">
<TableForm ref="tableFormRef" :data="paramData" tableName="PARAMETER_LIST">
<TableForm ref="tableFormRef" v-model:data="paramData" tableName="PARAMETER_LIST">
<template #form-parameterClass>
<ParamClass v-model="paramData.parameterClass" @change="paramClassChangeFun" />
</template>

View File

@@ -4,7 +4,7 @@
<TableForm
ref="tableFormRef"
tableName="PARAMETER_LIBRARY_FORM"
:data="formData"
v-model:data="formData"
showDisabled
@change="changeFun"
:formAttrs="{

View File

@@ -21,7 +21,7 @@
ref="tableFormRef"
tableName="SIMULATION_FLOW_LIB_LIST"
:showDisabled="dialogType === 'upgrade'"
:data="editRowInfo"
v-model:data="editRowInfo"
>
<template #form-templateVersion>
<div class="template-version">

View File

@@ -21,7 +21,7 @@
ref="tableFormRef"
tableName="SIMULATION_REPORT_LIB_LIST"
:showDisabled="dialogType === 'upgrade'"
:data="editRowInfo"
v-model:data="editRowInfo"
>
<template #form-templateVersion>
<div class="template-version">

View File

@@ -8,7 +8,7 @@
@close="closeFun"
>
<div class="content">
<TableForm ref="tableFormRef" :tableName="tableName" :data="{}" />
<TableForm ref="tableFormRef" :tableName="tableName" v-model:data="formData" />
</div>
<template #footer>
<div>
@@ -29,6 +29,7 @@ const props = defineProps(['configParamInfo', 'tableName']);
const emit = defineEmits(['cancel', 'submit']);
const currentRow = ref<any>({});
const tableFormRef = ref();
const formData = ref({});
const visible = ref(true);
const closeFun = () => {

View File

@@ -24,7 +24,7 @@
show-footer
>
<div class="content">
<TableForm ref="tableFormRef" tableName="DEPARTMENT_USER" :data="editRowInfo" />
<TableForm ref="tableFormRef" tableName="DEPARTMENT_USER" v-model:data="editRowInfo" />
</div>
<template #footer>
<div>

View File

@@ -11,7 +11,7 @@
<TableForm
ref="tableFormRef"
:tableName="tableName"
:data="formData"
v-model:data="formData"
:showDisabled="!!data.uuid"
/>
</div>

View File

@@ -10,7 +10,7 @@
<div class="content">
<TableForm
ref="tableFormRef"
:data="formData"
v-model:data="formData"
tableName="DYNAMIC_TABLE"
:showDisabled="!!id"
/>

View File

@@ -36,7 +36,7 @@
:showDisabled="isEditDialog"
ref="tableFormRef"
tableName="NODE_DETAIL_FILE"
:data="editRowInfo"
v-model:data="editRowInfo"
/>
</div>
<template #footer>

View File

@@ -9,7 +9,7 @@
show-footer
>
<TableForm
:data="demandInfo"
v-model:data="demandInfo"
:show-disabled="true"
ref="tableFormRef"
tableName="SIMULATION_TASK_DEMAND_CREATE"

View File

@@ -25,7 +25,7 @@
:hide-keys="hideKeys"
@change="changeFun"
@load="formLoad"
:data="editRow"
v-model:data="editRow"
>
</TableForm>
<template #footer>

View File

@@ -24,7 +24,7 @@
tableName="SIMULATION_TASK_SEND_LIST"
showDisabled
@load="formLoad"
:data="editFormInfo"
v-model:data="editFormInfo"
@change="changeFun"
:formAttrs="formAttrs"
>

View File

@@ -39,7 +39,7 @@
@load="loadTableForm"
:colNum="2"
:hideKeys="hideKeys.concat(formHideKeys)"
:data="editFormInfo"
v-model:data="editFormInfo"
>
<template #form-pMemberList>
<el-select v-model="editFormInfo.pMemberList" filterable placeholder="请选择">