Commit e3c81112 authored by danfuman's avatar danfuman

修改

parent 8a089c53
......@@ -216,8 +216,8 @@
defaultValue:new Date(),
pickerValue: [],
params:{
startTime:this.formatDate(new Date()),
endTime:this.formatDate(new Date())
startTime:'',
endTime:'',
},
data:{
open:false
......
......@@ -262,7 +262,7 @@
:timeList="timeList"
v-model="queryParams2.time"
timeValue="近七天"
placeholder="中标日期"
:placeholder="timePlaceholder"
@handle-search="changeSelect3"/>
</el-form-item>
</el-form>
......@@ -670,7 +670,7 @@ export default {
provinceId:'',
projects:[],
amount:'',
time:'',
time:[this.formatDate(new Date(new Date().getTime() - 3600 * 1000 * 24 * 7)),this.formatDate(new Date())],
pageNum:1,
pageSize:10
},
......@@ -686,6 +686,7 @@ export default {
dxmzbState:true,
zhaobiaoIsSkeleton:true,
placeholder:'中标金额',
timePlaceholder:'中标日期',
show_page:true,
MaxPage:500,
};
......@@ -1303,10 +1304,12 @@ export default {
if(this.activeName === 'first'){
this.getBigWinningBidsPage()
this.placeholder='中标金额'
this.timePlaceholder='中标日期'
}
if(this.activeName === 'second'){
this.getBigBidPage()
this.placeholder='总投资'
this.timePlaceholder='发布日期'
}
},
handleClickTab1(){},
......@@ -1417,6 +1420,14 @@ export default {
}
}
},
// 时间格式化
formatDate(timeStr) {
let date = new Date(Number(timeStr))
let year = date.getFullYear()
let month = String(date.getMonth() + 1).padStart(2, 0)
let day = String(date.getDate()).padStart(2, 0)
return `${year}-${month}-${day}`
},
}
};
</script>
......
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