This commit is contained in:
ln1778 2024-06-20 15:06:31 +08:00
parent e06831af01
commit 5a1dd7ad30
3 changed files with 5 additions and 5 deletions

View File

@ -180,7 +180,7 @@ function getRequest(options,apiurl) {
return request({ return request({
url: apiurl, url: apiurl,
method: 'post', method: 'post',
data: {dict_code:Array.isArray(dictType)?dictType:[dictType]} data: {dict_code:Array.isArray(options)?dictType:[options]}
}) })
}else{ }else{
return getDicts(options); return getDicts(options);

View File

@ -50,9 +50,9 @@ const install = function (Vue) {
labelField: 'dictLabel', labelField: 'dictLabel',
valueField: 'dictValue', valueField: 'dictValue',
//这个函数用来请求数据字典的数据,调用 getDicts() 函数,并使用传入的 dictMeta.type 来获取相应类型的数据字典 //这个函数用来请求数据字典的数据,调用 getDicts() 函数,并使用传入的 dictMeta.type 来获取相应类型的数据字典
request(dictMeta) { // request(dictMeta) {
return getDicts(dictMeta.type).then(res => res.datas) // return getDicts(dictMeta.type).then(res => res.datas)
}, // },
}, },
}, },
}) })

View File

@ -1,6 +1,6 @@
{ {
"name": "erp-element-ui", "name": "erp-element-ui",
"version": "1.0.38", "version": "1.0.39",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {