Commit 43d97e64 authored by 华国豪's avatar 华国豪 🙄

计划管理计划日期格式化

parent a6fec40d
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<em>计划日期</em> <em>计划日期</em>
<el-date-picker <el-date-picker
v-model="msg.timeRange" v-model="msg.timeRange"
value-format="yyyy-MM-dd"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
...@@ -290,6 +291,7 @@ export default { ...@@ -290,6 +291,7 @@ export default {
getList() { getList() {
//获取数据 //获取数据
this.loading = true; this.loading = true;
console.log(this.msg.timeRange)
if(this.msg.timeRange && this.msg.timeRange.length==2){ if(this.msg.timeRange && this.msg.timeRange.length==2){
this.msg.bt=this.msg.timeRange[0]; this.msg.bt=this.msg.timeRange[0];
this.msg.et=this.msg.timeRange[1]; this.msg.et=this.msg.timeRange[1];
......
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