From a8037b4322189a595b88220c30b2b84aa23f6910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 4 Jan 2024 10:51:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=B3=E5=B1=B1=E4=BA=A7=E4=BA=A4=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 70 ++++++++++++++++++++++++----- static/js/api/index.js | 14 ++++++ static/js/project/index.js | 61 +++++++++++++++++++++++++ view/announcement/announcement.html | 4 +- view/bidding/biddingList.html | 22 ++++----- 5 files changed, 149 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index a148571..f811309 100644 --- a/index.html +++ b/index.html @@ -184,6 +184,54 @@
+ + @@ -328,13 +376,14 @@ - + - - - - + + + + +
项目名称竞价方式竞价方式 报名截止时间 竞价开始时间标的底价当前报价竞价状态操作标的底价当前报价价格单位竞价状态操作
@@ -342,19 +391,20 @@ {{each biddingHallListList as value i}} {{value.projectName}} - {{value.biddingType}} + {{value.biddingType}} {{value.signupStopTime}} {{value.biddingStartTime}} - {{value.price}} - + {{value.price}} + {{if value.biddingType=='自由竞价'&&value.timeType=='进行中'}} * {{else}} {{value.money}} {{/if}} - {{value.projectShowStatus}} - + {{value.unit}} + {{value.projectShowStatus}} + {{if value.projectShowStatus == '正在报名'}}{{/if}} {{if value.projectShowStatus == '正在竞价'}}{{/if}} {{if value.projectShowStatus == '等待竞价'}}{{/if}} diff --git a/static/js/api/index.js b/static/js/api/index.js index 6b36922..fa0bab9 100644 --- a/static/js/api/index.js +++ b/static/js/api/index.js @@ -157,3 +157,17 @@ var itemsList = '/transaction/website/outproject/list' projectNumber:项目类型字典value值(下拉框选择) */ var needProjectList = '/transaction/website/needproject/list' + +/* +@purl /transaction/website/tender/publicity/{deptId} +@param + deptId:行政区划部门ID +*/ +var tenderList = '/transaction/website/tender/publicity'//招标公告列表 + +/* +@purl /transaction/website/win/publicity/{deptId} +@param + deptId:行政区划部门ID +*/ +var winList = '/transaction/website/win/publicity'//中标公告列表 diff --git a/static/js/project/index.js b/static/js/project/index.js index 4222663..0a3ad44 100644 --- a/static/js/project/index.js +++ b/static/js/project/index.js @@ -181,6 +181,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa //土地挂牌价格走势统计图 // tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true); + tools.doGet(tenderList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.inviteTendersInformation,true); + tools.doGet(winList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.winTheBiddingInformation,true); + //竞价大厅-滚动 module.hallRolling(); setTimeout(function(){ @@ -190,6 +193,60 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa }; + //招标公告数据 + module.inviteTendersInformation = function (data) { + if (data.code == 200) { + var content = data.rows; + var pageCount = (data.total/module.data.pageSize).toFixed(0); + if (pageCount < 1){ + pageCount = 1; + } + if(module.data.inviteTendersInformationList == ''){ + // 初始化 分页器 + var page_s1=createPage('.page_s3'); + // 设置分页 + setPage(page_s1,{ + pageTotal: data.toqtal, // 数据总条数 + pageSize: module.data.pageSize, // 每页显示条数 + pageCurrent: 1, // 当前页 + maxBtnNum: 5, // 最多按钮个数 (最少5个) + }) + $('#page_s3').html('共'+pageCount+'页') + } + module.data.pageCount = pageCount; + module.data.inviteTendersInformationList = content; + var inviteTendersInformationData = template('inviteTendersInformationData', module.data); + $("#inviteTendersInformationContent").html(inviteTendersInformationData); + } + } + + //中标公告数据 + module.winTheBiddingInformation = function (data) { + if (data.code == 200) { + var content = data.rows; + var pageCount = (data.total/module.data.pageSize).toFixed(0); + if (pageCount < 1){ + pageCount = 1; + } + if(module.data.winTheBiddingInformationList == ''){ + // 初始化 分页器 + var page_s1=createPage('.page_s4'); + // 设置分页 + setPage(page_s1,{ + pageTotal: data.total, // 数据总条数 + pageSize: module.data.pageSize, // 每页显示条数 + pageCurrent: 1, // 当前页 + maxBtnNum: 5, // 最多按钮个数 (最少5个) + }) + $('#page_s4').html('共'+pageCount+'页') + } + module.data.pageCount = pageCount; + module.data.winTheBiddingInformationList = content; + var winTheBiddingInformationData = template('winTheBiddingInformationData', module.data); + $("#winTheBiddingInformationContent").html(winTheBiddingInformationData); + } + } + //主题图片切换 module.switchTheme = function(){ if(themeColor == 'red'){ @@ -745,8 +802,12 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa document.getElementById('cjgg').style.display = 'none'; document.getElementById('jzgg').style.display = 'none'; + document.getElementById('zbgg').style.display = 'none'; + document.getElementById('zbjg').style.display = 'none'; document.getElementById('cjggBtn').className = ''; document.getElementById('jzggBtn').className = ''; + document.getElementById('zbggBtn').className = ''; + document.getElementById('zbjgBtn').className = ''; document.getElementById(type).style.display = 'block'; document.getElementById(type+'Btn').className = 'active'; diff --git a/view/announcement/announcement.html b/view/announcement/announcement.html index 50ff88c..452a31a 100644 --- a/view/announcement/announcement.html +++ b/view/announcement/announcement.html @@ -115,7 +115,7 @@
  • {{# value.projectCode}}

    {{# value.projectName}}

    -

    {{# value.dealMoneySum}}

    +

    {{# value.dealMoneySum}}{{# value.unit}}

    {{# value.dealTime.substr(0,10)}}

  • {{/each}} @@ -134,7 +134,7 @@
  • {{# value.projectCode}}

    {{# value.projectName}}

    -

    {{# value.dealMoneySum}}

    +

    {{# value.dealMoneySum}}{{# value.unitName}}

    {{# value.jzsSignDate}}

  • {{/each}} diff --git a/view/bidding/biddingList.html b/view/bidding/biddingList.html index b3dfaad..5c628c6 100644 --- a/view/bidding/biddingList.html +++ b/view/bidding/biddingList.html @@ -192,13 +192,14 @@ - + - - - - + + + + +
    项目名称竞价方式竞价方式 报名结束时间 竞价结束时间标的底价当前报价竞价状态操作标的底价当前报价价格单位竞价状态操作
    @@ -206,19 +207,20 @@ {{each biddingInformationList as value i}} {{value.projectName}} - {{value.biddingType}} + {{value.biddingType}} {{value.signupStopTime}} {{value.biddingStopTime}} - {{value.price}} - + {{value.price}} + {{if value.biddingType=='自由竞价'&&value.timeType!='已结束'}} * {{else}} {{value.money}} {{/if}} - {{value.projectShowStatus}} - + {{value.unit}} + {{value.projectShowStatus}} + {{if value.projectShowStatus == '正在报名'}}{{/if}} {{if value.projectShowStatus == '正在竞价'}}{{/if}} {{if value.projectShowStatus == '等待竞价'}}{{/if}}