JX.LI il y a 2 ans
Parent
commit
5397092a3f
2 fichiers modifiés avec 30 ajouts et 9 suppressions
  1. 28 9
      src/components/vBottomMenu.vue
  2. 2 0
      src/views/eventdetailsdialog.vue

+ 28 - 9
src/components/vBottomMenu.vue

@@ -468,14 +468,14 @@
                     <div class="this-con h-25 no-padding">
                       <div class="z-info-list" style="margin-top: 0;">
                         <div class="z-info-btm-grp">
-                          <div class="z-info-btm-grp-top">
-                            <div class="z-info-btm-grp-left">
-                              <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传
-                              </el-button>
-                              <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传
-                              </el-button>
-                            </div>
-                          </div>
+<!--                          <div class="z-info-btm-grp-top">-->
+<!--                            <div class="z-info-btm-grp-left">-->
+<!--                              <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
+<!--                              </el-button>-->
+<!--                              <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传-->
+<!--                              </el-button>-->
+<!--                            </div>-->
+<!--                          </div>-->
                           <div class="z-info-btm-input">
                             <el-input type="textarea" v-model="eventLog" :autosize="{ minRows: 7, maxRows: 7}"
                                       placeholder="请输入反馈信息">
@@ -585,7 +585,7 @@ import {
   selectByeventCode,
   sendTask,
   eventExamine,
-  eventHandling
+  eventHandling, sendEventLog
 } from '@/api/forest'
 import {
   selectFarmByDeptId, linBanTreeselect, selectBanBylinBanTreesId, userDeptSelect
@@ -1311,6 +1311,25 @@ export default {
         this.attachExamine.push(attachPath)
       });
     },
+    sendEventLog() {
+      if (this.eventLog == '' || this.eventLog == null) {
+        return;
+      }
+      //日志发送
+      let param = {
+        eventCode: this.eventCode,
+        logContent: this.eventLog,
+        operation: "bus_oper_type_2",
+        operationType: "log_oper_type_1"
+      }
+      sendEventLog(param).then(res => {
+        if (res.code == 200) {
+          this.$message.success(`发送成功!`)
+          this.eventLog = null
+          this.refreshEventDialog(this.eventCode)
+        }
+      })
+    },
     /**
      * eventStatusValue 事件状态
      * isSend 是否办理

+ 2 - 0
src/views/eventdetailsdialog.vue

@@ -1680,6 +1680,8 @@ export default {
               setTimeout(() => {
                 this.$refs.supermapDialog.setMarkersByType(markersList, type)
               }, 1000)
+            } else {
+              this.$message.warning("当前点位附近无资源数据")
             }
           })
         } else {