update:动态表格配置页
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
@close="closeFun"
|
||||
>
|
||||
<div class="content">
|
||||
<TableForm ref="tableFormRef" :data="formData" tableName="DYNAMIC_TABLE" />
|
||||
<TableForm ref="tableFormRef" :data="formData" tableName="DYNAMIC_TABLE" :showDisabled="!!id" />
|
||||
</div>
|
||||
<template #footer>
|
||||
<div>
|
||||
@@ -73,9 +73,12 @@ const submitFun = async() => {
|
||||
const fromData = tableFormRef.value.getFormDataFun();
|
||||
const api = props.id ? updateFormConfigureApi : addFormConfigureApi;
|
||||
const params = {
|
||||
formName: fromData.formName,
|
||||
comment: fromData.comment,
|
||||
...fromData,
|
||||
formConfig: JSON.stringify([]),
|
||||
};
|
||||
if (props.id) {
|
||||
delete params.formConfig;
|
||||
}
|
||||
api(params).then((res: any) => {
|
||||
if (res.code === 200) {
|
||||
ElMessage.success('操作成功');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:actionsWidth="130"
|
||||
>
|
||||
<template #leftOptions>
|
||||
<el-button type="primary" :icon="Plus" @click="detailVisible = true">新增表头</el-button>
|
||||
<el-button type="primary" :icon="Plus" @click="editFun({})">新增表头</el-button>
|
||||
</template>
|
||||
<template #tableActions="{ row }">
|
||||
<div class="gl-table-actions">
|
||||
|
||||
Reference in New Issue
Block a user