vue2-client 1.2.28 → 1.2.31
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.
- package/.eslintrc.js +82 -81
- package/CHANGELOG.md +5 -0
- package/package.json +2 -1
- package/src/base-client/all.js +2 -2
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +277 -175
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +752 -753
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +1 -2
- package/src/base-client/components/common/ScrollList/SrcollList.vue +113 -0
- package/src/base-client/components/common/ScrollList/index.js +3 -0
- package/src/base-client/components/common/XAddForm/XAddForm.vue +1 -1
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +315 -315
- package/src/base-client/components/common/XAddNativeForm/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +56 -56
- package/src/base-client/components/common/XForm/XForm.vue +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +43 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -2
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +1 -2
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +1 -2
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +1 -2
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +1 -1
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +1 -2
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +1 -2
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +1 -3
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +1 -1
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +1 -2
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +1 -2
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +1 -2
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +1 -2
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +1 -2
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +1 -2
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +844 -846
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +1 -2
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +528 -529
- package/src/base-client/plugins/AppData.js +1 -2
- package/src/base-client/plugins/GetLoginInfoService.js +45 -14
- package/src/components/exception/ExceptionPage.vue +1 -1
- package/src/config/CreateQueryConfig.js +40 -0
- package/src/layouts/ComponentLayoutOne.vue +0 -1
- package/src/layouts/SinglePageView.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/pages/report/ReportTableHome.vue +1 -1
- package/src/pages/resourceManage/depListManage.vue +23 -0
- package/src/pages/resourceManage/funListManage.vue +23 -0
- package/src/pages/resourceManage/index.js +15 -0
- package/src/pages/resourceManage/orgListManage.vue +98 -0
- package/src/pages/resourceManage/resourceManageMain.vue +37 -34
- package/src/pages/resourceManage/roleListManage.vue +23 -0
- package/src/pages/resourceManage/staffListManage.vue +23 -0
- package/src/pages/system/ticket/index.vue +437 -438
- package/src/pages/system/ticket/submitTicketSuccess.vue +1 -2
- package/src/services/api/EmployeeDetailsViewApi.js +16 -16
- package/src/services/api/common.js +10 -0
- package/src/services/api/index.js +39 -0
- package/src/services/{api.js → apiService.js} +0 -0
- package/src/services/user.js +1 -1
- package/src/store/modules/account.js +2 -2
- package/src/utils/indexedDB.js +1 -1
- package/src/utils/request.js +197 -197
- package/src/utils/routerUtil.js +1 -13
- package/src/utils/util.js +12 -0
- package/vue.config.js +143 -143
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +0 -549
- package/src/base-client/components/iot/DataAnalysisViewGD/WindowTemplate/WindowInfotemp.vue +0 -99
- package/src/base-client/components/iot/DataAnalysisViewGD/WindowTemplate/index.js +0 -3
- package/src/base-client/components/iot/DataAnalysisViewGD/index.js +0 -3
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
# XAddNativeForm
|
|
2
|
-
|
|
3
|
-
动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## 何时使用
|
|
7
|
-
|
|
8
|
-
当需要一个可供新增/修改数据的动态生成的表单时
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
引用方式:
|
|
12
|
-
|
|
13
|
-
```javascript
|
|
14
|
-
import XAddNativeForm from '@vue2-client/base-client/components/XAddNativeForm/XAddNativeForm'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
XAddNativeForm
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## 代码演示
|
|
26
|
-
|
|
27
|
-
```html
|
|
28
|
-
<x-add-form
|
|
29
|
-
:business-type="businessType"
|
|
30
|
-
:json-data="formItems"
|
|
31
|
-
:modify-model-data="modifyModelData"
|
|
32
|
-
:loading="loading"
|
|
33
|
-
@onSubmit="onSubmit">
|
|
34
|
-
</x-add-form>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## API
|
|
38
|
-
|
|
39
|
-
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
|
-
|-----------------|--------------------------|---------|-------|
|
|
41
|
-
| businessType | 业务类型 | String | '' |
|
|
42
|
-
| jsonData | JSON配置,根据[工具>查询配置生成]功能生成 | Object | {} |
|
|
43
|
-
| modifyModelData | 修改操作前查询出的业务数据 | Object | {} |
|
|
44
|
-
| loading | 新增或修改业务是否执行中 | Boolean | false |
|
|
45
|
-
| fixedAddForm | 固定新增表单,会和新增表单合并 | Object | {} |
|
|
46
|
-
| @onSubmit | 表单的提交事件 | event | - |
|
|
47
|
-
|
|
48
|
-
## 例子1
|
|
49
|
-
----
|
|
50
|
-
参考XFormTable组件
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
注意事项
|
|
54
|
-
----
|
|
55
|
-
|
|
56
|
-
> 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
|
|
1
|
+
# XAddNativeForm
|
|
2
|
+
|
|
3
|
+
动态新增/修改表单控件,根据JSON配置生成一个完整的可供新增/修改数据的动态表单
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 何时使用
|
|
7
|
+
|
|
8
|
+
当需要一个可供新增/修改数据的动态生成的表单时
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
引用方式:
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import XAddNativeForm from '@vue2-client/base-client/components/XAddNativeForm/XAddNativeForm'
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
components: {
|
|
18
|
+
XAddNativeForm
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 代码演示
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<x-add-form
|
|
29
|
+
:business-type="businessType"
|
|
30
|
+
:json-data="formItems"
|
|
31
|
+
:modify-model-data="modifyModelData"
|
|
32
|
+
:loading="loading"
|
|
33
|
+
@onSubmit="onSubmit">
|
|
34
|
+
</x-add-form>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
|
+
|-----------------|--------------------------|---------|-------|
|
|
41
|
+
| businessType | 业务类型 | String | '' |
|
|
42
|
+
| jsonData | JSON配置,根据[工具>查询配置生成]功能生成 | Object | {} |
|
|
43
|
+
| modifyModelData | 修改操作前查询出的业务数据 | Object | {} |
|
|
44
|
+
| loading | 新增或修改业务是否执行中 | Boolean | false |
|
|
45
|
+
| fixedAddForm | 固定新增表单,会和新增表单合并 | Object | {} |
|
|
46
|
+
| @onSubmit | 表单的提交事件 | event | - |
|
|
47
|
+
|
|
48
|
+
## 例子1
|
|
49
|
+
----
|
|
50
|
+
参考XFormTable组件
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
注意事项
|
|
54
|
+
----
|
|
55
|
+
|
|
56
|
+
> 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
<script>
|
|
72
72
|
import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormItem'
|
|
73
|
-
import { post } from '@vue2-client/services/api
|
|
73
|
+
import { post } from '@vue2-client/services/api'
|
|
74
74
|
|
|
75
75
|
export default {
|
|
76
76
|
name: 'XForm',
|
|
@@ -161,11 +161,53 @@
|
|
|
161
161
|
</a-form-model-item>
|
|
162
162
|
</x-form-col>
|
|
163
163
|
<!-- TODO 文件上传 -->
|
|
164
|
+
<x-form-col
|
|
165
|
+
:xl="24"
|
|
166
|
+
:xxl="24"
|
|
167
|
+
:xs="24"
|
|
168
|
+
:sm="24"
|
|
169
|
+
:md="24"
|
|
170
|
+
:lg="24"
|
|
171
|
+
v-else-if="attr.type === 'file'">
|
|
172
|
+
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
173
|
+
<a-upload-dragger
|
|
174
|
+
name="file"
|
|
175
|
+
:multiple="true"
|
|
176
|
+
:action="'/webmeteruploadapi/upload/'+attr.resUploadMode">
|
|
177
|
+
<p class="ant-upload-drag-icon">
|
|
178
|
+
<a-icon type="inbox"/>
|
|
179
|
+
</p>
|
|
180
|
+
<p class="ant-upload-text">
|
|
181
|
+
点击或拖动文件到该区域上传
|
|
182
|
+
</p>
|
|
183
|
+
<p class="ant-upload-hint">
|
|
184
|
+
支持单个或多个文件
|
|
185
|
+
</p>
|
|
186
|
+
</a-upload-dragger>
|
|
187
|
+
</a-form-model-item>
|
|
188
|
+
</x-form-col>
|
|
164
189
|
<!-- TODO 图片上传 -->
|
|
190
|
+
<x-form-col
|
|
191
|
+
:xl="24"
|
|
192
|
+
:xxl="24"
|
|
193
|
+
:xs="24"
|
|
194
|
+
:sm="24"
|
|
195
|
+
:md="24"
|
|
196
|
+
:lg="24"
|
|
197
|
+
v-else-if="attr.type === 'image'">
|
|
198
|
+
<a-form-model-item :ref="attr.model" :label="attr.name" :prop="attr.model">
|
|
199
|
+
<a-upload list-type="picture-card" :file-list="[]">
|
|
200
|
+
<a-icon type="plus"/>
|
|
201
|
+
<div class="ant-upload-text">
|
|
202
|
+
Upload
|
|
203
|
+
</div>
|
|
204
|
+
</a-upload>
|
|
205
|
+
</a-form-model-item>
|
|
206
|
+
</x-form-col>
|
|
165
207
|
</template>
|
|
166
208
|
<script>
|
|
167
209
|
|
|
168
|
-
import { post } from '@vue2-client/services/api
|
|
210
|
+
import { post } from '@vue2-client/services/api'
|
|
169
211
|
import { debounce } from 'ant-design-vue/lib/vc-table/src/utils'
|
|
170
212
|
|
|
171
213
|
export default {
|
|
@@ -57,11 +57,10 @@
|
|
|
57
57
|
import XForm from '@vue2-client/base-client/components/common/XForm/XForm'
|
|
58
58
|
import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
|
|
59
59
|
import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
|
|
60
|
-
import {
|
|
60
|
+
import { commonApi, query, addOrModify, remove, post } from '@vue2-client/services/api'
|
|
61
61
|
import { indexedDB } from '@vue2-client/utils/indexedDB'
|
|
62
62
|
import { mapState } from 'vuex'
|
|
63
63
|
import { Modal } from 'ant-design-vue'
|
|
64
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
65
64
|
|
|
66
65
|
export default {
|
|
67
66
|
name: 'XFormTable',
|
|
@@ -74,8 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
<script>
|
|
76
76
|
import { formatDate } from '@vue2-client/utils/util'
|
|
77
|
-
import { CustomerDetailsViewApi } from '@vue2-client/services/api
|
|
78
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
77
|
+
import { CustomerDetailsViewApi, post } from '@vue2-client/services/api'
|
|
79
78
|
import { mapState } from 'vuex'
|
|
80
79
|
|
|
81
80
|
export default {
|
|
@@ -116,8 +116,7 @@
|
|
|
116
116
|
<script>
|
|
117
117
|
import JsonViewer from 'vue-json-viewer'
|
|
118
118
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
119
|
-
import { DeviceBrandDetailsViewApi } from '@vue2-client/services/api
|
|
120
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
119
|
+
import { DeviceBrandDetailsViewApi, post } from '@vue2-client/services/api'
|
|
121
120
|
import { mapGetters, mapState } from 'vuex'
|
|
122
121
|
|
|
123
122
|
const leftTableColumns = [
|
|
@@ -58,9 +58,8 @@
|
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
60
|
import { DeviceDetailsMain, DeviceDetailsCount, DeviceDetailsInstruct, DeviceDetailsRead, DeviceDetailsSingular, DeviceDetailsInstructOperate } from '@vue2-client/base-client/components/iot/DeviceDetailsView/part'
|
|
61
|
-
import { post } from '@vue2-client/services/api
|
|
61
|
+
import { DeviceDetailsViewApi, post } from '@vue2-client/services/api'
|
|
62
62
|
import { mapState } from 'vuex'
|
|
63
|
-
import { DeviceDetailsViewApi } from '@vue2-client/services/api/DeviceDetailsViewApi'
|
|
64
63
|
|
|
65
64
|
export default {
|
|
66
65
|
name: 'DeviceDetailsView',
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
import { Area, Line } from '@antv/g2plot/lib/index'
|
|
81
81
|
import ARow from 'ant-design-vue/es/grid/Row'
|
|
82
82
|
import ACol from 'ant-design-vue/es/grid/Col'
|
|
83
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
83
|
+
import { MeterDetailsViewApi } from '@vue2-client/services/api'
|
|
84
84
|
|
|
85
85
|
export default {
|
|
86
86
|
name: 'DeviceDetailsCount',
|
package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue
CHANGED
|
@@ -12,9 +12,8 @@
|
|
|
12
12
|
<script>
|
|
13
13
|
|
|
14
14
|
import { STable, Ellipsis } from '@vue2-client/components'
|
|
15
|
-
import { post } from '@vue2-client/services/api
|
|
15
|
+
import { DeviceDetailsViewApi, post } from '@vue2-client/services/api'
|
|
16
16
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
17
|
-
import { DeviceDetailsViewApi } from '@vue2-client/services/api/DeviceDetailsViewApi'
|
|
18
17
|
|
|
19
18
|
export default {
|
|
20
19
|
name: 'DeviceDetailsInstructOperate',
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
<script>
|
|
67
67
|
import JsonViewer from 'vue-json-viewer'
|
|
68
68
|
import { mapState, mapGetters } from 'vuex'
|
|
69
|
-
import { post } from '@vue2-client/services/api
|
|
70
|
-
import { DeviceTypeDetailsViewApi } from '@vue2-client/services/api/DeviceTypeDetailsViewApi'
|
|
69
|
+
import { DeviceTypeDetailsViewApi, post } from '@vue2-client/services/api'
|
|
71
70
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
72
71
|
|
|
73
72
|
export default {
|
|
@@ -133,9 +133,7 @@
|
|
|
133
133
|
<script>
|
|
134
134
|
import JsonViewer from 'vue-json-viewer'
|
|
135
135
|
import { formatDate } from '@vue2-client/utils/util'
|
|
136
|
-
import { InstructDetailsViewApi } from '@vue2-client/services/api
|
|
137
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
138
|
-
import { query, commonApi } from '@vue2-client/services/api/common'
|
|
136
|
+
import { InstructDetailsViewApi, post, query, commonApi } from '@vue2-client/services/api'
|
|
139
137
|
import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
|
|
140
138
|
import { mapState } from 'vuex'
|
|
141
139
|
|
|
@@ -132,8 +132,7 @@
|
|
|
132
132
|
|
|
133
133
|
<script>
|
|
134
134
|
import { formatDate } from '@vue2-client/utils/util'
|
|
135
|
-
import { LogDetailsViewApi } from '@vue2-client/services/api
|
|
136
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
135
|
+
import { LogDetailsViewApi, post } from '@vue2-client/services/api'
|
|
137
136
|
import { mapState } from 'vuex'
|
|
138
137
|
|
|
139
138
|
const statusIconMap = {
|
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
<script>
|
|
96
96
|
import { MeterDetailsMain, MeterDetailsCount, MeterDetailsHandPlan,
|
|
97
97
|
MeterDetailsSellGas, MeterDetailsException, MeterDetailsInstruct } from '@vue2-client/base-client/components/iot/MeterDetailsView/part'
|
|
98
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
99
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
98
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
100
99
|
import { mapState } from 'vuex'
|
|
101
100
|
|
|
102
101
|
export default {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
import { Area, Line } from '@antv/g2plot'
|
|
81
81
|
import ARow from 'ant-design-vue/es/grid/Row'
|
|
82
82
|
import ACol from 'ant-design-vue/es/grid/Col'
|
|
83
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
83
|
+
import { MeterDetailsViewApi } from '@vue2-client/services/api'
|
|
84
84
|
|
|
85
85
|
export default {
|
|
86
86
|
name: 'MeterDetailsCount',
|
|
@@ -32,9 +32,8 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
</template>
|
|
34
34
|
<script>
|
|
35
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
35
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
36
36
|
import { STable } from '@vue2-client/components'
|
|
37
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
38
37
|
|
|
39
38
|
const exceptionColumns = [
|
|
40
39
|
{
|
|
@@ -67,9 +67,8 @@
|
|
|
67
67
|
</template>
|
|
68
68
|
<script>
|
|
69
69
|
|
|
70
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
70
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
71
71
|
import { STable } from '@vue2-client/components'
|
|
72
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
73
72
|
|
|
74
73
|
const handPlanColumns = [
|
|
75
74
|
{
|
|
@@ -58,10 +58,9 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
<script>
|
|
60
60
|
|
|
61
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api
|
|
61
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
62
62
|
import { STable, Ellipsis } from '@vue2-client/components'
|
|
63
63
|
import { timeCompare, formatDate } from '@vue2-client/utils/util'
|
|
64
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
65
64
|
|
|
66
65
|
const InstructColumns = [
|
|
67
66
|
{
|
|
@@ -111,8 +111,7 @@
|
|
|
111
111
|
</template>
|
|
112
112
|
<script>
|
|
113
113
|
import { formatDate } from '@vue2-client/utils/util'
|
|
114
|
-
import { post } from '@vue2-client/services/api
|
|
115
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api/MeterDetailsViewApi'
|
|
114
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
116
115
|
import { mapState } from 'vuex'
|
|
117
116
|
|
|
118
117
|
export default {
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
<script>
|
|
32
32
|
|
|
33
33
|
import { STable } from '@vue2-client/components'
|
|
34
|
-
import { post } from '@vue2-client/services/api
|
|
35
|
-
import { MeterDetailsViewApi } from '@vue2-client/services/api/MeterDetailsViewApi'
|
|
34
|
+
import { MeterDetailsViewApi, post } from '@vue2-client/services/api'
|
|
36
35
|
|
|
37
36
|
const columns = [
|
|
38
37
|
{
|
|
@@ -240,8 +240,7 @@ import {
|
|
|
240
240
|
import { formatDate } from '@vue2-client/utils/util'
|
|
241
241
|
import { Line } from '@antv/g2plot'
|
|
242
242
|
import { mapState } from 'vuex'
|
|
243
|
-
import { post } from '@vue2-client/services/api
|
|
244
|
-
import { WebmeterAnalysisViewApi } from '@vue2-client/services/api/WebmeterAnalysisViewApi'
|
|
243
|
+
import { WebmeterAnalysisViewApi, post } from '@vue2-client/services/api'
|
|
245
244
|
|
|
246
245
|
const barData = []
|
|
247
246
|
const barData2 = []
|
|
@@ -57,8 +57,7 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
|
-
import { DictionaryDetailsViewApi } from '@vue2-client/services/api
|
|
61
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
60
|
+
import { DictionaryDetailsViewApi, post } from '@vue2-client/services/api'
|
|
62
61
|
import { mapState } from 'vuex'
|
|
63
62
|
import { formatDate } from '@vue2-client/utils/util'
|
|
64
63
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
@@ -58,9 +58,8 @@
|
|
|
58
58
|
<script>
|
|
59
59
|
import JsonViewer from 'vue-json-viewer'
|
|
60
60
|
import { mapState, mapGetters } from 'vuex'
|
|
61
|
-
import { post } from '@vue2-client/services/api
|
|
61
|
+
import { QueryParamsDetailsViewApi, post } from '@vue2-client/services/api'
|
|
62
62
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
63
|
-
import { QueryParamsDetailsViewApi } from '@vue2-client/services/api/QueryParamsDetailsViewApi'
|
|
64
63
|
|
|
65
64
|
export default {
|
|
66
65
|
name: 'DeviceTypeDetailsView',
|
|
@@ -70,8 +70,7 @@
|
|
|
70
70
|
<script>
|
|
71
71
|
import JsonViewer from 'vue-json-viewer'
|
|
72
72
|
import { formatDate } from '@vue2-client/utils/util'
|
|
73
|
-
import { EmployeeDetailsViewApi } from '@vue2-client/services/api
|
|
74
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
73
|
+
import { EmployeeDetailsViewApi, post } from '@vue2-client/services/api'
|
|
75
74
|
import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
|
|
76
75
|
import { mapState } from 'vuex'
|
|
77
76
|
import {
|