Jelajahi Sumber

列表、日志 图片

彭宇 2 tahun lalu
induk
melakukan
bd869303b8
1 mengubah file dengan 13 tambahan dan 3 penghapusan
  1. 13 3
      src/views/eventdetailsdialog.vue

+ 13 - 3
src/views/eventdetailsdialog.vue

@@ -208,7 +208,7 @@
 																		@click="updateCentereventTEventcatalogueStatus('ld',false)">
 																		联动
 																	</el-button>
-																	<el-button size="small" icon="el-icon-success"
+																	<el-button size="small" icon="el-icon-success" v-if="dataStatus"
 																		style="text-align:left"
 																		@click="updateCentereventTEventcatalogueStatus('bj',true)">
 																		办结
@@ -219,7 +219,7 @@
 																</el-button>
 															</div>
 															<div class="z-info-btm-input-btn"
-																v-else-if="eventStatusValue=='forest_event_status_5'">
+																v-else-if="eventStatusValue=='forest_event_status_5'&&dataStatus">
 																<el-button size="small" icon="el-icon-success"
 																	style="text-align:left"
 																	@click="updateCentereventTEventcatalogueStatus('gd',false)">
@@ -1123,6 +1123,8 @@
 				eventStatusValue: null, //事件状态
 				eventId: null, //事件ID
 				eventType: null, //事件类型-大类
+        dataStatus: false, //事件处理流程按钮
+        deptId: false, //事件处理流程部门
 				eventCode: null,
 				longitude: null,
 				latitude: null,
@@ -1669,6 +1671,7 @@
 					} else if (eventStatus == 'gd') {
 						//事件处理流程--归档
 						let param = {
+              deptId: this.deptId,
 							eventCode: this.eventCode,
 							eventStatus: eventStatus,
 							id: this.eventId,
@@ -1700,7 +1703,9 @@
 								this.$message.error(`请选择部门!`)
 								return
 							}
-						}
+						}else{
+              this.sendDeptId = this.deptId
+            }
 						//事件处理流程
 						let param = {
 							eventCode: this.eventCode,
@@ -1749,6 +1754,7 @@
 				this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
 			},
 			cancelEventShow() {
+        this.dataStatus=false
 				console.log('关闭事件弹窗')
 				this.eventLogList = []
 			},
@@ -1765,6 +1771,8 @@
 						this.address = res.data.catalogue.address
 						this.eventStatusValue = res.data.catalogue.eventStatusValue
 						this.eventType = res.data.catalogue.eventType
+						this.dataStatus = res.data.catalogue.dataStatus
+						this.deptId = res.data.catalogue.deptId
 						this.eventId = res.data.catalogue.id
 						this.longitude = res.data.catalogue.longitude
 						this.latitude = res.data.catalogue.latitude
@@ -1850,6 +1858,8 @@
 						this.address = res.data.catalogue.address
 						this.eventStatusValue = res.data.catalogue.eventStatusValue
 						this.eventType = res.data.catalogue.eventType
+						this.dataStatus = res.data.catalogue.dataStatus
+						this.deptId = res.data.catalogue.deptId
 						this.eventId = res.data.catalogue.id
 						this.latitude = res.data.catalogue.latitude
 						this.longitude = res.data.catalogue.longitude