Commit 4bc68a64 authored by 吴冠's avatar 吴冠

优化中标功能模块

parent a2250777
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<dataTable :table-data="tabledata" :columns="columns" :isPageobj="false"></dataTable> <dataTable :table-data="tabledata" :columns="columns" :isPageobj="false"></dataTable>
<div class="appendix list pos" style="margin-top:300px"> <div class="appendix list pos" style="margin-top:300px">
<div>附件</div> <div>附件</div>
<a href="#" v-for="(item,i) in fileList" :key="i">{{item}}</a> <a :href="item.accessoryUrl" target="_blank" v-for="(item,i) in fileList" :key="i">{{item.fileName}}</a>
<!-- 此处放文件 --> <!-- 此处放文件 -->
</div> </div>
<h3>商务要求</h3> <h3>商务要求</h3>
......
<template> <template>
<div> <div class="home">
<div class="header"> <div class="header">
<span class="header-nav">项目名称:{{itemTitle}}</span> <span class="header-nav">项目名称:{{itemTitle}}</span>
<span class="header-nav">项目编号:{{itemCode}}</span> <span class="header-nav">项目编号:{{itemCode}}</span>
<span>发布日期:{{itemTime}}</span> <span>发布日期:{{getTimer(itemTime)}}</span>
</div> </div>
<h2>{{itemTitle}}</h2> <h2>{{itemTitle}}</h2>
<div class="form"> <div class="form" v-html="contentList">
<div> <div>
<div>公告名称:</div> <div>公告名称:</div>
<div>{{itemTime}}</div> <div>{{itemTime}}</div>
...@@ -54,6 +54,7 @@ import {getWindetails} from '@/common/list.js' ...@@ -54,6 +54,7 @@ import {getWindetails} from '@/common/list.js'
export default { export default {
data(){ data(){
return{ return{
contentList:[],
itemTitle:'定州市集中供热工程2020年预制直埋保温管及管道采购', itemTitle:'定州市集中供热工程2020年预制直埋保温管及管道采购',
itemCode:'l1301000075017553011', itemCode:'l1301000075017553011',
itemTime:'2020年07月30号', itemTime:'2020年07月30号',
...@@ -73,8 +74,22 @@ export default { ...@@ -73,8 +74,22 @@ export default {
this.getWindetails(id) this.getWindetails(id)
}, },
methods:{ methods:{
//年月日
getTimer(dateStr){
var date = new Date(dateStr);
var Month = date.getMonth() + 1;
var Day = date.getDate();
var Y = date.getFullYear() + '-';
var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day;
return Y + M + D;
},
async getWindetails(id){ async getWindetails(id){
const {data} = await getWindetails(id) const {data} = await getWindetails(id)
this.itemTitle = data.title
this.itemCode = data.projectId
this.itemTime = data.createTime
this.contentList = data.content
console.log(id) console.log(id)
}, },
}, },
...@@ -93,8 +108,12 @@ h2{ ...@@ -93,8 +108,12 @@ h2{
margin-bottom: 30px; margin-bottom: 30px;
text-align: center; text-align: center;
} }
.home{
width:9.3rem
}
.form{ .form{
margin-left:40px; margin-left:40px;
width:9.3rem
} }
.form>div{ .form>div{
display: flex; display: flex;
......
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