459242451@qq.com 3 سال پیش
والد
کامیت
f54eb2816d
1فایلهای تغییر یافته به همراه12 افزوده شده و 115 حذف شده
  1. 12 115
      ruoyi-ui/src/views/components/table/xtTable.vue

+ 12 - 115
ruoyi-ui/src/views/components/table/xtTable.vue

@@ -185,11 +185,16 @@ style="width:20rem;height:20rem;display:inline-block;margin-right:10px"
 :src="item"
 :preview-src-list="['https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg','https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00315-1423.jpg']">
 </el-image> -->
-            <el-image v-for="item in scope.row.allImgUrl"
-                      style="width:20rem;height:20rem;display:inline-block;margin-right:10px"
-                      :src="item"
-                      :preview-src-list="scope.row.allImgUrl">
-            </el-image>
+
+            <!--            v-for="item in scope.row.allImgUrl"
+                        style="width:20rem;height:20rem;display:inline-block;margin-right:10px"-->
+            <el-badge :value="scope.row.allImgUrl.length" class="item" style="margin-top: 10px">
+              <el-image
+                style="width:25rem;height:25rem;display:inline-block;"
+                :src="scope.row.allImgUrl[scope.row.allImgUrl.length-1]"
+                :preview-src-list="scope.row.allImgUrl">
+              </el-image>
+            </el-badge>
 
             <!-- <img style="width:40rem;height:40rem" src="https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00315-1423.jpg"/>  -->
 
@@ -215,47 +220,6 @@ style="width:20rem;height:20rem;display:inline-block;margin-right:10px"
 
   </div>
 
-  <!-- <el-table
-    :data="tableData"
-    style="width: 100%">
-    <el-table-column
-      prop="date"
-      label="船名"
-      width="180">
-    </el-table-column>
-    <el-table-column
-      prop="name"
-      label="MMSI"
-      width="180">
-    </el-table-column>
-    <el-table-column
-      prop="address"
-      label="内河船/海船">
-    </el-table-column>
-      <el-table-column
-      prop="address"
-      label="抓拍地点">
-    </el-table-column>
-      <el-table-column
-      prop="address"
-      label="抓怕时间">
-    </el-table-column>
-       </el-table-column>
-      <el-table-column
-      prop="address"
-      label="黑度登记">
-    </el-table-column>
-       </el-table-column>
-      <el-table-column
-      prop="address"
-      label="详情">
-    </el-table-column>
-       </el-table-column>
-      <el-table-column
-      prop="address"
-      label="管辖海事机构">
-    </el-table-column>
-  </el-table> -->
 </template>
 
 <script>
