vue2-client 1.2.55 → 1.2.56

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.
Files changed (35) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +148 -148
  4. package/package.json +1 -1
  5. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +111 -111
  6. package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
  7. package/src/base-client/components/common/CitySelect/index.js +3 -3
  8. package/src/base-client/components/common/CitySelect/index.md +109 -109
  9. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +770 -770
  10. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +792 -752
  11. package/src/base-client/components/common/Upload/Upload.vue +141 -124
  12. package/src/base-client/components/common/Upload/index.js +3 -3
  13. package/src/base-client/components/common/XAddForm/XAddForm.vue +340 -331
  14. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +316 -316
  15. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  16. package/src/base-client/components/common/XForm/XFormItem.vue +358 -346
  17. package/src/base-client/components/common/XFormTable/XFormTable.vue +483 -482
  18. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  19. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  20. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +647 -647
  21. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  22. package/src/base-client/plugins/AppData.js +70 -70
  23. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  24. package/src/config/CreateQueryConfig.js +301 -298
  25. package/src/pages/resourceManage/orgListManage.vue +98 -98
  26. package/src/router/async/config.async.js +26 -26
  27. package/src/router/index.js +27 -27
  28. package/src/services/api/common.js +56 -47
  29. package/src/services/api/manage.js +16 -16
  30. package/src/services/api/restTools.js +24 -24
  31. package/src/theme/default/style.less +47 -47
  32. package/src/utils/map-utils.js +28 -28
  33. package/src/utils/request.js +198 -198
  34. package/src/utils/util.js +222 -222
  35. package/vue.config.js +148 -143
@@ -1,57 +1,57 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <x-form-table
4
- v-if="tabActiveKey === '1'"
5
- :queryParamsName="queryParamsName"
6
- :fixedQueryForm="fixedQueryForm"
7
- @onSubmit="onSubmit"
8
- @action="toDetail">
9
- </x-form-table>
10
- </a-card>
11
- </template>
12
-
13
- <script>
14
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
15
-
16
- export default {
17
- name: 'DeviceDetailsException',
18
- components: {
19
- XFormTable
20
- },
21
- data () {
22
- return {
23
- // 选中的异常编号
24
- selectSingularId: undefined,
25
- tabActiveKey: undefined,
26
- fixedQueryForm: {},
27
- // 查询配置文件名
28
- queryParamsName: 'deviceToExceptionQueryParams',
29
- // 是否显示设置设备参数详情抽屉
30
- detailVisible: false
31
- }
32
- },
33
- props: {
34
- deviceId: {
35
- type: Number,
36
- required: true
37
- }
38
- },
39
- mounted () {
40
- this.initView()
41
- },
42
- methods: {
43
- initView () {
44
- this.tabActiveKey = '1'
45
- this.fixedQueryForm['e_f_device_id'] = this.deviceId
46
- },
47
- onSubmit (res) {
48
- res.form['e_f_device_id'] = this.deviceId
49
- this.$emit('onSubmit', res)
50
- },
51
- toDetail (record, id) {
52
- // this.selectSingularId = record.id + ''
53
- // this.detailVisible = true
54
- }
55
- }
56
- }
57
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ v-if="tabActiveKey === '1'"
5
+ :queryParamsName="queryParamsName"
6
+ :fixedQueryForm="fixedQueryForm"
7
+ @onSubmit="onSubmit"
8
+ @action="toDetail">
9
+ </x-form-table>
10
+ </a-card>
11
+ </template>
12
+
13
+ <script>
14
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
15
+
16
+ export default {
17
+ name: 'DeviceDetailsException',
18
+ components: {
19
+ XFormTable
20
+ },
21
+ data () {
22
+ return {
23
+ // 选中的异常编号
24
+ selectSingularId: undefined,
25
+ tabActiveKey: undefined,
26
+ fixedQueryForm: {},
27
+ // 查询配置文件名
28
+ queryParamsName: 'deviceToExceptionQueryParams',
29
+ // 是否显示设置设备参数详情抽屉
30
+ detailVisible: false
31
+ }
32
+ },
33
+ props: {
34
+ deviceId: {
35
+ type: Number,
36
+ required: true
37
+ }
38
+ },
39
+ mounted () {
40
+ this.initView()
41
+ },
42
+ methods: {
43
+ initView () {
44
+ this.tabActiveKey = '1'
45
+ this.fixedQueryForm['e_f_device_id'] = this.deviceId
46
+ },
47
+ onSubmit (res) {
48
+ res.form['e_f_device_id'] = this.deviceId
49
+ this.$emit('onSubmit', res)
50
+ },
51
+ toDetail (record, id) {
52
+ // this.selectSingularId = record.id + ''
53
+ // this.detailVisible = true
54
+ }
55
+ }
56
+ }
57
+ </script>
@@ -1,131 +1,131 @@
1
- <template>
2
- <div>
3
- <x-form-table
4
- :logicName="logicName"
5
- :logicParam="logicParam"
6
- :fixedQueryForm="fixedQueryForm"
7
- @onSubmit="onSubmit"
8
- @action="toDetail">
9
- </x-form-table>
10
- </div>
11
- </template>
12
- <script>
13
-
14
- import { STable, Ellipsis } from '@vue2-client/components'
15
- import { formatDate } from '@vue2-client/utils/util'
16
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
17
-
18
- export default {
19
- name: 'DeviceDetailsInstruct',
20
- components: {
21
- STable,
22
- Ellipsis,
23
- XFormTable
24
- },
25
- props: {
26
- deviceId: {
27
- type: Number,
28
- required: true
29
- }
30
- },
31
- data () {
32
- return {
33
- selectInstructId: undefined,
34
- startForm: {},
35
- fixedQueryForm: {},
36
- detailsViewVisible: false,
37
- // 加载数据方法 必须为 Promise 对象
38
- selectedRowKeys: [],
39
- selectedRows: [],
40
- logicName: 'getIotRead',
41
- logicParam: null,
42
- // 默认表格数据
43
- defaultData: {
44
- data: [],
45
- pageSize: 0,
46
- pageNo: 0,
47
- totalPage: 0,
48
- totalCount: 0
49
- },
50
- isShowUserFiles: false
51
- }
52
- },
53
- computed: {
54
- rowSelection () {
55
- return {
56
- selectedRowKeys: this.selectedRowKeys,
57
- onChange: this.onSelectChange
58
- }
59
- }
60
- },
61
- mounted () {
62
- this.initView()
63
- },
64
- methods: {
65
- initView () {
66
- this.logicParam = {
67
- id: this.deviceId
68
- }
69
- this.fixedQueryForm['d_id'] = this.deviceId
70
- },
71
- onSubmit (res) {
72
- res.form['d_id'] = this.deviceId
73
- this.$emit('onSubmit', res)
74
- },
75
- refresh () {
76
- this.$refs.table.refresh(true)
77
- },
78
- onSelectChange (selectedRowKeys, selectedRows) {
79
- this.selectedRowKeys = selectedRowKeys
80
- this.selectedRows = selectedRows
81
- },
82
- format (date, format) {
83
- return formatDate(date, format)
84
- },
85
- toDetail (record) {
86
- this.selectInstructId = record.id + ''
87
- this.detailsViewVisible = true
88
- }
89
- }
90
- }
91
- </script>
92
-
93
- <style lang='less' scoped>
94
- .detail-layout {
95
- margin-left: 44px
96
- }
97
- .text {
98
- color: rgba(0, 0, 0, .45)
99
- }
100
-
101
- .heading {
102
- color: rgba(0, 0, 0, .85);
103
- font-size: 20px
104
- }
105
-
106
- .no-data {
107
- color: rgba(0, 0, 0, .25);
108
- text-align: center;
109
- line-height: 64px;
110
- font-size: 16px
111
-
112
- /*i {*/
113
- /* font-size: 24px*/
114
- /* margin-right: 16px*/
115
- /* position: relative*/
116
- /* top: 3px*/
117
- /*}*/
118
- }
119
-
120
- .mobile {
121
- .detail-layout {
122
- margin-left: unset
123
- }
124
- .text {
125
-
126
- }
127
- .status-list {
128
- text-align: left
129
- }
130
- }
131
- </style>
1
+ <template>
2
+ <div>
3
+ <x-form-table
4
+ :logicName="logicName"
5
+ :logicParam="logicParam"
6
+ :fixedQueryForm="fixedQueryForm"
7
+ @onSubmit="onSubmit"
8
+ @action="toDetail">
9
+ </x-form-table>
10
+ </div>
11
+ </template>
12
+ <script>
13
+
14
+ import { STable, Ellipsis } from '@vue2-client/components'
15
+ import { formatDate } from '@vue2-client/utils/util'
16
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
17
+
18
+ export default {
19
+ name: 'DeviceDetailsInstruct',
20
+ components: {
21
+ STable,
22
+ Ellipsis,
23
+ XFormTable
24
+ },
25
+ props: {
26
+ deviceId: {
27
+ type: Number,
28
+ required: true
29
+ }
30
+ },
31
+ data () {
32
+ return {
33
+ selectInstructId: undefined,
34
+ startForm: {},
35
+ fixedQueryForm: {},
36
+ detailsViewVisible: false,
37
+ // 加载数据方法 必须为 Promise 对象
38
+ selectedRowKeys: [],
39
+ selectedRows: [],
40
+ logicName: 'getIotRead',
41
+ logicParam: null,
42
+ // 默认表格数据
43
+ defaultData: {
44
+ data: [],
45
+ pageSize: 0,
46
+ pageNo: 0,
47
+ totalPage: 0,
48
+ totalCount: 0
49
+ },
50
+ isShowUserFiles: false
51
+ }
52
+ },
53
+ computed: {
54
+ rowSelection () {
55
+ return {
56
+ selectedRowKeys: this.selectedRowKeys,
57
+ onChange: this.onSelectChange
58
+ }
59
+ }
60
+ },
61
+ mounted () {
62
+ this.initView()
63
+ },
64
+ methods: {
65
+ initView () {
66
+ this.logicParam = {
67
+ id: this.deviceId
68
+ }
69
+ this.fixedQueryForm['d_id'] = this.deviceId
70
+ },
71
+ onSubmit (res) {
72
+ res.form['d_id'] = this.deviceId
73
+ this.$emit('onSubmit', res)
74
+ },
75
+ refresh () {
76
+ this.$refs.table.refresh(true)
77
+ },
78
+ onSelectChange (selectedRowKeys, selectedRows) {
79
+ this.selectedRowKeys = selectedRowKeys
80
+ this.selectedRows = selectedRows
81
+ },
82
+ format (date, format) {
83
+ return formatDate(date, format)
84
+ },
85
+ toDetail (record) {
86
+ this.selectInstructId = record.id + ''
87
+ this.detailsViewVisible = true
88
+ }
89
+ }
90
+ }
91
+ </script>
92
+
93
+ <style lang='less' scoped>
94
+ .detail-layout {
95
+ margin-left: 44px
96
+ }
97
+ .text {
98
+ color: rgba(0, 0, 0, .45)
99
+ }
100
+
101
+ .heading {
102
+ color: rgba(0, 0, 0, .85);
103
+ font-size: 20px
104
+ }
105
+
106
+ .no-data {
107
+ color: rgba(0, 0, 0, .25);
108
+ text-align: center;
109
+ line-height: 64px;
110
+ font-size: 16px
111
+
112
+ /*i {*/
113
+ /* font-size: 24px*/
114
+ /* margin-right: 16px*/
115
+ /* position: relative*/
116
+ /* top: 3px*/
117
+ /*}*/
118
+ }
119
+
120
+ .mobile {
121
+ .detail-layout {
122
+ margin-left: unset
123
+ }
124
+ .text {
125
+
126
+ }
127
+ .status-list {
128
+ text-align: left
129
+ }
130
+ }
131
+ </style>