haiwei-module-admin 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": 0,
|
|
3
3
|
"name": "haiwei-module-admin",
|
|
4
4
|
"code": "admin",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.2",
|
|
6
6
|
"description": "haiwei前端Admin模块组件",
|
|
7
7
|
"author": "Eric",
|
|
8
8
|
"license": "ISC",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"haiwei-skins-classics": "^1.0.7",
|
|
22
|
-
"haiwei-ui": "^1.
|
|
22
|
+
"haiwei-ui": "^1.5.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vue/cli-plugin-babel": "^4.4.4",
|
|
@@ -25,7 +25,16 @@ export default {
|
|
|
25
25
|
query() {
|
|
26
26
|
const { moduleCode, enumName, libName } = this
|
|
27
27
|
// 使用缓存方法获取枚举数据
|
|
28
|
-
|
|
28
|
+
if (this.getEnumData) {
|
|
29
|
+
return this.getEnumData(moduleCode, enumName, libName)
|
|
30
|
+
}
|
|
31
|
+
// 如果缓存方法不可用,使用原始API调用
|
|
32
|
+
// 构建请求参数,libName为空时不传递
|
|
33
|
+
const params = { moduleCode, enumName }
|
|
34
|
+
if (libName && libName.trim() !== '') {
|
|
35
|
+
params.libName = libName
|
|
36
|
+
}
|
|
37
|
+
return $api.admin.tool.enumSelect(params)
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
40
|
}
|
|
@@ -25,7 +25,16 @@ export default {
|
|
|
25
25
|
query() {
|
|
26
26
|
const { moduleCode, enumName, libName } = this
|
|
27
27
|
// 使用缓存方法获取枚举数据
|
|
28
|
-
|
|
28
|
+
if (this.getEnumData) {
|
|
29
|
+
return this.getEnumData(moduleCode, enumName, libName)
|
|
30
|
+
}
|
|
31
|
+
// 如果缓存方法不可用,使用原始API调用
|
|
32
|
+
// 构建请求参数,libName为空时不传递
|
|
33
|
+
const params = { moduleCode, enumName }
|
|
34
|
+
if (libName && libName.trim() !== '') {
|
|
35
|
+
params.libName = libName
|
|
36
|
+
}
|
|
37
|
+
return $api.admin.tool.enumSelect(params)
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
40
|
}
|
|
@@ -25,7 +25,16 @@ export default {
|
|
|
25
25
|
query() {
|
|
26
26
|
const { moduleCode, enumName, libName } = this
|
|
27
27
|
// 使用缓存方法获取枚举数据
|
|
28
|
-
|
|
28
|
+
if (this.getEnumData) {
|
|
29
|
+
return this.getEnumData(moduleCode, enumName, libName)
|
|
30
|
+
}
|
|
31
|
+
// 如果缓存方法不可用,使用原始API调用
|
|
32
|
+
// 构建请求参数,libName为空时不传递
|
|
33
|
+
const params = { moduleCode, enumName }
|
|
34
|
+
if (libName && libName.trim() !== '') {
|
|
35
|
+
params.libName = libName
|
|
36
|
+
}
|
|
37
|
+
return $api.admin.tool.enumSelect(params)
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
40
|
}
|
|
@@ -63,7 +63,16 @@ export default {
|
|
|
63
63
|
query() {
|
|
64
64
|
const { moduleCode, enumName, libName } = this
|
|
65
65
|
// 使用缓存方法获取枚举数据
|
|
66
|
-
|
|
66
|
+
if (this.getEnumData) {
|
|
67
|
+
return this.getEnumData(moduleCode, enumName, libName)
|
|
68
|
+
}
|
|
69
|
+
// 如果缓存方法不可用,使用原始API调用
|
|
70
|
+
// 构建请求参数,libName为空时不传递
|
|
71
|
+
const params = { moduleCode, enumName }
|
|
72
|
+
if (libName && libName.trim() !== '') {
|
|
73
|
+
params.libName = libName
|
|
74
|
+
}
|
|
75
|
+
return $api.admin.tool.enumSelect(params)
|
|
67
76
|
}
|
|
68
77
|
},
|
|
69
78
|
computed: {
|