system-clients 3.2.5 → 3.2.6-aodeToV4
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/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/build/webpack.base.conf.js +4 -1
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +185 -0
- package/gradlew.bat +89 -0
- package/package.json +102 -102
- package/src/App.vue +1 -1
- package/src/components/Main.vue +46 -152
- package/src/components/Util.js +343 -343
- package/src/components/equipment/EquipmentManage.vue +3 -3
- package/src/components/equipment/PcAdd.vue +1 -1
- package/src/components/equipment/PcList.vue +4 -3
- package/src/components/equipment/PhoneAdd.vue +1 -1
- package/src/components/equipment/PhoneList.vue +2 -2
- package/src/components/equipment/PosAdd.vue +24 -5
- package/src/components/equipment/PosList.vue +15 -15
- package/src/components/equipment/PosManage.vue +3 -2
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +6 -6
- package/src/components/parammanage/ParamPages.vue +5 -5
- package/src/components/parammanage/SinglePage.vue +3 -3
- package/src/components/parammanage/SinglePages.vue +3 -3
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/Login.vue +630 -528
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +11 -5
- package/src/components/server/NewResSelectGroup.vue +211 -0
- package/src/components/server/ResSelect.vue +3 -0
- package/src/components/server/ResSelectGroup.vue +23 -6
- package/src/components/server/RightTree.vue +86 -6
- package/src/components/server/RoleSelector.vue +4 -3
- package/src/components/server/TestResSelectGroup.vue +2 -2
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +88 -104
- package/src/plugins/HeatGetLoginInfoService.js +491 -0
- package/src/plugins/validation.js +1 -1
- package/src/project/State.js +1 -1
- package/src/stores/AppData.js +1 -1
- package/src/stores/HeatAppData.js +38 -0
- package/src/styles/less/aofeng/themeOne/systemStyle.less +6 -6
- package/src/styles/less/aofeng/themeOne.less +4 -1
- package/src/styles/less/fonts-list.less +4 -4
- package/src/styles/less/stand.less +1 -1
- package/src/system.js +9 -0
- package/static/aodelogo.png +0 -0
- package/static/aodenewlogo.png +0 -0
- package/static/ewmlogo.png +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- /package/.gradle/{5.2.1 → 7.1/dependencies-accessors}/gc.properties +0 -0
- /package/.gradle/{5.2.1 → 7.1}/fileChanges/last-build.bin +0 -0
- /package/.gradle/{buildOutputCleanup/built.bin → 7.1/gc.properties} +0 -0
package/src/components/Main.vue
CHANGED
@@ -1,76 +1,25 @@
|
|
1
1
|
<template>
|
2
2
|
<div @click="hindsetting1()">
|
3
|
-
<!-- <div class="system-main" id="box" v-el:box v-if="!isManger">-->
|
4
|
-
<!-- <div class="system-logo" style="height: auto">-->
|
5
|
-
<!-- <img :src="imgs.logoimg" alt=""/>-->
|
6
|
-
<!-- <label>{{systemname}}</label>-->
|
7
|
-
<!-- <div class="system-logo-chi" >-->
|
8
|
-
<!-- <div v-if="userpane" class="auto system-logo-prompt" style="float: right">-->
|
9
|
-
<!-- <span>{{orgpathnames}}</span>-->
|
10
|
-
<!-- </div>-->
|
11
|
-
<!-- <!–<div class="system-logo-chi-img1" style="float: right" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()"></div>–>-->
|
12
|
-
<!-- <span style="float: right; padding-top: 2px" @mouseenter="mouseenteruser()" @mouseleave="mouseleaveuser()" class="system-logo-chi-span-1">{{$login.f.name}}</span>-->
|
13
|
-
<!-- <span style="border-left: 1px solid;float: right;padding-top: 2px" class="system-logo-chi-span-1"> <img src="../../static/newStyle/login-f.png" height="20" width="20"> </span>-->
|
14
|
-
<!-- <a href="index.html" onclick="return confirm('您确定要退出系统吗?');" style="float: right;padding-top: 2px">-->
|
15
|
-
<!-- <img src="../../static/newStyle/system-off.png" alt="" >-->
|
16
|
-
<!-- <span class="system-logo-chi-span-1">退出系统</span>-->
|
17
|
-
<!-- </a>-->
|
18
|
-
<!-- <div style="float: right" :class="{'dropstyle':setting,'dropstyle-1':!setting}">-->
|
19
|
-
<!-- <dropdown class="auto" >-->
|
20
|
-
<!-- <span data-toggle="dropdown" @click="hindsetting()" >-->
|
21
|
-
<!-- <img :src="srcsetting" alt=""><span>系统设置</span>-->
|
22
|
-
<!-- </span>-->
|
23
|
-
<!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-up dropstyle-chi" >-->
|
24
|
-
<!-- <!– <li>系统信息及设置</li>–>-->
|
25
|
-
<!-- <li style="color: #ffffff;white-space: nowrap" @click="show=true">修改密码</li>-->
|
26
|
-
<!-- <li style="color: #ffffff;white-space: nowrap" @click="AddChangeMsgShow=true">系统版本</li>-->
|
27
|
-
<!-- </ul>-->
|
28
|
-
<!-- </dropdown>-->
|
29
|
-
<!-- </div>-->
|
30
3
|
|
31
|
-
<!-- </div>-->
|
32
|
-
<!-- </div>-->
|
33
|
-
<!-- <div class="system-left tree-flex" :class="{'system-left-1': !treeOrIcon}" id="top" v-el:top >-->
|
34
|
-
<!-- <div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >-->
|
35
|
-
<!-- <div class="span system-left-tree" >-->
|
36
|
-
<!-- <left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" :treeOrIcon="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>-->
|
37
|
-
<!-- <!– <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>–>-->
|
38
|
-
<!-- </div>-->
|
39
|
-
<!-- </div>-->
|
40
|
-
<!-- <div class="system-foot-stretch" >-->
|
41
|
-
<!-- <a @click="changeShow()"><img src="../../static/images/lefticon/菜单伸缩.png" alt=""></a>-->
|
42
|
-
<!-- </div>-->
|
43
|
-
<!-- </div>-->
|
44
|
-
|
45
|
-
|
46
|
-
<!-- <div class="system-right" :class="{'system-right-1': !treeOrIcon}" id="bottom" v-el:bottom>-->
|
47
|
-
<!-- <div class="span">-->
|
48
|
-
<!-- <echarts-box v-if="$refs.mic.tabs.length === 0"></echarts-box>-->
|
49
|
-
<!-- <dynamic :comps='[]' :showup="true" :showhide="false" name='main' :selecttab.sync="selecttab" @tab-changed="tabChange" @tabscg="tabcg" v-ref:mic v-show="!($refs.mic.tabs.length === 0)"></dynamic>-->
|
50
|
-
<!-- </div>-->
|
51
|
-
<!-- </div>-->
|
52
|
-
<!-- <div class="system-foot" v-el:bottom>-->
|
53
|
-
|
54
|
-
<!-- <div class="system-foot-box">-->
|
55
|
-
|
56
|
-
<!-- </div>-->
|
57
|
-
<!-- </div>-->
|
58
|
-
<!-- </div>-->
|
59
4
|
<div class='flex-row system-main' id="box" v-el:box v-if="!isManger">
|
5
|
+
|
60
6
|
<div class="auto " :class="{'login-operator1':$refs.mic.tabs.length === 0,'login-operator':$refs.mic.tabs.length != 0}">
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
7
|
+
<span class="glyphicon glyphicon-asterisk" style="color:#a1d0f5"></span>
|
8
|
+
<span>组织编码:</span>
|
9
|
+
<label style="margin-right:14px;">{{$login.f.number}}</label>
|
10
|
+
<span class="glyphicon glyphicon-user" style="color:#a1d0f5"></span>
|
11
|
+
<span>登录人:</span>
|
12
|
+
<label>{{orgpathnames}}</label>
|
66
13
|
</div>
|
67
14
|
<div class="system-left tree-flex" :class="{'tree-flex-icon': !treeOrIcon}" id="top" v-el:top >
|
68
15
|
<div class="system-left-chi" :class="{'system-left-icon': !treeOrIcon}" >
|
69
16
|
<div class="span system-left-tree " style="height:85%">
|
70
|
-
<
|
17
|
+
<div class="logopicaode" >
|
18
|
+
<div class="aodeloginedlogo"></div>
|
19
|
+
</div>
|
20
|
+
<h3 style="margin-bottom: 12px;height: 35px;"> </h3>
|
71
21
|
<!-- <div class="span" style="margin-bottom:10px;padding-bottom:5px;padding-top:5px;flex: 1;border-top: 1px solid #e5e5e5;border-bottom: 1px solid #e5e5e5;">-->
|
72
22
|
<left-tree :functions='functions.functions' :userid='userid' @isnodo="isnodo" v-show="treeOrIcon" :tabs="tabs" v-ref:tree></left-tree>
|
73
|
-
<!--<!– <icon-tree :functions='functions.functions' :userid='userid' v-show="!treeOrIcon"></icon-tree>–>-->
|
74
23
|
</div>
|
75
24
|
|
76
25
|
<div class="tree-flex-footer">
|
@@ -85,11 +34,12 @@
|
|
85
34
|
<!-- <li>{{name}}</li> -->
|
86
35
|
<li>{{date}}</li>
|
87
36
|
<li @click="show=true">修改密码</li>
|
37
|
+
<li @click="clearCache">清除缓存</li>
|
88
38
|
<li @click="AddChangeMsgShow=true">系统版本:1.0.0</li>
|
89
39
|
</ul>
|
90
40
|
|
91
41
|
</dropdown>
|
92
|
-
<a href="index.html"
|
42
|
+
<a href="index.html" @click.prevent="logOut">
|
93
43
|
<img :src="imgs.out" alt="" ><span v-if="treeOrIcon">退出系统</span>
|
94
44
|
</a>
|
95
45
|
</div>
|
@@ -150,17 +100,12 @@
|
|
150
100
|
tabs:[], //已初始化页签数组
|
151
101
|
selecttab:'',
|
152
102
|
setting:true,
|
153
|
-
srcsetting:'../../static/newStyle/setting.png'
|
103
|
+
srcsetting:'../../static/newStyle/setting.png'
|
154
104
|
|
155
105
|
// headerHint: true, // 右侧顶部提示信息
|
156
106
|
// value: 25645.26,
|
157
107
|
// AddChangeMsgShow: false,
|
158
108
|
// showsum: false
|
159
|
-
lockReconnect: false, // 避免重复连接
|
160
|
-
timeout: 10000, // 10秒发一次心跳
|
161
|
-
connectNumber: 10, // 重连次数
|
162
|
-
timeoutObj: null,
|
163
|
-
serverTimeoutObj: null
|
164
109
|
}
|
165
110
|
},
|
166
111
|
ready () {
|
@@ -207,91 +152,8 @@
|
|
207
152
|
// return false
|
208
153
|
// }
|
209
154
|
this.changeShow()
|
210
|
-
|
211
|
-
vue.prototype.$connectNumber = this.connectNumber
|
212
|
-
this.initWebSocket()
|
213
155
|
},
|
214
156
|
methods: {
|
215
|
-
// 清除
|
216
|
-
reset () {
|
217
|
-
clearTimeout(this.timeoutObj)
|
218
|
-
clearTimeout(this.serverTimeoutObj)
|
219
|
-
},
|
220
|
-
// 发送心跳
|
221
|
-
start () {
|
222
|
-
// 重置
|
223
|
-
vue.prototype.$connectNumber = this.connectNumber
|
224
|
-
this.timeoutObj = setTimeout(() => {
|
225
|
-
this.$socket.send('ping')
|
226
|
-
console.log('ping!')
|
227
|
-
this.serverTimeoutObj = setTimeout(() => {
|
228
|
-
this.$socket.close()
|
229
|
-
}, this.timeout)
|
230
|
-
}, this.timeout)
|
231
|
-
},
|
232
|
-
// 重连
|
233
|
-
reconnect () {
|
234
|
-
if (this.lockReconnect) return
|
235
|
-
if (this.$connectNumber <= 0) {
|
236
|
-
vue.showMessage('连接已断开,将无法接收消息,请重新登录', ['confirm']).then((res) => {
|
237
|
-
if (res === 'confirm') {
|
238
|
-
location.reload()
|
239
|
-
}
|
240
|
-
})
|
241
|
-
return
|
242
|
-
}
|
243
|
-
this.$connectNumber--
|
244
|
-
setTimeout(() => {
|
245
|
-
console.log('连接异常,尝试重新连接。。。。')
|
246
|
-
this.initWebSocket()
|
247
|
-
this.lockReconnect = false
|
248
|
-
}, 1000 * 60)
|
249
|
-
},
|
250
|
-
// 初始化
|
251
|
-
initWebSocket () {
|
252
|
-
let path = `ws://${location.host}/ws?token=${this.$login.f.id}`
|
253
|
-
try {
|
254
|
-
if ('WebSocket' in window) {
|
255
|
-
// 创建对象
|
256
|
-
vue.prototype.$socket = new WebSocket(path)
|
257
|
-
} else {
|
258
|
-
this.$showMessage('您的浏览器不支持websocket的协议,建议使用新版谷歌浏览器,请勿使用IE浏览器,360浏览器请使用极速模式,不要使用兼容模式!"')
|
259
|
-
}
|
260
|
-
} catch (e) {
|
261
|
-
this.reconnect()
|
262
|
-
}
|
263
|
-
|
264
|
-
this.$socket.onopen = this.onOpen // 连接成功
|
265
|
-
this.$socket.onmessage = this.onMessage // 收到消息时回调
|
266
|
-
this.$socket.onclose = this.onClose // 连接关闭时回调
|
267
|
-
this.$socket.onerror = this.onError // 通讯异常
|
268
|
-
},
|
269
|
-
// 通讯异常
|
270
|
-
onError () {
|
271
|
-
this.reconnect()
|
272
|
-
},
|
273
|
-
// 连接成功
|
274
|
-
onOpen () {
|
275
|
-
console.log('webSocket连接成功')
|
276
|
-
this.start()
|
277
|
-
},
|
278
|
-
// 收到消息时回调函数
|
279
|
-
onMessage (event) {
|
280
|
-
if (event.data === 'pong') {
|
281
|
-
this.reset()
|
282
|
-
this.start()
|
283
|
-
return
|
284
|
-
}
|
285
|
-
let data = JSON.parse(event.data)
|
286
|
-
this.$broadcast('onMessage', data)
|
287
|
-
this.$showMessage(data.message)
|
288
|
-
},
|
289
|
-
// 关闭连接时回调函数
|
290
|
-
onClose () {
|
291
|
-
console.log('webSocket连接断开')
|
292
|
-
this.reset()
|
293
|
-
this.reconnect()
|
294
|
-
},
|
295
157
|
hindsetting(){
|
296
158
|
|
297
159
|
this.setting=!this.setting
|
@@ -359,6 +221,26 @@
|
|
359
221
|
tabcg(val){
|
360
222
|
console.log(val)
|
361
223
|
this.tabs = val
|
224
|
+
},
|
225
|
+
logOut () {
|
226
|
+
console.log(this.$login.f)
|
227
|
+
this.$showMessage('您确定要退出系统吗?', ['confirm', 'cancel']).then(async (res) => {
|
228
|
+
if (res == 'confirm') {
|
229
|
+
let data = {
|
230
|
+
userid: this.$login.f.id,
|
231
|
+
username: this.$login.f.name,
|
232
|
+
usertelephone: this.$login.f.f_user_telephone
|
233
|
+
}
|
234
|
+
try {
|
235
|
+
await this.$resetget('api/af-system/user/logout', {resolveMsg: '退出成功', rejectMsg: null})
|
236
|
+
}catch(e){
|
237
|
+
}
|
238
|
+
window.location.reload()
|
239
|
+
}
|
240
|
+
})
|
241
|
+
},
|
242
|
+
clearCache() {
|
243
|
+
this.$resetpost('/rs/search/clearCache', { userid: this.$login.f.id }, { resolveMsg: '清除缓存成功', rejectMsg: '清除缓存失败,请重试' })
|
362
244
|
}
|
363
245
|
},
|
364
246
|
computed: {
|
@@ -578,6 +460,18 @@
|
|
578
460
|
.tree-img {
|
579
461
|
font-size: 1.2em;
|
580
462
|
}
|
463
|
+
.aodeloginedlogo {
|
464
|
+
background:url(../../static/aodenewlogo.png);
|
465
|
+
background-size:80%;
|
466
|
+
background-repeat: no-repeat;
|
467
|
+
}
|
468
|
+
.logopicaode{
|
469
|
+
width: 100%;
|
470
|
+
height: 61px;
|
471
|
+
float: left;
|
472
|
+
margin-left: 2.5%;
|
473
|
+
margin-top: 10px;
|
474
|
+
}
|
581
475
|
|
582
476
|
/*将较长信息截断显示,鼠标悬停显示全部信息*/
|
583
477
|
.cutout50 {
|