system-clients 3.0.46 → 3.0.47-fanxian
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/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/.eslintrc.js +16 -16
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/README.md +36 -36
- package/SystemClient.iml +11 -11
- package/build/css-loaders.js +34 -34
- package/build/dev-client.js +8 -8
- package/build/example-server.js +80 -80
- package/build/release.sh +28 -28
- package/build/utils.js +71 -71
- package/build/webpack.base.conf.js +75 -75
- package/build/webpack.dev.conf.js +31 -31
- package/build/webpack.example.conf.js +49 -49
- package/build/webpack.prod.conf.js +60 -60
- package/build/webpack.test.conf.js +31 -31
- package/build.gradle +6 -6
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/doc/Login.md +7 -7
- package/examples/ReadCard/App.vue +23 -23
- package/examples/ReadCard/index.html +11 -11
- package/examples/ReadCard/main.js +12 -12
- package/index.html +21 -21
- package/package.json +1 -1
- package/release.bat +5 -5
- package/src/App.vue +24 -24
- package/src/LodopFuncs.js +123 -123
- package/src/assets/binding.svg +1 -1
- package/src/assets/unbind.svg +1 -1
- package/src/assets//345/205/254/345/221/212.svg +1 -1
- package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
- package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
- package/src/components/List.vue +51 -51
- package/src/components/Main.vue +632 -533
- package/src/components/Table.js +74 -74
- package/src/components/Util.js +343 -343
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +94 -94
- package/src/components/equipment/PhoneList.vue +102 -102
- package/src/components/equipment/PhoneManage.vue +60 -60
- package/src/components/equipment/PosAdd.vue +137 -137
- package/src/components/equipment/PosList.vue +156 -156
- package/src/components/equipment/PosManage.vue +67 -67
- package/src/components/materialManage/materialData.vue +44 -44
- package/src/components/materialManage/materialList.vue +255 -255
- package/src/components/parammanage/AlarmInformation.vue +122 -0
- package/src/components/parammanage/ParamManage.vue +42 -42
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +314 -314
- package/src/components/parammanage/ParamPages.vue +214 -222
- package/src/components/parammanage/SinglePage.vue +237 -235
- package/src/components/parammanage/SinglePages.vue +161 -167
- package/src/components/server/AddChangeMsg.vue +66 -66
- package/src/components/server/ChangeDeclare.vue +45 -45
- package/src/components/server/IconTree.vue +26 -26
- package/src/components/server/LeftTree.vue +111 -111
- package/src/components/server/LoadData.vue +36 -36
- package/src/components/server/Login.vue +625 -624
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +125 -106
- package/src/components/server/ResSelect.vue +150 -150
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/components/server/RightTree.vue +263 -263
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/components/server/TestResSelect.vue +1 -1
- package/src/components/server/TestResSelectGroup.vue +388 -388
- package/src/components/server/TestRightTree.vue +42 -42
- package/src/index.js +7 -7
- package/src/plugins/GetLoginInfoService.js +509 -513
- package/src/plugins/validation.js +7 -7
- package/src/project/ProjectPage.vue +24 -24
- package/src/project/State.js +17 -17
- package/src/stores/AppData.js +38 -38
- package/src/system.js +78 -76
- package/src/systemphone.js +11 -11
- package/src/util/LdapHelper.js +75 -75
- package/static/newStyle/alarm.mp3 +0 -0
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +14 -14
- package/test/unit/.eslintrc +5 -5
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +10 -10
- package/test/unit/specs/base64.spec.js +5 -5
- package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
- package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
- package/test/unit/specs/components/server/LoadData.spec.js +24 -24
- package/test/unit/specs/components/server/Login.spec.js +61 -61
- package/test/unit/specs/components/server/RightTree.spec.js +50 -50
- package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
- package/test/unit/test.html +76 -76
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
@@ -1,111 +1,111 @@
|
|
1
|
-
<template>
|
2
|
-
<div class='over'>
|
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>
|
1
|
+
<template>
|
2
|
+
<div class='over'>
|
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>
|
@@ -1,36 +1,36 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
|
3
|
-
<!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
|
4
|
-
<h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
|
5
|
-
</div>
|
6
|
-
</template>
|
7
|
-
|
8
|
-
<script>
|
9
|
-
export default {
|
10
|
-
title: '加载参数',
|
11
|
-
data () {
|
12
|
-
return {
|
13
|
-
msg: '',
|
14
|
-
show: false
|
15
|
-
}
|
16
|
-
},
|
17
|
-
ready () {
|
18
|
-
this.$appdata.load()
|
19
|
-
}
|
20
|
-
}
|
21
|
-
</script>
|
22
|
-
<style media="screen">
|
23
|
-
.loadingdata {
|
24
|
-
position: fixed;
|
25
|
-
background: #fff;
|
26
|
-
opacity: 0.6;
|
27
|
-
top: 0;
|
28
|
-
width: 100%;
|
29
|
-
}
|
30
|
-
.loaderror {
|
31
|
-
opacity: 1;
|
32
|
-
}
|
33
|
-
.loadsuccess {
|
34
|
-
display: none;
|
35
|
-
}
|
36
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="loadingdata" :class="{'loaderror': show, 'loadsuccess': !show}">
|
3
|
+
<!-- <h2 style="margin: 0" v-if="show">{{msg}}</h2> -->
|
4
|
+
<h2 style="margin: 0" v-if="show">参数加载失败,请检查网络状态和服务状态...</h2>
|
5
|
+
</div>
|
6
|
+
</template>
|
7
|
+
|
8
|
+
<script>
|
9
|
+
export default {
|
10
|
+
title: '加载参数',
|
11
|
+
data () {
|
12
|
+
return {
|
13
|
+
msg: '',
|
14
|
+
show: false
|
15
|
+
}
|
16
|
+
},
|
17
|
+
ready () {
|
18
|
+
this.$appdata.load()
|
19
|
+
}
|
20
|
+
}
|
21
|
+
</script>
|
22
|
+
<style media="screen">
|
23
|
+
.loadingdata {
|
24
|
+
position: fixed;
|
25
|
+
background: #fff;
|
26
|
+
opacity: 0.6;
|
27
|
+
top: 0;
|
28
|
+
width: 100%;
|
29
|
+
}
|
30
|
+
.loaderror {
|
31
|
+
opacity: 1;
|
32
|
+
}
|
33
|
+
.loadsuccess {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
</style>
|