vue2-client 1.3.1 → 1.3.4

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 (108) hide show
  1. package/CHANGELOG.md +9 -1
  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/config.async.js +2 -1
  39. package/src/router/async/router.map.js +56 -60
  40. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  41. package/src/services/api/LogDetailsViewApi.js +10 -10
  42. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  43. package/src/services/api/TicketDetailsViewApi.js +42 -40
  44. package/src/services/api/commonTempTable.js +10 -0
  45. package/src/services/api/index.js +2 -24
  46. package/src/services/api/manage.js +8 -16
  47. package/src/utils/excel/Blob.js +181 -181
  48. package/src/utils/excel/Export2Excel.js +141 -142
  49. package/src/utils/i18n.js +80 -80
  50. package/src/utils/request.js +4 -4
  51. package/src/utils/routerUtil.js +358 -350
  52. package/src/utils/theme-color-replacer-extend.js +91 -92
  53. package/vue.config.js +109 -163
  54. package/src/base-client/all.js +0 -62
  55. package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +0 -225
  56. package/src/base-client/components/iot/CustomerDetailsView/index.js +0 -3
  57. package/src/base-client/components/iot/CustomerDetailsView/index.md +0 -40
  58. package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +0 -127
  59. package/src/base-client/components/iot/DataAnalysisUser/index.js +0 -3
  60. package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +0 -452
  61. package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +0 -3
  62. package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +0 -232
  63. package/src/base-client/components/iot/DeviceDetailsView/index.js +0 -3
  64. package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -41
  65. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +0 -678
  66. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +0 -57
  67. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +0 -122
  68. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +0 -121
  69. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +0 -269
  70. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +0 -131
  71. package/src/base-client/components/iot/DeviceDetailsView/part/index.js +0 -8
  72. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +0 -300
  73. package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +0 -3
  74. package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +0 -464
  75. package/src/base-client/components/iot/InstructDetailsView/index.js +0 -3
  76. package/src/base-client/components/iot/InstructDetailsView/index.md +0 -43
  77. package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +0 -352
  78. package/src/base-client/components/iot/MeterDetailsView/index.js +0 -3
  79. package/src/base-client/components/iot/MeterDetailsView/index.md +0 -41
  80. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -330
  81. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -179
  82. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -285
  83. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -230
  84. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +0 -251
  85. package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +0 -184
  86. package/src/base-client/components/iot/MeterDetailsView/part/index.js +0 -9
  87. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +0 -960
  88. package/src/base-client/components/iot/WebmeterAnalysisView/index.js +0 -3
  89. package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -42
  90. package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +0 -370
  91. package/src/base-client/components/ticket/EmployeeDetailsView/index.js +0 -3
  92. package/src/base-client/components/ticket/EmployeeDetailsView/index.md +0 -28
  93. package/src/components/Charts/DataUserOrderSituation.vue +0 -77
  94. package/src/components/Charts/DataUserReporting.vue +0 -74
  95. package/src/components/Charts/DataUserSituation.vue +0 -107
  96. package/src/services/api/CustomerDetailsViewApi.js +0 -6
  97. package/src/services/api/DeviceBrandDetailsViewApi.js +0 -14
  98. package/src/services/api/DeviceDetailsViewApi.js +0 -10
  99. package/src/services/api/DeviceTypeDetailsViewApi.js +0 -6
  100. package/src/services/api/EmployeeDetailsViewApi.js +0 -12
  101. package/src/services/api/FormGroupEditApi.js +0 -6
  102. package/src/services/api/InstructDetailsViewApi.js +0 -12
  103. package/src/services/api/MeterDetailsViewApi.js +0 -24
  104. package/src/services/api/WebmeterAnalysisViewApi.js +0 -24
  105. package/src/services/api/applyInstallApi.js +0 -14
  106. package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +0 -18
  107. package/src/services/api/iot.js +0 -7
  108. package/src/services/api/service.js +0 -12
