vue2-client 1.2.93 → 1.2.94

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 +5 -0
  4. package/package.json +1 -1
  5. package/src/base-client/all.js +66 -64
  6. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
  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/CreateQuery/CreateQuery.vue +547 -539
  11. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +773 -773
  12. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  13. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +221 -0
  14. package/src/base-client/components/common/PersonSetting/index.js +3 -0
  15. package/src/base-client/components/common/Upload/index.js +3 -3
  16. package/src/base-client/components/common/XAddForm/XAddForm.vue +345 -345
  17. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
  18. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  19. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  20. package/src/base-client/components/common/XForm/XFormItem.vue +367 -358
  21. package/src/base-client/components/common/XFormTable/XFormTable.vue +507 -489
  22. package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +232 -232
  23. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +678 -678
  24. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  25. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  26. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +300 -300
  27. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +960 -960
  28. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  29. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  30. package/src/config/CreateQueryConfig.js +304 -301
  31. package/src/pages/resourceManage/orgListManage.vue +98 -98
  32. package/src/router/async/config.async.js +26 -26
  33. package/src/router/async/router.map.js +60 -60
  34. package/src/router/index.js +27 -27
  35. package/src/services/api/WebmeterAnalysisViewApi.js +24 -24
  36. package/src/services/api/common.js +58 -56
  37. package/src/services/api/index.js +39 -39
  38. package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +18 -18
  39. package/src/services/api/manage.js +16 -16
  40. package/src/services/api/restTools.js +24 -24
  41. package/src/theme/default/style.less +47 -47
  42. package/src/utils/util.js +230 -230
  43. package/vue.config.js +163 -158
@@ -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>