vue2-client 1.3.2 → 1.3.5

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 (106) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +30 -28
  3. package/package.json +1 -1
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
  5. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
  6. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
  7. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -163
  8. package/src/base-client/components/common/ScrollList/ScrollList.vue +113 -0
  9. package/src/base-client/components/common/ScrollList/index.js +3 -0
  10. package/src/base-client/components/common/Upload/Upload.vue +161 -158
  11. package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
  12. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +321 -322
  13. package/src/base-client/components/common/XForm/XForm.vue +273 -268
  14. package/src/base-client/components/common/XForm/XFormItem.vue +387 -371
  15. package/src/base-client/components/common/XFormTable/XFormTable.vue +6 -5
  16. package/src/base-client/components/common/XTable/XTable.vue +278 -274
  17. package/src/base-client/components/{iot → system}/LogDetailsView/LogDetailsView.vue +0 -0
  18. package/src/base-client/components/{iot → system}/LogDetailsView/index.js +0 -0
  19. package/src/base-client/components/{iot → system}/LogDetailsView/index.md +0 -0
  20. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -280
  21. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +806 -804
  22. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +24 -24
  23. package/src/base-client/plugins/PagedList.js +177 -176
  24. package/src/components/STable/index.js +318 -316
  25. package/src/components/index.js +36 -36
  26. package/src/components/table/StandardTable.vue +141 -142
  27. package/src/components/tool/TagSelect.vue +83 -83
  28. package/src/layouts/header/AdminHeader.vue +104 -109
  29. package/src/layouts/header/HeaderNotice.vue +167 -199
  30. package/src/layouts/header/InstitutionDetail.vue +181 -182
  31. package/src/pages/CreateQueryPage.vue +65 -59
  32. package/src/pages/system/dictionary/index.vue +43 -41
  33. package/src/pages/system/file/Info.vue +56 -0
  34. package/src/pages/system/file/index.vue +317 -0
  35. package/src/pages/system/queryParams/index.vue +43 -41
  36. package/src/pages/system/ticket/index.vue +458 -452
  37. package/src/pages/system/ticket/submitTicketSuccess.vue +206 -203
  38. package/src/router/async/router.map.js +56 -60
  39. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  40. package/src/services/api/LogDetailsViewApi.js +10 -10
  41. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  42. package/src/services/api/TicketDetailsViewApi.js +42 -40
  43. package/src/services/api/commonTempTable.js +10 -0
  44. package/src/services/api/index.js +2 -24
  45. package/src/services/api/manage.js +8 -16
  46. package/src/utils/excel/Blob.js +181 -181
  47. package/src/utils/excel/Export2Excel.js +141 -142
  48. package/src/utils/i18n.js +80 -80
  49. package/src/utils/request.js +4 -4
  50. package/src/utils/theme-color-replacer-extend.js +91 -92
  51. package/vue.config.js +109 -163
  52. package/src/base-client/all.js +0 -62
  53. package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +0 -225
  54. package/src/base-client/components/iot/CustomerDetailsView/index.js +0 -3
  55. package/src/base-client/components/iot/CustomerDetailsView/index.md +0 -40
  56. package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +0 -127
  57. package/src/base-client/components/iot/DataAnalysisUser/index.js +0 -3
  58. package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +0 -452
  59. package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +0 -3
  60. package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +0 -232
  61. package/src/base-client/components/iot/DeviceDetailsView/index.js +0 -3
  62. package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -41
  63. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +0 -678
  64. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +0 -57
  65. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +0 -122
  66. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +0 -121
  67. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +0 -269
  68. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +0 -131
  69. package/src/base-client/components/iot/DeviceDetailsView/part/index.js +0 -8
  70. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +0 -300
  71. package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +0 -3
  72. package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +0 -464
  73. package/src/base-client/components/iot/InstructDetailsView/index.js +0 -3
  74. package/src/base-client/components/iot/InstructDetailsView/index.md +0 -43
  75. package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +0 -352
  76. package/src/base-client/components/iot/MeterDetailsView/index.js +0 -3
  77. package/src/base-client/components/iot/MeterDetailsView/index.md +0 -41
  78. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -330
  79. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -179
  80. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -285
  81. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -230
  82. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +0 -251
  83. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +0 -184
  84. package/src/base-client/components/iot/MeterDetailsView/part/index.js +0 -9
  85. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +0 -960
  86. package/src/base-client/components/iot/WebmeterAnalysisView/index.js +0 -3
  87. package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -42
  88. package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +0 -370
  89. package/src/base-client/components/ticket/EmployeeDetailsView/index.js +0 -3
  90. package/src/base-client/components/ticket/EmployeeDetailsView/index.md +0 -28
  91. package/src/components/Charts/DataUserOrderSituation.vue +0 -77
  92. package/src/components/Charts/DataUserReporting.vue +0 -74
  93. package/src/components/Charts/DataUserSituation.vue +0 -107
  94. package/src/services/api/CustomerDetailsViewApi.js +0 -6
  95. package/src/services/api/DeviceBrandDetailsViewApi.js +0 -14
  96. package/src/services/api/DeviceDetailsViewApi.js +0 -10
  97. package/src/services/api/DeviceTypeDetailsViewApi.js +0 -6
  98. package/src/services/api/EmployeeDetailsViewApi.js +0 -12
  99. package/src/services/api/FormGroupEditApi.js +0 -6
  100. package/src/services/api/InstructDetailsViewApi.js +0 -12
  101. package/src/services/api/MeterDetailsViewApi.js +0 -24
  102. package/src/services/api/WebmeterAnalysisViewApi.js +0 -24
  103. package/src/services/api/applyInstallApi.js +0 -14
  104. package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +0 -18
  105. package/src/services/api/iot.js +0 -7
  106. package/src/services/api/service.js +0 -12
