vue2-client 1.2.103 → 1.2.107
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/.env +15 -15
- package/.eslintrc.js +82 -82
- package/CHANGELOG.md +264 -249
- package/package.json +92 -92
- package/src/base-client/all.js +66 -66
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
- package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +547 -547
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +777 -778
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +210 -210
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Upload/Upload.vue +2 -1
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
- package/src/base-client/components/common/XForm/XForm.vue +268 -268
- package/src/base-client/components/common/XForm/XFormItem.vue +1 -1
- package/src/base-client/components/common/XFormTable/XFormTable.vue +6 -0
- package/src/base-client/components/common/XTable/XTable.vue +6 -1
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +960 -960
- package/src/components/STable/index.js +2 -2
- package/src/config/CreateQueryConfig.js +307 -307
- package/src/layouts/header/HeaderNotice.vue +199 -199
- package/src/layouts/header/InstitutionDetail.vue +177 -177
- package/src/pages/login/Login.vue +1 -1
- package/src/router/async/router.map.js +60 -60
- package/src/services/api/WebmeterAnalysisViewApi.js +24 -24
- package/src/services/api/manage.js +16 -16
- package/src/services/api/restTools.js +24 -24
- package/vue.config.js +163 -163
|
@@ -1,177 +1,177 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
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" width="100%" height="100%" frameborder="0"></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" @click="handlePreDowDoc(file)" target="_blank"><a-icon type="download" />下载</a>
|
|
21
|
-
</a>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<!-- 其他附件预览 -->
|
|
25
|
-
<a-modal v-model="previewDocVisible" :footer="null" :dialog-style="{ top: '20px' }" width="97%" :z-index="1001">
|
|
26
|
-
<div class="preview-doc-container">
|
|
27
|
-
<a-spin size="large" :spinning="previewDocLoading" />
|
|
28
|
-
<iframe
|
|
29
|
-
v-show="!previewDocLoading"
|
|
30
|
-
:src="previewDocUrl"
|
|
31
|
-
width="100%"
|
|
32
|
-
height="100%"
|
|
33
|
-
frameborder="0"
|
|
34
|
-
@load="previewDocLoading = false" />
|
|
35
|
-
</div>
|
|
36
|
-
</a-modal>
|
|
37
|
-
<a-button 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('/webmeterapi/getInstitutionDetail', {
|
|
85
|
-
id: this.institutionId
|
|
86
|
-
}).then(res => {
|
|
87
|
-
res.files.forEach(item => {
|
|
88
|
-
if (item.use_type === '制度文件') {
|
|
89
|
-
const institutionDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + item.url))
|
|
90
|
-
this.institutionDocUrl = institutionDocUrl
|
|
91
|
-
this.showDocument = true
|
|
92
|
-
} else {
|
|
93
|
-
otherFiles.push(item)
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
this.institutionData = res.institution
|
|
97
|
-
this.otherFiles = otherFiles
|
|
98
|
-
})
|
|
99
|
-
},
|
|
100
|
-
format (dateStr) {
|
|
101
|
-
return formatDate(dateStr, 'yyyy-MM-dd')
|
|
102
|
-
},
|
|
103
|
-
// 其他附件预览
|
|
104
|
-
handlePreviewDoc (url) {
|
|
105
|
-
const previewDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + url))
|
|
106
|
-
if (this.previewDocUrl != previewDocUrl) {
|
|
107
|
-
this.previewDocLoading = true
|
|
108
|
-
this.previewDocUrl = previewDocUrl
|
|
109
|
-
}
|
|
110
|
-
this.previewDocVisible = true
|
|
111
|
-
},
|
|
112
|
-
// 下载文档
|
|
113
|
-
handlePreDowDoc (file) {
|
|
114
|
-
const a = document.createElement('a')
|
|
115
|
-
a.href = file.url
|
|
116
|
-
a.download = file.name
|
|
117
|
-
a.click()
|
|
118
|
-
},
|
|
119
|
-
confirm_institution () {
|
|
120
|
-
post('/webmeterapi/affirmInstitution', {
|
|
121
|
-
data: {
|
|
122
|
-
tobe: [
|
|
123
|
-
{
|
|
124
|
-
id: this.affirmInstitution,
|
|
125
|
-
f_affirm_type: '系统确认'
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
}).then(res => {
|
|
130
|
-
this.$message.success('确认成功')
|
|
131
|
-
this.$emit('get_to_be_confirmed')
|
|
132
|
-
})
|
|
133
|
-
},
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
// 文档预览服务 API
|
|
137
|
-
const previewDocService = 'http://123.60.214.109:8012/onlinePreview?url='
|
|
138
|
-
// 文件服务器地址
|
|
139
|
-
const fileServer = 'http://123.60.214.109:8406'
|
|
140
|
-
</script>
|
|
141
|
-
|
|
142
|
-
<style lang="less" scoped>
|
|
143
|
-
.content {
|
|
144
|
-
height: 80vh;
|
|
145
|
-
img {
|
|
146
|
-
max-width: 100%;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
.other-file {
|
|
150
|
-
margin: 16px 0;
|
|
151
|
-
.title {
|
|
152
|
-
margin-bottom: 6px;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
.file-item {
|
|
156
|
-
.file-action {
|
|
157
|
-
padding: 3px 4px;
|
|
158
|
-
color: #1890ff;
|
|
159
|
-
&:hover {
|
|
160
|
-
background: #e6f7ff;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
.anticon {
|
|
164
|
-
margin-right: 3px;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
.file-list-title {
|
|
168
|
-
color: rgba(0, 0, 0, 0.85);
|
|
169
|
-
font-weight: bold;
|
|
170
|
-
font-size: 16px;
|
|
171
|
-
margin-bottom: 8px;
|
|
172
|
-
}
|
|
173
|
-
.preview-doc-container {
|
|
174
|
-
height: calc(100vh - 92px);
|
|
175
|
-
padding-top: 20px;
|
|
176
|
-
}
|
|
177
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
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" width="100%" height="100%" frameborder="0"></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" @click="handlePreDowDoc(file)" target="_blank"><a-icon type="download" />下载</a>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<!-- 其他附件预览 -->
|
|
25
|
+
<a-modal v-model="previewDocVisible" :footer="null" :dialog-style="{ top: '20px' }" width="97%" :z-index="1001">
|
|
26
|
+
<div class="preview-doc-container">
|
|
27
|
+
<a-spin size="large" :spinning="previewDocLoading" />
|
|
28
|
+
<iframe
|
|
29
|
+
v-show="!previewDocLoading"
|
|
30
|
+
:src="previewDocUrl"
|
|
31
|
+
width="100%"
|
|
32
|
+
height="100%"
|
|
33
|
+
frameborder="0"
|
|
34
|
+
@load="previewDocLoading = false" />
|
|
35
|
+
</div>
|
|
36
|
+
</a-modal>
|
|
37
|
+
<a-button 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('/webmeterapi/getInstitutionDetail', {
|
|
85
|
+
id: this.institutionId
|
|
86
|
+
}).then(res => {
|
|
87
|
+
res.files.forEach(item => {
|
|
88
|
+
if (item.use_type === '制度文件') {
|
|
89
|
+
const institutionDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + item.url))
|
|
90
|
+
this.institutionDocUrl = institutionDocUrl
|
|
91
|
+
this.showDocument = true
|
|
92
|
+
} else {
|
|
93
|
+
otherFiles.push(item)
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
this.institutionData = res.institution
|
|
97
|
+
this.otherFiles = otherFiles
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
format (dateStr) {
|
|
101
|
+
return formatDate(dateStr, 'yyyy-MM-dd')
|
|
102
|
+
},
|
|
103
|
+
// 其他附件预览
|
|
104
|
+
handlePreviewDoc (url) {
|
|
105
|
+
const previewDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + url))
|
|
106
|
+
if (this.previewDocUrl != previewDocUrl) {
|
|
107
|
+
this.previewDocLoading = true
|
|
108
|
+
this.previewDocUrl = previewDocUrl
|
|
109
|
+
}
|
|
110
|
+
this.previewDocVisible = true
|
|
111
|
+
},
|
|
112
|
+
// 下载文档
|
|
113
|
+
handlePreDowDoc (file) {
|
|
114
|
+
const a = document.createElement('a')
|
|
115
|
+
a.href = file.url
|
|
116
|
+
a.download = file.name
|
|
117
|
+
a.click()
|
|
118
|
+
},
|
|
119
|
+
confirm_institution () {
|
|
120
|
+
post('/webmeterapi/affirmInstitution', {
|
|
121
|
+
data: {
|
|
122
|
+
tobe: [
|
|
123
|
+
{
|
|
124
|
+
id: this.affirmInstitution,
|
|
125
|
+
f_affirm_type: '系统确认'
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
}).then(res => {
|
|
130
|
+
this.$message.success('确认成功')
|
|
131
|
+
this.$emit('get_to_be_confirmed')
|
|
132
|
+
})
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// 文档预览服务 API
|
|
137
|
+
const previewDocService = 'http://123.60.214.109:8012/onlinePreview?url='
|
|
138
|
+
// 文件服务器地址
|
|
139
|
+
const fileServer = 'http://123.60.214.109:8406'
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<style lang="less" scoped>
|
|
143
|
+
.content {
|
|
144
|
+
height: 80vh;
|
|
145
|
+
img {
|
|
146
|
+
max-width: 100%;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.other-file {
|
|
150
|
+
margin: 16px 0;
|
|
151
|
+
.title {
|
|
152
|
+
margin-bottom: 6px;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.file-item {
|
|
156
|
+
.file-action {
|
|
157
|
+
padding: 3px 4px;
|
|
158
|
+
color: #1890ff;
|
|
159
|
+
&:hover {
|
|
160
|
+
background: #e6f7ff;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
.anticon {
|
|
164
|
+
margin-right: 3px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.file-list-title {
|
|
168
|
+
color: rgba(0, 0, 0, 0.85);
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
font-size: 16px;
|
|
171
|
+
margin-bottom: 8px;
|
|
172
|
+
}
|
|
173
|
+
.preview-doc-container {
|
|
174
|
+
height: calc(100vh - 92px);
|
|
175
|
+
padding-top: 20px;
|
|
176
|
+
}
|
|
177
|
+
</style>
|
|
@@ -201,7 +201,7 @@ export default {
|
|
|
201
201
|
setACCESSTOKEN (data) {
|
|
202
202
|
localStorage.setItem(ACCESS_TOKEN, data)
|
|
203
203
|
let timestamp = new Date().getTime()// 当前的时间戳
|
|
204
|
-
timestamp = timestamp + 60 * 60 * 1000
|
|
204
|
+
timestamp = timestamp + 12 * 60 * 60 * 1000
|
|
205
205
|
// 格式化时间获取年月日, 登陆过期时间
|
|
206
206
|
const dateAfter = new Date(timestamp)
|
|
207
207
|
setAuthorization({ token: data, expireAt: dateAfter })
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
// 视图组件
|
|
2
|
-
const view = {
|
|
3
|
-
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
4
|
-
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
5
|
-
page: () => import('@vue2-client/layouts/PageView')
|
|
6
|
-
}
|
|
7
|
-
// 动态路由对象定义
|
|
8
|
-
const routerResource = {}
|
|
9
|
-
// --------------------------------------基本视图组件--------------------------------------
|
|
10
|
-
// 空白视图
|
|
11
|
-
routerResource.blank = view.blank
|
|
12
|
-
// 单页面视图
|
|
13
|
-
routerResource.singlePage = view.blank
|
|
14
|
-
// --------------------------------------系统配置--------------------------------------
|
|
15
|
-
routerResource.system = view.blank
|
|
16
|
-
// 字典管理
|
|
17
|
-
routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
|
|
18
|
-
// 查询配置管理
|
|
19
|
-
routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
|
|
20
|
-
// 查询配置生成
|
|
21
|
-
routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage.vue')
|
|
22
|
-
// 系统问题反馈工单
|
|
23
|
-
routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
|
|
24
|
-
// --------------------------------------报表组件--------------------------------------
|
|
25
|
-
routerResource.reportTable = () => import(/* webpackChunkName: "ReportTableHome" */ '@vue2-client/pages/report/ReportTableHome')
|
|
26
|
-
// --------------------------------------资源管理--------------------------------------
|
|
27
|
-
routerResource.resourceManageMain = () => import(/* webpackChunkName: "resourceManageMain" */ '@vue2-client/pages/resourceManage/resourceManageMain')
|
|
28
|
-
|
|
29
|
-
// 基础路由组件注册
|
|
30
|
-
const routerMap = {
|
|
31
|
-
login: {
|
|
32
|
-
authority: '*',
|
|
33
|
-
path: '/login',
|
|
34
|
-
component: () => import('@vue2-client/pages/login')
|
|
35
|
-
},
|
|
36
|
-
root: {
|
|
37
|
-
path: '/',
|
|
38
|
-
name: '首页',
|
|
39
|
-
redirect: '/login',
|
|
40
|
-
component: view.tabs
|
|
41
|
-
},
|
|
42
|
-
exp403: {
|
|
43
|
-
authority: '*',
|
|
44
|
-
name: 'exp403',
|
|
45
|
-
path: '403',
|
|
46
|
-
component: () => import('@vue2-client/pages/exception/403')
|
|
47
|
-
},
|
|
48
|
-
exp404: {
|
|
49
|
-
name: 'exp404',
|
|
50
|
-
path: '404',
|
|
51
|
-
component: () => import('@vue2-client/pages/exception/404')
|
|
52
|
-
},
|
|
53
|
-
exp500: {
|
|
54
|
-
name: 'exp500',
|
|
55
|
-
path: '500',
|
|
56
|
-
component: () => import('@vue2-client/pages/exception/500')
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
Object.assign(routerMap, routerResource)
|
|
60
|
-
export default routerMap
|
|
1
|
+
// 视图组件
|
|
2
|
+
const view = {
|
|
3
|
+
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
4
|
+
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
5
|
+
page: () => import('@vue2-client/layouts/PageView')
|
|
6
|
+
}
|
|
7
|
+
// 动态路由对象定义
|
|
8
|
+
const routerResource = {}
|
|
9
|
+
// --------------------------------------基本视图组件--------------------------------------
|
|
10
|
+
// 空白视图
|
|
11
|
+
routerResource.blank = view.blank
|
|
12
|
+
// 单页面视图
|
|
13
|
+
routerResource.singlePage = view.blank
|
|
14
|
+
// --------------------------------------系统配置--------------------------------------
|
|
15
|
+
routerResource.system = view.blank
|
|
16
|
+
// 字典管理
|
|
17
|
+
routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
|
|
18
|
+
// 查询配置管理
|
|
19
|
+
routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
|
|
20
|
+
// 查询配置生成
|
|
21
|
+
routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage.vue')
|
|
22
|
+
// 系统问题反馈工单
|
|
23
|
+
routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
|
|
24
|
+
// --------------------------------------报表组件--------------------------------------
|
|
25
|
+
routerResource.reportTable = () => import(/* webpackChunkName: "ReportTableHome" */ '@vue2-client/pages/report/ReportTableHome')
|
|
26
|
+
// --------------------------------------资源管理--------------------------------------
|
|
27
|
+
routerResource.resourceManageMain = () => import(/* webpackChunkName: "resourceManageMain" */ '@vue2-client/pages/resourceManage/resourceManageMain')
|
|
28
|
+
|
|
29
|
+
// 基础路由组件注册
|
|
30
|
+
const routerMap = {
|
|
31
|
+
login: {
|
|
32
|
+
authority: '*',
|
|
33
|
+
path: '/login',
|
|
34
|
+
component: () => import('@vue2-client/pages/login')
|
|
35
|
+
},
|
|
36
|
+
root: {
|
|
37
|
+
path: '/',
|
|
38
|
+
name: '首页',
|
|
39
|
+
redirect: '/login',
|
|
40
|
+
component: view.tabs
|
|
41
|
+
},
|
|
42
|
+
exp403: {
|
|
43
|
+
authority: '*',
|
|
44
|
+
name: 'exp403',
|
|
45
|
+
path: '403',
|
|
46
|
+
component: () => import('@vue2-client/pages/exception/403')
|
|
47
|
+
},
|
|
48
|
+
exp404: {
|
|
49
|
+
name: 'exp404',
|
|
50
|
+
path: '404',
|
|
51
|
+
component: () => import('@vue2-client/pages/exception/404')
|
|
52
|
+
},
|
|
53
|
+
exp500: {
|
|
54
|
+
name: 'exp500',
|
|
55
|
+
path: '500',
|
|
56
|
+
component: () => import('@vue2-client/pages/exception/500')
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
Object.assign(routerMap, routerResource)
|
|
60
|
+
export default routerMap
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const WebmeterAnalysisViewApi = {
|
|
2
|
-
// 查询:指令数统计
|
|
3
|
-
instructSumCount: '/webmeterapi/foreignaidInstructSumCountData',
|
|
4
|
-
// 查询:抄表数统计
|
|
5
|
-
meteReadSumCount: '/webmeterapi/foreignaidMetereadSumCountData',
|
|
6
|
-
// 查询:近一周抄表量数据
|
|
7
|
-
meteReadDataByWeek: '/webmeterapi/foreignaidMetereadDataByWeekData',
|
|
8
|
-
// 查询:在用表具数
|
|
9
|
-
usingMeterSumCount: '/webmeterapi/foreignaidUsingMeterSumCountData',
|
|
10
|
-
// 查询:近一周在用表具数数据
|
|
11
|
-
usingMeterDataByWeek: '/webmeterapi/foreignaidUsingMeterDataByWeekData',
|
|
12
|
-
// 查询:指令成功率统计
|
|
13
|
-
instructRateOfSuccess: '/webmeterapi/foreignaidInstructRateOfSuccessData',
|
|
14
|
-
// 查询:按表厂抄表量统计
|
|
15
|
-
handMeterSumCountData: '/webmeterapi/foreignaidHandMeterSumCountData',
|
|
16
|
-
// 查询:统计用气量数据
|
|
17
|
-
useGasSumCount: '/webmeterapi/foreignaidUseGasSumCountData',
|
|
18
|
-
// 查询:按用气性质统计用气量
|
|
19
|
-
GasByGasProperties: '/webmeterapi/foreignaidGasByGasProperties',
|
|
20
|
-
// 查询:用户在用气量占比
|
|
21
|
-
GasInUser: '/webmeterapi/foreignaidGasInUser'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { WebmeterAnalysisViewApi }
|
|
1
|
+
const WebmeterAnalysisViewApi = {
|
|
2
|
+
// 查询:指令数统计
|
|
3
|
+
instructSumCount: '/webmeterapi/foreignaidInstructSumCountData',
|
|
4
|
+
// 查询:抄表数统计
|
|
5
|
+
meteReadSumCount: '/webmeterapi/foreignaidMetereadSumCountData',
|
|
6
|
+
// 查询:近一周抄表量数据
|
|
7
|
+
meteReadDataByWeek: '/webmeterapi/foreignaidMetereadDataByWeekData',
|
|
8
|
+
// 查询:在用表具数
|
|
9
|
+
usingMeterSumCount: '/webmeterapi/foreignaidUsingMeterSumCountData',
|
|
10
|
+
// 查询:近一周在用表具数数据
|
|
11
|
+
usingMeterDataByWeek: '/webmeterapi/foreignaidUsingMeterDataByWeekData',
|
|
12
|
+
// 查询:指令成功率统计
|
|
13
|
+
instructRateOfSuccess: '/webmeterapi/foreignaidInstructRateOfSuccessData',
|
|
14
|
+
// 查询:按表厂抄表量统计
|
|
15
|
+
handMeterSumCountData: '/webmeterapi/foreignaidHandMeterSumCountData',
|
|
16
|
+
// 查询:统计用气量数据
|
|
17
|
+
useGasSumCount: '/webmeterapi/foreignaidUseGasSumCountData',
|
|
18
|
+
// 查询:按用气性质统计用气量
|
|
19
|
+
GasByGasProperties: '/webmeterapi/foreignaidGasByGasProperties',
|
|
20
|
+
// 查询:用户在用气量占比
|
|
21
|
+
GasInUser: '/webmeterapi/foreignaidGasInUser'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { WebmeterAnalysisViewApi }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const manageApi = {
|
|
2
|
-
// 查询:获取燃气公司列表
|
|
3
|
-
orgList: '/webmeterapi/foreignaidGetOrgList',
|
|
4
|
-
// 查询:获取客户列表
|
|
5
|
-
customerList: '/webmeterapi/foreignaidGetCustomerList',
|
|
6
|
-
// 查询:检查链接有效性
|
|
7
|
-
checkUrlWork: '/webmeterapi/foreignaidCheckUrl',
|
|
8
|
-
// 操作:客户数据
|
|
9
|
-
doCustomerInfo: '/webmeterapi/foreignaidDoCustomerInfo',
|
|
10
|
-
// 查询:获取字典键列表
|
|
11
|
-
getDictionaryValue: '/webmeterapi/getDictionaryValue',
|
|
12
|
-
// 查询:获取省市区街道三级分类
|
|
13
|
-
getDivisionsOhChina: '/webmeterapi/getDivisionsOhChina'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { manageApi }
|
|
1
|
+
const manageApi = {
|
|
2
|
+
// 查询:获取燃气公司列表
|
|
3
|
+
orgList: '/webmeterapi/foreignaidGetOrgList',
|
|
4
|
+
// 查询:获取客户列表
|
|
5
|
+
customerList: '/webmeterapi/foreignaidGetCustomerList',
|
|
6
|
+
// 查询:检查链接有效性
|
|
7
|
+
checkUrlWork: '/webmeterapi/foreignaidCheckUrl',
|
|
8
|
+
// 操作:客户数据
|
|
9
|
+
doCustomerInfo: '/webmeterapi/foreignaidDoCustomerInfo',
|
|
10
|
+
// 查询:获取字典键列表
|
|
11
|
+
getDictionaryValue: '/webmeterapi/getDictionaryValue',
|
|
12
|
+
// 查询:获取省市区街道三级分类
|
|
13
|
+
getDivisionsOhChina: '/webmeterapi/getDivisionsOhChina'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { manageApi }
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { METHOD, request } from '@vue2-client/utils/request'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* GET请求
|
|
5
|
-
* @param url 请求地址
|
|
6
|
-
* @param parameter 路径参数
|
|
7
|
-
* @returns {Promise<AxiosResponse<T>>}
|
|
8
|
-
*/
|
|
9
|
-
function get (url, parameter) {
|
|
10
|
-
return request(url, METHOD.GET, parameter)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* POST请求
|
|
15
|
-
* @param url 请求地址
|
|
16
|
-
* @param parameter 请求参数
|
|
17
|
-
* @param config
|
|
18
|
-
* @returns {Promise<AxiosResponse<T>>}
|
|
19
|
-
*/
|
|
20
|
-
function post (url, parameter, config = {}) {
|
|
21
|
-
return request(url, METHOD.POST, parameter, config)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { get, post }
|
|
1
|
+
import { METHOD, request } from '@vue2-client/utils/request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* GET请求
|
|
5
|
+
* @param url 请求地址
|
|
6
|
+
* @param parameter 路径参数
|
|
7
|
+
* @returns {Promise<AxiosResponse<T>>}
|
|
8
|
+
*/
|
|
9
|
+
function get (url, parameter) {
|
|
10
|
+
return request(url, METHOD.GET, parameter)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* POST请求
|
|
15
|
+
* @param url 请求地址
|
|
16
|
+
* @param parameter 请求参数
|
|
17
|
+
* @param config
|
|
18
|
+
* @returns {Promise<AxiosResponse<T>>}
|
|
19
|
+
*/
|
|
20
|
+
function post (url, parameter, config = {}) {
|
|
21
|
+
return request(url, METHOD.POST, parameter, config)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { get, post }
|