system-clients 3.1.99 → 3.1.100-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/.eslintrc.js +16 -16
- 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 +1 -1
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/build/webpack.base.conf.js +10 -17
- package/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/gradlew +185 -185
- package/package.json +4 -4
- package/src/components/Main.vue +428 -538
- 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 +4 -4
- package/src/components/equipment/PhoneList.vue +4 -4
- package/src/components/equipment/PosAdd.vue +45 -231
- package/src/components/equipment/PosList.vue +68 -198
- package/src/components/equipment/PosManage.vue +9 -80
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +8 -30
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/Login.vue +716 -734
- package/src/components/server/ModifyPw.vue +112 -106
- package/src/components/server/ResSelect.vue +0 -5
- package/src/components/server/ResSelectGroup.vue +118 -155
- package/src/components/server/RightTree.vue +257 -262
- package/src/components/server/RoleSelector.vue +4 -3
- package/src/plugins/GetLoginInfoService.js +84 -107
- package/src/plugins/HeatGetLoginInfoService.js +491 -491
- package/src/styles/less/aofeng/standard.less +60 -446
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
- package/src/styles/less/aofeng/themeOne/systemStyle.less +18 -18
- package/src/styles/less/fonts-list.less +4 -4
- package/src/styles/less/stand.less +1 -1
- package/src/styles/less/tables.less +0 -50
- package/src/styles/less/type.less +3 -16
- package/src/styles/less/variables.less +3 -6
- package/src/system.js +0 -10
- package/static/aodelogo.png +0 -0
- package/static/aodenewlogo.png +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/src/components/TabButton.vue +0 -201
- package/src/components/Tabs.vue +0 -67
- package/src/components/equipment/PosManageBoth.vue +0 -125
- package/src/components/equipment/PosParamAdd.vue +0 -236
- package/src/components/equipment/PosParamList.vue +0 -121
- package/src/components/equipment/PosParamManage.vue +0 -51
- package/src/components/server/ImageVieweTest.vue +0 -56
- package/src/components/server/ImageViewer.vue +0 -350
- package/src/components/server/PcdBuildingSelect.vue +0 -241
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
- package/static/newStyle/about-us.png +0 -0
- package/yarn-error.log +0 -6896
- /package/static/{logo.png → ewmlogo.png} +0 -0
@@ -1,106 +1,112 @@
|
|
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.strongpassword && !($v.newpassword.required),
|
22
|
-
'has-success': !$v.newpassword.required && !$v.newpassword.strongpassword }">
|
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, strongpassword: true}'>
|
26
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !($v.newpassword.strongpassword && !($v.newpassword.required))"></span>
|
27
|
-
<span v-if="$v.newpassword.required">不能为空</span>
|
28
|
-
<span v-if="$v.newpassword.strongpassword && !($v.newpassword.required)">密码必须包含英文大小写、阿拉伯数字、字符</span>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
<div class="has-feedback form-group"
|
32
|
-
:class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
|
33
|
-
'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
|
34
|
-
<label for="affirmpassword" class="col-sm-4 col-sm-offset-1 control-label">确认密码: </label>
|
35
|
-
<div class="col-sm-4">
|
36
|
-
<input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.newpassword }">
|
37
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
|
38
|
-
<span v-if="$v.affirmpassword.required">不能为空</span>
|
39
|
-
<span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</article>
|
43
|
-
|
44
|
-
<footer slot="modal-footer" class="modal-footer">
|
45
|
-
<button type="button" class="btn btn-success" @click='confirm' :disabled="!$v.valid">确认</button>
|
46
|
-
<button type="button" class="btn btn-default" @click='rest'>取消</button>
|
47
|
-
</footer>
|
48
|
-
</modal>
|
49
|
-
</validator>
|
50
|
-
</div>
|
51
|
-
|
52
|
-
|
53
|
-
</template>
|
54
|
-
<script>
|
55
|
-
import co from 'co'
|
56
|
-
import validator from '../../plugins/validation';
|
57
|
-
|
58
|
-
let saveGen = function * (self) {
|
59
|
-
self.deliver.ename = self.functions.ename
|
60
|
-
// let res = yield self.$post('rs/user/entity', {data: self.deliver})
|
61
|
-
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
62
|
-
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
63
|
-
// Util.f.password = self.deliver.newpassword
|
64
|
-
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
|
65
|
-
self.$login.f.password = self.deliver.newpassword
|
66
|
-
if (res.data) {
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
}
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
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.strongpassword && !($v.newpassword.required),
|
22
|
+
'has-success': !$v.newpassword.required && !$v.newpassword.strongpassword }">
|
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, strongpassword: true}'>
|
26
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !($v.newpassword.strongpassword && !($v.newpassword.required))"></span>
|
27
|
+
<span v-if="$v.newpassword.required">不能为空</span>
|
28
|
+
<span v-if="$v.newpassword.strongpassword && !($v.newpassword.required)">密码必须包含英文大小写、阿拉伯数字、字符</span>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class="has-feedback form-group"
|
32
|
+
:class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
|
33
|
+
'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
|
34
|
+
<label for="affirmpassword" class="col-sm-4 col-sm-offset-1 control-label">确认密码: </label>
|
35
|
+
<div class="col-sm-4">
|
36
|
+
<input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.newpassword }">
|
37
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
|
38
|
+
<span v-if="$v.affirmpassword.required">不能为空</span>
|
39
|
+
<span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</article>
|
43
|
+
|
44
|
+
<footer slot="modal-footer" class="modal-footer">
|
45
|
+
<button type="button" class="btn btn-success" @click='confirm' :disabled="!$v.valid">确认</button>
|
46
|
+
<button type="button" class="btn btn-default" @click='rest'>取消</button>
|
47
|
+
</footer>
|
48
|
+
</modal>
|
49
|
+
</validator>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</template>
|
54
|
+
<script>
|
55
|
+
import co from 'co'
|
56
|
+
import validator from '../../plugins/validation';
|
57
|
+
|
58
|
+
let saveGen = function * (self) {
|
59
|
+
self.deliver.ename = self.functions.ename
|
60
|
+
// let res = yield self.$post('rs/user/entity', {data: self.deliver})
|
61
|
+
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
62
|
+
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
63
|
+
// Util.f.password = self.deliver.newpassword
|
64
|
+
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, { resolveMsg: null, rejectMsg: '请求错误,修改密码失败!' })
|
65
|
+
self.$login.f.password = self.deliver.newpassword
|
66
|
+
if (res.data) {
|
67
|
+
console.log("修改密码返回:" , res.data)
|
68
|
+
if (res.data.code === 200) {
|
69
|
+
self.deliver.password = ''
|
70
|
+
self.deliver.newpassword = ''
|
71
|
+
self.deliver.affirmpassword = ''
|
72
|
+
self.show = false
|
73
|
+
self.$showAlert("修改密码成功", 'success', 2000)
|
74
|
+
} else {
|
75
|
+
self.$showAlert("修改密码失败,原因:" + res.data.msg, 'warning', 2000)
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
export default {
|
80
|
+
title: '系统管理-密码修改',
|
81
|
+
data () {
|
82
|
+
return {
|
83
|
+
deliver: {
|
84
|
+
password: '',
|
85
|
+
newpassword: '',
|
86
|
+
affirmpassword: ''
|
87
|
+
},
|
88
|
+
functions: this.$login.f
|
89
|
+
}
|
90
|
+
},
|
91
|
+
props: ['show'],
|
92
|
+
methods: {
|
93
|
+
confirm () {
|
94
|
+
let gen = saveGen(this)
|
95
|
+
co(gen)
|
96
|
+
},
|
97
|
+
rest () {
|
98
|
+
this.show = false
|
99
|
+
this.deliver = {password: '', newpassword: '', affirmpassword: ''}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
</script>
|
104
|
+
<style>
|
105
|
+
/*修改密码body界面样式*/
|
106
|
+
.modifystyle {
|
107
|
+
background: #FCFEEE;
|
108
|
+
}
|
109
|
+
.modifystyle span{
|
110
|
+
color: red;
|
111
|
+
}
|
112
|
+
</style>
|
@@ -3,7 +3,6 @@
|
|
3
3
|
:value.sync="selectres"
|
4
4
|
:multiple="isMul"
|
5
5
|
search="true"
|
6
|
-
:disabled="mustselect"
|
7
6
|
:close-on-select="!isMul"
|
8
7
|
@change="resChange"
|
9
8
|
>
|
@@ -34,10 +33,6 @@
|
|
34
33
|
type: Array,
|
35
34
|
default() { return [] },
|
36
35
|
},
|
37
|
-
mustselect: {
|
38
|
-
type: Boolean,
|
39
|
-
default: false
|
40
|
-
},
|
41
36
|
},
|
42
37
|
data () {
|
43
38
|
return {
|
@@ -2,40 +2,27 @@
|
|
2
2
|
<div :class="style" v-show="companyshow">
|
3
3
|
<label class="font_normal_body">公  司</label>
|
4
4
|
<right-tree @re-res="getorg"
|
5
|
-
:mustselect="mustselect"
|
6
5
|
:initresid='initres.org'></right-tree>
|
7
6
|
</div>
|
8
7
|
<div :class="style" v-show="departmentshow">
|
9
8
|
<label class="font_normal_body">部  门</label>
|
10
|
-
<res-select restype='department'
|
9
|
+
<res-select restype='department'
|
11
10
|
@res-select="getdep"
|
12
11
|
:parentresid="depresid"
|
13
12
|
:initresid='initres.dep'
|
14
|
-
:mustselect="mustselect"
|
15
13
|
:is-mul="mul">
|
16
14
|
</res-select>
|
17
15
|
</div>
|
18
|
-
<div :class="style" v-show="operatorshow
|
16
|
+
<div :class="style" v-show="operatorshow">
|
19
17
|
<label class="font_normal_body">人  员</label>
|
20
18
|
<res-select restype='user'
|
21
19
|
@res-select="getuser"
|
22
20
|
:parentresid="depresid"
|
23
21
|
:initresid='initres.user'
|
24
|
-
:mustselect="mustselect"
|
25
22
|
:is-mul="mul">
|
26
23
|
</res-select>
|
27
24
|
</div>
|
28
|
-
<div :class="style" v-show="
|
29
|
-
<label class="font_normal_body">人  员</label>
|
30
|
-
<res-select restype='user'
|
31
|
-
@res-select="getuser"
|
32
|
-
:parentresid="userresid"
|
33
|
-
:initresid='initres.user'
|
34
|
-
:mustselect="mustselect"
|
35
|
-
:is-mul="mul">
|
36
|
-
</res-select>
|
37
|
-
</div>
|
38
|
-
<div :class="style " v-if="sliceareashow" >
|
25
|
+
<div :class="style " v-show="sliceareashow" >
|
39
26
|
<label class="font_normal_body">片  区</label>
|
40
27
|
<v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
|
41
28
|
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
@@ -44,153 +31,129 @@
|
|
44
31
|
</div>
|
45
32
|
</template>
|
46
33
|
<script>
|
47
|
-
import plugin from '../../plugins/GetLoginInfoService'
|
48
|
-
import { HttpResetClass } from 'vue-client'
|
49
|
-
export default {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
},
|
68
|
-
//人员是否和部门关联
|
69
|
-
cascade: {
|
70
|
-
type: Boolean,
|
71
|
-
default: true
|
72
|
-
},
|
73
|
-
selectin: {
|
74
|
-
type: Boolean,
|
75
|
-
default: false
|
76
|
-
}
|
77
|
-
},
|
78
|
-
data () {
|
79
|
-
return {
|
80
|
-
orgresid:[this.$login.f.orgid],
|
81
|
-
depresid:[],
|
82
|
-
userresid:[],
|
83
|
-
sliceArea: [],
|
84
|
-
slice_area:[],
|
85
|
-
companyshow:false,
|
86
|
-
departmentshow:false,
|
87
|
-
operatorshow:false,
|
88
|
-
sliceareashow:false,
|
89
|
-
mustselect:false,
|
90
|
-
obj:{
|
91
|
-
orgnames:[],
|
92
|
-
depnames:[],
|
93
|
-
operatornames:[]
|
94
|
-
}
|
95
|
-
}
|
96
|
-
},
|
97
|
-
ready () {
|
98
|
-
if(this.$login.r.includes('部门默认选中')&& this.selectin){
|
99
|
-
this.initres.dep = [this.$login.f.depids]
|
100
|
-
}
|
101
|
-
if(this.$login.r.includes('人员默认选中')&& this.selectin){
|
102
|
-
this.initres.user = [this.$login.f.id]
|
103
|
-
if(this.$login.r.includes('人员强制选中')){
|
104
|
-
this.mustselect = true
|
105
|
-
}
|
106
|
-
}
|
107
|
-
this.initComponent();
|
108
|
-
this.initAreas(this.$login.f.orgid)
|
109
|
-
},
|
110
|
-
methods:{
|
111
|
-
initComponent(){
|
112
|
-
let self=this;
|
113
|
-
this.showComponent.find((item)=>{
|
114
|
-
switch(item){
|
115
|
-
case 'company': self.companyshow=true; break;
|
116
|
-
case 'department': self.departmentshow=true; break;
|
117
|
-
case 'operator': self.operatorshow=true; break;
|
118
|
-
case 'slicearea': self.sliceareashow=true; break;
|
119
|
-
}
|
120
|
-
})
|
121
|
-
},
|
122
|
-
// 初始化片区
|
123
|
-
async initAreas (val) {
|
124
|
-
if (val) {
|
125
|
-
let http = new HttpResetClass()
|
126
|
-
let getAllArea = await http.load('POST', '/rs/search', {
|
127
|
-
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
128
|
-
userid: this.$login.f.id
|
129
|
-
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
130
|
-
let arr = getAllArea.data.filter((res) => {
|
131
|
-
return res.parentid == val
|
132
|
-
})
|
133
|
-
this.sliceArea = []
|
134
|
-
this.slice_area = []
|
135
|
-
arr.forEach((res) => {
|
136
|
-
this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
|
137
|
-
})
|
34
|
+
import plugin from '../../plugins/GetLoginInfoService'
|
35
|
+
import { HttpResetClass } from 'vue-client'
|
36
|
+
export default {
|
37
|
+
title: '资源选择测试',
|
38
|
+
props: {
|
39
|
+
style: {
|
40
|
+
type: String,
|
41
|
+
default: 'col-sm-2 form-group'
|
42
|
+
},
|
43
|
+
mul: {
|
44
|
+
type: Boolean,
|
45
|
+
default: true
|
46
|
+
},
|
47
|
+
//初始值
|
48
|
+
initres: {
|
49
|
+
type: Object,
|
50
|
+
default: null,
|
51
|
+
},
|
52
|
+
showComponent:{
|
53
|
+
default:['company','department','operator','slicearea']
|
138
54
|
}
|
139
55
|
},
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
}
|
156
|
-
let depid = depids.length ? plugin.convertToIn(depids) : ('')
|
157
|
-
condition += " and f_depid in " + depid;
|
56
|
+
data () {
|
57
|
+
return {
|
58
|
+
orgresid:[this.$login.f.orgid],
|
59
|
+
depresid:[],
|
60
|
+
userresid:[],
|
61
|
+
sliceArea: [],
|
62
|
+
slice_area:[],
|
63
|
+
companyshow:false,
|
64
|
+
departmentshow:false,
|
65
|
+
operatorshow:false,
|
66
|
+
sliceareashow:false,
|
67
|
+
obj:{
|
68
|
+
orgnames:[],
|
69
|
+
depnames:[],
|
70
|
+
operatornames:[]
|
158
71
|
}
|
159
72
|
}
|
160
|
-
if(ids && ids.length > 0){
|
161
|
-
condition += " and f_operatorid in " + plugin.convertToIn(ids);
|
162
|
-
}
|
163
|
-
if(this.slice_area.length>0){
|
164
|
-
condition += " and f_zones = '" + this.slice_area[0].name+"'"
|
165
|
-
}
|
166
|
-
this.$dispatch('re-res',condition,this.obj)
|
167
|
-
},
|
168
|
-
getorg (obj) {
|
169
|
-
this.depresid=obj.resids
|
170
|
-
this.obj.orgnames = obj.res
|
171
|
-
this.initAreas(obj.resids)
|
172
|
-
this.returnOrg();
|
173
|
-
},
|
174
|
-
getdep(obj,val) {
|
175
|
-
this.obj.depnames = val
|
176
|
-
this.userresid=obj
|
177
|
-
this.returnOrg();
|
178
73
|
},
|
179
|
-
|
180
|
-
|
181
|
-
this.
|
74
|
+
ready () {
|
75
|
+
console.log('开始获取组织结构。。。')
|
76
|
+
this.initComponent();
|
77
|
+
this.initAreas(this.$login.f.orgid)
|
182
78
|
},
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
this.
|
187
|
-
|
79
|
+
methods:{
|
80
|
+
initComponent(){
|
81
|
+
let self=this;
|
82
|
+
this.showComponent.find((item)=>{
|
83
|
+
switch(item){
|
84
|
+
case 'company': self.companyshow=true; break;
|
85
|
+
case 'department': self.departmentshow=true; break;
|
86
|
+
case 'operator': self.operatorshow=true; break;
|
87
|
+
case 'slicearea': self.sliceareashow=true; break;
|
88
|
+
}
|
89
|
+
})
|
90
|
+
},
|
91
|
+
// 初始化片区
|
92
|
+
async initAreas (val) {
|
93
|
+
if (val) {
|
94
|
+
let http = new HttpResetClass()
|
95
|
+
let getAllArea = await http.load('POST', '/rs/search', {
|
96
|
+
source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
|
97
|
+
userid: this.$login.f.id
|
98
|
+
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
99
|
+
let arr = getAllArea.data.filter((res) => {
|
100
|
+
return res.parentid == val
|
101
|
+
})
|
102
|
+
console.log('过滤之后的片区', arr)
|
103
|
+
this.sliceArea = []
|
104
|
+
arr.forEach((res) => {
|
105
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
|
106
|
+
})
|
107
|
+
}
|
108
|
+
},
|
109
|
+
returnOrg(ids){
|
110
|
+
|
111
|
+
let condition;
|
112
|
+
if(this.depresid.length > 0)
|
113
|
+
condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
|
114
|
+
else
|
115
|
+
condition = " and f_orgid = " + this.$login.f.orgid;
|
116
|
+
if(this.userresid.length > 0){
|
117
|
+
condition += " and f_depid in " + plugin.convertToIn(this.userresid);
|
118
|
+
}
|
119
|
+
if(ids && ids.length > 0){
|
120
|
+
condition += " and f_operatorid in " + plugin.convertToIn(ids);
|
121
|
+
}
|
122
|
+
if(this.slice_area.length>0){
|
123
|
+
condition += " and f_zones = '" + this.slice_area[0].name+"'"
|
124
|
+
}
|
125
|
+
this.$dispatch('re-res',condition,this.obj)
|
126
|
+
},
|
127
|
+
getorg (obj) {
|
128
|
+
console.log("选中公司的数据11",obj.resids)
|
129
|
+
this.depresid=obj.resids
|
130
|
+
this.obj.orgnames = obj.res
|
131
|
+
this.initAreas(obj.resids)
|
188
132
|
this.returnOrg();
|
133
|
+
},
|
134
|
+
getdep(obj,val) {
|
135
|
+
console.log("选中部门的数据22",obj)
|
136
|
+
this.obj.depnames = val
|
137
|
+
this.userresid=obj
|
138
|
+
this.returnOrg();
|
139
|
+
},
|
140
|
+
getuser(obj) {
|
141
|
+
this.obj.operatornames = obj
|
142
|
+
console.log("选中用户的数据33",obj)
|
143
|
+
this.returnOrg(obj);
|
144
|
+
},
|
145
|
+
getarea(val) {
|
146
|
+
this.slice_area=val
|
147
|
+
console.log("选中的大区",val)
|
148
|
+
if(this.obj.operatornames){
|
149
|
+
this.returnOrg(this.obj.operatornames);
|
150
|
+
}else{
|
151
|
+
this.returnOrg();
|
152
|
+
}
|
189
153
|
}
|
190
|
-
}
|
191
|
-
|
192
|
-
watch: {
|
154
|
+
},
|
155
|
+
watch: {
|
193
156
|
|
157
|
+
}
|
194
158
|
}
|
195
|
-
}
|
196
159
|
</script>
|