fix: BUG修改
This commit is contained in:
parent
87dd507a5d
commit
a7e84b44ac
@ -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();
|
||||||
|
|||||||
@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user