Browse Source

补充直连接口

qinhouyu 1 year ago
parent
commit
8ef750c591

+ 4 - 4
src/components/vBottomMenu.vue

@@ -183,7 +183,7 @@
               </div>
               <div class="btm-r-pop-info-list">
                 <div class="btm-r-pop-info-list-name">标题</div>
-                <div class="btm-r-pop-info-list-text">{{ item.title }}</div>
+                <div class="btm-r-pop-info-list-text" style="width:85%;">>{{ item.title }}</div>
               </div>
               <div class="btm-r-pop-info-list">
                 <div class="btm-r-pop-info-list-name">消息类型</div>
@@ -1057,7 +1057,7 @@ export default {
         eventCode: eventCode,
         // centerTaskTaskDepts: this.centerTaskTaskDepts
       }
-      receiveTask(param).then(res => {
+      receiveTask_direct(param).then(res => {
         //任务领取
         if (res.code == 200) {
           this.$message.success(`任务领取成功!`)
@@ -1076,7 +1076,7 @@ export default {
         eventCode: eventCode,
         // centerTaskTaskDepts: this.centerTaskTaskDepts
       }
-      refusedTask(param).then(res => {
+      refusedTask_direct(param).then(res => {
         //任务拒绝
         if (res.code == 200) {
           this.$message.success(`任务拒绝成功!`)
@@ -1092,7 +1092,7 @@ export default {
     selectTaskDtpts(taskId, eventCode, state) {
       this.taskId = taskId
       this.eventCode = eventCode
-      selectTaskDtpts({
+      selectTaskDtpts_direct({
         taskId: taskId
       }).then(res => {
         //任务领取部门列表

+ 1 - 1
src/views/eventdetailsdialog.vue

@@ -3416,7 +3416,7 @@ export default {
                 eventState: eventState,
                 eventName: that.eventName,
               };
-              sendTask(param).then((res) => {
+              sendTask_direct(param).then((res) => {
                 if (res.code == 200) {
                   that.$message.success(`联动发起成功!`);
                   that.refreshEventDialog(that.eventCode);

+ 1 - 1
src/views/firespread.vue

@@ -2529,7 +2529,7 @@ export default {
                 eventState: eventState,
                 eventName: that.eventName
               }
-              sendTask(param).then(res => {
+              sendTask_direct(param).then(res => {
                 if (res.code == 200) {
                   that.$message.success(`联动发起成功!`)
                   that.refreshEventDialog(that.eventCode)

+ 4 - 4
src/views/monitor.vue

@@ -194,7 +194,7 @@
         // this.chuanSet()
         this.getMonitorDeviceAndDataLists()
         this.getDlblistBydeptIds()
-        this.selectDeviceType(-1);
+        this.selectDeviceType('',-1);
         // this.getNotCoverPlaces(this.deptId);
       }, 2000)
     },
@@ -207,7 +207,7 @@
         visuForestCloudCameraBOListSearch: [],
         // 部门名称
         deptName: undefined,
-        deptId: '',
+        deptId: null,
         // 部门树选项
         deptOptions: undefined,
         defaultProps: {
@@ -438,7 +438,7 @@
         this.placeholderMsg = "请输入摄像头名称";
         this.deptId = Cookies.get("deptId");
         clearInterval(this.cgqTimer);
-        this.selectDeviceType();
+        this.selectDeviceType('',-1);
         // this.getNotCoverPlaces(this.deptId);
         this.jkListIcon = 'sj-icon-jkzx'
       },
@@ -1317,7 +1317,7 @@
       selectDeviceType() {
         //获取左侧动态感知设备
         let that = this
-        selectDeviceType(that.deptId).then(res => {
+        selectDeviceType_direct({deptId:that.deptId,type:5}).then(res => {
           that.cameraMarkersList = []
           that.tempList = []
           that.visuForestCloudMapDeviceBOList = res.data.visuForestCloudMapDeviceBOList