chenrui  2 年之前
父節點
當前提交
c383602090

+ 0 - 1
src/views/securityCheck/components/graphicHome.vue

@@ -53,7 +53,6 @@ export default {
         myChart.resize();
       };
       myChart.on("click", (a, b) => {
-        console.log(a);
         let obj = {
           namefa: a.seriesName,
           namech: a.name,

+ 0 - 1
src/views/securityCheck/components/graphicHomecopy1.vue

@@ -33,7 +33,6 @@ export default {
   // },
   methods: {
     init() {
-      console.log(this.texter);
       let myChart = this.$echarts.init(
         document.getElementById(`chart_${this.id}`)
       ); //统计折线

+ 0 - 1
src/views/securityCheck/components/securityCheckHeader.vue

@@ -340,7 +340,6 @@ export default {
     if (Object.keys(this.$route.query).length == 0) {
       this.formData.dateRangeRadio = "当日";
     } else {
-      console.log(this.$route.query);
       this.formData.beginDate = this.$route.query.startTime;
       this.formData.endDate = this.$route.query.endTime;
       if (this.$route.query.beginDate) {

+ 3 - 3
src/views/securityCheck/components/securityCheckTable.vue

@@ -167,13 +167,13 @@ export default {
       }
     },
     editRow(row) {
-      console.log("edit");
+      // console.log("edit");
     },
     deleteRow(row) {
-      console.log("delete");
+      // console.log("delete");
     },
     clickHandler(index) {
-      console.log(index);
+      // console.log(index);
     },
     handleTableChange(pagination, filters, sorter) {
       this.$emit("handleTableChange", pagination);

+ 42 - 46
src/views/securityCheck/components/securityCheckTableWaybill.vue

@@ -25,14 +25,10 @@
         slot-scope="text, record"
       >
         <div class="column-operate">
-          <span
-            class="cell-operate-edit"
-            @click="editRow(record)"
-          >修改</span>
-          <span
-            class="cell-operate-delete"
-            @click="deleteRow(record)"
-          >删除</span>
+          <span class="cell-operate-edit" @click="editRow(record)">修改</span>
+          <span class="cell-operate-delete" @click="deleteRow(record)"
+            >删除</span
+          >
         </div>
       </template>
     </a-table>
@@ -41,103 +37,103 @@
 
 <script>
 export default {
-  name: 'SecurityCheckTable',
+  name: "SecurityCheckTable",
   props: {
     height: {
       type: [Number, String],
-      default: '50vh'
+      default: "50vh",
     },
     tableCols: {
       type: Array,
-      default: () => []
+      default: () => [],
     },
     tableData: {
       type: Array,
-      default: () => []
+      default: () => [],
     },
     rowKey: {
       type: String,
-      default: 'key'
+      default: "key",
     },
     withSelection: {
       type: Boolean,
-      default: false
+      default: false,
     },
     loading: {
       type: Boolean,
-      default: false
+      default: false,
     },
     showSummary: {
       type: Boolean,
-      default: false
+      default: false,
     },
     pagination: {
       type: Object,
-      default: null
-    }
+      default: null,
+    },
   },
   data() {
     return {
-      selectedRowKeys: []
-    }
+      selectedRowKeys: [],
+    };
   },
   computed: {
     columns() {
       function setClickHandler(columns) {
-        return columns.map(col => {
+        return columns.map((col) => {
           if (col.clickHandler) {
             col.customCell = (row, rowIndex) => {
               return {
-                class: 'cell-click',
+                class: "cell-click",
                 on: {
                   click: () => {
-                    col.clickHandler(row, rowIndex)
-                  }
-                }
-              }
-            }
+                    col.clickHandler(row, rowIndex);
+                  },
+                },
+              };
+            };
           }
           if (col.children) {
-            setClickHandler(col.children)
+            setClickHandler(col.children);
           }
-          return col
-        })
+          return col;
+        });
       }
-      return setClickHandler(this.tableCols)
+      return setClickHandler(this.tableCols);
     },
     tableWrapperHeight() {
-      return typeof this.height === 'number' ? this.height + 'px' : this.height
+      return typeof this.height === "number" ? this.height + "px" : this.height;
     },
     withOperateColumn() {
-      return this.columns.find(col => col.dataIndex === 'operation')
-    }
+      return this.columns.find((col) => col.dataIndex === "operation");
+    },
   },
   methods: {
     onSelectChange(selectedRowKeys, selectedRows) {
       // console.log(selectedRowKeys)
-      this.selectedRowKeys = selectedRowKeys
+      this.selectedRowKeys = selectedRowKeys;
     },
     rowClassName(index) {
       if (index.index % 2 == 0) {
-        return 'warning-row'
+        return "warning-row";
       } else {
-        return 'warning-rows'
+        return "warning-rows";
       }
     },
     editRow(row) {
-      console.log('edit')
+      // console.log('edit')
     },
     deleteRow(row) {
-      console.log('delete')
+      // console.log('delete')
     },
     clickHandler(index) {
-      console.log(index)
+      // console.log(index)
     },
     handleTableChange(pagination, filters, sorter) {
-      this.$emit('handleTableChange', pagination)
-    }
-  }
-}
+      this.$emit("handleTableChange", pagination);
+    },
+  },
+};
 </script>
 
 <style lang="scss" scoped>
@@ -151,7 +147,7 @@ export default {
       }
       .ant-table-column-title {
         font-size: 14px;
-        font-family: Helvetica, 'Microsoft YaHei';
+        font-family: Helvetica, "Microsoft YaHei";
         color: #101116;
         font-weight: bold;
       }
@@ -167,7 +163,7 @@ export default {
       }
       td {
         font-size: 14px;
-        font-family: Helvetica, 'Microsoft YaHei';
+        font-family: Helvetica, "Microsoft YaHei";
         color: #101116;
         &.cell-click {
           color: #2d67e3;

+ 0 - 3
src/views/securityCheck/views/cargoRelevanceTable.vue

@@ -47,7 +47,6 @@ export default {
           key: "count",
           title: "总件数",
           clickHandler: (row, rowIndex) => {
-            console.log(row);
             this.$router.push({
               path: "/waybillTable",
               query: {
@@ -332,7 +331,6 @@ export default {
               });
             }
           }
-          console.log(this.tableCols, "11111111");
           let count = [];
           let highRiskcount = [];
           let lowRiskCount = [];
@@ -378,7 +376,6 @@ export default {
       });
     },
     searchHandler(arr) {
-      console.log(arr);
       if (typeof arr[1] == "string" && arr[1] == "") {
         arr[1] = [];
       }

+ 2 - 3
src/views/securityCheck/views/securityChannelHome.vue

@@ -42,7 +42,7 @@ export default {
         startTime: data[0][0],
         endTime: data[0][1],
         proxyId: data[1],
-        proxyLevel: data[2]
+        proxyLevel: data[2],
       };
       this.relationDate(data);
     },
@@ -62,7 +62,7 @@ export default {
           beginDate: data[0][0],
           endDate: data[0][1],
           proxyId: data[1],
-          proxyLevel: data[2]
+          proxyLevel: data[2],
         };
         const result = await correlation(params);
         if (result.status == 200) {
@@ -91,7 +91,6 @@ export default {
           });
           this.init(arr, arrx, Low, firs, pt, strictly);
         }
-        console.log(result);
       } catch (error) {
         console.log(error);
       }