Commit 7a17aed3 authored by youjie's avatar youjie

no message

parent 0a8abbc7
...@@ -356,6 +356,14 @@ export default { ...@@ -356,6 +356,14 @@ export default {
handleClick(e){ handleClick(e){
this.activeName = e._props.name this.activeName = e._props.name
if(e._props.name!='4')this.msg.Type = e._props.name if(e._props.name!='4')this.msg.Type = e._props.name
if(!this.dateTime||this.dateTime.length==0){
let sDate = moment().subtract(7, 'months').format('YYYY-MM');
let eDate = moment().subtract(1, 'months').format('YYYY-MM');
this.dateTime = [sDate,eDate]
this.msg.startDate = sDate
this.msg.endDate = eDate
}
this.getStatement() this.getStatement()
}, },
getDateTime(){ getDateTime(){
...@@ -367,8 +375,8 @@ export default { ...@@ -367,8 +375,8 @@ export default {
let eDate = moment().subtract(1, 'months').format('YYYY-MM'); let eDate = moment().subtract(1, 'months').format('YYYY-MM');
this.dateTime = [sDate,eDate] this.dateTime = [sDate,eDate]
this.msg.startDate = start this.msg.startDate = sDate
this.msg.endDate = end this.msg.endDate = eDate
} }
this.getStatement() this.getStatement()
}, },
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('OrderList.zhi')"> :range-separator="$t('OrderList.zhi')">
</el-date-picker> --> </el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="defaultMonth" @change="(startDate,endDate)=>{msg.CStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <StartDateLimit :clearable="false" :dateTime="defaultMonth" @change="(startDate,endDate)=>{defaultMonth=[startDate,endDate]}"></StartDateLimit>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
......
...@@ -80,7 +80,6 @@ ...@@ -80,7 +80,6 @@
this.CheckUserAuth(actiionContract, res => { this.CheckUserAuth(actiionContract, res => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.isQueryHistoryData = true; this.isQueryHistoryData = true;
console.log(this.isQueryHistoryData,'-----------')
} }
}); });
......
...@@ -75,7 +75,8 @@ ...@@ -75,7 +75,8 @@
handler(n,o){ handler(n,o){
this.productionDate = this.dateTime this.productionDate = this.dateTime
}, },
deep:true, deep:false,
immediate: true,
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment