This commit is contained in:
parent
e06831af01
commit
5a1dd7ad30
|
@ -180,7 +180,7 @@ function getRequest(options,apiurl) {
|
|||
return request({
|
||||
url: apiurl,
|
||||
method: 'post',
|
||||
data: {dict_code:Array.isArray(dictType)?dictType:[dictType]}
|
||||
data: {dict_code:Array.isArray(options)?dictType:[options]}
|
||||
})
|
||||
}else{
|
||||
return getDicts(options);
|
||||
|
|
6
index.js
6
index.js
|
@ -50,9 +50,9 @@ const install = function (Vue) {
|
|||
labelField: 'dictLabel',
|
||||
valueField: 'dictValue',
|
||||
//这个函数用来请求数据字典的数据,调用 getDicts() 函数,并使用传入的 dictMeta.type 来获取相应类型的数据字典
|
||||
request(dictMeta) {
|
||||
return getDicts(dictMeta.type).then(res => res.datas)
|
||||
},
|
||||
// request(dictMeta) {
|
||||
// return getDicts(dictMeta.type).then(res => res.datas)
|
||||
// },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "erp-element-ui",
|
||||
"version": "1.0.38",
|
||||
"version": "1.0.39",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue