vue2-client 1.2.63 → 1.2.66

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 (43) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +18 -1
  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/CreateQuery.vue +483 -483
  10. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +770 -770
  11. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  12. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +550 -548
  13. package/src/base-client/components/common/Upload/Upload.vue +151 -145
  14. package/src/base-client/components/common/Upload/index.js +3 -3
  15. package/src/base-client/components/common/XAddForm/XAddForm.vue +345 -345
  16. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
  17. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  18. package/src/base-client/components/common/XForm/XFormItem.vue +358 -358
  19. package/src/base-client/components/common/XFormTable/XFormTable.vue +484 -484
  20. package/src/base-client/components/common/XFormTable/index.md +2 -1
  21. package/src/base-client/components/common/XTable/XTable.vue +269 -269
  22. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  23. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  24. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +300 -272
  25. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +647 -647
  26. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  27. package/src/base-client/plugins/AppData.js +70 -70
  28. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  29. package/src/config/CreateQueryConfig.js +301 -301
  30. package/src/layouts/tabs/TabsView.vue +7 -0
  31. package/src/pages/CreateQueryPage.vue +58 -58
  32. package/src/pages/resourceManage/orgListManage.vue +98 -98
  33. package/src/router/async/config.async.js +26 -26
  34. package/src/router/async/router.map.js +60 -60
  35. package/src/router/index.js +27 -27
  36. package/src/services/api/common.js +56 -56
  37. package/src/services/api/manage.js +16 -16
  38. package/src/services/api/restTools.js +24 -24
  39. package/src/theme/default/style.less +47 -47
  40. package/src/utils/map-utils.js +28 -28
  41. package/src/utils/request.js +198 -198
  42. package/src/utils/util.js +222 -222
  43. package/vue.config.js +153 -153
@@ -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>