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