vue2-client 1.2.68 → 1.2.69

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 (37) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +171 -171
  4. package/package.json +1 -1
  5. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  6. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +2 -2
  7. package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
  8. package/src/base-client/components/common/CitySelect/index.js +3 -3
  9. package/src/base-client/components/common/CitySelect/index.md +109 -109
  10. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  11. package/src/base-client/components/common/Upload/Upload.vue +151 -151
  12. package/src/base-client/components/common/Upload/index.js +3 -3
  13. package/src/base-client/components/common/XAddForm/XAddForm.vue +345 -345
  14. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
  15. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  16. package/src/base-client/components/common/XForm/XFormItem.vue +358 -358
  17. package/src/base-client/components/common/XFormTable/XFormTable.vue +6 -0
  18. package/src/base-client/components/common/XTable/XTable.vue +271 -271
  19. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  20. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  21. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +300 -300
  22. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +647 -647
  23. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  24. package/src/base-client/plugins/AppData.js +70 -70
  25. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  26. package/src/config/CreateQueryConfig.js +301 -301
  27. package/src/pages/resourceManage/orgListManage.vue +98 -98
  28. package/src/router/async/config.async.js +26 -26
  29. package/src/router/async/router.map.js +60 -60
  30. package/src/router/index.js +27 -27
  31. package/src/services/api/common.js +56 -56
  32. package/src/services/api/manage.js +16 -16
  33. package/src/services/api/restTools.js +24 -24
  34. package/src/theme/default/style.less +47 -47
  35. package/src/utils/map-utils.js +28 -28
  36. package/src/utils/request.js +198 -198
  37. package/src/utils/util.js +222 -222
@@ -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>