system-clients 3.2.5 → 3.2.6
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/.eslintrc.js +16 -16
- package/SystemClient.iml +2 -5
- package/build/webpack.base.conf.js +21 -11
- package/package.json +6 -4
- package/src/App.vue +24 -24
- package/src/components/Main.vue +626 -476
- package/src/components/TabButton.vue +201 -0
- package/src/components/Tabs.vue +67 -0
- package/src/components/addressManage/AddressCascadingMenu.vue +145 -0
- package/src/components/equipment/EquipmentManage.vue +1 -1
- package/src/components/equipment/PcAdd.vue +5 -5
- package/src/components/equipment/PcList.vue +5 -5
- package/src/components/equipment/PhoneAdd.vue +26 -13
- package/src/components/equipment/PhoneList.vue +31 -21
- package/src/components/equipment/PosAdd.vue +231 -45
- package/src/components/equipment/PosList.vue +198 -68
- package/src/components/equipment/PosManage.vue +80 -9
- package/src/components/equipment/PosManageBoth.vue +125 -0
- package/src/components/equipment/PosParamAdd.vue +236 -0
- package/src/components/equipment/PosParamList.vue +121 -0
- package/src/components/equipment/PosParamManage.vue +51 -0
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +30 -8
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/ImageVieweTest.vue +56 -0
- package/src/components/server/ImageViewer.vue +350 -0
- package/src/components/server/LoadData.vue +21 -2
- package/src/components/server/Login.vue +784 -519
- package/src/components/server/ModifyPw.vue +12 -7
- package/src/components/server/PcdBuildingSelect.vue +241 -0
- package/src/components/server/ResSelect.vue +5 -0
- package/src/components/server/ResSelectGroup.vue +159 -103
- package/src/components/server/RightTree.vue +289 -204
- package/src/filiale/dongguan/Main.vue +715 -0
- package/src/filiale/dongguan/system.js +5 -0
- package/src/filiale/konggang/Login.vue +840 -0
- package/src/filiale/konggang/system.js +7 -0
- package/src/filiale/qianneng/ModifyPw.vue +107 -0
- package/src/filiale/qianneng/system.js +7 -0
- package/src/filiale/rizhao/LeftTree.vue +111 -0
- package/src/filiale/rizhao/Login.vue +791 -0
- package/src/filiale/rizhao/Main.vue +606 -0
- package/src/filiale/rizhao/system.js +14 -0
- package/src/filiale/yuchuan/Login.vue +889 -0
- package/src/filiale/yuchuan/Main.vue +773 -0
- package/src/filiale/yuchuan/system.js +10 -0
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +76 -70
- package/src/plugins/HeatGetLoginInfoService.js +491 -0
- package/src/plugins/validation.js +9 -1
- package/src/stores/HeatAppData.js +38 -0
- package/src/styles/less/aofeng/standard.less +446 -60
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
- package/src/styles/less/aofeng/themeOne/systemStyle.less +12 -12
- package/src/styles/less/aofeng/themeOne.less +4 -1
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -0
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -0
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -0
- package/src/styles/less/tables.less +50 -0
- package/src/styles/less/type.less +16 -3
- package/src/styles/less/variables.less +6 -3
- package/src/system.js +34 -1
- package/src/util/Daiban.json +12 -0
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/logo.png +0 -0
- package/static/newStyle/about-us.png +0 -0
- package/static/rizhao.png +0 -0
- package/yarn-error.log +6896 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -0,0 +1,107 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<validator name="v">
|
4
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
5
|
+
<header slot="modal-header" class="modal-header">
|
6
|
+
<button type="button" class="close" @click="rest"><span>×</span></button>
|
7
|
+
<h4 class="modal-title">修改密码</h4>
|
8
|
+
</header>
|
9
|
+
<article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
|
10
|
+
<div class="has-feedback form-group"
|
11
|
+
:class="{'has-warning':$v.password.required,'has-error': $v.password.required,
|
12
|
+
'has-success':!$v.password.required}">
|
13
|
+
<label for="password" class="col-sm-4 col-sm-offset-1 control-label">原始密码: </label>
|
14
|
+
<div class="col-sm-4">
|
15
|
+
<input type="password" v-model="deliver.password" class="form-control" id="password" v-validate:password="{ required: true}">
|
16
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.password.required"></span>
|
17
|
+
<span v-if="$v.password.required">不能为空</span>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="has-feedback form-group"
|
21
|
+
:class="{'has-warning':$v.newpassword.required,'has-error':($v.newpassword.numbersAndLetter8to16 || $v.newpassword.minlength)&& !$v.newpassword.required && !$v.newpassword.chinesePassword,
|
22
|
+
'has-success': !$v.newpassword.required && !$v.newpassword.numbersAndLetter8to16&&!$v.newpassword.minlength && !$v.newpassword.chinesePassword}">
|
23
|
+
<label for="newpassword" class="col-sm-4 col-sm-offset-1 control-label">新的密码: </label>
|
24
|
+
<div class="col-sm-4">
|
25
|
+
<input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true, numbersAndLetter8to16: true, minlength: 6,chinesePassword: true}'>
|
26
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !$v.newpassword.minlength && !($v.newpassword.numbersAndLetter8to16 && !($v.newpassword.required)) && !($v.newpassword.chinesePassword) "></span>
|
27
|
+
<span v-if="$v.newpassword.required">不能为空</span>
|
28
|
+
<span v-if="($v.newpassword.numbersAndLetter8to16||$v.newpassword.minlength) && !($v.newpassword.required&&$v.newpassword.minlength)">密码必须是8~16位数字与字母组合</span>
|
29
|
+
<span v-if="$v.newpassword.chinesePassword">密码不能包含中文</span>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="has-feedback form-group"
|
33
|
+
:class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
|
34
|
+
'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
|
35
|
+
<label for="affirmpassword" class="col-sm-4 col-sm-offset-1 control-label">确认密码: </label>
|
36
|
+
<div class="col-sm-4">
|
37
|
+
<input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.newpassword }">
|
38
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
|
39
|
+
<span v-if="$v.affirmpassword.required">不能为空</span>
|
40
|
+
<span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</article>
|
44
|
+
|
45
|
+
<footer slot="modal-footer" class="modal-footer">
|
46
|
+
<button type="button" class="btn btn-success" @click='confirm' :disabled="!$v.valid">确认</button>
|
47
|
+
<button type="button" class="btn btn-default" @click='rest'>取消</button>
|
48
|
+
</footer>
|
49
|
+
</modal>
|
50
|
+
</validator>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
</template>
|
55
|
+
<script>
|
56
|
+
import co from 'co'
|
57
|
+
import validator from '../../plugins/validation';
|
58
|
+
|
59
|
+
let saveGen = function * (self) {
|
60
|
+
self.deliver.ename = self.functions.ename
|
61
|
+
// let res = yield self.$post('rs/user/entity', {data: self.deliver})
|
62
|
+
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
63
|
+
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
64
|
+
// Util.f.password = self.deliver.newpassword
|
65
|
+
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
|
66
|
+
self.$login.f.password = self.deliver.newpassword
|
67
|
+
if (res.data) {
|
68
|
+
self.deliver.password = ''
|
69
|
+
self.deliver.newpassword = ''
|
70
|
+
self.deliver.affirmpassword = ''
|
71
|
+
self.show = false
|
72
|
+
}
|
73
|
+
}
|
74
|
+
export default {
|
75
|
+
title: '系统管理-密码修改',
|
76
|
+
data () {
|
77
|
+
return {
|
78
|
+
deliver: {
|
79
|
+
password: '',
|
80
|
+
newpassword: '',
|
81
|
+
affirmpassword: ''
|
82
|
+
},
|
83
|
+
functions: this.$login.f
|
84
|
+
}
|
85
|
+
},
|
86
|
+
props: ['show'],
|
87
|
+
methods: {
|
88
|
+
confirm () {
|
89
|
+
let gen = saveGen(this)
|
90
|
+
co(gen)
|
91
|
+
},
|
92
|
+
rest () {
|
93
|
+
this.show = false
|
94
|
+
this.deliver = {password: '', newpassword: '', affirmpassword: ''}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
</script>
|
99
|
+
<style>
|
100
|
+
/*修改密码body界面样式*/
|
101
|
+
.modifystyle {
|
102
|
+
background: #FCFEEE;
|
103
|
+
}
|
104
|
+
.modifystyle span{
|
105
|
+
color: red;
|
106
|
+
}
|
107
|
+
</style>
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<template>
|
2
|
+
<div class='over' style="display: inline-block; width: 100%;">
|
3
|
+
<tree :model='functions' :flagres="false" :is-click="false" v-ref:tree @toggle="toggled" >
|
4
|
+
<span partial class="row" :class="{ 'tree-img': isFolder(row), 'tree-span': !isFolder(row) }">
|
5
|
+
<div class="col-sm-2" >
|
6
|
+
<img v-if="isFolder(row)" :src="row.data.icon" alt="">
|
7
|
+
</div>
|
8
|
+
<div class="col-sm-8" style="padding-left:6%;text-align: left">{{row.data.name}}</div>
|
9
|
+
</span>
|
10
|
+
</tree>
|
11
|
+
</div>
|
12
|
+
</template>
|
13
|
+
<script>
|
14
|
+
import Vue from 'vue'
|
15
|
+
|
16
|
+
export default {
|
17
|
+
props: ['functions', 'userid','tabs'],
|
18
|
+
title: '左侧树菜单',
|
19
|
+
data () {
|
20
|
+
return {
|
21
|
+
index: -1,
|
22
|
+
name: null,
|
23
|
+
tbcg:[]
|
24
|
+
}
|
25
|
+
},
|
26
|
+
methods: {
|
27
|
+
open (row) {
|
28
|
+
if (row.data.name === '资源管理') {
|
29
|
+
this.$parent.changeMain(row.data.id)
|
30
|
+
return
|
31
|
+
}
|
32
|
+
console.log(row.data.navigate)
|
33
|
+
if (row.data.navigate) {
|
34
|
+
|
35
|
+
let isExist = false
|
36
|
+
this.tbcg.forEach((tab) => {
|
37
|
+
if(tab.comp.name == row.data.link) {
|
38
|
+
isExist = true
|
39
|
+
}
|
40
|
+
})
|
41
|
+
if (!isExist){
|
42
|
+
this.$goto('embbed-page', {domainName: row.data.navigate, title: row.data.name, compName: row.data.link, login: Vue.$login, param: Vue.$appdata}, 'main')
|
43
|
+
}else {
|
44
|
+
console.log(isExist,'aa')
|
45
|
+
this.$emit('isnodo',row.data.link)
|
46
|
+
}
|
47
|
+
} else if (row.data.link) {
|
48
|
+
let isExist = false
|
49
|
+
this.tbcg.forEach((tab) => {
|
50
|
+
if(tab.comp.name == row.data.link) {
|
51
|
+
isExist = true
|
52
|
+
}
|
53
|
+
})
|
54
|
+
if (!isExist){
|
55
|
+
this.$goto(row.data.link, {f: this.functions}, 'main')
|
56
|
+
}else {
|
57
|
+
console.log(isExist,'saaa')
|
58
|
+
this.$emit('isnodo',row.data.link)
|
59
|
+
}
|
60
|
+
}
|
61
|
+
},
|
62
|
+
changeSelect(name) {
|
63
|
+
if (!name) {
|
64
|
+
this.$refs.tree.selectStore.select(null)
|
65
|
+
return
|
66
|
+
}
|
67
|
+
this.name = name
|
68
|
+
let index = this.selfFindIndex(name)
|
69
|
+
this.index = index
|
70
|
+
// 当前激活页签有,index为-1,说明菜单收缩
|
71
|
+
this.changeSelected(index)
|
72
|
+
},
|
73
|
+
selfFindIndex (name) {
|
74
|
+
|
75
|
+
return this.$refs.tree.toNode.findIndex((item) => {
|
76
|
+
return item.data.link === name
|
77
|
+
})
|
78
|
+
},
|
79
|
+
changeSelected (index) {
|
80
|
+
|
81
|
+
if (index === -1) {
|
82
|
+
this.$refs.tree.selectStore.select(null)
|
83
|
+
}else {
|
84
|
+
this.$refs.tree.selectStore.select(this.$refs.tree.toNode[index])
|
85
|
+
}
|
86
|
+
|
87
|
+
},
|
88
|
+
toggled () {
|
89
|
+
|
90
|
+
if (this.name && this.index === -1) {
|
91
|
+
let index = this.selfFindIndex(this.name)
|
92
|
+
if (index !== -1) {
|
93
|
+
this.changeSelected(index)
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
events: {
|
99
|
+
'select-changed': function (data) {
|
100
|
+
|
101
|
+
// 事件回调内的 `this` 自动绑定到注册它的实例上
|
102
|
+
this.open(data.val)
|
103
|
+
}
|
104
|
+
},
|
105
|
+
watch:{
|
106
|
+
'tabs'(val){
|
107
|
+
this.tbcg = val
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
</script>
|