Commit bb323292 authored by ztf's avatar ztf

评审意见与文档的link删除

parent 852cdb2d
......@@ -15,7 +15,7 @@
</template>
<div v-for="(item) in doclinkList" :key="item.id" class="docInfo">
<span class="remove" @click="removeFile(item)">删除</span>
<span class="name" @click="gotoFileDetail(item)"> {{ item.name }}-{{ item.number }}</span>
<span class="name" @click="gotoFileDetail(item.target)"> {{ item.target.name }}-{{ item.target.number }}</span>
</div>
</el-popover>
</div>
......@@ -38,7 +38,7 @@
<script>
import ExtReviewFeedDocumentLinkAdd from '../ExtReviewFeedDocumentLinkAdd/index.vue'
import { post } from '@/utils/http'
import { del, post } from '@/utils/http'
export default {
name: 'SelectUpdateFile',
components: { ExtReviewFeedDocumentLinkAdd },
......@@ -117,6 +117,8 @@ export default {
this.doclinkList = res.items.content.map(item => {
return item.target
})
this.doclinkList = res.items.content
console.log('res.items.content', res.items.content)
this.ifAdd = true
console.log(' this.doclinkList', this.doclinkList)
}
......@@ -129,7 +131,7 @@ export default {
})
},
removeFile(item) {
post(`/ExtReviewFeedDocumentLink/batch/${item.id}`).then(res => {
del(`/ExtReviewFeedDocumentLink/batch/${item.id}`).then(res => {
this.$utils.showMessageSuccess('删除成功')
this.getDoclinkList()
})
......
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