Quellcode durchsuchen

事件详情办理流程按钮

彭宇 vor 2 Jahren
Ursprung
Commit
e8424b735a
1 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 6 3
      src/views/eventdetailsdialog.vue

+ 6 - 3
src/views/eventdetailsdialog.vue

@@ -16,7 +16,7 @@
             <el-col :span="18" class="dia-left">
               <div ref="imageTofile" style="height: 75vh;">
                 <!-- 应急预案 -->
-                <div class="dia-left-top">
+                <div class="dia-left-top" v-if="eventType=='1'">
                   <div class="dia-left-top-tit">应急预案</div>
                   <div class="dia-left-top-carousel">
                     <el-carousel height="30px" direction="vertical" :interval="2000">
@@ -204,7 +204,7 @@
                                              @click="updateCentereventTEventcatalogueStatus('ld',false)">
                                     联动
                                   </el-button>
-                                  <el-button size="small"
+                                  <el-button size="small" v-if="dataStatus"
                                              icon="el-icon-success" style="text-align:left"
                                              @click="updateCentereventTEventcatalogueStatus('bj',true)">
                                     办结
@@ -213,7 +213,7 @@
                                 <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
                                 </el-button>
                               </div>
-                              <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
+                              <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'&&dataStatus">
                                 <el-button size="small" v-if="eventType=='1'"
                                            icon="el-icon-success" style="text-align:left"
                                            @click="updateCentereventTEventcatalogueStatus('gd',false)">
@@ -1121,6 +1121,7 @@ export default {
       eventStatusValue: null,//事件状态
       eventId: null,//事件ID
       eventType: null,//事件类型-大类
+      dataStatus: false,//事件处理按钮
       eventCode: null,
       longitude: null,
       latitude: null,
@@ -1744,6 +1745,7 @@ export default {
         that.address = res.data.catalogue.address
         that.eventStatusValue = res.data.catalogue.eventStatusValue
         that.eventType = res.data.catalogue.eventType
+        that.dataStatus = res.data.catalogue.dataStatus
         that.eventId = res.data.catalogue.id
         that.longitude = res.data.catalogue.longitude
         that.latitude = res.data.catalogue.latitude
@@ -1822,6 +1824,7 @@ export default {
         that.address = res.data.catalogue.address
         that.eventStatusValue = res.data.catalogue.eventStatusValue
         that.eventType = res.data.catalogue.eventType
+        that.dataStatus = res.data.catalogue.dataStatus
         that.eventId = res.data.catalogue.id
         that.latitude = res.data.catalogue.latitude
         that.longitude = res.data.catalogue.longitude