Explorar o código

自测问题修复

zhangdan %!s(int64=4) %!d(string=hai) anos
pai
achega
f9a3357eaf

+ 1 - 1
src/views/cleanManage/cleanDetail.vue

@@ -230,7 +230,7 @@ export default {
         endDate: null // 结束时间
       }
       this.time = []
-      this.$refs.table.refresh(true)
+      this.refresh()
     },
     // 查看清运详情
     handleDetail (record) {

+ 0 - 1
src/views/cleanManage/netWorkCleanModal.vue

@@ -61,7 +61,6 @@ export default {
           searchDateModal.endDate = null
         }
         const searchData = Object.assign(parameter, { stationNo: this.stationNo }, { beginDate: searchDateModal.beginDate }, { endDate: searchDateModal.endDate })
-        console.log(searchData, '----------详情参数')
         return networkDetail(searchData).then(res => {
           if (res.status == 200) {
             const no = (res.data.pageNo - 1) * res.data.pageSize

+ 11 - 3
src/views/cleanManage/netWorkCleanRecord.vue

@@ -36,7 +36,7 @@
             </a-form-model-item>
           </a-col>
           <a-col :xs="24" :sm="12" :md="6" :lg="5">
-            <a-button type="primary" @click="refresh" id="netWorkCleanRecord-refresh" style="margin: 4px 10px 0 20px">查询</a-button>
+            <a-button type="primary" @click="refreshSearch" id="netWorkCleanRecord-refresh" style="margin: 4px 10px 0 20px">查询</a-button>
             <a-button type="" @click="reset" id="netWorkCleanRecord-reset" style="margin-top: 4px">重置</a-button>
           </a-col>
         </a-row>
@@ -186,10 +186,18 @@ export default {
       })
     },
     // 查询
-    refresh () {
+    refreshSearch () {
       this.$refs.table.refresh(true)
       this.getTotal()
     },
+    // 刷新列表
+    // refreshTable () {
+    //   if (this.itemStationNo && this.time) {
+    //     this.$refs.table.refresh()
+    //   } else {
+    //     this.$refs.table.refresh(true)
+    //   }
+    // },
     // 重置
     reset () {
       this.queryParam = {
@@ -201,7 +209,7 @@ export default {
         moment(getDate.getRecentday().starttime, 'YYYY-MM-DD 00:00:00'),
         moment(getDate.getRecentday().endtime, 'YYYY-MM-DD 23:59:59')
       ]
-      this.$refs.table.refresh(true)
+      this.refreshSearch()
     },
     // 查看清运详情
     handleDetail (record) {

+ 3 - 2
src/views/cleanManage/notCleanNetwork.vue

@@ -197,7 +197,7 @@ export default {
       recyclable: '', //  可回收物总计
       queryParam: {
         srcDeviceCode: undefined, // 设备编号
-        stationName: '', // 网点名称
+        stationNo: undefined, // 网点名称
         orderType: 'max', // 排序规则
         beginDate: null, // 开始时间
         endDate: null, // 结束时间
@@ -461,7 +461,7 @@ export default {
     // 重置
     reset () {
       this.queryParam.srcDeviceCode = undefined
-      this.queryParam.stationName = ''
+      this.queryParam.stationNo = undefined
       this.queryParam.orderType = ''
       this.queryParam.beginDate = null
       this.queryParam.endDate = null
@@ -469,6 +469,7 @@ export default {
       this.queryParam.cityCode = undefined
       this.queryParam.districtCode = undefined
       this.time = []
+	  this.$refs.table.refresh(true)
     },
     // 查看清运详情
     handleDetail (record) {