离校名单管理
diff --git a/leave-school-vue/src/mock/dictionary.js b/leave-school-vue/src/mock/dictionary.js
index 10aa7c3..c8cf08b 100644
--- a/leave-school-vue/src/mock/dictionary.js
+++ b/leave-school-vue/src/mock/dictionary.js
@@ -13,12 +13,12 @@
}]
const dicList = [{
'id': '1',
- 'type': 'lbm',
+ 'type': 'classCode',
'name': '院系'
},
{
'id': '2',
- 'type': 'lbm',
+ 'type': 'classCode',
'name': '部门'
},
{
@@ -172,9 +172,15 @@
}
},
getDicList: config => {
- const { type } = param2Obj(config.url)
+ let dictype = ''
+ if (config.type) {
+ dictype = config.type
+ } else {
+ const { type } = param2Obj(config.url)
+ dictype = type
+ }
const mockList = dicList.filter(item => {
- if (type && item.type !== type) return false
+ if (dictype && item.type !== dictype) return false
return true
})