Commit e3c81112 authored by danfuman's avatar danfuman

修改

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