vue2-client 1.3.0 → 1.3.3
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/CHANGELOG.md +9 -1
- package/index.js +30 -28
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +225 -225
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -777
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +553 -553
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -163
- package/src/base-client/components/common/Upload/Upload.vue +161 -158
- package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +321 -322
- package/src/base-client/components/common/XForm/XForm.vue +273 -268
- package/src/base-client/components/common/XForm/XFormItem.vue +387 -371
- package/src/base-client/components/common/XFormTable/XFormTable.vue +8 -7
- package/src/base-client/components/common/XTable/XTable.vue +278 -274
- package/src/base-client/components/{iot → system}/LogDetailsView/LogDetailsView.vue +0 -0
- package/src/base-client/components/{iot → system}/LogDetailsView/index.js +0 -0
- package/src/base-client/components/{iot → system}/LogDetailsView/index.md +0 -0
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -280
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +806 -804
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +24 -24
- package/src/base-client/plugins/PagedList.js +177 -176
- package/src/components/STable/index.js +318 -316
- package/src/components/index.js +36 -36
- package/src/components/table/StandardTable.vue +141 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/layouts/header/AdminHeader.vue +104 -109
- package/src/layouts/header/HeaderNotice.vue +167 -199
- package/src/layouts/header/InstitutionDetail.vue +181 -182
- package/src/pages/CreateQueryPage.vue +65 -59
- package/src/pages/system/dictionary/index.vue +43 -41
- package/src/pages/system/file/Info.vue +56 -0
- package/src/pages/system/file/index.vue +317 -0
- package/src/pages/system/queryParams/index.vue +43 -41
- package/src/pages/system/ticket/index.vue +458 -452
- package/src/pages/system/ticket/submitTicketSuccess.vue +206 -203
- package/src/router/async/config.async.js +2 -1
- package/src/router/async/router.map.js +56 -60
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +42 -40
- package/src/services/api/commonTempTable.js +10 -0
- package/src/services/api/index.js +2 -24
- package/src/services/api/manage.js +8 -16
- package/src/utils/excel/Blob.js +181 -181
- package/src/utils/excel/Export2Excel.js +141 -142
- package/src/utils/i18n.js +80 -80
- package/src/utils/request.js +4 -4
- package/src/utils/routerUtil.js +358 -350
- package/src/utils/theme-color-replacer-extend.js +91 -92
- package/vue.config.js +109 -163
- package/src/base-client/all.js +0 -62
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +0 -225
- package/src/base-client/components/iot/CustomerDetailsView/index.js +0 -3
- package/src/base-client/components/iot/CustomerDetailsView/index.md +0 -40
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +0 -127
- package/src/base-client/components/iot/DataAnalysisUser/index.js +0 -3
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +0 -452
- package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +0 -3
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +0 -232
- package/src/base-client/components/iot/DeviceDetailsView/index.js +0 -3
- package/src/base-client/components/iot/DeviceDetailsView/index.md +0 -41
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +0 -678
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +0 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +0 -122
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +0 -121
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +0 -269
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +0 -131
- package/src/base-client/components/iot/DeviceDetailsView/part/index.js +0 -8
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +0 -300
- package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +0 -3
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +0 -464
- package/src/base-client/components/iot/InstructDetailsView/index.js +0 -3
- package/src/base-client/components/iot/InstructDetailsView/index.md +0 -43
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +0 -352
- package/src/base-client/components/iot/MeterDetailsView/index.js +0 -3
- package/src/base-client/components/iot/MeterDetailsView/index.md +0 -41
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +0 -330
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +0 -179
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +0 -285
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +0 -230
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +0 -251
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +0 -184
- package/src/base-client/components/iot/MeterDetailsView/part/index.js +0 -9
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +0 -960
- package/src/base-client/components/iot/WebmeterAnalysisView/index.js +0 -3
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +0 -42
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +0 -370
- package/src/base-client/components/ticket/EmployeeDetailsView/index.js +0 -3
- package/src/base-client/components/ticket/EmployeeDetailsView/index.md +0 -28
- package/src/components/Charts/DataUserOrderSituation.vue +0 -77
- package/src/components/Charts/DataUserReporting.vue +0 -74
- package/src/components/Charts/DataUserSituation.vue +0 -107
- package/src/services/api/CustomerDetailsViewApi.js +0 -6
- package/src/services/api/DeviceBrandDetailsViewApi.js +0 -14
- package/src/services/api/DeviceDetailsViewApi.js +0 -10
- package/src/services/api/DeviceTypeDetailsViewApi.js +0 -6
- package/src/services/api/EmployeeDetailsViewApi.js +0 -12
- package/src/services/api/FormGroupEditApi.js +0 -6
- package/src/services/api/InstructDetailsViewApi.js +0 -12
- package/src/services/api/MeterDetailsViewApi.js +0 -24
- package/src/services/api/WebmeterAnalysisViewApi.js +0 -24
- package/src/services/api/applyInstallApi.js +0 -14
- package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +0 -18
- package/src/services/api/iot.js +0 -7
- package/src/services/api/service.js +0 -12
|
@@ -1,182 +1,181 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="position: relative;">
|
|
3
|
-
<h2 style="text-align: center">{{ institutionData.f_title }}</h2>
|
|
4
|
-
<p>简述: {{ institutionData.f_sketch }}</p>
|
|
5
|
-
<p>生效时间: {{ format(institutionData.f_effective_date) }}</p>
|
|
6
|
-
<div v-if="showDocument" class="content">
|
|
7
|
-
<iframe :src="institutionDocUrl"
|
|
8
|
-
</div>
|
|
9
|
-
<!-- 其他附件 -->
|
|
10
|
-
<div class="other-file">
|
|
11
|
-
<div class="title">其他附件</div>
|
|
12
|
-
<div v-for="file in otherFiles" :key="file.id">
|
|
13
|
-
<a class="file-item">
|
|
14
|
-
<span class="file-action" @click="handlePreviewDoc(file.url)">
|
|
15
|
-
<a-icon type="link" />{{ file.name }}
|
|
16
|
-
</span>
|
|
17
|
-
<span class="file-action" @click="handlePreviewDoc(file.url)">
|
|
18
|
-
<a-icon type="eye" />预览
|
|
19
|
-
</span>
|
|
20
|
-
<a class="file-action" @click="handlePreDowDoc(file)"
|
|
21
|
-
</a>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<!-- 其他附件预览 -->
|
|
25
|
-
<a-modal v-model="previewDocVisible" :
|
|
26
|
-
<div class="preview-doc-container">
|
|
27
|
-
<a-spin
|
|
28
|
-
<iframe
|
|
29
|
-
v-show="!previewDocLoading"
|
|
30
|
-
:src="previewDocUrl"
|
|
31
|
-
|
|
32
|
-
height="100%"
|
|
33
|
-
|
|
34
|
-
@load="previewDocLoading = false" />
|
|
35
|
-
</div>
|
|
36
|
-
</a-modal>
|
|
37
|
-
<a-button class="submit_btn" type="primary" @click="confirm_institution">确认</a-button>
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script>
|
|
42
|
-
import { Base64 } from 'js-base64'
|
|
43
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
44
|
-
import { formatDate } from '@vue2-client/utils/util'
|
|
45
|
-
|
|
46
|
-
export default {
|
|
47
|
-
name: 'InstitutionDetail',
|
|
48
|
-
props: {
|
|
49
|
-
institutionId: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: undefined
|
|
52
|
-
},
|
|
53
|
-
affirmInstitution: {
|
|
54
|
-
type: Number,
|
|
55
|
-
default: undefined
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
data () {
|
|
59
|
-
return {
|
|
60
|
-
institutionDocUrl: undefined,
|
|
61
|
-
showDocument: false,
|
|
62
|
-
otherFiles: [],
|
|
63
|
-
institutionData: {},
|
|
64
|
-
previewDocVisible: false,
|
|
65
|
-
previewDocUrl: undefined,
|
|
66
|
-
previewDocLoading: false
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
watch: {
|
|
70
|
-
institutionId () {
|
|
71
|
-
this.getDetailData()
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
mounted () {
|
|
75
|
-
this.getDetailData()
|
|
76
|
-
},
|
|
77
|
-
methods: {
|
|
78
|
-
// 获取详情数据
|
|
79
|
-
getDetailData () {
|
|
80
|
-
if (!this.institutionId) {
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
const otherFiles = []
|
|
84
|
-
post('/
|
|
85
|
-
id: this.institutionId
|
|
86
|
-
}).then(res => {
|
|
87
|
-
res.files.forEach(item => {
|
|
88
|
-
if (item.use_type === '制度文件') {
|
|
89
|
-
|
|
90
|
-
this.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
this.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
a.
|
|
116
|
-
a.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.$
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.file-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
.
|
|
173
|
-
|
|
174
|
-
font-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="position: relative;">
|
|
3
|
+
<h2 style="text-align: center">{{ institutionData.f_title }}</h2>
|
|
4
|
+
<p>简述: {{ institutionData.f_sketch }}</p>
|
|
5
|
+
<p>生效时间: {{ format(institutionData.f_effective_date) }}</p>
|
|
6
|
+
<div v-if="showDocument" class="content">
|
|
7
|
+
<iframe :src="institutionDocUrl" frameborder="0" height="100%" width="100%"></iframe>
|
|
8
|
+
</div>
|
|
9
|
+
<!-- 其他附件 -->
|
|
10
|
+
<div class="other-file">
|
|
11
|
+
<div class="title">其他附件</div>
|
|
12
|
+
<div v-for="file in otherFiles" :key="file.id">
|
|
13
|
+
<a class="file-item">
|
|
14
|
+
<span class="file-action" @click="handlePreviewDoc(file.url)">
|
|
15
|
+
<a-icon type="link" />{{ file.name }}
|
|
16
|
+
</span>
|
|
17
|
+
<span class="file-action" @click="handlePreviewDoc(file.url)">
|
|
18
|
+
<a-icon type="eye" />预览
|
|
19
|
+
</span>
|
|
20
|
+
<a class="file-action" target="_blank" @click="handlePreDowDoc(file)"><a-icon type="download" />下载</a>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<!-- 其他附件预览 -->
|
|
25
|
+
<a-modal v-model="previewDocVisible" :dialog-style="{ top: '20px' }" :footer="null" :z-index="1001" width="97%">
|
|
26
|
+
<div class="preview-doc-container">
|
|
27
|
+
<a-spin :spinning="previewDocLoading" size="large" />
|
|
28
|
+
<iframe
|
|
29
|
+
v-show="!previewDocLoading"
|
|
30
|
+
:src="previewDocUrl"
|
|
31
|
+
frameborder="0"
|
|
32
|
+
height="100%"
|
|
33
|
+
width="100%"
|
|
34
|
+
@load="previewDocLoading = false" />
|
|
35
|
+
</div>
|
|
36
|
+
</a-modal>
|
|
37
|
+
<a-button class="submit_btn" type="primary" @click="confirm_institution">确认</a-button>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script>
|
|
42
|
+
import { Base64 } from 'js-base64'
|
|
43
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
44
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
name: 'InstitutionDetail',
|
|
48
|
+
props: {
|
|
49
|
+
institutionId: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: undefined
|
|
52
|
+
},
|
|
53
|
+
affirmInstitution: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: undefined
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
data () {
|
|
59
|
+
return {
|
|
60
|
+
institutionDocUrl: undefined,
|
|
61
|
+
showDocument: false,
|
|
62
|
+
otherFiles: [],
|
|
63
|
+
institutionData: {},
|
|
64
|
+
previewDocVisible: false,
|
|
65
|
+
previewDocUrl: undefined,
|
|
66
|
+
previewDocLoading: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
watch: {
|
|
70
|
+
institutionId () {
|
|
71
|
+
this.getDetailData()
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
mounted () {
|
|
75
|
+
this.getDetailData()
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
// 获取详情数据
|
|
79
|
+
getDetailData () {
|
|
80
|
+
if (!this.institutionId) {
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
const otherFiles = []
|
|
84
|
+
post('/af-system/getInstitutionDetail', {
|
|
85
|
+
id: this.institutionId
|
|
86
|
+
}).then(res => {
|
|
87
|
+
res.files.forEach(item => {
|
|
88
|
+
if (item.use_type === '制度文件') {
|
|
89
|
+
this.institutionDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + item.url))
|
|
90
|
+
this.showDocument = true
|
|
91
|
+
} else {
|
|
92
|
+
otherFiles.push(item)
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
this.institutionData = res.institution
|
|
96
|
+
this.otherFiles = otherFiles
|
|
97
|
+
})
|
|
98
|
+
},
|
|
99
|
+
format (dateStr) {
|
|
100
|
+
return formatDate(dateStr, 'yyyy-MM-dd')
|
|
101
|
+
},
|
|
102
|
+
// 其他附件预览
|
|
103
|
+
handlePreviewDoc (url) {
|
|
104
|
+
const previewDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + url))
|
|
105
|
+
if (this.previewDocUrl != previewDocUrl) {
|
|
106
|
+
this.previewDocLoading = true
|
|
107
|
+
this.previewDocUrl = previewDocUrl
|
|
108
|
+
}
|
|
109
|
+
this.previewDocVisible = true
|
|
110
|
+
},
|
|
111
|
+
// 下载文档
|
|
112
|
+
handlePreDowDoc (file) {
|
|
113
|
+
const a = document.createElement('a')
|
|
114
|
+
a.href = file.url
|
|
115
|
+
a.download = file.name
|
|
116
|
+
a.click()
|
|
117
|
+
},
|
|
118
|
+
confirm_institution () {
|
|
119
|
+
post('/af-system/affirmInstitution', {
|
|
120
|
+
data: {
|
|
121
|
+
tobe: [
|
|
122
|
+
{
|
|
123
|
+
id: this.affirmInstitution,
|
|
124
|
+
f_affirm_type: '系统确认'
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}).then(res => {
|
|
129
|
+
this.$message.success('确认成功')
|
|
130
|
+
this.$emit('get_to_be_confirmed')
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// 文档预览服务 API
|
|
136
|
+
const previewDocService = 'http://123.60.214.109:8012/onlinePreview?url='
|
|
137
|
+
// 文件服务器地址
|
|
138
|
+
const fileServer = 'http://123.60.214.109:8406'
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<style lang="less" scoped>
|
|
142
|
+
.submit_btn{
|
|
143
|
+
position: absolute;
|
|
144
|
+
right:0;
|
|
145
|
+
top: 0;
|
|
146
|
+
}
|
|
147
|
+
.content {
|
|
148
|
+
height: 80vh;
|
|
149
|
+
img {
|
|
150
|
+
max-width: 100%;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.other-file {
|
|
154
|
+
margin: 16px 0;
|
|
155
|
+
.title {
|
|
156
|
+
margin-bottom: 6px;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.file-item {
|
|
160
|
+
.file-action {
|
|
161
|
+
padding: 3px 4px;
|
|
162
|
+
color: #1890ff;
|
|
163
|
+
&:hover {
|
|
164
|
+
background: #e6f7ff;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.anticon {
|
|
168
|
+
margin-right: 3px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.file-list-title {
|
|
172
|
+
color: rgba(0, 0, 0, 0.85);
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
font-size: 16px;
|
|
175
|
+
margin-bottom: 8px;
|
|
176
|
+
}
|
|
177
|
+
.preview-doc-container {
|
|
178
|
+
height: calc(100vh - 92px);
|
|
179
|
+
padding-top: 20px;
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
@@ -1,59 +1,65 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<create-query
|
|
4
|
-
:visible.sync="visible"
|
|
5
|
-
@saveQueryParams="saveQueryParams"
|
|
6
|
-
/>
|
|
7
|
-
<create-simple-form-query
|
|
8
|
-
:visible.sync="createSimpleFormVisible"
|
|
9
|
-
@saveSimpleFormQueryParams="saveSimpleFormQueryParams"
|
|
10
|
-
/>
|
|
11
|
-
<a-button
|
|
12
|
-
<a-button
|
|
13
|
-
<!-- <webmeter-analysis-view/>-->
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<create-query
|
|
4
|
+
:visible.sync="visible"
|
|
5
|
+
@saveQueryParams="saveQueryParams"
|
|
6
|
+
/>
|
|
7
|
+
<create-simple-form-query
|
|
8
|
+
:visible.sync="createSimpleFormVisible"
|
|
9
|
+
@saveSimpleFormQueryParams="saveSimpleFormQueryParams"
|
|
10
|
+
/>
|
|
11
|
+
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="showDrawer">打开完整查询配置生成工具</a-button>
|
|
12
|
+
<a-button style="margin-top: 10px;margin-left: 10px;" type="primary" @click="showSimpleFormQueryParamsDrawer">打开基础表单配置生成工具</a-button>
|
|
13
|
+
<!-- <webmeter-analysis-view/>-->
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
19
|
+
import CreateQuery from '@/base-client/components/common/CreateQuery'
|
|
20
|
+
import CreateSimpleFormQuery from '@/base-client/components/common/CreateSimpleFormQuery'
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'CreateQueryPage',
|
|
24
|
+
components: {
|
|
25
|
+
CreateQuery,
|
|
26
|
+
CreateSimpleFormQuery
|
|
27
|
+
},
|
|
28
|
+
data () {
|
|
29
|
+
return {
|
|
30
|
+
visible: false,
|
|
31
|
+
createSimpleFormVisible: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
showDrawer () {
|
|
36
|
+
this.visible = true
|
|
37
|
+
},
|
|
38
|
+
showSimpleFormQueryParamsDrawer () {
|
|
39
|
+
this.createSimpleFormVisible = true
|
|
40
|
+
},
|
|
41
|
+
// 存储查询配置信息
|
|
42
|
+
saveQueryParams (source) {
|
|
43
|
+
return post('/af-system/addOrEditQueryParams', {
|
|
44
|
+
source: source
|
|
45
|
+
}).then(res => {
|
|
46
|
+
this.$message.success('保存查询配置成功')
|
|
47
|
+
}, err => {
|
|
48
|
+
console.error(err)
|
|
49
|
+
})
|
|
50
|
+
},
|
|
51
|
+
// 存储基础表单配置信息
|
|
52
|
+
saveSimpleFormQueryParams (source) {
|
|
53
|
+
return post('/af-system/addOrEditSimpleFormQueryParams', {
|
|
54
|
+
source: source
|
|
55
|
+
}).then(res => {
|
|
56
|
+
this.$message.success('保存基础表单配置成功')
|
|
57
|
+
}, err => {
|
|
58
|
+
console.error(err)
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</script>
|
|
64
|
+
<style lang="less" scoped>
|
|
65
|
+
</style>
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<dictionary-details-view
|
|
4
|
-
|
|
5
|
-
:id="selectId"
|
|
6
|
-
|
|
7
|
-
/>
|
|
8
|
-
<x-form-table
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@action="toDetail">
|
|
12
|
-
</x-form-table>
|
|
13
|
-
</a-card>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<dictionary-details-view
|
|
4
|
+
v-if="selectId"
|
|
5
|
+
:id="selectId"
|
|
6
|
+
:visible.sync="detailVisible"
|
|
7
|
+
/>
|
|
8
|
+
<x-form-table
|
|
9
|
+
:queryParamsName="queryParamsName"
|
|
10
|
+
title="字典"
|
|
11
|
+
@action="toDetail">
|
|
12
|
+
</x-form-table>
|
|
13
|
+
</a-card>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
18
|
+
import DictionaryDetailsView from '@/base-client/components/system/DictionaryDetailsView'
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
name: 'Dictionary',
|
|
22
|
+
components: {
|
|
23
|
+
XFormTable,
|
|
24
|
+
DictionaryDetailsView
|
|
25
|
+
},
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
// 选中的编号
|
|
29
|
+
selectId: undefined,
|
|
30
|
+
// 查询配置文件名
|
|
31
|
+
queryParamsName: 'dictionaryQueryParams',
|
|
32
|
+
// 是否显示详情抽屉
|
|
33
|
+
detailVisible: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
toDetail (record, id) {
|
|
38
|
+
this.selectId = id + ''
|
|
39
|
+
this.detailVisible = true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="header-info">
|
|
3
|
+
<span>{{ title }}</span>
|
|
4
|
+
<p>{{ value }}</p>
|
|
5
|
+
<em v-if="bordered" />
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
export default {
|
|
11
|
+
name: 'Info',
|
|
12
|
+
props: {
|
|
13
|
+
title: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ''
|
|
16
|
+
},
|
|
17
|
+
value: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ''
|
|
20
|
+
},
|
|
21
|
+
bordered: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style lang="less" scoped>
|
|
30
|
+
@import "~ant-design-vue/es/style/themes/default.less";
|
|
31
|
+
.header-info {
|
|
32
|
+
position: relative;
|
|
33
|
+
text-align: center;
|
|
34
|
+
& > span {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
margin-bottom: 4px;
|
|
37
|
+
color: @text-color-secondary;
|
|
38
|
+
font-size: @font-size-base;
|
|
39
|
+
line-height: 22px;
|
|
40
|
+
}
|
|
41
|
+
& > p {
|
|
42
|
+
margin: 0;
|
|
43
|
+
color: @heading-color;
|
|
44
|
+
font-size: 24px;
|
|
45
|
+
line-height: 32px;
|
|
46
|
+
}
|
|
47
|
+
& > em {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
width: 1px;
|
|
52
|
+
height: 56px;
|
|
53
|
+
background-color: @border-color-split;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</style>
|