Kaynağa Gözat

完善计量的功能

hfxc226 2 yıl önce
ebeveyn
işleme
c2fd9d1c36

+ 0 - 6
src/views/sb/info/MeasureSbInfo.vue

@@ -8,12 +8,6 @@ export default {
   name: 'MySbInfo',
   components: {
     SbInfo
-  },
-  props: {
-    type: {
-      type: Number,
-      default: 1
-    }
   }
 }
 </script>

+ 11 - 4
src/views/sb/measurelog/MeasureLog.vue

@@ -119,13 +119,18 @@ export default {
     Detail
   },
   props: {
+    type: {
+      type: Number,
+      default: 1
+    }
   },
   data () {
     return {
       // 查询参数
       queryParam: {
         searchStartTime: null,
-        searchEndTime: null
+        searchEndTime: null,
+        type: this.type
       },
       // 表头
       columns: [
@@ -286,11 +291,11 @@ export default {
         modal.base(res.data)
       })
     },
-   /* handleCopy (record) {
+    /* handleCopy (record) {
       const modal = this.$refs.baseModal
       res.data.id = null
       modal.base(res.record)
-    },*/
+    }, */
     handleOk () {
       this.queryParam.searchStartTime = this.queryParam.searchStartTime ? this.BaseTool.Date.formatter(this.queryParam.searchStartTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) : null
       this.queryParam.searchEndTime = this.queryParam.searchEndTime ? this.BaseTool.Date.formatter(this.queryParam.searchEndTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) : null
@@ -301,7 +306,9 @@ export default {
       this.selectedRows = selectedRows
     },
     resetSearchForm () {
-      this.queryParam = {}
+      this.queryParam = {
+        type: this.type
+      }
       this.$refs.table.refresh(true)
     },
     doExport () {