system-clients 3.1.97-aode → 3.1.98-aode
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/package.json +1 -1
- package/src/components/server/Login.vue +716 -711
- package/src/components/server/RoleSelector.vue +90 -90
- package/src/plugins/GetLoginInfoService.js +495 -514
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
@@ -1,90 +1,90 @@
|
|
1
|
-
<template>
|
2
|
-
<div style="width: 100%;height: 100%">
|
3
|
-
<div class="col-sm-6">
|
4
|
-
<label class="font_normal_body"> 公 司 </label>
|
5
|
-
<right-tree :width="leftWidth" @re-res="getRes"></right-tree>
|
6
|
-
</div>
|
7
|
-
<div class="col-sm-6 ">
|
8
|
-
<label class="font_normal_body">{{roleLable}}</label>
|
9
|
-
<v-select :value.sync="value" v-model='model.f_checker_id'
|
10
|
-
:value-single="true"
|
11
|
-
class="select_list select"
|
12
|
-
:options='users' :placeholder='roleName'
|
13
|
-
close-on-select
|
14
|
-
:width="rightWidth">
|
15
|
-
</v-select>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</template>
|
19
|
-
|
20
|
-
<script>
|
21
|
-
export default {
|
22
|
-
name: "RoleSelector",
|
23
|
-
props: {
|
24
|
-
roleName: {
|
25
|
-
type: String,
|
26
|
-
default: '安检员'
|
27
|
-
},
|
28
|
-
roleLable: {
|
29
|
-
type: String,
|
30
|
-
default: '安检员'
|
31
|
-
},
|
32
|
-
leftWidth: {
|
33
|
-
type: String,
|
34
|
-
default: '60%'
|
35
|
-
},
|
36
|
-
rightWidth: {
|
37
|
-
type: String,
|
38
|
-
default: '60%'
|
39
|
-
},
|
40
|
-
value: {
|
41
|
-
type: String,
|
42
|
-
default: ''
|
43
|
-
}
|
44
|
-
},
|
45
|
-
data() {
|
46
|
-
return {
|
47
|
-
source: `tool.getChildrenOfResName($${this.roleName}$)`,
|
48
|
-
allUsers: [],
|
49
|
-
users: [],
|
50
|
-
resids: []
|
51
|
-
}
|
52
|
-
},
|
53
|
-
ready() {
|
54
|
-
this.$resetpost('/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
55
|
-
.then(res => {
|
56
|
-
console.log('res-->' + JSON.stringify(res))
|
57
|
-
this.allUsers = res.data
|
58
|
-
this.filterUser([this.$login.f.orgid])
|
59
|
-
})
|
60
|
-
},
|
61
|
-
methods: {
|
62
|
-
getRes(obj) {
|
63
|
-
this.resids = obj.resids
|
64
|
-
console.log(this.resids)
|
65
|
-
this.filterUser(this.resids)
|
66
|
-
this.$dispatch('re-res',obj)
|
67
|
-
},
|
68
|
-
filterUser(resids) {
|
69
|
-
// 处理第一次进入页面值异常问题
|
70
|
-
if(resids.length > 0 && typeof resids[0] == "object"){
|
71
|
-
resids = resids[0]
|
72
|
-
}
|
73
|
-
this.users = []
|
74
|
-
this.allUsers.forEach(user => {
|
75
|
-
if (resids.indexOf(user.orgid) != -1) {
|
76
|
-
this.users.push({label: user.name, value: user.name})
|
77
|
-
}
|
78
|
-
})
|
79
|
-
if(this.users.length > 0){
|
80
|
-
this.users = [{label: '全部', value: ''},...this.users]
|
81
|
-
}
|
82
|
-
console.log(this.users)
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
</script>
|
87
|
-
|
88
|
-
<style scoped>
|
89
|
-
|
90
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div style="width: 100%;height: 100%">
|
3
|
+
<div class="col-sm-6">
|
4
|
+
<label class="font_normal_body"> 公 司 </label>
|
5
|
+
<right-tree :width="leftWidth" @re-res="getRes"></right-tree>
|
6
|
+
</div>
|
7
|
+
<div class="col-sm-6 ">
|
8
|
+
<label class="font_normal_body">{{roleLable}}</label>
|
9
|
+
<v-select :value.sync="value" v-model='model.f_checker_id'
|
10
|
+
:value-single="true"
|
11
|
+
class="select_list select"
|
12
|
+
:options='users' :placeholder='roleName'
|
13
|
+
close-on-select
|
14
|
+
:width="rightWidth">
|
15
|
+
</v-select>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
export default {
|
22
|
+
name: "RoleSelector",
|
23
|
+
props: {
|
24
|
+
roleName: {
|
25
|
+
type: String,
|
26
|
+
default: '安检员'
|
27
|
+
},
|
28
|
+
roleLable: {
|
29
|
+
type: String,
|
30
|
+
default: '安检员'
|
31
|
+
},
|
32
|
+
leftWidth: {
|
33
|
+
type: String,
|
34
|
+
default: '60%'
|
35
|
+
},
|
36
|
+
rightWidth: {
|
37
|
+
type: String,
|
38
|
+
default: '60%'
|
39
|
+
},
|
40
|
+
value: {
|
41
|
+
type: String,
|
42
|
+
default: ''
|
43
|
+
}
|
44
|
+
},
|
45
|
+
data() {
|
46
|
+
return {
|
47
|
+
source: `tool.getChildrenOfResName($${this.roleName}$)`,
|
48
|
+
allUsers: [],
|
49
|
+
users: [],
|
50
|
+
resids: []
|
51
|
+
}
|
52
|
+
},
|
53
|
+
ready() {
|
54
|
+
this.$resetpost('/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
55
|
+
.then(res => {
|
56
|
+
console.log('res-->' + JSON.stringify(res))
|
57
|
+
this.allUsers = res.data
|
58
|
+
this.filterUser([this.$login.f.orgid])
|
59
|
+
})
|
60
|
+
},
|
61
|
+
methods: {
|
62
|
+
getRes(obj) {
|
63
|
+
this.resids = obj.resids
|
64
|
+
console.log(this.resids)
|
65
|
+
this.filterUser(this.resids)
|
66
|
+
this.$dispatch('re-res',obj)
|
67
|
+
},
|
68
|
+
filterUser(resids) {
|
69
|
+
// 处理第一次进入页面值异常问题
|
70
|
+
if(resids.length > 0 && typeof resids[0] == "object"){
|
71
|
+
resids = resids[0]
|
72
|
+
}
|
73
|
+
this.users = []
|
74
|
+
this.allUsers.forEach(user => {
|
75
|
+
if (resids.indexOf(user.orgid) != -1) {
|
76
|
+
this.users.push({label: user.name, value: user.name})
|
77
|
+
}
|
78
|
+
})
|
79
|
+
if(this.users.length > 0){
|
80
|
+
this.users = [{label: '全部', value: ''},...this.users]
|
81
|
+
}
|
82
|
+
console.log(this.users)
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
</script>
|
87
|
+
|
88
|
+
<style scoped>
|
89
|
+
|
90
|
+
</style>
|