Commit da127d7b authored by youjie's avatar youjie

no message

parent b3770489
......@@ -1571,7 +1571,12 @@ export default {
mounted() {
let StartDate = this.getBeforeDate(186,new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1,new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate,EndDate]
if(this.active==2){
this.productionDate = [StartDate,EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
}
this.GetAuth();
this.getCostTypeList();
let userInfo = this.getLocalStorage();
......@@ -2141,6 +2146,17 @@ export default {
// 切换table栏
getActive(active,Conditon,BOSSBtn){
this.active = active
if(this.active==2){
let StartDate = this.getBeforeDate(186,new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1,new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate,EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
}else{
this.productionDate = []
this.msg.sDate = '';
this.msg.eDate = '';
}
this.msg.Conditon = Conditon
if(BOSSBtn){
this.BOSSBtn = false
......
......@@ -342,7 +342,7 @@ export default {
}
}
// 我的财务单防止多次请求导致数据混乱
if (isTerminate > 0) {
if (isTerminate > 1) {
this.$http.interceptors.request.use(config => {
removePending(config); //在一个axios发送前执行一下取消操作
config.cancelToken = new cancelToken((c) => {
......
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