|
@@ -10,7 +10,7 @@
|
|
:placeholder="'请选择'"
|
|
:placeholder="'请选择'"
|
|
hideClear
|
|
hideClear
|
|
/>
|
|
/>
|
|
- <div class="waitReply">待回复需求 <b v-text="pageCount">5</b> 条</div>
|
|
|
|
|
|
+ <div class="waitReply">待回复需求 <b v-text="allTodo.count">5</b> 条</div>
|
|
</div>
|
|
</div>
|
|
<div class="topRight">
|
|
<div class="topRight">
|
|
<Input placeholder="主题、编码" @clear="pressEnter" iconType="search" v-model="matchingCond" @pressEnter="pressEnter"/>
|
|
<Input placeholder="主题、编码" @clear="pressEnter" iconType="search" v-model="matchingCond" @pressEnter="pressEnter"/>
|
|
@@ -72,6 +72,10 @@ export default {
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ allTodo: {
|
|
|
|
+ data: [],
|
|
|
|
+ count: 0
|
|
|
|
+ },
|
|
handleDetail: {
|
|
handleDetail: {
|
|
user: true,
|
|
user: true,
|
|
type: '详情'
|
|
type: '详情'
|
|
@@ -187,6 +191,7 @@ export default {
|
|
async DetailConfirm (detail) {
|
|
async DetailConfirm (detail) {
|
|
await this.$axios.post(this.$api.demandAnswer, detail)
|
|
await this.$axios.post(this.$api.demandAnswer, detail)
|
|
this.getTableData()
|
|
this.getTableData()
|
|
|
|
+ this.getAllTodo()
|
|
},
|
|
},
|
|
// 触发 新增需求弹窗
|
|
// 触发 新增需求弹窗
|
|
addDemand () {
|
|
addDemand () {
|
|
@@ -329,6 +334,7 @@ export default {
|
|
]
|
|
]
|
|
}
|
|
}
|
|
this.getTableData()
|
|
this.getTableData()
|
|
|
|
+ this.getAllTodo()
|
|
},
|
|
},
|
|
// 搜索回车查询
|
|
// 搜索回车查询
|
|
pressEnter () {
|
|
pressEnter () {
|
|
@@ -383,6 +389,20 @@ export default {
|
|
this.pageCount = data.count
|
|
this.pageCount = data.count
|
|
this.tableData = this.toTableData(data.data)
|
|
this.tableData = this.toTableData(data.data)
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ // 获取全部待回复含有论证中
|
|
|
|
+ getAllTodo () {
|
|
|
|
+ this.$axios.post(this.$api.demandQueryTodo, {
|
|
|
|
+ creatorCond: 0,
|
|
|
|
+ matchingCond: '',
|
|
|
|
+ productCond: [1, 2, 3],
|
|
|
|
+ stateCond: [],
|
|
|
|
+ size: 20,
|
|
|
|
+ current: 1,
|
|
|
|
+ orders: []
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.allTodo = res.data
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -425,6 +445,7 @@ export default {
|
|
// size: 'min'
|
|
// size: 'min'
|
|
// })
|
|
// })
|
|
this.getTableData()
|
|
this.getTableData()
|
|
|
|
+ this.getAllTodo()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
beforeDestroy () {
|
|
beforeDestroy () {
|