Răsfoiți Sursa

低版本浏览器兼容

高雄 1 an în urmă
părinte
comite
19343ac798
2 a modificat fișierele cu 9 adăugiri și 4 ștergeri
  1. 4 1
      src/utils/globalMixins.js
  2. 5 3
      src/views/menu/problemItem/index.vue

+ 4 - 1
src/utils/globalMixins.js

@@ -40,7 +40,10 @@ export default {
         return v.key === key
       })
       console.log(item, 'item')
-      return item.value
+      if(item){
+        return item.value
+      }
+      return null
     },
     /** 获取字典值
      * key: String 查询具体值

+ 5 - 3
src/views/menu/problemItem/index.vue

@@ -13,7 +13,7 @@
           v-model="query.status"
           :data-list="getDictItem('app_question_status')"
           @change="refreshData"/>
-        <date-cell title="整改日期"  v-model="query.reformDate" @change="refreshData"/>
+        <date-cell title="截止日期"  v-model="query.reformDate" @change="refreshData"/>
       </div>
       <div class="card-list">
         <Scroll
@@ -185,7 +185,6 @@ export default {
     },
     //获取数据列表
     getDataList(){
-      console.log('233333')
       //if(!this.query.orgId) return this.$toast('请选择机构');
       if( this.dataList.length !== 0 && this.dataList.length >= this.total) {
         this.pullup = false;
@@ -208,7 +207,10 @@ export default {
           this.query.pageNum++;
           this.$refs.Scroll.refresh();
         }
-      })
+      });
+      setTimeout(() => {
+        this.query.orgId = this.orgId;
+      }, 200);
     },
     clickItem(id,type){
       this.$router.push({