소스 검색

电子证照查询bug修改

psj 1 년 전
부모
커밋
08ee6a55f5
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/views/electricCard/ElectricCard.vue

+ 6 - 6
src/views/electricCard/ElectricCard.vue

@@ -390,12 +390,13 @@ export default {
       });
       return promise; //通过返回一个promis对象解决
     },
-    getlastDate(){
+    getlastDate(type){
       this.$request({
         url:'/ywtb/selectMaxLicenseDate',
         method:'post',
         data:{
-          "appkey":localStorage.getItem("ywtb_userkeycode")
+          "appkey":localStorage.getItem("ywtb_userkeycode"),
+          "type": type == '3' ? '' : type
         }
       }).then(response => {
         var dataArr = response.data.msg[0].Rows[0];
@@ -405,7 +406,6 @@ export default {
       })
     },
     showDetail(data){
-      console.log(data);
       this.searchDate =data.time;
       this.isModelShow = true;
     },
@@ -562,11 +562,11 @@ export default {
       if(code =='3'){
         this.tableHeader =this.electricTableHeader;
         this.hasOperation= true;
-        this.getlastDate();
+        this.getlastDate(code);
       }else if(code =='1'||code=='2'){
         this.hasOperation= false;
-        this.tableHeader =this.electricSevenTableHeader;
-        this.getlastDate();
+        this.tableHeader = JSON.parse(JSON.stringify(this.electricSevenTableHeader));
+        this.getlastDate(code);
       }else{
         this.hasOperation= false;
         this.tableHeader =this.electricYearTableHeader;