haiwei-module-admin 1.1.8 → 1.1.9

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.1.8",
5
+ "version": "1.1.9",
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.4.0"
22
+ "haiwei-ui": "^1.4.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vue/cli-plugin-babel": "^4.4.4",
@@ -24,7 +24,8 @@ export default {
24
24
  methods: {
25
25
  query() {
26
26
  const { moduleCode, enumName, libName } = this
27
- return $api.admin.tool.enumSelect({ moduleCode, enumName, libName })
27
+ // 使用缓存方法获取枚举数据
28
+ return this.getEnumData(moduleCode, enumName, libName)
28
29
  }
29
30
  }
30
31
  }
@@ -24,7 +24,8 @@ export default {
24
24
  methods: {
25
25
  query() {
26
26
  const { moduleCode, enumName, libName } = this
27
- return $api.admin.tool.enumSelect({ moduleCode, enumName, libName })
27
+ // 使用缓存方法获取枚举数据
28
+ return this.getEnumData(moduleCode, enumName, libName)
28
29
  }
29
30
  }
30
31
  }
@@ -24,7 +24,8 @@ export default {
24
24
  methods: {
25
25
  query() {
26
26
  const { moduleCode, enumName, libName } = this
27
- return $api.admin.tool.enumSelect({ moduleCode, enumName, libName })
27
+ // 使用缓存方法获取枚举数据
28
+ return this.getEnumData(moduleCode, enumName, libName)
28
29
  }
29
30
  }
30
31
  }
@@ -10,6 +10,11 @@ import { mixins } from 'haiwei-ui'
10
10
 
11
11
  export default {
12
12
  mixins: [mixins.text],
13
+ data() {
14
+ return {
15
+ action: this.query
16
+ }
17
+ },
13
18
  props: {
14
19
  /** 枚举值 */
15
20
  value: {
@@ -54,6 +59,13 @@ export default {
54
59
  default: 'small'
55
60
  }
56
61
  },
62
+ methods: {
63
+ query() {
64
+ const { moduleCode, enumName, libName } = this
65
+ // 使用缓存方法获取枚举数据
66
+ return this.getEnumData(moduleCode, enumName, libName)
67
+ }
68
+ },
57
69
  computed: {
58
70
  displayText() {
59
71
  if (this.value_ === null || this.value_ === undefined || this.value_ === '') {