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