فهرست منبع

下载图片+搜索

yf_zd 4 سال پیش
والد
کامیت
8440c8a387

+ 3 - 3
src/pages/plantGuard/disasterWarn/warnPhoto.vue

@@ -417,13 +417,13 @@ export default {
     },
     downPhoto(arr) {
       let uid = this.$store.state.user_id;
-      let image_id = arr.join(",");
+      let id_list = JSON.stringify(arr);
       this.$axios({
         method: "post",
         url: "/api/api_gateway?method=forecast.worm_lamp.get_task_id",
         data: this.qs.stringify({
-          image_id,
-          myuid: uid,
+          id_list,
+          device_id: this.id,
         }),
       }).then((res) => {
         if (res.data.message == "") {

+ 3 - 3
src/pages/plantGuard/plantProtection/bzyPhoto.vue

@@ -347,13 +347,13 @@ export default {
     },
     downPhoto(arr) {
       let uid = this.$store.state.user_id;
-      let image_id = arr.join(",");
+      let id_list = JSON.stringify(arr);
       this.$axios({
         method: "post",
         url: "/api/api_gateway?method=forecast.worm_lamp.get_task_id",
         data: this.qs.stringify({
-          image_id,
-          myuid: uid,
+          id_list,
+          device_id: this.id,
         }),
       }).then((res) => {
         if (res.data.message == "") {

+ 7 - 5
src/pages/plantGuard/plantProtection/cbdPhoto.vue

@@ -624,6 +624,7 @@ export default {
       if (flag == 2) {
         //批量删除
         this.delBtnState = false;
+        this.downBtnState = true;
       }
 
       if (flag == 3) {
@@ -657,7 +658,8 @@ export default {
         this.$router.push(`/index/messageWarn/${this.id}`);
       }
       if (flag == 7) {
-        this.downBtnState = !this.downBtnState;
+        this.delBtnState = true;
+        this.downBtnState = false;
       }
       if (flag == 8) {
         //批量下载图片
@@ -813,13 +815,13 @@ export default {
     },
     downPhoto(arr) {
       let uid = this.$store.state.user_id;
-      let image_id = arr.join(",");
+      let id_list = JSON.stringify(arr);
       this.$axios({
         method: "post",
-        url: "/api/api_gateway?method=forecast.worm_lamp.get_task_id",
+        url: "/api/download",
         data: this.qs.stringify({
-          image_id,
-          myuid: uid,
+          id_list,
+          device_id: this.id,
         }),
       }).then((res) => {
         if (res.data.message == "") {