@@ -1,280 +1,281 @@
1
- <template>
2
- <div>
3
- <a-drawer
4
- ref="QueryParamsDetailsView"
5
- title="查询配置详情"
6
- placement="right"
7
- :width="isMobile ? screenWidth : screenWidth * 0.85"
8
- :visible="visible"
9
- @close="onClose"
10
- >
11
- <create-query
12
- :to-edit-json="editJson"
13
- :visible.sync="createQueryVisible"
14
- @saveQueryParams="saveQueryParams"
15
- />
16
- <a-modal
17
- title="导入JSON配置"
18
- :visible="importJsonVisible"
19
- @ok="importJsonHandleOk"
20
- :getContainer="getContainer"
21
- @cancel="importJsonVisible = false"
22
- >
23
- <a-textarea v-model="ImportEditJson" placeholder="输入现有的JSON配置"/>
24
- </a-modal>
25
- <a-spin :spinning="loadDetails">
26
- <a-page-header :title="details.f_name+(details.f_remark ? '(' + details.f_remark + ')' : '')">
27
- <div class="row">
28
- <div class="content">
29
- <a-descriptions size="small" :column="isMobile ? 1 : 2">
30
- <a-descriptions-item label="所属模块">{{ details.f_module }}</a-descriptions-item>
31
- <a-descriptions-item label="创建人">{{ details.f_inputtor }}</a-descriptions-item>
32
- <a-descriptions-item label="创建时间">{{ details.f_input_date }}</a-descriptions-item>
33
- <a-descriptions-item label="描述">{{ details.f_remark }}</a-descriptions-item>
34
- </a-descriptions>
35
- </div>
36
- </div>
37
- <!-- actions -->
38
- <template v-slot:extra>
39
- <a-button-group style="margin-right: 4px;">
40
- <a-button type="dashed" @click="initView" :loading="loadDetails">刷新</a-button>
41
- </a-button-group>
42
- <a-button-group style="margin-right: 4px;">
43
- </a-button-group>
44
- </template>
45
- <template slot="footer">
46
- <a-tabs :default-active-key="tabActiveKey" :activeKey="tabActiveKey" @change="handleTabChange" style="margin-bottom: 23px;">
47
- <template v-for="value in tabList">
48
- <a-tab-pane :key="value.key" :tab="value.tab"/>
49
- </template>
50
- </a-tabs>
51
- <div v-if="!loadDetails">
52
- <div v-if="tabActiveKey === '1'">
53
- <a-space>
54
- <a-button type="primary" @click="toCreateQuery">
55
- <a-icon :style="iconStyle" type="edit"/>编辑查询配置
56
- </a-button>
57
- <a-button type="primary" @click="importJsonVisible = true">
58
- <a-icon :style="iconStyle" type="api"/>导入查询配置
59
- </a-button>
60
- </a-space>
61
-
62
- <a-card title="查询配置预览" :bordered="true" size="small" style="margin-top: 20px;">
63
- <json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :value="editJson" :expand-depth="parseInt('100')" style="overflow: auto;max-height: 440px"></json-viewer>
64
- </a-card>
65
- </div>
66
- </div>
67
- </template>
68
- </a-page-header>
69
- </a-spin>
70
- </a-drawer>
71
- </div>
72
- </template>
73
-
74
- <script>
75
- import JsonViewer from 'vue-json-viewer'
76
- import { mapState, mapGetters } from 'vuex'
77
- import { QueryParamsDetailsViewApi, post } from '@vue2-client/services/api'
78
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
79
-
80
- export default {
81
- name: 'DeviceTypeDetailsView',
82
- components: {
83
- JsonViewer,
84
- XFormTable
85
- },
86
- data () {
87
- return {
88
- // 页面宽度
89
- screenWidth: document.documentElement.clientWidth,
90
- // Tab页签
91
- tabActiveKey: '1',
92
- // 图标样式
93
- iconStyle: {
94
- position: 'relative',
95
- top: '1px'
96
- },
97
- // 是否显示生成查询配置抽屉
98
- createQueryVisible: false,
99
- // 设备类型详情
100
- details: {
101
- f_module: '',
102
- f_name: '',
103
- f_remark: '',
104
- f_content: '',
105
- f_input_date: '',
106
- f_inputtor: ''
107
- },
108
- // 查询表单配置json
109
- editJson: {},
110
- ImportEditJson: '',
111
- // importJsonVisible
112
- // 导入json对话框
113
- importJsonVisible: false,
114
- tabList: [
115
- { key: '1', tab: '编辑查询配置' }
116
- ],
117
- // 详情加载
118
- loadDetails: false
119
- }
120
- },
121
- mounted () {
122
- this.initView()
123
- },
124
- computed: {
125
- ...mapGetters(['account/user']),
126
- ...mapState('account', { currUser: 'user' }),
127
- ...mapState('setting', ['isMobile'])
128
- },
129
- props: {
130
- id: {
131
- type: String,
132
- required: true
133
- },
134
- visible: {
135
- type: Boolean,
136
- default: false
137
- }
138
- },
139
- methods: {
140
- // 获取model渲染上下文
141
- getContainer () {
142
- // return document.getElementById('QueryParamsDetailsView')
143
- return this.$refs.QueryParamsDetailsView.$el
144
- },
145
- // 初始化组件
146
- initView () {
147
- this.tabActiveKey = '1'
148
- this.editJson = {}
149
- this.getDetails(this.id)
150
- },
151
- toCreateQuery () {
152
- this.createQueryVisible = true
153
- },
154
- importJsonHandleOk () {
155
- try {
156
- const temp = JSON.parse(this.ImportEditJson)
157
- this.editJson = temp
158
- } catch (e) {
159
- this.$message.warn('操作失败,输入配置不是JSON格式')
160
- }
161
- this.importJsonVisible = false
162
- },
163
- onClose () {
164
- this.$emit('update:visible', false)
165
- },
166
- // 获取详情信息
167
- getDetails (id) {
168
- this.loadDetails = true
169
- return post(QueryParamsDetailsViewApi.getQueryParamsDetails, {
170
- id: id
171
- }).then(res => {
172
- this.details = res
173
- this.loadDetails = false
174
- if (this.details.f_content) {
175
- this.editJson = JSON.parse(this.details.f_content)
176
- }
177
- }, err => {
178
- this.loadDetails = false
179
- console.error(err)
180
- })
181
- },
182
- // 存储查询配置信息
183
- saveQueryParams (source) {
184
- return post('/webmeterapi/updateQueryParamsData', {
185
- id: this.id,
186
- source: source
187
- }).then(res => {
188
- this.$message.success('保存查询配置成功')
189
- this.getDetails(this.id)
190
- }, err => {
191
- console.error(err)
192
- })
193
- },
194
- // Tab切换
195
- handleTabChange (key) {
196
- this.tabActiveKey = key
197
- }
198
- },
199
- watch: {
200
- 'visible' (val) {
201
- if (val) {
202
- this.initView()
203
- }
204
- }
205
- }
206
- }
207
- </script>
208
-
209
- <style lang="less" scoped>
210
- .business {
211
- color: #ffffff;
212
- }
213
- .business:enabled:hover {
214
- background-color: #85CE61 !important;
215
- border-color: #85CE61 !important;
216
- }
217
- .business:enabled {
218
- background-color: #67c23a;
219
- border-color: #67c23a;
220
- }
221
- .business:disabled {
222
- color: rgba(0, 0, 0, 0.25);
223
- }
224
- .detail-layout {
225
- margin-left: 44px;
226
- }
227
- .text {
228
- color: rgba(0, 0, 0, .45);
229
- }
230
-
231
- .heading {
232
- color: rgba(0, 0, 0, .85);
233
- font-size: 20px;
234
- }
235
-
236
- .no-data {
237
- color: rgba(0, 0, 0, .25);
238
- text-align: center;
239
- line-height: 64px;
240
- font-size: 16px;
241
-
242
- i {
243
- font-size: 24px;
244
- margin-right: 16px;
245
- position: relative;
246
- top: 3px;
247
- }
248
- }
249
-
250
- .mobile {
251
- .detail-layout {
252
- margin-left: unset;
253
- }
254
- .text {
255
-
256
- }
257
- .status-list {
258
- text-align: left;
259
- }
260
- }
261
-
262
- .row {
263
- display: flex;
264
-
265
- .content {
266
- -webkit-box-flex: 1;
267
- flex: auto;
268
- -ms-flex: auto;
269
- }
270
-
271
- .extra {
272
- flex: 0 1 auto;
273
- -webkit-box-flex: 0;
274
- -ms-flex: 0 1 auto;
275
- min-width: 242px;
276
- margin-left: 88px;
277
- text-align: right;
278
- }
279
- }
280
- </style>
1
+ <template>
2
+ <div>
3
+ <a-drawer
4
+ ref="QueryParamsDetailsView"
5
+ :visible="visible"
6
+ :width="isMobile ? screenWidth : screenWidth * 0.85"
7
+ placement="right"
8
+ title="查询配置详情"
9
+ @close="onClose"
10
+ >
11
+ <create-query
12
+ :to-edit-json="editJson"
13
+ :visible.sync="createQueryVisible"
14
+ @saveQueryParams="saveQueryParams"
15
+ />
16
+ <a-modal
17
+ :getContainer="getContainer"
18
+ :visible="importJsonVisible"
19
+ title="导入JSON配置"
20
+ @cancel="importJsonVisible = false"
21
+ @ok="importJsonHandleOk"
22
+ >
23
+ <a-textarea v-model="ImportEditJson" placeholder="输入现有的JSON配置"/>
24
+ </a-modal>
25
+ <a-spin :spinning="loadDetails">
26
+ <a-page-header :title="details.f_name+(details.f_remark ? '(' + details.f_remark + ')' : '')">
27
+ <div class="row">
28
+ <div class="content">
29
+ <a-descriptions :column="isMobile ? 1 : 2" size="small">
30
+ <a-descriptions-item label="所属模块">{{ details.f_module }}</a-descriptions-item>
31
+ <a-descriptions-item label="创建人">{{ details.f_inputtor }}</a-descriptions-item>
32
+ <a-descriptions-item label="创建时间">{{ details.f_input_date }}</a-descriptions-item>
33
+ <a-descriptions-item label="描述">{{ details.f_remark }}</a-descriptions-item>
34
+ </a-descriptions>
35
+ </div>
36
+ </div>
37
+ <!-- actions -->
38
+ <template v-slot:extra>
39
+ <a-button-group style="margin-right: 4px;">
40
+ <a-button :loading="loadDetails" type="dashed" @click="initView">刷新</a-button>
41
+ </a-button-group>
42
+ <a-button-group style="margin-right: 4px;">
43
+ </a-button-group>
44
+ </template>
45
+ <template slot="footer">
46
+ <a-tabs :activeKey="tabActiveKey" :default-active-key="tabActiveKey" style="margin-bottom: 23px;" @change="handleTabChange">
47
+ <template v-for="value in tabList">
48
+ <a-tab-pane :key="value.key" :tab="value.tab"/>
49
+ </template>
50
+ </a-tabs>
51
+ <div v-if="!loadDetails">
52
+ <div v-if="tabActiveKey === '1'">
53
+ <a-space>
54
+ <a-button type="primary" @click="toCreateQuery">
55
+ <a-icon :style="iconStyle" type="edit"/>编辑查询配置
56
+ </a-button>
57
+ <a-button type="primary" @click="importJsonVisible = true">
58
+ <a-icon :style="iconStyle" type="api"/>导入查询配置
59
+ </a-button>
60
+ </a-space>
61
+
62
+ <a-card :bordered="true" size="small" style="margin-top: 20px;" title="查询配置预览">
63
+ <json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :expand-depth="parseInt('100')" :value="editJson" style="overflow: auto;max-height: 440px"></json-viewer>
64
+ </a-card>
65
+ </div>
66
+ </div>
67
+ </template>
68
+ </a-page-header>
69
+ </a-spin>
70
+ </a-drawer>
71
+ </div>
72
+ </template>
73
+
74
+ <script>
75
+ import JsonViewer from 'vue-json-viewer'
76
+ import { mapGetters, mapState } from 'vuex'
77
+ import { post, QueryParamsDetailsViewApi } from '@vue2-client/services/api'
78
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
79
+ import CreateQuery from '@/base-client/components/common/CreateQuery'
80
+
81
+ export default {
82
+ name: 'QueryParamsDetailsView',
83
+ components: {
84
+ JsonViewer,
85
+ XFormTable,
86
+ CreateQuery
87
+ },
88
+ data () {
89
+ return {
90
+ // 页面宽度
91
+ screenWidth: document.documentElement.clientWidth,
92
+ // Tab页签
93
+ tabActiveKey: '1',
94
+ // 图标样式
95
+ iconStyle: {
96
+ position: 'relative',
97
+ top: '1px'
98
+ },
99
+ // 是否显示生成查询配置抽屉
100
+ createQueryVisible: false,
101
+ // 设备类型详情
102
+ details: {
103
+ f_module: '',
104
+ f_name: '',
105
+ f_remark: '',
106
+ f_content: '',
107
+ f_input_date: '',
108
+ f_inputtor: ''
109
+ },
110
+ // 查询表单配置json
111
+ editJson: {},
112
+ ImportEditJson: '',
113
+ // importJsonVisible
114
+ // 导入json对话框
115
+ importJsonVisible: false,
116
+ tabList: [
117
+ { key: '1', tab: '编辑查询配置' }
118
+ ],
119
+ // 详情加载
120
+ loadDetails: false
121
+ }
122
+ },
123
+ mounted () {
124
+ this.initView()
125
+ },
126
+ computed: {
127
+ ...mapGetters(['account/user']),
128
+ ...mapState('account', { currUser: 'user' }),
129
+ ...mapState('setting', ['isMobile'])
130
+ },
131
+ props: {
132
+ id: {
133
+ type: String,
134
+ required: true
135
+ },
136
+ visible: {
137
+ type: Boolean,
138
+ default: false
139
+ }
140
+ },
141
+ methods: {
142
+ // 获取model渲染上下文
143
+ getContainer () {
144
+ // return document.getElementById('QueryParamsDetailsView')
145
+ return this.$refs.QueryParamsDetailsView.$el
146
+ },
147
+ // 初始化组件
148
+ initView () {
149
+ this.tabActiveKey = '1'
150
+ this.editJson = {}
151
+ this.getDetails(this.id)
152
+ },
153
+ toCreateQuery () {
154
+ this.createQueryVisible = true
155
+ },
156
+ importJsonHandleOk () {
157
+ try {
158
+ this.editJson = JSON.parse(this.ImportEditJson)
159
+ } catch (e) {
160
+ this.$message.warn('操作失败,输入配置不是JSON格式')
161
+ }
162
+ this.importJsonVisible = false
163
+ },
164
+ onClose () {
165
+ this.$emit('update:visible', false)
166
+ },
167
+ // 获取详情信息
168
+ getDetails (id) {
169
+ this.loadDetails = true
170
+ return post(QueryParamsDetailsViewApi.getQueryParamsDetails, {
171
+ id: id
172
+ }).then(res => {
173
+ this.details = res
174
+ this.loadDetails = false
175
+ if (this.details.f_content) {
176
+ this.editJson = JSON.parse(this.details.f_content)
177
+ }
178
+ }, err => {
179
+ this.loadDetails = false
180
+ console.error(err)
181
+ })
182
+ },
183
+ // 存储查询配置信息
184
+ saveQueryParams (source) {
185
+ return post('/af-system/updateQueryParamsData', {
186
+ id: this.id,
187
+ source: source
188
+ }).then(res => {
189
+ this.$message.success('保存查询配置成功')
190
+ this.getDetails(this.id)
191
+ }, err => {
192
+ console.error(err)
193
+ })
194
+ },
195
+ // Tab切换
196
+ handleTabChange (key) {
197
+ this.tabActiveKey = key
198
+ }
199
+ },
200
+ watch: {
201
+ 'visible' (val) {
202
+ if (val) {
203
+ this.initView()
204
+ }
205
+ }
206
+ }
207
+ }
208
+ </script>
209
+
210
+ <style lang="less" scoped>
211
+ .business {
212
+ color: #ffffff;
213
+ }
214
+ .business:enabled:hover {
215
+ background-color: #85CE61 !important;
216
+ border-color: #85CE61 !important;
217
+ }
218
+ .business:enabled {
219
+ background-color: #67c23a;
220
+ border-color: #67c23a;
221
+ }
222
+ .business:disabled {
223
+ color: rgba(0, 0, 0, 0.25);
224
+ }
225
+ .detail-layout {
226
+ margin-left: 44px;
227
+ }
228
+ .text {
229
+ color: rgba(0, 0, 0, .45);
230
+ }
231
+
232
+ .heading {
233
+ color: rgba(0, 0, 0, .85);
234
+ font-size: 20px;
235
+ }
236
+
237
+ .no-data {
238
+ color: rgba(0, 0, 0, .25);
239
+ text-align: center;
240
+ line-height: 64px;
241
+ font-size: 16px;
242
+
243
+ i {
244
+ font-size: 24px;
245
+ margin-right: 16px;
246
+ position: relative;
247
+ top: 3px;
248
+ }
249
+ }
250
+
251
+ .mobile {
252
+ .detail-layout {
253
+ margin-left: unset;
254
+ }
255
+ .text {
256
+
257
+ }
258
+ .status-list {
259
+ text-align: left;
260
+ }
261
+ }
262
+
263
+ .row {
264
+ display: flex;
265
+
266
+ .content {
267
+ -webkit-box-flex: 1;
268
+ flex: auto;
269
+ -ms-flex: auto;
270
+ }
271
+
272
+ .extra {
273
+ flex: 0 1 auto;
274
+ -webkit-box-flex: 0;
275
+ -ms-flex: 0 1 auto;
276
+ min-width: 242px;
277
+ margin-left: 88px;
278
+ text-align: right;
279
+ }
280
+ }
281
+ </style>