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>
<!-- <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" />
<keep-alive>
@ -28,7 +28,8 @@ import { ElMessage } from "element-plus";
const visible1 = ref(false);
const props = defineProps({
detailsDialog: Boolean,
relativeId: String
relativeId: String,
title: String
});
const emits = defineEmits(["update:detailsDialog", "confirm"]);
const store = GlobalStore();

View File

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