Commit 6f670224 authored by 张冬's avatar 张冬

澄清公告编辑

parent f35e9be1
......@@ -76,6 +76,16 @@ export function forwardClarify(data) {
data: data
})
}
// 修改澄清公告
export function editClarifiesNotice(data) {
return request({
url: '/tender-clarifies/edit-clarifiesNotice',
method: 'POST',
data: data
})
}
// 问题内容接口
......
......@@ -153,7 +153,8 @@ img {
background: #fff;
margin-bottom: 20px;
box-sizing: border-box;
padding: 10px
padding: 10px;
position: relative;
}
.content-head>h3 {
......
......@@ -78,6 +78,8 @@ export default {
let value = []
for (let i = 0; i < fileList.length; i++) {
let message = {}
message.name = fileList[i].name
message.url = fileList[i].url
message.fileName = fileList[i].name
message.fileUrl = fileList[i].url
message.uid=fileList[i].uid
......@@ -123,6 +125,7 @@ export default {
let objName = getFileNameUUID()
// 调用 ali-oss 中的方法
put(`${objName}${option.file.name}`, option.file).then(res => {
console.log(res)
this.fileList.push(res)
console.log(this.fileList)
this.emitInput(this.fileList)
......
......@@ -69,6 +69,8 @@ export default {
console.log(fileList)
for (let i = 0; i < fileList.length; i++) {
let message = {}
message.name = fileList[i].name
message.url = fileList[i].url
message.fileName = fileList[i].name
message.fileUrl = fileList[i].url
value.push(message)
......
......@@ -30,8 +30,15 @@
<el-button type="text" size="small" @click="handleSee(scope.row)">查看</el-button>
</div>
<div v-else>
<el-button v-if="scope.row.noticeId" type="text" size="small" @click="handleSee(scope.row)">查看</el-button>
<el-button v-else type="text" size="small" @click="handleReply(scope.row)">回复</el-button>
<div v-if="scope.row.status == 2">
<el-button type="text" size="small" @click="edit(scope.row.noticeId)">修改</el-button>
</div>
<div v-else>
<el-button v-if="scope.row.noticeId" type="text" size="small" @click="handleSee(scope.row)"
>查看</el-button
>
<el-button v-else type="text" size="small" @click="handleReply(scope.row)">回复</el-button>
</div>
</div>
</template>
</el-table-column>
......@@ -130,12 +137,16 @@ export default {
this.pageObj1.companyId = localStorage.getItem('companyId');
},
methods: {
back() {
back() {
this.$router.go(-1);
},
getIndex(value) {
this.idx = value;
},
//修改
edit(noticeId){
this.$router.push(`/purchaser/bid/bidStage/clearManagement/propose?type=1&noticeId=${noticeId}`);
},
// 提出
propose() {
this.$router.push('/purchaser/bid/bidStage/clearManagement/propose');
......
......@@ -18,12 +18,13 @@
</div>
<div v-if="question.accessoryList" class="flex-item">
<div>澄清问题附件:</div>
<ul>
<ul v-if="question.accessoryList!==undefined && question.accessoryList.length>0">
<li v-for="(item,index) in question.accessoryList" :key="index">
<span>{{ item.fileName }}</span>
<el-button @click="download(item.accessoryUrl)">下载</el-button>
</li>
</ul>
<div v-else></div>
</div>
</div>
<h3 class="title">澄清内容</h3>
......@@ -37,14 +38,15 @@
<div>公告发布媒体:</div>
<div>捷安采官网招投标专区</div>
</div>
<div v-if="clarifies.accessoryList" class="flex-item">
<div class="flex-item">
<div>澄清问题附件:</div>
<ul>
<li v-for="(item,index) in clarifies.accessoryList" :key="index">
<ul v-if="clarifies.fileList!==undefined && clarifies.fileList.length>0">
<li v-for="(item,index) in clarifies.fileList" :key="index">
<span>{{ item.fileName }}</span>
<el-button @click="download(item.accessoryUrl)">下载</el-button>
<el-button @click="download(item.fileUrl)">下载</el-button>
</li>
</ul>
<div v-else></div>
</div>
<div class="clear-item flex-item">
<div>回复内容:</div>
......
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