教代会意见模块->承办答复 页面初始化查询数据有误
This commit is contained in:
+6
-6
@@ -202,21 +202,21 @@ layout("/layouts/platform.html"){
|
||||
this.doSearch()
|
||||
},
|
||||
|
||||
// 查询开启的教代会
|
||||
// 默认届次确定后再查询列表,避免无届次请求覆盖带届次的查询结果。
|
||||
listOpenSession() {
|
||||
this.$axios.post("/platform/opinion/common/listOpenSession").then((res) => {
|
||||
return this.$axios.post("/platform/opinion/common/listOpenSession").then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.sessionOptions = res.data
|
||||
if (this.sessionOptions) {
|
||||
this.$set(this, "sessionOptions", res.data || [])
|
||||
if (this.sessionOptions.length > 0) {
|
||||
this.$set(this.pageForm, "sessionId", this.sessionOptions[0].id)
|
||||
this.pageData()
|
||||
}
|
||||
// 无开启届次时仍按当前用户查询,由后端限定为有效的意见任务。
|
||||
this.pageData()
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.pageData()
|
||||
this.listOpenSession()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user