Commit 213e1cad authored by Facius's avatar Facius

fix: 【ID1001303】 【小程序-首页-已选题库页面】:题库缺少试题数量;improvement: 获取省份接口修改

parent c644d949
...@@ -21,8 +21,8 @@ let learnApiFun = function(vm) { ...@@ -21,8 +21,8 @@ let learnApiFun = function(vm) {
) )
// 查询省份列表 // 查询省份列表
let getProvinceList = async (params = {}) => let getProvinceList = async (subjectId) =>
await vm.$u.get('/rest/question/getProvinceList', params) await vm.$u.get('/rest/question/getProvinceList' + subjectId)
// 学生查询题库首页 // 学生查询题库首页
let queryMyQuestionWarehouseDetail = async (questionWarehouseId) => let queryMyQuestionWarehouseDetail = async (questionWarehouseId) =>
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
onLoad(e) { onLoad(e) {
this.getPageInfo() this.getPageInfo()
this.getLocation() this.getLocation()
this.getProvinceList() this.getProvinceList(this.questionWarehouseId)
}, },
methods: { methods: {
handleClickArea() { handleClickArea() {
...@@ -228,8 +228,8 @@ export default { ...@@ -228,8 +228,8 @@ export default {
this.showPop = true this.showPop = true
}, },
// 获取省份列表 // 获取省份列表
async getProvinceList() { async getProvinceList(questionWarehouseId) {
let res = await this.$u.api.getProvinceList() let res = await this.$u.api.getProvinceList(questionWarehouseId)
console.log(res) console.log(res)
this.range = res this.range = res
}, },
......
...@@ -91,6 +91,11 @@ export default { ...@@ -91,6 +91,11 @@ export default {
.getMyQuestionWarehouseList(param) .getMyQuestionWarehouseList(param)
.then((res) => { .then((res) => {
this.loading = false this.loading = false
for (var item of res) {
if (item && item.echoMap && item.echoMap.questionWarehouseId) {
item.echoMap.questionWarehouseId.number = item.number
}
}
this.list = res this.list = res
}) })
.catch((err) => { .catch((err) => {
......
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