vue2-client 1.2.43 → 1.2.46
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 +114 -109
- package/docs/notice.md +22 -22
- package/package.json +1 -1
- package/src/App.vue +99 -93
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +555 -555
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +149 -149
- package/src/base-client/components/common/XAddForm/XAddForm.vue +339 -339
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +316 -316
- package/src/base-client/components/common/XForm/XForm.vue +275 -275
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +225 -225
- package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +244 -244
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +452 -452
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -330
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +121 -121
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +276 -276
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +469 -469
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +379 -379
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +359 -359
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsCount.vue +335 -335
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsException.vue +184 -184
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsHandPlan.vue +291 -291
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsInstruct.vue +236 -236
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsMain.vue +256 -256
- package/src/base-client/components/iot/MeterDetailsView/part/MeterDetailsSellGas.vue +189 -189
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +722 -722
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +247 -247
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +370 -370
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +1 -1
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/plugins/AppData.js +67 -67
- package/src/base-client/plugins/GetLoginInfoService.js +252 -252
- package/src/components/exception/ExceptionPage.vue +70 -70
- package/src/components/menu/SideMenu.vue +1 -1
- package/src/components/setting/Setting.vue +235 -235
- package/src/config/default/setting.config.js +5 -1
- package/src/config/index.js +3 -3
- package/src/layouts/SinglePageView.vue +8 -2
- package/src/layouts/header/AdminHeader.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +97 -97
- package/src/layouts/tabs/TabsView.vue +16 -1
- package/src/pages/exception/403.vue +21 -25
- package/src/pages/exception/404.vue +21 -25
- package/src/pages/exception/500.vue +21 -25
- package/src/pages/login/Login.vue +5 -12
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/depListManage.vue +23 -23
- package/src/pages/resourceManage/funListManage.vue +23 -23
- package/src/pages/resourceManage/index.js +15 -15
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/resourceManage/roleListManage.vue +23 -23
- package/src/pages/resourceManage/staffListManage.vue +23 -23
- package/src/pages/system/ticket/index.vue +1 -1
- package/src/pages/system/ticket/submitTicketSuccess.vue +248 -248
- package/src/router/async/config.async.js +26 -26
- package/src/router/index.js +27 -27
- package/src/services/api/common.js +47 -47
- package/src/services/api/index.js +39 -39
- package/src/services/user.js +34 -34
- package/src/store/modules/account.js +2 -2
- package/src/theme/default/style.less +47 -47
- package/src/utils/indexedDB.js +146 -146
- package/src/utils/routerUtil.js +359 -359
- package/vue.config.js +143 -143
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-drawer
|
|
3
|
-
title="选择参数组"
|
|
4
|
-
placement="right"
|
|
5
|
-
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
6
|
-
:visible="visible"
|
|
7
|
-
@close="onClose"
|
|
8
|
-
>
|
|
9
|
-
<x-add-form
|
|
10
|
-
business-title="参数设置"
|
|
11
|
-
business-type="编辑"
|
|
12
|
-
:visible.sync="editQueryVisible"
|
|
13
|
-
:json-data="formObj.formJson"
|
|
14
|
-
:modify-model-data="this.modifyModelData[this.formObj.groupName]"
|
|
15
|
-
:loading="loading"
|
|
16
|
-
@onSubmit="submit"/>
|
|
17
|
-
<a-list
|
|
18
|
-
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
19
|
-
:dataSource="columnJson.groups"
|
|
20
|
-
>
|
|
21
|
-
<a-list-item slot="renderItem" slot-scope="item">
|
|
22
|
-
<a-card :hoverable="true" @click="toEdit(item)">
|
|
23
|
-
<a-card-meta >
|
|
24
|
-
<div style="margin-bottom: 3px" slot="title">{{ item.group }}</div>
|
|
25
|
-
<a-icon type="tags" slot="avatar" :style="{ fontSize:'2em' }"/>
|
|
26
|
-
<div class="meta-content" slot="description">{{ item.describe }}</div>
|
|
27
|
-
</a-card-meta>
|
|
28
|
-
</a-card>
|
|
29
|
-
</a-list-item>
|
|
30
|
-
</a-list>
|
|
31
|
-
</a-drawer>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import { mapState } from 'vuex'
|
|
36
|
-
import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
|
|
37
|
-
import { commonApi, post } from '@vue2-client/services/api'
|
|
38
|
-
|
|
39
|
-
export default {
|
|
40
|
-
name: 'FormGroupEdit',
|
|
41
|
-
components: {
|
|
42
|
-
XAddForm
|
|
43
|
-
},
|
|
44
|
-
data () {
|
|
45
|
-
return {
|
|
46
|
-
// 页面宽度
|
|
47
|
-
screenWidth: document.documentElement.clientWidth,
|
|
48
|
-
// 是否显示参数下发抽屉
|
|
49
|
-
editQueryVisible: false,
|
|
50
|
-
targetIndex: 0,
|
|
51
|
-
columnJson: {},
|
|
52
|
-
editIndex: -1,
|
|
53
|
-
formObj: {
|
|
54
|
-
groupName: '',
|
|
55
|
-
formJson: []
|
|
56
|
-
},
|
|
57
|
-
// 参数设置业务执行状态
|
|
58
|
-
loading: false
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
mounted () {
|
|
62
|
-
this.initView()
|
|
63
|
-
},
|
|
64
|
-
computed: {
|
|
65
|
-
...mapState('setting', ['isMobile'])
|
|
66
|
-
},
|
|
67
|
-
props: {
|
|
68
|
-
visible: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: false
|
|
71
|
-
},
|
|
72
|
-
modifyModelData: {
|
|
73
|
-
type: Object,
|
|
74
|
-
default: () => {
|
|
75
|
-
return {}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
watch: {
|
|
80
|
-
visible (rel) {
|
|
81
|
-
if (rel) {
|
|
82
|
-
this.initView()
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
methods: {
|
|
87
|
-
// 初始化组件
|
|
88
|
-
initView () {
|
|
89
|
-
this.$emit('getColumnJson', val => {
|
|
90
|
-
this.columnJson = val
|
|
91
|
-
})
|
|
92
|
-
},
|
|
93
|
-
toEdit (item) {
|
|
94
|
-
post(commonApi.getColumnsJson, { queryObject: item }).then(res => {
|
|
95
|
-
this.formObj = res
|
|
96
|
-
this.editQueryVisible = true
|
|
97
|
-
})
|
|
98
|
-
},
|
|
99
|
-
onClose () {
|
|
100
|
-
this.$emit('update:visible', false)
|
|
101
|
-
},
|
|
102
|
-
submit (res) {
|
|
103
|
-
if (res.valid) {
|
|
104
|
-
this.loading = true
|
|
105
|
-
const requestParameters = {
|
|
106
|
-
paramsJson: {}
|
|
107
|
-
}
|
|
108
|
-
requestParameters.paramsJson[this.formObj.groupName] = {}
|
|
109
|
-
for (const key of Object.keys(res.form)) {
|
|
110
|
-
const realKey = key.substring(key.indexOf('_') + 1)
|
|
111
|
-
requestParameters.paramsJson[this.formObj.groupName][realKey] = res.form[key]
|
|
112
|
-
}
|
|
113
|
-
this.$emit('onSubmit', requestParameters, result => {
|
|
114
|
-
if (result) {
|
|
115
|
-
this.$message.success('参数设置成功!')
|
|
116
|
-
} else {
|
|
117
|
-
this.$message.error('参数设置失败!')
|
|
118
|
-
}
|
|
119
|
-
this.loading = false
|
|
120
|
-
this.editQueryVisible = false
|
|
121
|
-
})
|
|
122
|
-
} else {
|
|
123
|
-
return false
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
</script>
|
|
129
|
-
<style lang="less" scoped>
|
|
130
|
-
.card-avatar {
|
|
131
|
-
width: 48px;
|
|
132
|
-
height: 48px;
|
|
133
|
-
border-radius: 48px;
|
|
134
|
-
}
|
|
135
|
-
.new-btn{
|
|
136
|
-
border-radius: 2px;
|
|
137
|
-
width: 100%;
|
|
138
|
-
height: 187px;
|
|
139
|
-
}
|
|
140
|
-
.meta-content{
|
|
141
|
-
position: relative;
|
|
142
|
-
overflow: hidden;
|
|
143
|
-
text-overflow: ellipsis;
|
|
144
|
-
display: -webkit-box;
|
|
145
|
-
height: 64px;
|
|
146
|
-
-webkit-line-clamp: 3;
|
|
147
|
-
-webkit-box-orient: vertical;
|
|
148
|
-
}
|
|
149
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer
|
|
3
|
+
title="选择参数组"
|
|
4
|
+
placement="right"
|
|
5
|
+
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
6
|
+
:visible="visible"
|
|
7
|
+
@close="onClose"
|
|
8
|
+
>
|
|
9
|
+
<x-add-form
|
|
10
|
+
business-title="参数设置"
|
|
11
|
+
business-type="编辑"
|
|
12
|
+
:visible.sync="editQueryVisible"
|
|
13
|
+
:json-data="formObj.formJson"
|
|
14
|
+
:modify-model-data="this.modifyModelData[this.formObj.groupName]"
|
|
15
|
+
:loading="loading"
|
|
16
|
+
@onSubmit="submit"/>
|
|
17
|
+
<a-list
|
|
18
|
+
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
19
|
+
:dataSource="columnJson.groups"
|
|
20
|
+
>
|
|
21
|
+
<a-list-item slot="renderItem" slot-scope="item">
|
|
22
|
+
<a-card :hoverable="true" @click="toEdit(item)">
|
|
23
|
+
<a-card-meta >
|
|
24
|
+
<div style="margin-bottom: 3px" slot="title">{{ item.group }}</div>
|
|
25
|
+
<a-icon type="tags" slot="avatar" :style="{ fontSize:'2em' }"/>
|
|
26
|
+
<div class="meta-content" slot="description">{{ item.describe }}</div>
|
|
27
|
+
</a-card-meta>
|
|
28
|
+
</a-card>
|
|
29
|
+
</a-list-item>
|
|
30
|
+
</a-list>
|
|
31
|
+
</a-drawer>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import { mapState } from 'vuex'
|
|
36
|
+
import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
|
|
37
|
+
import { commonApi, post } from '@vue2-client/services/api'
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: 'FormGroupEdit',
|
|
41
|
+
components: {
|
|
42
|
+
XAddForm
|
|
43
|
+
},
|
|
44
|
+
data () {
|
|
45
|
+
return {
|
|
46
|
+
// 页面宽度
|
|
47
|
+
screenWidth: document.documentElement.clientWidth,
|
|
48
|
+
// 是否显示参数下发抽屉
|
|
49
|
+
editQueryVisible: false,
|
|
50
|
+
targetIndex: 0,
|
|
51
|
+
columnJson: {},
|
|
52
|
+
editIndex: -1,
|
|
53
|
+
formObj: {
|
|
54
|
+
groupName: '',
|
|
55
|
+
formJson: []
|
|
56
|
+
},
|
|
57
|
+
// 参数设置业务执行状态
|
|
58
|
+
loading: false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mounted () {
|
|
62
|
+
this.initView()
|
|
63
|
+
},
|
|
64
|
+
computed: {
|
|
65
|
+
...mapState('setting', ['isMobile'])
|
|
66
|
+
},
|
|
67
|
+
props: {
|
|
68
|
+
visible: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
modifyModelData: {
|
|
73
|
+
type: Object,
|
|
74
|
+
default: () => {
|
|
75
|
+
return {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
watch: {
|
|
80
|
+
visible (rel) {
|
|
81
|
+
if (rel) {
|
|
82
|
+
this.initView()
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
// 初始化组件
|
|
88
|
+
initView () {
|
|
89
|
+
this.$emit('getColumnJson', val => {
|
|
90
|
+
this.columnJson = val
|
|
91
|
+
})
|
|
92
|
+
},
|
|
93
|
+
toEdit (item) {
|
|
94
|
+
post(commonApi.getColumnsJson, { queryObject: item }).then(res => {
|
|
95
|
+
this.formObj = res
|
|
96
|
+
this.editQueryVisible = true
|
|
97
|
+
})
|
|
98
|
+
},
|
|
99
|
+
onClose () {
|
|
100
|
+
this.$emit('update:visible', false)
|
|
101
|
+
},
|
|
102
|
+
submit (res) {
|
|
103
|
+
if (res.valid) {
|
|
104
|
+
this.loading = true
|
|
105
|
+
const requestParameters = {
|
|
106
|
+
paramsJson: {}
|
|
107
|
+
}
|
|
108
|
+
requestParameters.paramsJson[this.formObj.groupName] = {}
|
|
109
|
+
for (const key of Object.keys(res.form)) {
|
|
110
|
+
const realKey = key.substring(key.indexOf('_') + 1)
|
|
111
|
+
requestParameters.paramsJson[this.formObj.groupName][realKey] = res.form[key]
|
|
112
|
+
}
|
|
113
|
+
this.$emit('onSubmit', requestParameters, result => {
|
|
114
|
+
if (result) {
|
|
115
|
+
this.$message.success('参数设置成功!')
|
|
116
|
+
} else {
|
|
117
|
+
this.$message.error('参数设置失败!')
|
|
118
|
+
}
|
|
119
|
+
this.loading = false
|
|
120
|
+
this.editQueryVisible = false
|
|
121
|
+
})
|
|
122
|
+
} else {
|
|
123
|
+
return false
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
</script>
|
|
129
|
+
<style lang="less" scoped>
|
|
130
|
+
.card-avatar {
|
|
131
|
+
width: 48px;
|
|
132
|
+
height: 48px;
|
|
133
|
+
border-radius: 48px;
|
|
134
|
+
}
|
|
135
|
+
.new-btn{
|
|
136
|
+
border-radius: 2px;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 187px;
|
|
139
|
+
}
|
|
140
|
+
.meta-content{
|
|
141
|
+
position: relative;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
display: -webkit-box;
|
|
145
|
+
height: 64px;
|
|
146
|
+
-webkit-line-clamp: 3;
|
|
147
|
+
-webkit-box-orient: vertical;
|
|
148
|
+
}
|
|
149
|
+
</style>
|