From eee656c8d1aab0b5aa8935bf1630f782321fc7f4 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Wed, 21 Feb 2024 16:53:35 +0800
Subject: [PATCH] bug修改
---
src/views/safetyReview/projectManage/components/evaluatePlan.vue | 29 +++++++++++++++++------------
1 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/src/views/safetyReview/projectManage/components/evaluatePlan.vue b/src/views/safetyReview/projectManage/components/evaluatePlan.vue
index 2f62a3d..2e37f72 100644
--- a/src/views/safetyReview/projectManage/components/evaluatePlan.vue
+++ b/src/views/safetyReview/projectManage/components/evaluatePlan.vue
@@ -166,7 +166,7 @@
auserId: null,
estimateSchedules: [
{
- id: 1,
+ id: null,
sort: 1,
name: '勘验准备',
startDate: '',
@@ -175,7 +175,7 @@
projectId: null
},
{
- id: 2,
+ id: null,
sort: 2,
name: '现场勘验',
startDate: '',
@@ -184,7 +184,7 @@
projectId: null
},
{
- id: 3,
+ id: null,
sort: 3,
name: '材料分析整理',
startDate: '',
@@ -193,7 +193,7 @@
projectId: null
},
{
- id: 4,
+ id: null,
sort: 4,
name: '评价报告编写',
startDate: '',
@@ -202,7 +202,7 @@
projectId: null
},
{
- id: 5,
+ id: null,
sort: 5,
name: '整改情况现场确认',
startDate: '',
@@ -211,7 +211,7 @@
projectId: null
},
{
- id: 6,
+ id: null,
sort: 6,
name: '整理评价报告',
startDate: '',
@@ -220,7 +220,7 @@
projectId: null
},
{
- id: 7,
+ id: null,
sort: 7,
name: '报告审核',
startDate: '',
@@ -229,7 +229,7 @@
projectId: null
},
{
- id: 8,
+ id: null,
sort: 8,
name: '报告修改',
startDate: '',
@@ -268,12 +268,17 @@
const expertsListRef = ref()
const worksRef = ref()
const deviceRef = ref()
-onMounted(() => {
+onMounted(async () => {
const userInfo = JSON.parse(Cookies.get('userInfo'))
if(userInfo.identity === 0){
isAmin.value = true
}
+ if(props.projectId){
+ await getWorksList(props.projectId)
+ await getDeviceList(props.projectId)
+ }
})
+
const riskOpen = async (type,val) => {
state.formData.projectId = val
@@ -281,8 +286,8 @@
for(let i of state.formData.estimateSchedules){
i.projectId = val
}
- await getWorksList(val)
- await getDeviceList(val)
+ // await getWorksList(val)
+ // await getDeviceList(val)
if(type === 'detail' || type === 'edit' ){
const res = await getDetail({projectId: val})
if(res.code == 200){
@@ -305,7 +310,7 @@
if (res.code == 200) {
ElMessage.success('保存成功')
formRef.value.clearValidate();
- emit('getNextStatus', res.data);
+ emit('getNextStatus', state.formData.projectId);
} else {
ElMessage.warning(res.message)
--
Gitblit v1.9.2