@@ -1,163 +1,165 @@
1
- <template>
2
- <a-drawer
3
- title="表单参数组配置"
4
- placement="right"
5
- :width="isMobile ? screenWidth : screenWidth * 0.85"
6
- :visible="visible"
7
- @close="onClose"
8
- >
9
- <create-simple-form-query
10
- :to-edit-json="editItem()"
11
- :visible.sync="createQueryVisible"
12
- @saveSimpleFormQueryParams="saveQueryParams"
13
- />
14
- <a-list
15
- :grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
16
- :dataSource="columnJsonCopy()"
17
- >
18
- <a-list-item slot="renderItem" slot-scope="item, index">
19
- <template v-if="item.type">
20
- <a-button class="new-btn" type="dashed" @click="toCreateQuery">
21
- <a-icon type="plus" />新增参数组
22
- </a-button>
23
- </template>
24
- <template v-else>
25
- <a-card :hoverable="true">
26
- <a-card-meta >
27
- <div style="margin-bottom: 3px" slot="title">{{ item.group }}</div>
28
- <a-icon type="tags" slot="avatar" :style="{ fontSize:'2em' }"/>
29
- <div class="meta-content" slot="description">{{ item.describe }}</div>
30
- </a-card-meta>
31
- <a slot="actions" @click="toEditQuery(index)">编辑</a>
32
- <a slot="actions" @click="toDelete(index)">删除</a>
33
- </a-card>
34
- </template>
35
- </a-list-item>
36
- </a-list>
37
- </a-drawer>
38
- </template>
39
-
40
- <script>
41
- import { mapState } from 'vuex'
42
-
43
- export default {
44
- name: 'FormGroupQuery',
45
- components: {
46
- },
47
- data () {
48
- return {
49
- // 页面宽度
50
- screenWidth: document.documentElement.clientWidth,
51
- // 是否显示生成查询配置抽屉
52
- createQueryVisible: false,
53
- targetIndex: 0,
54
- columnJson: {},
55
- editIndex: -1
56
- }
57
- },
58
- mounted () {
59
- this.initView()
60
- },
61
- computed: {
62
- ...mapState('setting', ['isMobile'])
63
- },
64
- props: {
65
- visible: {
66
- type: Boolean,
67
- default: false
68
- }
69
- },
70
- watch: {
71
- visible (rel) {
72
- if (rel) {
73
- this.initView()
74
- }
75
- }
76
- },
77
- methods: {
78
- // 初始化组件
79
- initView () {
80
- this.editIndex = -1
81
- this.$emit('getColumnJson', val => {
82
- this.columnJson = val
83
- })
84
- },
85
- toCreateQuery () {
86
- this.editIndex = -1
87
- this.createQueryVisible = true
88
- },
89
- toEditQuery (index) {
90
- this.editIndex = index
91
- this.createQueryVisible = true
92
- },
93
- toDelete (index) {
94
- const _this = this
95
- this.$confirm({
96
- title: '您确定要删除该参数组?',
97
- content: '删除的参数组无法恢复',
98
- okText: '确定',
99
- okType: 'danger',
100
- cancelText: '取消',
101
- onOk () {
102
- _this.columnJson.groups.splice(index, 1)
103
- _this.$emit('saveQueryParams', _this.columnJson)
104
- }
105
- })
106
- },
107
- onClose () {
108
- this.$emit('update:visible', false)
109
- },
110
- // 存储查询配置信息
111
- saveQueryParams (source) {
112
- if (!this.columnJson.groups) {
113
- this.columnJson.groups = []
114
- }
115
- if (this.editIndex !== -1) {
116
- this.columnJson.groups[this.editIndex] = source
117
- } else {
118
- this.columnJson.groups.push(source)
119
- }
120
- this.$emit('saveQueryParams', this.columnJson)
121
- this.createQueryVisible = false
122
- },
123
- columnJsonCopy () {
124
- let groups
125
- if (this.columnJson.groups) {
126
- groups = JSON.parse(JSON.stringify(this.columnJson.groups))
127
- } else {
128
- groups = []
129
- }
130
- groups.push({ type: 'add' })
131
- return groups
132
- },
133
- editItem () {
134
- if (this.editIndex !== -1) {
135
- return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
136
- } else {
137
- return {}
138
- }
139
- }
140
- }
141
- }
142
- </script>
143
- <style lang="less" scoped>
144
- .card-avatar {
145
- width: 48px;
146
- height: 48px;
147
- border-radius: 48px;
148
- }
149
- .new-btn{
150
- border-radius: 2px;
151
- width: 100%;
152
- height: 187px;
153
- }
154
- .meta-content{
155
- position: relative;
156
- overflow: hidden;
157
- text-overflow: ellipsis;
158
- display: -webkit-box;
159
- height: 64px;
160
- -webkit-line-clamp: 3;
161
- -webkit-box-orient: vertical;
162
- }
163
- </style>
1
+ <template>
2
+ <a-drawer
3
+ :visible="visible"
4
+ :width="isMobile ? screenWidth : screenWidth * 0.85"
5
+ placement="right"
6
+ title="表单参数组配置"
7
+ @close="onClose"
8
+ >
9
+ <create-simple-form-query
10
+ :to-edit-json="editItem()"
11
+ :visible.sync="createQueryVisible"
12
+ @saveSimpleFormQueryParams="saveQueryParams"
13
+ />
14
+ <a-list
15
+ :dataSource="columnJsonCopy()"
16
+ :grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
17
+ >
18
+ <a-list-item slot="renderItem" slot-scope="item, index">
19
+ <template v-if="item.type">
20
+ <a-button class="new-btn" type="dashed" @click="toCreateQuery">
21
+ <a-icon type="plus" />新增参数组
22
+ </a-button>
23
+ </template>
24
+ <template v-else>
25
+ <a-card :hoverable="true">
26
+ <a-card-meta >
27
+ <div slot="title" style="margin-bottom: 3px">{{ item.group }}</div>
28
+ <a-icon slot="avatar" :style="{ fontSize:'2em' }" type="tags"/>
29
+ <div slot="description" class="meta-content">{{ item.describe }}</div>
30
+ </a-card-meta>
31
+ <a slot="actions" @click="toEditQuery(index)">编辑</a>
32
+ <a slot="actions" @click="toDelete(index)">删除</a>
33
+ </a-card>
34
+ </template>
35
+ </a-list-item>
36
+ </a-list>
37
+ </a-drawer>
38
+ </template>
39
+
40
+ <script>
41
+ import { mapState } from 'vuex'
42
+ import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
43
+
44
+ export default {
45
+ name: 'FormGroupQuery',
46
+ components: {
47
+ CreateSimpleFormQuery
48
+ },
49
+ data () {
50
+ return {
51
+ // 页面宽度
52
+ screenWidth: document.documentElement.clientWidth,
53
+ // 是否显示生成查询配置抽屉
54
+ createQueryVisible: false,
55
+ targetIndex: 0,
56
+ columnJson: {},
57
+ editIndex: -1
58
+ }
59
+ },
60
+ mounted () {
61
+ this.initView()
62
+ },
63
+ computed: {
64
+ ...mapState('setting', ['isMobile'])
65
+ },
66
+ props: {
67
+ visible: {
68
+ type: Boolean,
69
+ default: false
70
+ }
71
+ },
72
+ watch: {
73
+ visible (rel) {
74
+ if (rel) {
75
+ this.initView()
76
+ }
77
+ }
78
+ },
79
+ methods: {
80
+ // 初始化组件
81
+ initView () {
82
+ this.editIndex = -1
83
+ this.$emit('getColumnJson', val => {
84
+ this.columnJson = val
85
+ })
86
+ },
87
+ toCreateQuery () {
88
+ this.editIndex = -1
89
+ this.createQueryVisible = true
90
+ },
91
+ toEditQuery (index) {
92
+ this.editIndex = index
93
+ this.createQueryVisible = true
94
+ },
95
+ toDelete (index) {
96
+ const _this = this
97
+ this.$confirm({
98
+ title: '您确定要删除该参数组?',
99
+ content: '删除的参数组无法恢复',
100
+ okText: '确定',
101
+ okType: 'danger',
102
+ cancelText: '取消',
103
+ onOk () {
104
+ _this.columnJson.groups.splice(index, 1)
105
+ _this.$emit('saveQueryParams', _this.columnJson)
106
+ }
107
+ })
108
+ },
109
+ onClose () {
110
+ this.$emit('update:visible', false)
111
+ },
112
+ // 存储查询配置信息
113
+ saveQueryParams (source) {
114
+ if (!this.columnJson.groups) {
115
+ this.columnJson.groups = []
116
+ }
117
+ if (this.editIndex !== -1) {
118
+ this.columnJson.groups[this.editIndex] = source
119
+ } else {
120
+ this.columnJson.groups.push(source)
121
+ }
122
+ this.$emit('saveQueryParams', this.columnJson)
123
+ this.createQueryVisible = false
124
+ },
125
+ columnJsonCopy () {
126
+ let groups
127
+ if (this.columnJson.groups) {
128
+ groups = JSON.parse(JSON.stringify(this.columnJson.groups))
129
+ } else {
130
+ groups = []
131
+ }
132
+ groups.push({ type: 'add' })
133
+ return groups
134
+ },
135
+ editItem () {
136
+ if (this.editIndex !== -1) {
137
+ return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
138
+ } else {
139
+ return {}
140
+ }
141
+ }
142
+ }
143
+ }
144
+ </script>
145
+ <style lang="less" scoped>
146
+ .card-avatar {
147
+ width: 48px;
148
+ height: 48px;
149
+ border-radius: 48px;
150
+ }
151
+ .new-btn{
152
+ border-radius: 2px;
153
+ width: 100%;
154
+ height: 187px;
155
+ }
156
+ .meta-content{
157
+ position: relative;
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ display: -webkit-box;
161
+ height: 64px;
162
+ -webkit-line-clamp: 3;
163
+ -webkit-box-orient: vertical;
164
+ }
165
+ </style>
@@ -0,0 +1,113 @@
1
+ <template>
2
+ <a-list
3
+ :data-source="model.rows"
4
+ :bordered="bordered"
5
+ v-infinite-scroll="handleInfiniteOnLoad"
6
+ class="srcoll-list-infinite-container"
7
+ :infinite-scroll-disabled="busy"
8
+ :infinite-scroll-distance="distance"
9
+ >
10
+ <a-list-item slot="renderItem" class="srcoll_list_li" slot-scope="item,index" @click="selectItem(index,item)">
11
+ <slot :item="item" :index="index" >
12
+ </slot>
13
+ </a-list-item>
14
+ <div v-if="loading && !busy" class="srcoll-list-loading-container">
15
+ <a-spin />
16
+ </div>
17
+ </a-list>
18
+ </template>
19
+
20
+ <script>
21
+ import infiniteScroll from 'vue-infinite-scroll'
22
+ import { post } from '@vue2-client/services/api/restTools'
23
+
24
+ export default {
25
+ name: 'SrcollList1',
26
+ directives: { infiniteScroll },
27
+ props: {
28
+ 'busy': { // 是否执行回调
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ 'distance': { // 距底部多少像素触发回调
33
+ type: Number,
34
+ default: 1
35
+ },
36
+ 'bordered': { // 是否显示列表边框
37
+ type: Boolean,
38
+ default: true
39
+ },
40
+ 'model': {
41
+ type: Object,
42
+ default: () => {
43
+ return {}
44
+ }
45
+ }
46
+ },
47
+ data () {
48
+ return {
49
+ selectRow: {},
50
+ loading: false
51
+ }
52
+ },
53
+ mounted () {
54
+ },
55
+ methods: {
56
+ selectItem (index, item) {
57
+ this.$emit('selectItem', index, item)
58
+ },
59
+ handleInfiniteOnLoad () {
60
+ this.loading = true
61
+ if (this.model.pageNo < this.model.totalPage || this.model.pageNo == 0) {
62
+ this.model.pageNo = this.model.pageNo + 1
63
+ post(this.model.url, { data: this.model }).then((res) => {
64
+ this.model.rows = this.model.rows.concat(res.data).map((item, index) => ({ ...item, index }))
65
+ this.loading = false
66
+ this.model.totalPage = res.totalPage
67
+ this.model.totalCount = res.totalCount
68
+ })
69
+ } else {
70
+ this.loading = false
71
+ }
72
+ },
73
+ search () {
74
+ this.model.pageNo = 0
75
+ this.model.rows = []
76
+ this.handleInfiniteOnLoad()
77
+ }
78
+ }
79
+ }
80
+ </script>
81
+
82
+ <style scoped>
83
+ .srcoll-list-infinite-container {
84
+ border-radius: 4px;
85
+ height: 100%;
86
+ overflow-y: scroll;
87
+ }
88
+ /*滚动条样式*/
89
+ .srcoll-list-infinite-container::-webkit-scrollbar {
90
+ width: 4px;
91
+ /*height: 4px;*/
92
+ }
93
+ .srcoll-list-infinite-container::-webkit-scrollbar-thumb {
94
+ border-radius: 10px;
95
+ -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
96
+ background: rgba(0,0,0,0.2);
97
+ }
98
+ .srcoll-list-infinite-container::-webkit-scrollbar-track {
99
+ -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
100
+ border-radius: 0;
101
+ background: rgba(0,0,0,0.1);
102
+
103
+ }
104
+ .srcoll-list-loading-container {
105
+ position: absolute;
106
+ bottom: 10%;
107
+ width: 100%;
108
+ text-align: center;
109
+ }
110
+ .srcoll_list_li:hover{
111
+ background-color: rgb(203,234,241);
112
+ }
113
+ </style>
@@ -0,0 +1,3 @@
1
+ import ScrollList from './ScrollList'
2
+
3
+ export default ScrollList