|
@@ -71,7 +71,20 @@
|
|
<el-radio v-model="item.dateType" :label="1" @input="handleSelectSystemDate($event,index)">{{$t('ETableChildren.system_date_rai')}}</el-radio>
|
|
<el-radio v-model="item.dateType" :label="1" @input="handleSelectSystemDate($event,index)">{{$t('ETableChildren.system_date_rai')}}</el-radio>
|
|
<span>{{ today }}</span>
|
|
<span>{{ today }}</span>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <!-- 固定日期 -->
|
|
|
|
+ <div class="date-type-box">
|
|
|
|
+ <el-radio v-model="item.dateType" :label="2">{{$t('Chart.option_date_type_fix')}}</el-radio>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="item.staticDate"
|
|
|
|
+ type="date"
|
|
|
|
+ format="yyyy-MM-dd"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ placeholder="请选择日期"
|
|
|
|
+ @change="handleSelectStaticDate(index)"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="item.dateType!==2">
|
|
<dateTrans v-model="item.dateTransfData" />
|
|
<dateTrans v-model="item.dateTransfData" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -122,11 +135,12 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.list = [{
|
|
this.list = [{
|
|
name: '',
|
|
name: '',
|
|
- dateType: 0,//0指标最新日期 1系统日期
|
|
|
|
|
|
+ dateType: 0,//0指标最新日期 1系统日期 2固定日期
|
|
edbType:0,
|
|
edbType:0,
|
|
selectEdbData: null,
|
|
selectEdbData: null,
|
|
MoveForward: 0,//期数前移
|
|
MoveForward: 0,//期数前移
|
|
dateTransfData: [],//日期变换数据
|
|
dateTransfData: [],//日期变换数据
|
|
|
|
+ staticDate:'',//固定日期
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -148,6 +162,7 @@ export default {
|
|
selectEdbData: null,
|
|
selectEdbData: null,
|
|
MoveForward: 0,//期数前移
|
|
MoveForward: 0,//期数前移
|
|
dateTransfData: [],//日期变换数据
|
|
dateTransfData: [],//日期变换数据
|
|
|
|
+ staticDate:'',//固定日期
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -169,6 +184,11 @@ export default {
|
|
this.list[index].name=this.today
|
|
this.list[index].name=this.today
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ handleSelectStaticDate(index){
|
|
|
|
+ if(!this.list[index].name){
|
|
|
|
+ this.list[index].name=this.list[index].staticDate
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
|
|
handleEdbTypeChange(e,index){
|
|
handleEdbTypeChange(e,index){
|
|
console.log('指标类型变化',e);
|
|
console.log('指标类型变化',e);
|
|
@@ -216,6 +236,7 @@ export default {
|
|
selectEdbData: null,
|
|
selectEdbData: null,
|
|
MoveForward: 0,//期数前移
|
|
MoveForward: 0,//期数前移
|
|
dateTransfData: [],//日期变换数据
|
|
dateTransfData: [],//日期变换数据
|
|
|
|
+ staticDate:'',//固定日期
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|