Commit 1800e944 authored by Damon's avatar Damon

Merge branch 'dev-v1.0.0' of git.banshouhui.com:wuzhenzhe/study into dev-v1.0.0

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