From c2a6c53657baaf0830cd881e1a23a15af23ac6fa Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期四, 21 九月 2023 18:35:14 +0800
Subject: [PATCH] 代码更新

---
 src/views/datamanage/uploadmanage.vue |  144 +++++++++++++++++++++++++++---------------------
 1 files changed, 81 insertions(+), 63 deletions(-)

diff --git a/src/views/datamanage/uploadmanage.vue b/src/views/datamanage/uploadmanage.vue
index 89ed182..d888444 100644
--- a/src/views/datamanage/uploadmanage.vue
+++ b/src/views/datamanage/uploadmanage.vue
@@ -879,6 +879,21 @@
       >
       </div>
     </div>
+    <el-dialog
+      :title="$t('common.details')"
+      :visible.sync="rasterCsVisible"
+      :close-on-click-modal="false"
+      width="35%"
+    >
+      <div class="rasterCsBox">
+        <div v-for="(item,index) in rasterCsOption">
+          <div class="rasterCsContent">
+            <label>{{ item.name }} : </label>
+            <label>{{ item.bak }}</label>
+          </div>
+        </div>
+      </div>
+    </el-dialog>
   </div>
 
 </template>
@@ -900,7 +915,8 @@
   dataUpload_selectCoords,
   publish_selectLasCs,
   task_selectByPageAndCount,
-  task_deleteTask
+  task_deleteTask,
+  publish_selectRasterCs
 } from '../../api/api.js'
 import { conditions } from '../Archive/Archive';
 
@@ -1037,7 +1053,9 @@
       },
       stridOption: [],
       osgbLasOption: [],
-      loadingText: '鏁版嵁鍙戝竷涓�'
+      loadingText: '鏁版嵁鍙戝竷涓�',
+      rasterCsVisible: false,
+      rasterCsOption: []
     }
   },
   methods: {
@@ -1099,21 +1117,8 @@
         srids: [],
         zs: zs
       }
-      this.loadingText = '鏁版嵁鍙戝竷涓�';
-      this.loadDialogVisible = true
-      this.setOsgbCanel();
-      const data = await publish_insert(obj);
+      this.setPublish_insert(obj)
 
-      if (data.code == 200 && data.result > 0) {
-        this.$message({
-          message: '鏁版嵁鍙戝竷鎴愬姛',
-          type: 'success'
-        });
-      } else {
-        this.$message.error("鏁版嵁鍙戝竷澶辫触")
-      }
-      this.loadDialogVisible = false
-      this.getTableData();
 
     },
     setModelCanel() {
@@ -1153,22 +1158,7 @@
         models: models
 
       }
-      this.loadingText = '鏁版嵁鍙戝竷涓�';
-      this.loadDialogVisible = true
-      this.insertModelVisible = false;
-
-      const data = await publish_insert(obj);
-
-      if (data.code == 200 && data.result > 0) {
-        this.$message({
-          message: '鏁版嵁鍙戝竷鎴愬姛',
-          type: 'success'
-        });
-      } else {
-        this.$message.error("鏁版嵁鍙戝竷澶辫触")
-      }
-      this.loadDialogVisible = false
-      this.getTableData();
+      this.setPublish_insert(obj)
 
 
     },
@@ -1236,6 +1226,21 @@
       for (var i in this.multipleSelection) {
         std.push(this.multipleSelection[i].id)
       }
+
+      if (this.formInline.type == 'DOM') {
+        const data1 = await publish_selectRasterCs({
+          ids: std.toString()
+        })
+        if (data1.code == 200 && data1.result.length == 0) {
+        } else {
+          this.rasterCsOption = data1.result;
+          this.insertDialogVisible = false;
+          this.rasterCsVisible = true;
+          return
+        }
+      }
+
+
       var obj = {
         dircode: this.formInline.dirid,
         depcode: this.formInline.depid,
@@ -1246,23 +1251,11 @@
         type: this.formInline.type,
         noData: this.insertLayer.noData
       }
-      this.loadingText = '鏁版嵁鍙戝竷涓�';
-      this.loadDialogVisible = true
-      this.insertDialogVisible = false;
-
-      const data = await publish_insert(obj);
-
-      if (data.code == 200 && data.result > 0) {
-        this.$message({
-          message: '鏁版嵁鍙戝竷鎴愬姛',
-          type: 'success'
-        });
-      } else {
-        this.$message.error("鏁版嵁鍙戝竷澶辫触")
-      }
-      this.loadDialogVisible = false
-      this.getTableData();
+      this.setPublish_insert(obj)
     },
+
+
+
 
     //鏁版嵁鍙戝竷
     async setPagePublish() {
@@ -1270,7 +1263,6 @@
         this.$message("璇烽�夋嫨瑕佸彂甯冪殑鏁版嵁")
         return
       }
-
       if (this.formInline.type == "DOM" || this.formInline.type == "DEM") {
 
         this.insertLayer.name = this.multipleSelection[0].name.split('.')[0];
@@ -1341,24 +1333,41 @@
           ids: std,
           type: this.formInline.type
         }
-        this.loadingText = '鏁版嵁鍙戝竷涓�';
-        this.loadDialogVisible = true
-        this.insertDialogVisible = false;
 
-        const data = await publish_insert(obj);
-        if (data.code == 200 && data.result > 0) {
-          this.$message({
-            message: '鏁版嵁鍙戝竷鎴愬姛',
-            type: 'success'
-          });
-        } else {
-          this.$message.error("鏁版嵁鍙戝竷澶辫触")
-        }
 
-        this.loadDialogVisible = false
-        this.getTableData();
+        this.setPublish_insert(obj)
       }
     },
+
+    async setPublish_insert(obj) {
+      this.insertDialogVisible = false;
+      this.insertModelVisible = false;
+      this.insertOsgbVisible = false;
+      var std = [];
+
+
+
+      this.loadingText = '鏁版嵁鍙戝竷涓�';
+      this.loadDialogVisible = true
+      this.insertDialogVisible = false;
+      const data = await publish_insert(obj);
+      if (data.code == 200 && data.result > 0) {
+        this.$message({
+          message: '鏁版嵁鍙戝竷鎴愬姛',
+          type: 'success'
+        });
+      } else {
+        this.$message.error("鏁版嵁鍙戝竷澶辫触")
+      }
+      this.loadDialogVisible = false
+      this.getTableData();
+
+
+    },
+
+
+
+
     //鏁版嵁璇︽儏
     setPreviewDetails(res) {
       this.itemdetail = res;
@@ -1925,5 +1934,14 @@
     width: 140px;
     text-align: right;
   }
+  .rasterCsBox {
+    max-height: 60vh;
+    overflow: auto;
+    .rasterCsContent {
+      padding: 10px;
+      font-size: 16px;
+      font-family: Source Han Sans CN;
+    }
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3