tangning 1 hónapja
szülő
commit
fdb8056237
2 módosított fájl, 12 hozzáadás és 10 törlés
  1. 11 9
      src/views/mediaLibrary/list.vue
  2. 1 1
      src/views/sys/login/Login.vue

+ 11 - 9
src/views/mediaLibrary/list.vue

@@ -7,11 +7,7 @@
       </template>
 
       <template #href="{ record }">
-        <a
-          v-if="record.fileUrl"
-          target="_blank"
-          :title="record.name"
-          @click="floadileUrl(record)">
+        <a v-if="record.fileUrl" target="_blank" :title="record.name" @click="floadileUrl(record)">
           {{ record.name }}</a
         >
         <span v-else-if="record.name">{{ record.name }}</span>
@@ -116,7 +112,7 @@
         {
           title: '文件类型',
           dataIndex: 'fileTypeStr',
-          width: 80
+          width: 80,
         },
         {
           title: '文件格式',
@@ -136,7 +132,7 @@
           dataIndex: 'status',
           ellipsis: true,
           customRender: ({ record }) => {
-            return record.status == -1 ? '上传失败' : record.status == 0 ? '上传中' : '上传成功'
+            return record.status == -1 ? '上传失败' : record.status == 0 ? '上传中' : '上传成功';
           },
           width: 180,
         },
@@ -212,7 +208,7 @@
                   label: '其他',
                   value: '4',
                   key: '4',
-                }
+                },
               ],
             },
             colProps: {
@@ -430,7 +426,13 @@
       }
       function floadileUrl(record) {
         if (record.fileType == 3) {
-          let url = `/code/index.html?title=${record.fileName}&type=${record.fileFormat}&fileUrl=${record.fileUrl}#/sign-model`
+          let wgs84 = '';
+          if (record.wgs84) {
+            wgs84 = `&wgs84=${record.wgs84}&gcj02=${record.gcj02}`;
+          }
+          let url = `/code/index.html?title=${record.fileName}&type=${record.fileFormat}&fileUrl=${
+            record.fileUrl
+          }&convertType=${record.convertType}${record.wgs84 ? wgs84 : ''}#/sign-model`;
           return window.open(url);
         } else {
           return window.open(record.fileUrl);

+ 1 - 1
src/views/sys/login/Login.vue

@@ -16,7 +16,7 @@
       </div>
     </div>
     <div class="suoyuan"
-      >公安部鉴定中心 & 江门市公安局 & 四维时代 | 公安部科技强警基础工作计划(2022JC13)</div
+      >公安部鉴定中心 & 四维时代 | 公安部科技强警基础工作计划(2022JC13)</div
     >
     <div class="container relative h-full py-2 mx-auto sm:px-10">
       <div class="flex h-full">