字典接口

This commit is contained in:
仲么了
2023-04-04 09:14:20 +08:00
parent feb7d7b6ed
commit 06d06df88b
4 changed files with 33 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ import ZhuanZhi from "./comp/indexZhuanZhi.vue";
import YouKe from "./comp/indexYouKe.vue";
import list from '../../common/js/list'
import { getProjectList } from '../../common/api/project'
import { queryDictData } from '../../common/api/dictionary'
export default {
mixins: [list],
components: {
@@ -177,6 +178,7 @@ export default {
console.log(this.store);
}
this.getProjectList()
this.queryDictData()
},
getProjectList() {
getProjectList({
@@ -194,7 +196,20 @@ export default {
}
})]
})
}
},
queryDictData() {
queryDictData('projectType').then(res => {
this.projectType = [{
text: '全部类型',
value: ''
}, ...res.data.map(item => {
return {
text: item.anotherName,
value: item.id
}
})]
})
},
},
onLoad(options) {
this.init()