vue2-client 1.8.31 → 1.8.32
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/.env +0 -1
- package/.eslintrc.js +14 -22
- package/CHANGELOG.md +0 -52
- package/babel.config.js +2 -8
- package/docs/index.md +1 -2
- package/index.js +1 -1
- package/jest.config.js +2 -20
- package/package.json +27 -36
- package/src/App.vue +7 -33
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +2 -2
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +3 -3
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +37 -32
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +12 -80
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +70 -53
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +5 -5
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +18 -19
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +8 -4
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +6 -4
- package/src/base-client/components/common/Upload/Upload.vue +1 -1
- package/src/base-client/components/common/XAddForm/XAddForm.vue +5 -21
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +53 -88
- package/src/base-client/components/common/XCard/XCard.vue +1 -1
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +2 -2
- package/src/base-client/components/common/XForm/XForm.vue +0 -2
- package/src/base-client/components/common/XFormTable/XFormTable.vue +24 -49
- package/src/base-client/components/common/XFormTable/index.md +0 -1
- package/src/base-client/components/common/XImportExcel/XImportExcel.vue +18 -17
- package/src/base-client/components/common/XTable/XTable.vue +8 -16
- package/src/base-client/components/index.js +5 -11
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +3 -4
- package/src/base-client/plugins/AppData.js +2 -1
- package/src/base-client/plugins/Config.js +1 -0
- package/src/base-client/plugins/GetLoginInfoService.js +3 -6
- package/src/base-client/plugins/tabs-page-plugin.js +4 -5
- package/src/bootstrap.js +2 -2
- package/src/components/FilePreview/FilePreview.vue +2 -2
- package/src/components/NumberInfo/NumberInfo.vue +1 -1
- package/src/components/checkbox/ColorCheckbox.vue +1 -1
- package/src/components/checkbox/ImgCheckbox.vue +2 -2
- package/src/components/menu/SideMenu.vue +2 -2
- package/src/components/menu/menu.js +1 -1
- package/src/components/tool/AStepItem.vue +1 -1
- package/src/config/CreateQueryConfig.js +2 -12
- package/src/config/default/antd.config.js +6 -11
- package/src/config/default/setting.config.js +4 -7
- package/src/layouts/PageLayout.vue +1 -1
- package/src/layouts/SinglePageView.vue +2 -24
- package/src/layouts/header/AdminHeader.vue +4 -4
- package/src/layouts/header/HeaderNotice.vue +2 -3
- package/src/layouts/tabs/TabsHead.vue +2 -1
- package/src/layouts/tabs/TabsView.vue +10 -18
- package/src/main.js +12 -40
- package/src/mock/extend/index.js +1 -2
- package/src/mock/goods/index.js +6 -6
- package/src/pages/CreateQueryPage.vue +3 -11
- package/src/pages/login/Login.vue +2 -2
- package/src/pages/resourceManage/orgListManage.vue +2 -2
- package/src/pages/system/dictionary/index.vue +0 -1
- package/src/pages/system/monitor/loginInfor/index.vue +1 -2
- package/src/pages/system/monitor/operLog/index.vue +1 -2
- package/src/pages/system/settings/modifyPassword.vue +1 -1
- package/src/pages/system/ticket/index.vue +2 -3
- package/src/pages/system/ticket/submitTicketSuccess.vue +2 -8
- package/src/router/async/router.map.js +0 -2
- package/src/router/guards.js +0 -29
- package/src/services/api/common.js +21 -37
- package/src/services/apiService.js +2 -2
- package/src/theme/default/style.less +2 -2
- package/src/utils/authority-utils.js +12 -12
- package/src/utils/errorCode.js +4 -4
- package/src/utils/login.js +5 -8
- package/src/utils/map-utils.js +12 -20
- package/src/utils/request.js +5 -15
- package/src/utils/routerUtil.js +8 -12
- package/src/utils/util.js +2 -3
- package/vue.config.js +24 -66
- package/webpack.config.js +12 -0
- package/jest-transform-stub.js +0 -8
- package/jest.setup.js +0 -7
- package/src/base-client/components/common/AMisRender/index.js +0 -3
- package/src/base-client/components/common/AMisRender/index.vue +0 -257
- package/src/base-client/components/common/Tree/Tree.vue +0 -149
- package/src/base-client/components/common/Tree/index.js +0 -2
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +0 -117
- package/src/base-client/components/common/XDescriptions/index.js +0 -3
- package/src/base-client/components/common/XDescriptions/index.md +0 -83
- package/src/base-client/components/common/XStepView/XStepView.vue +0 -252
- package/src/base-client/components/common/XStepView/index.js +0 -3
- package/src/base-client/components/common/XStepView/index.md +0 -31
- package/src/pages/AMisDemo/AMisDemo.vue +0 -223
- package/src/pages/AMisDemo/AMisDemo2.vue +0 -74
- package/src/router.js +0 -15
- package/test/Amis.spec.js +0 -163
- package/test/Tree.spec.js +0 -167
- package/test/myDialog.spec.js +0 -46
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +0 -15
package/.env
CHANGED
package/.eslintrc.js
CHANGED
|
@@ -3,7 +3,7 @@ module.exports = {
|
|
|
3
3
|
env: {
|
|
4
4
|
node: true
|
|
5
5
|
},
|
|
6
|
-
extends: [
|
|
6
|
+
'extends': [
|
|
7
7
|
'plugin:vue/essential',
|
|
8
8
|
'plugin:vue/strongly-recommended',
|
|
9
9
|
'@vue/standard'
|
|
@@ -17,11 +17,10 @@ module.exports = {
|
|
|
17
17
|
'vue/max-attributes-per-line': [
|
|
18
18
|
2,
|
|
19
19
|
{
|
|
20
|
-
singleline:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
max: 1,
|
|
20
|
+
'singleline': 5,
|
|
21
|
+
'multiline': {
|
|
22
|
+
'max': 1,
|
|
23
|
+
'allowFirstLine': false
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
],
|
|
@@ -36,45 +35,38 @@ module.exports = {
|
|
|
36
35
|
'vue/html-closing-bracket-newline': 0,
|
|
37
36
|
'vue/no-parsing-error': 0,
|
|
38
37
|
'vue/name-property-casing': 0,
|
|
39
|
-
'vue/multi-word-component-names': 0,
|
|
40
|
-
'vue/require-valid-default-prop': 0,
|
|
41
|
-
'no-template-curly-in-string': 0,
|
|
42
|
-
'vue/no-mutating-props': 0,
|
|
43
|
-
'no-useless-escape': 0,
|
|
44
38
|
'no-tabs': 0,
|
|
45
|
-
'
|
|
46
|
-
'object-shorthand': 0,
|
|
47
|
-
quotes: [
|
|
39
|
+
'quotes': [
|
|
48
40
|
2,
|
|
49
41
|
'single',
|
|
50
42
|
{
|
|
51
|
-
avoidEscape: true,
|
|
52
|
-
allowTemplateLiterals: true
|
|
43
|
+
'avoidEscape': true,
|
|
44
|
+
'allowTemplateLiterals': true
|
|
53
45
|
}
|
|
54
46
|
],
|
|
55
|
-
semi: [
|
|
47
|
+
'semi': [
|
|
56
48
|
2,
|
|
57
49
|
'never',
|
|
58
50
|
{
|
|
59
|
-
beforeStatementContinuationChars: 'never'
|
|
51
|
+
'beforeStatementContinuationChars': 'never'
|
|
60
52
|
}
|
|
61
53
|
],
|
|
62
54
|
'no-delete-var': 2,
|
|
63
55
|
'prefer-const': [
|
|
64
56
|
2,
|
|
65
57
|
{
|
|
66
|
-
ignoreReadBeforeAssign: false
|
|
58
|
+
'ignoreReadBeforeAssign': false
|
|
67
59
|
}
|
|
68
60
|
],
|
|
69
61
|
'template-curly-spacing': 'off',
|
|
70
|
-
indent: 'off',
|
|
62
|
+
'indent': 'off',
|
|
71
63
|
// 必须使用全等: false
|
|
72
|
-
eqeqeq: 0,
|
|
64
|
+
'eqeqeq': 0,
|
|
73
65
|
// 可以使用!! 双重否定
|
|
74
66
|
'no-extra-boolean-cast': 'off'
|
|
75
67
|
},
|
|
76
68
|
parserOptions: {
|
|
77
|
-
parser: '
|
|
69
|
+
parser: 'babel-eslint'
|
|
78
70
|
},
|
|
79
71
|
overrides: [
|
|
80
72
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,58 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
> 所有关于本项目的变化都在该文档里。
|
|
3
3
|
|
|
4
|
-
**1.8.30 -2023-1-10 @张振宇**
|
|
5
|
-
- 微前端兼容
|
|
6
|
-
|
|
7
|
-
**1.8.26 -2023-1-10 @杨亚文**
|
|
8
|
-
- 解决单页面为首页时首次登录不加载问题
|
|
9
|
-
|
|
10
|
-
**1.8.23 -2023-12-28 @杨亚文**
|
|
11
|
-
- 解决条件导出功能bug
|
|
12
|
-
|
|
13
|
-
**1.8.22 -2023-12-27 @江超**
|
|
14
|
-
- 解决导出功能在v4环境下的地址错误问题
|
|
15
|
-
|
|
16
|
-
**1.8.20 -2023-12-21 @江超**
|
|
17
|
-
- 修复滚动条样式问题
|
|
18
|
-
- 售后问题登记页面增加处理结果
|
|
19
|
-
|
|
20
|
-
**1.8.19 -2023-12-07 @江超**
|
|
21
|
-
- 鉴权相关修改
|
|
22
|
-
|
|
23
|
-
**1.8.18 -2023-12-07 @江超**
|
|
24
|
-
- 完善单页面组件功能
|
|
25
|
-
|
|
26
|
-
**1.8.15 - 1.8.17 -2023-11-23 @张振宇**
|
|
27
|
-
- 调整配置化组件
|
|
28
|
-
|
|
29
|
-
**1.8.14 - 1.8.15 -2023-11-23 @江超**
|
|
30
|
-
- 完善导入功能的返回值
|
|
31
|
-
|
|
32
|
-
**1.8.13 -2023-11-21 @张振宇**
|
|
33
|
-
- 配置中心增加动态表名功能
|
|
34
|
-
|
|
35
|
-
**1.8.12 -2023-11-20 @江超**
|
|
36
|
-
- 完成查询配置通用导入和模板下载功能
|
|
37
|
-
|
|
38
|
-
**1.8.11 -2023-11-08 @刘懿**
|
|
39
|
-
- XStepView接入琉璃配置中心错误修改
|
|
40
|
-
|
|
41
|
-
**1.8.10 -2023-11-07 @江超**
|
|
42
|
-
- XStepView接入琉璃配置中心
|
|
43
|
-
|
|
44
|
-
**1.8.9 -2023-10-27 @江超**
|
|
45
|
-
- 完成webpack5的切换
|
|
46
|
-
|
|
47
|
-
**1.7.20 -2023-10-11 @江超**
|
|
48
|
-
- 跳转首页问题修改
|
|
49
|
-
|
|
50
|
-
**1.7.19 -2023-10-11 @江超**
|
|
51
|
-
- 菜单头部可配置
|
|
52
|
-
|
|
53
|
-
**1.7.15 - 1.7.18 -2023-10-11 @江超**
|
|
54
|
-
- 查询配置生成界面调整
|
|
55
|
-
|
|
56
4
|
**1.7.14 -2023-10-10 @江超**
|
|
57
5
|
- webConfig在开发环境下不存储到indexedDB中
|
|
58
6
|
|
package/babel.config.js
CHANGED
|
@@ -9,13 +9,7 @@ if (IS_PROD) {
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
presets: [
|
|
11
11
|
'@vue/cli-plugin-babel/preset',
|
|
12
|
-
['@vue/babel-preset-jsx', { injectH: false }]
|
|
12
|
+
['@vue/babel-preset-jsx', { 'injectH': false }]
|
|
13
13
|
],
|
|
14
|
-
plugins
|
|
15
|
-
env: {
|
|
16
|
-
test: {
|
|
17
|
-
presets: ['@babel/preset-env'],
|
|
18
|
-
plugins: ['istanbul']
|
|
19
|
-
}
|
|
20
|
-
}
|
|
14
|
+
plugins
|
|
21
15
|
}
|
package/docs/index.md
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* [XFormCol 适用于表单的通用响应式栅格a-col封装](../src/base-client/components/common/XFormCol/index.md)
|
|
13
13
|
* [XFormTable 动态查询控件,进一步整合了XTable和XForm](../src/base-client/components/common/XFormTable/index.md)
|
|
14
14
|
* [XTable 动态表格控件,根据JSON配置生成一个完整的动态表格](../src/base-client/components/common/XTable/index.md)
|
|
15
|
-
|
|
16
|
-
*
|
|
15
|
+
|
|
17
16
|
### iot
|
|
18
17
|
* [CustomerDetailsView 客户详情页](../src/base-client/components/iot/CustomerDetailsView/index.md)
|
|
19
18
|
* [DeviceDetailsView 档案详情页](../src/base-client/components/iot/DeviceDetailsView/index.md)
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
|
-
import { initRouter } from '@vue2-client/router
|
|
2
|
+
import { initRouter } from '@vue2-client/router'
|
|
3
3
|
import { initI18n } from '@vue2-client/utils/i18n'
|
|
4
4
|
import bootstrap from '@vue2-client/bootstrap'
|
|
5
5
|
import { modules } from '@vue2-client/store'
|
package/jest.config.js
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
require('dotenv').config({ path: path.resolve(__dirname, '.env') })
|
|
3
|
-
|
|
4
1
|
module.exports = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'^@vue2-client/(.*)$': '<rootDir>/src/$1',
|
|
8
|
-
'\\.(css|less)$': 'identity-obj-proxy',
|
|
9
|
-
},
|
|
10
|
-
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'vue'], // 注意 'vue' 在这里
|
|
11
|
-
testEnvironment: 'jsdom',
|
|
12
|
-
transform: {
|
|
13
|
-
'^.+\\.js$': 'babel-jest',
|
|
14
|
-
'^.+\\.vue$': 'vue-jest',
|
|
15
|
-
'^.+\\.less$': 'jest-transform-stub', // 添加这一行
|
|
16
|
-
},
|
|
17
|
-
transformIgnorePatterns: [
|
|
18
|
-
'/node_modules/(?!ant-design-vue)',
|
|
19
|
-
]
|
|
20
|
-
// 其他 Jest 配置项...
|
|
21
|
-
}
|
|
2
|
+
preset: '@vue/cli-plugin-unit-jest'
|
|
3
|
+
}
|
package/package.json
CHANGED
|
@@ -1,47 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
|
-
"serve": "
|
|
7
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode mac",
|
|
6
|
+
"serve": "vue-cli-service serve",
|
|
8
7
|
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
9
8
|
"test:unit": "vue-cli-service test:unit",
|
|
10
9
|
"lint": "vue-cli-service lint",
|
|
11
10
|
"build:preview": "vue-cli-service build --mode preview",
|
|
12
|
-
"lint:nofix": "vue-cli-service lint --no-fix"
|
|
13
|
-
"test": "jest"
|
|
11
|
+
"lint:nofix": "vue-cli-service lint --no-fix"
|
|
14
12
|
},
|
|
15
13
|
"dependencies": {
|
|
16
14
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
17
15
|
"@antv/data-set": "^0.11.8",
|
|
18
16
|
"@antv/g2plot": "^2.4.29",
|
|
19
17
|
"@vue/babel-preset-jsx": "^1.4.0",
|
|
20
|
-
"amis": "^3.4.3",
|
|
21
18
|
"animate.css": "^4.1.1",
|
|
22
19
|
"ant-design-vue": "^1.7.8",
|
|
23
20
|
"axios": "^0.27.2",
|
|
24
21
|
"clipboard": "^2.0.11",
|
|
25
|
-
"core-js": "^3.
|
|
22
|
+
"core-js": "^3.30.1",
|
|
26
23
|
"crypto-js": "^4.1.1",
|
|
27
24
|
"date-fns": "^2.29.3",
|
|
28
25
|
"default-passive-events": "^2.0.0",
|
|
29
|
-
"dotenv": "^16.3.1",
|
|
30
26
|
"enquire.js": "^2.1.6",
|
|
31
27
|
"file-saver": "^2.0.5",
|
|
32
28
|
"highlight.js": "^11.7.0",
|
|
33
29
|
"js-base64": "^3.7.5",
|
|
34
30
|
"js-cookie": "^2.2.1",
|
|
35
31
|
"jsencrypt": "^3.3.2",
|
|
36
|
-
"lodash.clonedeep": "^4.5.0",
|
|
37
32
|
"lodash.get": "^4.4.2",
|
|
38
33
|
"mockjs": "^1.1.0",
|
|
39
34
|
"nprogress": "^0.2.0",
|
|
40
|
-
"qs": "^6.11.2",
|
|
41
|
-
"regenerator-runtime": "^0.14.0",
|
|
42
35
|
"videojs-contrib-hls": "^5.15.0",
|
|
43
36
|
"viser-vue": "^2.4.8",
|
|
44
|
-
"vue": "
|
|
37
|
+
"vue": "2.6.14",
|
|
45
38
|
"vue-i18n": "^8.28.2",
|
|
46
39
|
"vue-json-viewer": "^2.2.22",
|
|
47
40
|
"vue-router": "^3.6.5",
|
|
@@ -52,41 +45,39 @@
|
|
|
52
45
|
},
|
|
53
46
|
"devDependencies": {
|
|
54
47
|
"@ant-design/colors": "^7.0.0",
|
|
55
|
-
"@babel/core": "^7.
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@vue/cli-
|
|
59
|
-
"@vue/
|
|
60
|
-
"@
|
|
61
|
-
"
|
|
62
|
-
"@vue/test-utils": "^1.3.6",
|
|
63
|
-
"babel-jest": "^26.6.3",
|
|
48
|
+
"@babel/core": "^7.21.4",
|
|
49
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
50
|
+
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
51
|
+
"@vue/cli-service": "^4.5.19",
|
|
52
|
+
"@vue/eslint-config-standard": "^4.0.0",
|
|
53
|
+
"@vuepress/plugin-back-to-top": "^1.9.9",
|
|
54
|
+
"babel-eslint": "^10.1.0",
|
|
64
55
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
56
|
+
"babel-polyfill": "^6.26.0",
|
|
57
|
+
"compression-webpack-plugin": "^4.0.1",
|
|
68
58
|
"deepmerge": "^4.3.1",
|
|
69
|
-
"
|
|
70
|
-
"eslint
|
|
59
|
+
"document-register-element": "^1.14.10",
|
|
60
|
+
"eslint": "^6.8.0",
|
|
61
|
+
"eslint-plugin-import": "^2.26.0",
|
|
62
|
+
"eslint-plugin-node": "^11.1.0",
|
|
63
|
+
"eslint-plugin-promise": "^4.3.1",
|
|
64
|
+
"eslint-plugin-standard": "^4.1.0",
|
|
65
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
71
66
|
"fast-deep-equal": "^3.1.3",
|
|
72
|
-
"jest": "^26.6.3",
|
|
73
|
-
"jest-environment-jsdom": "^26.6.2",
|
|
74
|
-
"jest-transform-stub": "^2.0.0",
|
|
75
67
|
"less-loader": "^6.2.0",
|
|
76
68
|
"script-loader": "^0.7.2",
|
|
77
|
-
"ignore-loader": "^0.1.2",
|
|
78
69
|
"style-resources-loader": "^1.5.0",
|
|
79
70
|
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
80
|
-
"vue-
|
|
81
|
-
"vue-template-compiler": "
|
|
82
|
-
"
|
|
71
|
+
"vue-custom-element": "^3.3.0",
|
|
72
|
+
"vue-template-compiler": "2.6.14",
|
|
73
|
+
"vuepress": "^1.9.9",
|
|
74
|
+
"webpack": "^4.46.0",
|
|
83
75
|
"webpack-theme-color-replacer": "^1.4.7",
|
|
84
|
-
"whatwg-fetch": "^3.6.
|
|
76
|
+
"whatwg-fetch": "^3.6.2"
|
|
85
77
|
},
|
|
86
78
|
"browserslist": [
|
|
87
79
|
"> 1%",
|
|
88
80
|
"last 2 versions",
|
|
89
|
-
"not
|
|
90
|
-
"not ie 11"
|
|
81
|
+
"not ie <= 10"
|
|
91
82
|
]
|
|
92
83
|
}
|
package/src/App.vue
CHANGED
|
@@ -27,8 +27,6 @@ export default {
|
|
|
27
27
|
this.setWeekModeTheme(this.weekMode)
|
|
28
28
|
// 设置系统版本
|
|
29
29
|
setSystemVersion(this.compatible)
|
|
30
|
-
// 获取基座应用得路由地址
|
|
31
|
-
this.setBaseAppRouting()
|
|
32
30
|
},
|
|
33
31
|
watch: {
|
|
34
32
|
weekMode (val) {
|
|
@@ -44,26 +42,18 @@ export default {
|
|
|
44
42
|
'theme.mode': {
|
|
45
43
|
immediate: true,
|
|
46
44
|
handler: function (val) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
themeUtil.changeThemeColor(this.theme.color, val).then(closeMessage)
|
|
50
|
-
} else {
|
|
51
|
-
console.info('为保证构建性能,关闭开发环境下的主题模式切换')
|
|
52
|
-
}
|
|
45
|
+
const closeMessage = this.$message.loading(`您选择了主题模式 ${val}, 正在切换...`)
|
|
46
|
+
themeUtil.changeThemeColor(this.theme.color, val).then(closeMessage)
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
'theme.color': {
|
|
56
50
|
immediate: true,
|
|
57
51
|
handler: function (val) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
themeUtil.changeThemeColor(val, this.theme.mode).then(closeMessage)
|
|
61
|
-
} else {
|
|
62
|
-
console.info('为保证构建性能,关闭开发环境下的主题色切换')
|
|
63
|
-
}
|
|
52
|
+
const closeMessage = this.$message.loading(`您选择了主题色 ${val}, 正在切换...`)
|
|
53
|
+
themeUtil.changeThemeColor(val, this.theme.mode).then(closeMessage)
|
|
64
54
|
}
|
|
65
55
|
},
|
|
66
|
-
layout: function () {
|
|
56
|
+
'layout': function () {
|
|
67
57
|
window.dispatchEvent(new Event('resize'))
|
|
68
58
|
}
|
|
69
59
|
},
|
|
@@ -79,22 +69,6 @@ export default {
|
|
|
79
69
|
document.body.classList.remove('week-mode')
|
|
80
70
|
}
|
|
81
71
|
},
|
|
82
|
-
setBaseAppRouting () {
|
|
83
|
-
let baseApp = '/login'
|
|
84
|
-
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
85
|
-
const data = window.microApp.getData() // 获取主应用下发的data数据
|
|
86
|
-
if (data.baseroute) {
|
|
87
|
-
baseApp = data.baseroute
|
|
88
|
-
}
|
|
89
|
-
window.microApp.addDataListener((_data) => {
|
|
90
|
-
if (_data.baseroute) {
|
|
91
|
-
baseApp = _data.baseroute
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
console.log('microApp', window.microApp)
|
|
95
|
-
this.$router.push({ path: baseApp })
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
72
|
setLanguage (lang) {
|
|
99
73
|
this.$i18n.locale = lang
|
|
100
74
|
switch (lang) {
|
|
@@ -123,6 +97,6 @@ export default {
|
|
|
123
97
|
</script>
|
|
124
98
|
|
|
125
99
|
<style lang="less" scoped>
|
|
126
|
-
#id
|
|
127
|
-
}
|
|
100
|
+
#id{
|
|
101
|
+
}
|
|
128
102
|
</style>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<a-icon type="bank" /> {{ group.title }}
|
|
26
26
|
</span>
|
|
27
27
|
<a-select-option v-for="address in group.children" :key="address.label + ' <' + address.value + '>'">
|
|
28
|
-
<p class="addressName"><a-icon type="environment"
|
|
28
|
+
<p class="addressName"><a-icon type="environment" /> <span v-html="highLight(address.label, address.word)">{{ address.label }}</span></p>
|
|
29
29
|
<p v-if="address.address !== '[]'" class="addressRemark">
|
|
30
30
|
{{ address.address }}
|
|
31
31
|
</p>
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
169
169
|
const addressMap = {}
|
|
170
170
|
result.tips.forEach((res) => {
|
|
171
171
|
if (res.location) {
|
|
172
|
-
if (!
|
|
172
|
+
if (!addressMap.hasOwnProperty(res.district)) {
|
|
173
173
|
addressMap[res.district] = []
|
|
174
174
|
}
|
|
175
175
|
addressMap[res.district].push({
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
describeList: {
|
|
20
20
|
type: Array,
|
|
21
21
|
// eslint-disable-next-line vue/require-valid-default-prop
|
|
22
|
-
default: () => { return [] } // lng:描述信息 lat:描述信息对应的值的字段名 { describe: '用户名称', field: 'name' }
|
|
22
|
+
default: () => { return [ ] } // lng:描述信息 lat:描述信息对应的值的字段名 { describe: '用户名称', field: 'name' }
|
|
23
23
|
},
|
|
24
24
|
// 需要渲染的点位数据
|
|
25
25
|
markers: {
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
imgurl: {
|
|
31
31
|
type: String,
|
|
32
32
|
default: () => {
|
|
33
|
-
return
|
|
33
|
+
return "https://a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
mapStyle: {
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
extData: this.markers
|
|
106
106
|
})
|
|
107
107
|
marker.on('click', (e) => {
|
|
108
|
-
if
|
|
108
|
+
if(e.target.getExtData() && e.target.getExtData().lng){
|
|
109
109
|
this.infoWindow.setContent(document.getElementById('amap_point_rendering_template'))
|
|
110
110
|
this.infoWindow.open(this.map, [e.target.getExtData().lng, e.target.getExtData().lat])
|
|
111
111
|
}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
:rules="rules"
|
|
16
16
|
:wrapper-col="wrapperCol"
|
|
17
17
|
>
|
|
18
|
+
<a-form-model-item label="服务名称" prop="serviceName">
|
|
19
|
+
<a-input v-model="form.serviceName" placeholder="查询接口所在的服务名称,默认system"/>
|
|
20
|
+
</a-form-model-item>
|
|
18
21
|
<a-form-model-item label="查询主表名" prop="tableName">
|
|
19
22
|
<a-input v-model="form.tableName" placeholder="查询用的主表+别名,用空格隔开,如:t_userfiles u"/>
|
|
20
23
|
</a-form-model-item>
|
|
@@ -68,17 +71,17 @@
|
|
|
68
71
|
<a-button icon="import" @click="$message.warn('从创意库中选择并引用高质量的通用表单项配置,敬请期待')">从创意库引入</a-button>
|
|
69
72
|
</a-space>
|
|
70
73
|
<a-row :gutter="24">
|
|
71
|
-
<a-col :span="
|
|
74
|
+
<a-col :span="8">
|
|
72
75
|
<span style="font-weight: bold">
|
|
73
76
|
标签名
|
|
74
77
|
</span>
|
|
75
78
|
</a-col>
|
|
76
|
-
<a-col :span="
|
|
79
|
+
<a-col :span="7">
|
|
77
80
|
<span style="font-weight: bold">
|
|
78
81
|
字段名
|
|
79
82
|
</span>
|
|
80
83
|
</a-col>
|
|
81
|
-
<a-col :span="
|
|
84
|
+
<a-col :span="7">
|
|
82
85
|
<span style="font-weight: bold">
|
|
83
86
|
数据模式
|
|
84
87
|
</span>
|
|
@@ -102,17 +105,17 @@
|
|
|
102
105
|
<span class="dragTips">拖到此处放置</span>
|
|
103
106
|
</a-row>
|
|
104
107
|
<a-row :gutter="24" class="column_item">
|
|
105
|
-
<a-col :span="
|
|
108
|
+
<a-col :span="7">
|
|
106
109
|
<span style="font-weight: bold">
|
|
107
110
|
{{ columnItem.title }}
|
|
108
111
|
</span>
|
|
109
112
|
</a-col>
|
|
110
|
-
<a-col :span="
|
|
113
|
+
<a-col :span="7">
|
|
111
114
|
<span style="font-weight: bold">
|
|
112
115
|
{{ columnItem.key }}
|
|
113
116
|
</span>
|
|
114
117
|
</a-col>
|
|
115
|
-
<a-col :span="
|
|
118
|
+
<a-col :span="8">
|
|
116
119
|
<a-tooltip>
|
|
117
120
|
<template slot="title">
|
|
118
121
|
查询表单项
|
|
@@ -145,13 +148,7 @@
|
|
|
145
148
|
</a-tooltip>
|
|
146
149
|
<a-tooltip>
|
|
147
150
|
<template slot="title">
|
|
148
|
-
|
|
149
|
-
</template>
|
|
150
|
-
<a-tag :color="columnItem.dataModeArray.includes('excelImportItem') ? '#107C41' : 'rgba(0, 0, 0, 0.25)'"><a-icon type="file-excel" /></a-tag>
|
|
151
|
-
</a-tooltip>
|
|
152
|
-
<a-tooltip>
|
|
153
|
-
<template slot="title">
|
|
154
|
-
数据组
|
|
151
|
+
字段组存储
|
|
155
152
|
</template>
|
|
156
153
|
<a-tag :color="columnItem.dataModeArray.includes('group') ? '#82A0D8' : 'rgba(0, 0, 0, 0.25)'"><a-icon type="crown" /></a-tag>
|
|
157
154
|
</a-tooltip>
|
|
@@ -228,14 +225,14 @@
|
|
|
228
225
|
</template>
|
|
229
226
|
<x-form-table
|
|
230
227
|
:queryParamsJson="result"
|
|
231
|
-
:view-mode="true"
|
|
232
|
-
:service-name="serviceName">
|
|
228
|
+
:view-mode="true">
|
|
233
229
|
</x-form-table>
|
|
234
230
|
</a-modal>
|
|
235
231
|
</a-drawer>
|
|
236
232
|
</template>
|
|
237
233
|
|
|
238
234
|
<script>
|
|
235
|
+
import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormItem'
|
|
239
236
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
240
237
|
import JsonViewer from 'vue-json-viewer'
|
|
241
238
|
import FileSaver from 'file-saver'
|
|
@@ -247,7 +244,8 @@ export default {
|
|
|
247
244
|
components: {
|
|
248
245
|
CreateQueryItem,
|
|
249
246
|
JsonViewer,
|
|
250
|
-
XFormTable
|
|
247
|
+
XFormTable,
|
|
248
|
+
XFormItem
|
|
251
249
|
},
|
|
252
250
|
data () {
|
|
253
251
|
return {
|
|
@@ -268,6 +266,7 @@ export default {
|
|
|
268
266
|
labelCol: { span: 3 },
|
|
269
267
|
wrapperCol: { span: 18 },
|
|
270
268
|
form: {
|
|
269
|
+
serviceName: '',
|
|
271
270
|
tableName: '',
|
|
272
271
|
joinArray: {},
|
|
273
272
|
condition: {},
|
|
@@ -344,14 +343,6 @@ export default {
|
|
|
344
343
|
toEditJson: {
|
|
345
344
|
type: Object,
|
|
346
345
|
default: () => {}
|
|
347
|
-
},
|
|
348
|
-
saveExportJson: {
|
|
349
|
-
type: Boolean,
|
|
350
|
-
default: false
|
|
351
|
-
},
|
|
352
|
-
serviceName: {
|
|
353
|
-
type: String,
|
|
354
|
-
default: undefined
|
|
355
346
|
}
|
|
356
347
|
},
|
|
357
348
|
watch: {
|
|
@@ -389,8 +380,27 @@ export default {
|
|
|
389
380
|
}, this.toEditJson
|
|
390
381
|
)
|
|
391
382
|
for (const columnItem of this.form.column) {
|
|
383
|
+
// 数据模式兼容性处理
|
|
392
384
|
if (!(columnItem.dataMode || columnItem.dataModeArray)) {
|
|
393
385
|
columnItem.dataModeArray = ['queryForm', 'table', 'addOrEditForm', 'sqlQueryItem', 'sqlQueryCondition']
|
|
386
|
+
} else if (columnItem.dataMode) {
|
|
387
|
+
if (columnItem.dataMode === 'all') {
|
|
388
|
+
columnItem.dataModeArray = ['queryForm', 'table', 'addOrEditForm', 'sqlQueryItem', 'sqlQueryCondition']
|
|
389
|
+
} else if (columnItem.dataMode === 'form') {
|
|
390
|
+
columnItem.dataModeArray = ['queryForm', 'addOrEditForm', 'sqlQueryCondition']
|
|
391
|
+
} else if (columnItem.dataMode === 'table') {
|
|
392
|
+
columnItem.dataModeArray = ['table', 'sqlQueryItem']
|
|
393
|
+
} else if (columnItem.dataMode === 'table_form') {
|
|
394
|
+
columnItem.dataModeArray = ['table', 'sqlQueryItem', 'sqlQueryCondition']
|
|
395
|
+
} else if (columnItem.dataMode === 'only_form') {
|
|
396
|
+
columnItem.dataModeArray = ['queryForm']
|
|
397
|
+
} else if (columnItem.dataMode === 'only_table') {
|
|
398
|
+
columnItem.dataModeArray = ['table']
|
|
399
|
+
} else if (columnItem.dataMode === 'clear') {
|
|
400
|
+
columnItem.dataModeArray = ['sqlQueryItem', 'sqlQueryCondition']
|
|
401
|
+
} else if (columnItem.dataMode === 'only_add_modify') {
|
|
402
|
+
columnItem.dataModeArray = ['addOrEditForm', 'sqlQueryItem']
|
|
403
|
+
}
|
|
394
404
|
}
|
|
395
405
|
delete columnItem.dataMode
|
|
396
406
|
// 插槽兼容处理
|
|
@@ -474,7 +484,6 @@ export default {
|
|
|
474
484
|
this.result = {}
|
|
475
485
|
},
|
|
476
486
|
onClose () {
|
|
477
|
-
this.$emit('close')
|
|
478
487
|
this.$emit('update:visible', false)
|
|
479
488
|
},
|
|
480
489
|
onModelClose () {
|
|
@@ -493,7 +502,7 @@ export default {
|
|
|
493
502
|
},
|
|
494
503
|
itemHandle (item, type) {
|
|
495
504
|
this.itemMap[item.key] = item
|
|
496
|
-
if (
|
|
505
|
+
if (type === '新增') {
|
|
497
506
|
this.form.column.push(item)
|
|
498
507
|
} else {
|
|
499
508
|
this.$set(this.form.column, this.selectIndex, item)
|
|
@@ -509,7 +518,6 @@ export default {
|
|
|
509
518
|
this.$refs.queryItem.addColumnItemExecute()
|
|
510
519
|
},
|
|
511
520
|
editColumnItem (key, index) {
|
|
512
|
-
this.type = '修改'
|
|
513
521
|
if (this.itemMap[key]) {
|
|
514
522
|
this.$refs.queryItem.editColumnItemExecute(this.itemMap[key])
|
|
515
523
|
this.selectIndex = index
|
|
@@ -600,11 +608,8 @@ export default {
|
|
|
600
608
|
this.$refs.businessCreateForm.validate(valid => {
|
|
601
609
|
if (valid) {
|
|
602
610
|
this.viewHandle(() => {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
} else {
|
|
606
|
-
this.$emit('saveQueryParams', this.result)
|
|
607
|
-
}
|
|
611
|
+
// saveQueryParams
|
|
612
|
+
this.exportJson()
|
|
608
613
|
})
|
|
609
614
|
}
|
|
610
615
|
})
|