fix: BUG修改

This commit is contained in:
kun 2023-07-06 15:40:28 +08:00
parent 87dd507a5d
commit a7e84b44ac
2 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<!-- <div class="report"> --> <!-- <div class="report"> -->
<el-dialog class="report" title="新增项目" style="min-width: 1680px" v-model="visible1" @close="closeMain"> <el-dialog class="report" :title="title" style="min-width: 1680px" v-model="visible1" @close="closeMain">
<Steps class="steps" :datas="datas" :active="active" /> <Steps class="steps" :datas="datas" :active="active" />
<keep-alive> <keep-alive>
@ -28,7 +28,8 @@ import { ElMessage } from "element-plus";
const visible1 = ref(false); const visible1 = ref(false);
const props = defineProps({ const props = defineProps({
detailsDialog: Boolean, detailsDialog: Boolean,
relativeId: String relativeId: String,
title: String
}); });
const emits = defineEmits(["update:detailsDialog", "confirm"]); const emits = defineEmits(["update:detailsDialog", "confirm"]);
const store = GlobalStore(); const store = GlobalStore();

View File

@ -10,7 +10,7 @@
:tool-button="false" :tool-button="false"
:pagination="true" :pagination="true"
background background
:isShowSearch="false" :isShowSearch="true"
:onReset="true" :onReset="true"
> >
<template #formButton="scope"> <template #formButton="scope">
@ -42,6 +42,7 @@
<ProjectSupervision <ProjectSupervision
v-model:detailsDialog="detailsDialog" v-model:detailsDialog="detailsDialog"
:relativeId="relativeId" :relativeId="relativeId"
:title="approvalTitle"
@confirm="confirmReform" @confirm="confirmReform"
></ProjectSupervision> ></ProjectSupervision>
</div> </div>
@ -58,7 +59,8 @@ const columns: ColumnProps[] = [
{ type: "index", label: "序号", width: 80 }, { type: "index", label: "序号", width: 80 },
{ {
prop: "engineeringName", prop: "engineeringName",
label: "项目名称" label: "项目名称",
search: { el: "input" }
}, },
{ {
prop: "inspectUserName", prop: "inspectUserName",
@ -83,11 +85,13 @@ const columns: ColumnProps[] = [
{ prop: "operation", label: "操作", fixed: "right", width: 120 } { prop: "operation", label: "操作", fixed: "right", width: 120 }
]; ];
const detailsDialog = ref(false); const detailsDialog = ref(false);
const approvalTitle = ref("新增");
const relativeId = ref(""); const relativeId = ref("");
// ProTable 便 // ProTable 便
const proTable = ref(); const proTable = ref();
// //
const handleAddItem = () => { const handleAddItem = () => {
approvalTitle.value = "新增";
detailsDialog.value = true; detailsDialog.value = true;
}; };
// //
@ -96,6 +100,7 @@ const confirmReform = () => {
}; };
const handleLookItem = row => { const handleLookItem = row => {
console.log(row); console.log(row);
approvalTitle.value = "再次申请";
relativeId.value = row.id; relativeId.value = row.id;
detailsDialog.value = true; detailsDialog.value = true;
}; };