对接项增加平台名称
parent
c1337c2f60
commit
888c81e8e5
|
@ -6,6 +6,11 @@
|
|||
>
|
||||
<el-form ref="formRef" v-model="form" label-width="160px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="平台名称">
|
||||
<el-input v-model="platformName" disabled />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="对接表名称" prop="tableName">
|
||||
<el-input v-model="form.tableName" placeholder="请输入对接表名称" />
|
||||
|
@ -79,6 +84,10 @@ import {
|
|||
} from "@/request/database.js";
|
||||
const formRef = ref(null);
|
||||
const visible = defineModel("visible", { type: Boolean, required: true });
|
||||
const platformName = defineModel("platformName", {
|
||||
type: String,
|
||||
required: false,
|
||||
});
|
||||
const props = defineProps({
|
||||
corpInfoId: { type: Number, required: false },
|
||||
});
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" width="240">
|
||||
<template #default="{ row }">
|
||||
<el-button type="primary" text link @click="fnDataItems(row.id)">
|
||||
<el-button type="primary" text link @click="fnDataItems(row)">
|
||||
对接项维护
|
||||
</el-button>
|
||||
<el-button type="primary" text link> 查看 </el-button>
|
||||
|
@ -52,9 +52,10 @@
|
|||
@get-data="resetPagination"
|
||||
></edit-dialog>
|
||||
<data-items-dialog
|
||||
v-if="dataItemVisible"
|
||||
v-model:visible="dataItemVisible"
|
||||
v-if="dataItemVisible.visible"
|
||||
v-model:visible="dataItemVisible.visible"
|
||||
:corp-info-id="corpInfoId"
|
||||
:platform-name="dataItemVisible.platformName"
|
||||
></data-items-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -117,10 +118,14 @@ const fnAddorEdit = (type, row) => {
|
|||
}
|
||||
visible.value = true;
|
||||
};
|
||||
const dataItemVisible = ref(false);
|
||||
const fnDataItems = (id) => {
|
||||
corpInfoId.value = id;
|
||||
dataItemVisible.value = true;
|
||||
const dataItemVisible = ref({
|
||||
visible: false,
|
||||
platformName: "",
|
||||
});
|
||||
const fnDataItems = (row) => {
|
||||
corpInfoId.value = row.id;
|
||||
dataItemVisible.value.visible = true;
|
||||
dataItemVisible.value.platformName = row.platformName;
|
||||
};
|
||||
const fnDelete = async (id) => {
|
||||
await ElMessageBox.confirm("确定要删除吗?", {
|
||||
|
|
Loading…
Reference in New Issue