vue2-client 1.2.1 → 1.2.4
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/docs/notice.md +1 -3
- package/package.json +89 -89
- package/src/assets/img/SunClientDownload.png +0 -0
- package/src/assets/img/SunClientManual/1.png +0 -0
- package/src/assets/img/SunClientManual/2.png +0 -0
- package/src/assets/img/SunClientManual/3.png +0 -0
- package/src/assets/img/SunClientManual/4.png +0 -0
- package/src/assets/img/ToDeskDownload.png +0 -0
- package/src/assets/img/ToDeskManual/1.png +0 -0
- package/src/assets/img/ToDeskManual/2.png +0 -0
- package/src/assets/img/ToDeskManual/3.png +0 -0
- package/src/assets/img/ToDeskManual/4.png +0 -0
- package/src/assets/sound/newNote.mp3 +0 -0
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +10 -12
- package/src/base-client/components/common/XFormTable/XFormTable.vue +3 -1
- package/src/base-client/components/common/XFormTable/index.md +1 -1
- package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +244 -250
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +8 -43
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +411 -59
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +95 -18
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +281 -56
- package/src/base-client/plugins/AppData.js +1 -2
- package/src/services/api/EmployeeDetailsViewApi.js +3 -1
- package/src/services/api/TicketDetailsViewApi.js +9 -1
- package/src/services/api/common.js +1 -3
- package/src/services/api/manage.js +3 -1
package/docs/notice.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
## 引入各种文件时,必须写绝对路径, 不允许写相对路径
|
|
3
3
|
```js
|
|
4
4
|
// 引自己项目时文件时, @ 表示自己项目的src目录
|
|
5
|
-
import('
|
|
6
|
-
// 引入vue2-client项目文件时, @vue2-client: 表示@vue2-client下的src目录
|
|
7
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
5
|
+
import('@vue2-client/pages/system/queryParams')
|
|
8
6
|
```
|
|
9
7
|
## 编写vue文件的样式时, 必须使用less, 样式必须在最外层添加当前页面html的id, id与vue文件名相同
|
|
10
8
|
```vue
|
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "vue-cli-service serve",
|
|
7
|
-
"build": "vue-cli-service build",
|
|
8
|
-
"test:unit": "vue-cli-service test:unit",
|
|
9
|
-
"lint": "vue-cli-service lint"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@antv/data-set": "^0.11.4",
|
|
13
|
-
"@antv/f2": "^3.6.4",
|
|
14
|
-
"@antv/g2plot": "^2.3.33",
|
|
15
|
-
"@logicflow/core": "^1.1.7",
|
|
16
|
-
"@logicflow/extension": "^1.1.7",
|
|
17
|
-
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
|
|
18
|
-
"@vue/babel-preset-jsx": "^1.2.4",
|
|
19
|
-
"animate.css": "^4.1.0",
|
|
20
|
-
"ant-design-vue": "1.7.8",
|
|
21
|
-
"axios": "^0.19.2",
|
|
22
|
-
"clipboard": "^2.0.6",
|
|
23
|
-
"core-js": "^3.6.5",
|
|
24
|
-
"date-fns": "^2.14.0",
|
|
25
|
-
"default-passive-events": "^2.0.0",
|
|
26
|
-
"enquire.js": "^2.1.6",
|
|
27
|
-
"file-saver": "^2.0.5",
|
|
28
|
-
"highlight.js": "^10.2.1",
|
|
29
|
-
"js-cookie": "^2.2.1",
|
|
30
|
-
"jsencrypt": "^3.0.0-rc.1",
|
|
31
|
-
"lodash.get": "^4.4.2",
|
|
32
|
-
"mockjs": "^1.1.0",
|
|
33
|
-
"nprogress": "^0.2.0",
|
|
34
|
-
"viser-vue": "^2.4.8",
|
|
35
|
-
"vue": "^2.6.11",
|
|
36
|
-
"vue-i18n": "^8.18.2",
|
|
37
|
-
"vue-json-viewer": "^2.2.15",
|
|
38
|
-
"vue-router": "^3.3.4",
|
|
39
|
-
"vuedraggable": "^2.23.2",
|
|
40
|
-
"vuex": "^3.4.0",
|
|
41
|
-
"xlsx": "0.17.5"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@ant-design/colors": "^4.0.1",
|
|
45
|
-
"@vue/cli-plugin-babel": "^4.4.0",
|
|
46
|
-
"@vue/cli-plugin-eslint": "^4.4.0",
|
|
47
|
-
"@vue/cli-plugin-router": "^4.4.0",
|
|
48
|
-
"@vue/cli-plugin-unit-jest": "~5.0.0",
|
|
49
|
-
"@vue/cli-plugin-vuex": "^4.4.0",
|
|
50
|
-
"@vue/cli-service": "^4.4.0",
|
|
51
|
-
"@vue/eslint-config-standard": "^4.0.0",
|
|
52
|
-
"@vue/test-utils": "^1.1.3",
|
|
53
|
-
"@vue/vue2-jest": "^27.0.0-alpha.2",
|
|
54
|
-
"@vuepress/plugin-back-to-top": "^1.5.2",
|
|
55
|
-
"babel-eslint": "^10.1.0",
|
|
56
|
-
"babel-jest": "^27.0.6",
|
|
57
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
58
|
-
"babel-polyfill": "^6.26.0",
|
|
59
|
-
"compression-webpack-plugin": "^2.0.0",
|
|
60
|
-
"deepmerge": "^4.2.2",
|
|
61
|
-
"echarts": "^4.9.0",
|
|
62
|
-
"eslint": "^6.7.2",
|
|
63
|
-
"eslint-plugin-import": "^2.25.3",
|
|
64
|
-
"eslint-plugin-node": "^11.1.0",
|
|
65
|
-
"eslint-plugin-standard": "^5.0.0",
|
|
66
|
-
"eslint-plugin-vue": "^6.2.2",
|
|
67
|
-
"fast-deep-equal": "^3.1.3",
|
|
68
|
-
"gh-pages": "^3.1.0",
|
|
69
|
-
"jest": "^27.0.5",
|
|
70
|
-
"less-loader": "^6.1.1",
|
|
71
|
-
"react-bmap": "^1.0.121",
|
|
72
|
-
"script-loader": "^0.7.2",
|
|
73
|
-
"style-resources-loader": "^1.3.2",
|
|
74
|
-
"vue-amap": "^0.5.10",
|
|
75
|
-
"vue-baidu-map": "^0.21.22",
|
|
76
|
-
"vue-bmap-gl": "0.0.29",
|
|
77
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.4",
|
|
78
|
-
"vue-mapvgl": "0.0.28",
|
|
79
|
-
"vue-template-compiler": "^2.6.11",
|
|
80
|
-
"vuepress": "^1.5.2",
|
|
81
|
-
"webpack-theme-color-replacer": "1.3.18",
|
|
82
|
-
"whatwg-fetch": "^3.0.0"
|
|
83
|
-
},
|
|
84
|
-
"browserslist": [
|
|
85
|
-
"> 1%",
|
|
86
|
-
"last 2 versions",
|
|
87
|
-
"not ie <= 10"
|
|
88
|
-
]
|
|
89
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.2.4",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "vue-cli-service serve",
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
|
+
"test:unit": "vue-cli-service test:unit",
|
|
9
|
+
"lint": "vue-cli-service lint"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@antv/data-set": "^0.11.4",
|
|
13
|
+
"@antv/f2": "^3.6.4",
|
|
14
|
+
"@antv/g2plot": "^2.3.33",
|
|
15
|
+
"@logicflow/core": "^1.1.7",
|
|
16
|
+
"@logicflow/extension": "^1.1.7",
|
|
17
|
+
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
|
|
18
|
+
"@vue/babel-preset-jsx": "^1.2.4",
|
|
19
|
+
"animate.css": "^4.1.0",
|
|
20
|
+
"ant-design-vue": "1.7.8",
|
|
21
|
+
"axios": "^0.19.2",
|
|
22
|
+
"clipboard": "^2.0.6",
|
|
23
|
+
"core-js": "^3.6.5",
|
|
24
|
+
"date-fns": "^2.14.0",
|
|
25
|
+
"default-passive-events": "^2.0.0",
|
|
26
|
+
"enquire.js": "^2.1.6",
|
|
27
|
+
"file-saver": "^2.0.5",
|
|
28
|
+
"highlight.js": "^10.2.1",
|
|
29
|
+
"js-cookie": "^2.2.1",
|
|
30
|
+
"jsencrypt": "^3.0.0-rc.1",
|
|
31
|
+
"lodash.get": "^4.4.2",
|
|
32
|
+
"mockjs": "^1.1.0",
|
|
33
|
+
"nprogress": "^0.2.0",
|
|
34
|
+
"viser-vue": "^2.4.8",
|
|
35
|
+
"vue": "^2.6.11",
|
|
36
|
+
"vue-i18n": "^8.18.2",
|
|
37
|
+
"vue-json-viewer": "^2.2.15",
|
|
38
|
+
"vue-router": "^3.3.4",
|
|
39
|
+
"vuedraggable": "^2.23.2",
|
|
40
|
+
"vuex": "^3.4.0",
|
|
41
|
+
"xlsx": "0.17.5"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@ant-design/colors": "^4.0.1",
|
|
45
|
+
"@vue/cli-plugin-babel": "^4.4.0",
|
|
46
|
+
"@vue/cli-plugin-eslint": "^4.4.0",
|
|
47
|
+
"@vue/cli-plugin-router": "^4.4.0",
|
|
48
|
+
"@vue/cli-plugin-unit-jest": "~5.0.0",
|
|
49
|
+
"@vue/cli-plugin-vuex": "^4.4.0",
|
|
50
|
+
"@vue/cli-service": "^4.4.0",
|
|
51
|
+
"@vue/eslint-config-standard": "^4.0.0",
|
|
52
|
+
"@vue/test-utils": "^1.1.3",
|
|
53
|
+
"@vue/vue2-jest": "^27.0.0-alpha.2",
|
|
54
|
+
"@vuepress/plugin-back-to-top": "^1.5.2",
|
|
55
|
+
"babel-eslint": "^10.1.0",
|
|
56
|
+
"babel-jest": "^27.0.6",
|
|
57
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
58
|
+
"babel-polyfill": "^6.26.0",
|
|
59
|
+
"compression-webpack-plugin": "^2.0.0",
|
|
60
|
+
"deepmerge": "^4.2.2",
|
|
61
|
+
"echarts": "^4.9.0",
|
|
62
|
+
"eslint": "^6.7.2",
|
|
63
|
+
"eslint-plugin-import": "^2.25.3",
|
|
64
|
+
"eslint-plugin-node": "^11.1.0",
|
|
65
|
+
"eslint-plugin-standard": "^5.0.0",
|
|
66
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
67
|
+
"fast-deep-equal": "^3.1.3",
|
|
68
|
+
"gh-pages": "^3.1.0",
|
|
69
|
+
"jest": "^27.0.5",
|
|
70
|
+
"less-loader": "^6.1.1",
|
|
71
|
+
"react-bmap": "^1.0.121",
|
|
72
|
+
"script-loader": "^0.7.2",
|
|
73
|
+
"style-resources-loader": "^1.3.2",
|
|
74
|
+
"vue-amap": "^0.5.10",
|
|
75
|
+
"vue-baidu-map": "^0.21.22",
|
|
76
|
+
"vue-bmap-gl": "0.0.29",
|
|
77
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.4",
|
|
78
|
+
"vue-mapvgl": "0.0.28",
|
|
79
|
+
"vue-template-compiler": "^2.6.11",
|
|
80
|
+
"vuepress": "^1.5.2",
|
|
81
|
+
"webpack-theme-color-replacer": "1.3.18",
|
|
82
|
+
"whatwg-fetch": "^3.0.0"
|
|
83
|
+
},
|
|
84
|
+
"browserslist": [
|
|
85
|
+
"> 1%",
|
|
86
|
+
"last 2 versions",
|
|
87
|
+
"not ie <= 10"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -229,18 +229,9 @@
|
|
|
229
229
|
<a-col :span="8">
|
|
230
230
|
<a-form-model-item label="表单查询方式" prop="queryType" v-if="dataMode.queryForm && dataMode.sqlQueryCondition">
|
|
231
231
|
<a-select v-model="item.queryType" placeholder="表单查询方式,可选">
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
<a-select-option key="LEFT_LIKE">左模糊(left like)</a-select-option>
|
|
236
|
-
<a-select-option key="RIGHT_LIKE">右模糊(right like)</a-select-option>
|
|
237
|
-
<a-select-option key=">">大于(>)</a-select-option>
|
|
238
|
-
<a-select-option key=">=">大于等于(>=)</a-select-option>
|
|
239
|
-
<a-select-option key="<">小于(<)</a-select-option>
|
|
240
|
-
<a-select-option key="<=">小于等于(<=)</a-select-option>
|
|
241
|
-
<a-select-option key="IN">包含(in)</a-select-option>
|
|
242
|
-
<a-select-option key="NOT_IN">不包含(not in)</a-select-option>
|
|
243
|
-
<a-select-option key="BETWEEN">之间(between)</a-select-option>
|
|
232
|
+
<template v-for="queryTypeItem in queryTypeV">
|
|
233
|
+
<a-select-option :key="queryTypeItem.key">{{ queryTypeItem.label }}</a-select-option>
|
|
234
|
+
</template>
|
|
244
235
|
</a-select>
|
|
245
236
|
</a-form-model-item>
|
|
246
237
|
</a-col>
|
|
@@ -601,6 +592,7 @@ import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormIte
|
|
|
601
592
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
602
593
|
import JsonViewer from 'vue-json-viewer'
|
|
603
594
|
import FileSaver from 'file-saver'
|
|
595
|
+
import { queryType } from '@/config/CreateQueryConfig'
|
|
604
596
|
import { mapState } from 'vuex'
|
|
605
597
|
import { post } from '@vue2-client/services/api/restTools'
|
|
606
598
|
import { commonApi } from '@vue2-client/services/api/common'
|
|
@@ -690,6 +682,12 @@ export default {
|
|
|
690
682
|
},
|
|
691
683
|
computed: {
|
|
692
684
|
...mapState('setting', ['isMobile']),
|
|
685
|
+
queryTypeV () {
|
|
686
|
+
if (this.item.formType) {
|
|
687
|
+
return queryType.filter(item => item.match.includes(this.item.formType))
|
|
688
|
+
}
|
|
689
|
+
return queryType
|
|
690
|
+
},
|
|
693
691
|
conditionJoinArray: function () {
|
|
694
692
|
const result = []
|
|
695
693
|
for (const item in this.form.joinArray) {
|
|
@@ -283,7 +283,9 @@ export default {
|
|
|
283
283
|
},
|
|
284
284
|
// 刷新加载表格数据
|
|
285
285
|
loadData (requestParameters, callback) {
|
|
286
|
-
|
|
286
|
+
const result = query(requestParameters)
|
|
287
|
+
this.$emit('afterQuery', result)
|
|
288
|
+
callback(result)
|
|
287
289
|
},
|
|
288
290
|
// 详情按钮事件
|
|
289
291
|
action (record, id) {
|