yunxing преди 4 години
родител
ревизия
adf9f4b8ca
променени са 1 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 7 6
      src/views/otherMatter/ComprehensiveMatter.vue

+ 7 - 6
src/views/otherMatter/ComprehensiveMatter.vue

@@ -193,7 +193,6 @@ export default {
             }
         },
         async onLoad() {
-            console.log('onload')
             // 防止第一页没有数据,接着查询第二页
             if (this.page > 1 && this.count === 0) {
                 return true
@@ -227,7 +226,7 @@ export default {
          * 点击其他右侧上下箭头,显隐其他部门
          */
         changeOtherShowStatus(item) {
-            console.log(item)
+            // console.log(item)
             if (item.showOther) {
                 item.showOther = false
                 item.arrowDirection = 'down'
@@ -241,19 +240,21 @@ export default {
          *  @param { Number } 1:政府部门 2:其他部门
          */
         goToMattersFetail(data, type) {
-            console.log(data)
+            // console.log(data)
             let { department, otherdescription, cnt } = data
             let params = {
-                type,
-                department,
-                size: cnt,
+                type, //部门类型
+                department, //部门名称
+                size: cnt, //分页,按照cnt(count)字段
                 startDate: this.createdateStartDate,
                 endDate: this.createdateEndDate,
             }
+            // 全部时,不传时间字段
             if (this.active === 3) {
                 delete params.startDate
                 delete params.endDate
             }
+            // 其他部门,传递 其他部门说明字段
             type == 2 && (params.otherdescription = otherdescription)
             this.$router.push({ name: 'ComprehensiveMatterList', params })
         },