vue2-client 1.8.83 → 1.8.85

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/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.82 - 1.8.83 -2024-3-7 @江超**
4
+ **1.8.82 - 1.8.85 -2024-3-7 @江超**
5
5
  - 删除过时组件
6
6
  - XFormItem的下拉框数据源现在支持从配置中心获取了
7
7
  - 待解决:XTable显示来自配置中心的字典徽标
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.83",
3
+ "version": "1.8.85",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -39,6 +39,17 @@ const commonApi = {
39
39
  getColumnsJson: '/api/af-system/logic/getColumns',
40
40
  }
41
41
 
42
+ /**
43
+ * 获取字典键参数
44
+ */
45
+ export function getDictionaryParam (isDev) {
46
+ let apiPre = '/api/'
47
+ if (isDev) {
48
+ apiPre = '/devApi/'
49
+ }
50
+ return post(apiPre + 'af-system/logic/getDictionaryParam', {})
51
+ }
52
+
42
53
  /**
43
54
  * 根据配置名获取配置内容
44
55
  * @param content 已有的配置内容
@@ -55,7 +66,7 @@ export function getConfig (content, configName, serviceName = process.env.VUE_AP
55
66
  if (isDev) {
56
67
  apiPre = '/devApi/'
57
68
  }
58
- const getConfigUrl = apiPre + commonApi.getConfig
69
+ const getConfigUrl = apiPre + serviceName + '/' + commonApi.getConfig
59
70
  indexedDB.getByWeb(configName, getConfigUrl, { configName: configName }, callback)
60
71
  }
61
72
 
@@ -68,7 +79,7 @@ export function getNativeConfig (configName, serviceName = process.env.VUE_APP_S
68
79
  if (isDev) {
69
80
  apiPre = '/devApi/'
70
81
  }
71
- const getConfigUrl = apiPre + commonApi.getNativeConfig
82
+ const getConfigUrl = apiPre + serviceName + '/' + commonApi.getNativeConfig
72
83
  return post(getConfigUrl, { configName: configName })
73
84
  }
74
85