Browse Source

产权交易问题修改

rongxin_prod
庞东旭 1 year ago
parent
commit
90e8684ab1
2 changed files with 20 additions and 12 deletions
  1. +3
    -2
      src/api/project/index.js
  2. +17
    -10
      src/views/project/projectDetail.vue

+ 3
- 2
src/api/project/index.js View File

@@ -39,10 +39,11 @@ export function getWebConfig(){
})
}
//竞价记录列表
export function getBiddingList(id){
export function getBiddingList(params){
return request({
url:'/transaction/website/biddinglist/projectId?projectId='+id,
url:'/transaction/website/biddinglist/projectId',
method:'get',
params:params
})
}
//竞价记录列表


+ 17
- 10
src/views/project/projectDetail.vue View File

@@ -287,7 +287,13 @@ export default {
timer:null,
getSignupData:'',
bottomBtn:false,
nowDate:0
delayPeriodNow:false,
nowDate:0,
biddingquery:{
projectId:this.$route.query.id,
pageSize:10,
pageNum:1
}
};
},
computed: {
@@ -423,7 +429,7 @@ export default {
var that = this;
this.timer = setInterval(function () {
if(that.process == "竞价中"){
getBiddingList(that.id).then(response =>{
getBiddingList(that.biddingquery).then(response =>{
that.biddinglistInformation = response.rows
if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){

@@ -550,7 +556,7 @@ export default {
},
getBidding(){
var that = this;
getBiddingList(that.id).then(response =>{
getBiddingList(that.biddingquery).then(response =>{
that.biddinglistInformation = response.rows
that.biddinglistInformationLength = response.total
if (that.detail.biddingType == '阶梯竞价'){
@@ -606,9 +612,9 @@ export default {
clearInterval(this.timer);
// _this.reload()
_this.getBidding();
// if (_this.detail.delayPeriod != 0){
// _this.time = null;
// }
if (_this.detail.delayPeriod != 0 && _this.delayPeriodNow){
_this.time = null;
}
if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){
_this.price = null;
}else{
@@ -722,9 +728,9 @@ export default {
clearInterval(this.timer);
// _this.reload()
_this.getBidding();
// if (_this.detail.delayPeriod != 0){
// _this.time = null;
// }
if (_this.detail.delayPeriod != 0 && _this.delayPeriodNow){
_this.time = null;
}
if (_this.detail.biddingType=='自由竞价'||_this.detail.biddingType=='公开竞价'){
_this.price = null;
}else{
@@ -910,7 +916,8 @@ export default {
this.time = null;
}
this.detail.biddingStopTime = response.data
this.$set(this.detail,'biddingStopTime',response.data)
this.$set(this.detail,'biddingStopTime',response.data);
this.delayPeriodNow = true;
// this.time = Date.parse(response.data)+0-nowDate;
});
}


Loading…
Cancel
Save