|
@@ -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;
|