@@ -348,77 +312,10 @@ export default {
       }
 
       getBlackList(this.addDateRange(this.queryParams, dateRange)).then(response => {
-
-        // var response ={
-        //     "total": 1,
-        //     "rows": [
-        //         {
-        //             "searchValue": null,
-        //             "createBy": "",
-        //             "createTime": "2021-10-26 08:41:43",
-        //             "updateBy": "",
-        //             "updateTime": "2021-11-04 08:39:44",
-        //             "remark": "",
-        //             "params": {},
-        //             "id": 805,
-        //             "aisDist": 0,
-        //             "aisDrt": 0,
-        //             "aisDst": "",
-        //             "aisMmsi": 413793209,
-        //             "aisShipLen": 60,
-        //             "aisShipName": "宇坤668",
-        //             "shipRegionType": "0",
-        //             "orgName": null,
-        //             "aisShipSpd": 4.2,
-        //             "aisShipType": "货船",
-        //             "aisShipWidth": 13,
-        //             "isAbnormalSize": 1,
-        //             "latitude": 31.77495575,
-        //             "rcgSoot": 1,
-        //             "lockSeq": 1,
-        //             "longitude": 120.96312714,
-        //             "rcgCargoType": "",
-        //             "rcgDeadweightTon": 0,
-        //             "rcgDist": 0,
-        //             "rcgDrt": 0,
-        //             "rcgIsFleet": 0,
-        //             "rcgLoadSts": "UNKNOWN",
-        //             "rcgShipHeightAboveWater": 4.7,
-        //             "rcgShipLen": 53.7,
-        //             "rcgShipName": "皖振远2198",
-        //             "rcgShipSpd": -3.9,
-        //             "rcgShipType": "内河船",
-        //             "rcgShipWidth": null,
-        //             "regportName": "蚌埠",
-        //             "snapImPath": "D:/ShipIm/常电煤码头/2021/10/21/AisOn/昼间_084117_413793209_宇坤668_L53.7W13.0_V2.1mps_RcgName宇坤668",
-        //             "snapPos": "常电煤码头",
-        //             "snapTime": "2021/10/26 08:41:43",
-        //             "snapTimeFmt": "2021-10-26 08:41:43",
-        //             "status": "ENABLED",
-        //             "textFeatureLabel": "{\"name\": null, \"label\": null, \"points\": [1740.0, 697.0, 1965.0, 750.0], \"feature\": \"text\"}",
-        //             "textImgUrl": "/shipface/static/snap/常电煤码头/2021/10/21/AisOn/昼间_084117_413793209_宇坤668_L53.7W13.0_V2.1mps_RcgName宇坤668/Z0_C1_细节_长焦_高速枪2134-03_fp0.0_vpr-10000.0_hm5.00_ym143.75_roi929_114_4095_845.jpg",
-        //             "rcgShipTypeDetail": "",
-        //             "useWarn": null,
-        //             "warnLabelList": "[]",
-        //             "qrcode": "",
-        //             "shipNameDirection": "",
-        //             "shipNameValid": "皖振远2198",
-        //             "sootFeatureLabel": "{\"name\": null, \"label\": null, \"points\": [1277.0, 283.0, 1552.0, 358.0], \"feature\": \"soot\"}",
-        //             "sootImgUrl": "http://198.17.23.29:8091/shipface/static/snap/常电煤码头/2021/10/21/AisOn/昼间_084117_413793209_宇坤668_L53.7W13.0_V2.1mps_RcgName宇坤668\\Z0_C1_细节_长焦_高速枪2134-04_fp0.0_vpr-10000.0_hm5.00_ym143.75_roi929_114_4095_845.jpg",
-        //             "allImgUrl": "[http://198.17.23.29:8091/shipface/static/snap/常电煤码头/2021/10/21/AisOn/昼间_084117_413793209_宇坤668_L53.7W13.0_V2.1mps_RcgName宇坤668/Z0_C1_细节_长焦_高速枪2134-01_fp0.0_vpr-10000.0_hm5.00_ym132.69_roi929_114_4095_845.jpg, http://198.17.23.29:8091/shipface/static/snap/常电煤码头/2021/10/21/AisOn/昼间_084117_413793209_宇坤668_L53.7W13.0_V2.1mps_RcgName宇坤668/Z0_C1_细节_长焦_高速枪2134-02_fp0.0_vpr-10000.0_hm5.00_ym143.75_roi929_114_4095_845.jpg]",
-        //             "illegalStatus": 3,
-        //             "uploadFlag": 1,
-        //             "shipName": "宇坤668",
-        //             "monitorPointName": "常电煤码头",
-        //             "mmsi": "413793209"
-        //         }
-        //     ],
-        //     "code": 200,
-        //     "msg": "查询成功"
-        // }
         for (var index in response.rows) {
           if (response.rows[index].allImgUrl != null) {
-            response.rows[index].allImgUrl = response.rows[index].allImgUrl.replace('[', '').replace(']', '').split(',')
+            const split = response.rows[index].allImgUrl.replace('[', '').replace(']', '').split(',');
+            response.rows[index].allImgUrl = split.concat(response.rows[index].sootImgUrl);
           }
         }
         // console.log(response);