system-clients 3.2.86 → 3.2.87-yl-1
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 +105 -105
- package/src/assets/img.png +0 -0
- package/src/assets/logo_header.4b1d0be.png +0 -0
- package/src/components/Main.vue +935 -923
- package/src/components/equipment/EquipmentManage.vue +83 -83
- package/src/components/equipment/PcAdd.vue +115 -115
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +61 -61
- package/src/components/equipment/PhoneAdd.vue +118 -118
- package/src/components/equipment/PhoneList.vue +113 -113
- package/src/components/equipment/PhoneManage.vue +61 -61
- package/src/components/equipment/PosAdd.vue +323 -323
- package/src/components/equipment/PosList.vue +294 -294
- package/src/components/equipment/PosParamAdd.vue +236 -236
- package/src/components/equipment/PosParamList.vue +121 -121
- package/src/components/parammanage/ParamPage.vue +337 -337
- package/src/components/parammanage/SinglePage.vue +235 -235
- package/src/components/server/LoadData.vue +55 -55
- package/src/components/server/Login.vue +566 -566
- package/src/components/server/ModifyPw.vue +125 -125
- package/src/components/server/PcdBuildingSelect.vue +241 -241
- package/src/components/server/ResSelect.vue +166 -166
- package/src/components/server/ResSelectGroup.vue +211 -204
- package/src/components/server/RightTree.vue +348 -348
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/filiale/baole/Login.vue +568 -568
- package/src/filiale/chengtou/Login.vue +537 -537
- package/src/filiale/dongguan/Login.vue +900 -900
- package/src/filiale/dongguan/Main.vue +715 -715
- package/src/filiale/furuike/Login.vue +583 -583
- package/src/filiale/furuike/Main.vue +827 -827
- package/src/filiale/gehua/Main.vue +807 -807
- package/src/filiale/konggang/Login.vue +470 -470
- package/src/filiale/konggang/system.js +7 -7
- package/src/filiale/qianneng/Login.vue +582 -582
- package/src/filiale/qianneng/Main.vue +816 -816
- package/src/filiale/qianneng/ModifyPw.vue +107 -107
- package/src/filiale/rizhao/Login.vue +791 -791
- package/src/filiale/rizhao/Main.vue +611 -611
- package/src/filiale/shiquan/Login.vue +564 -564
- package/src/filiale/tianyi/Login.vue +571 -571
- package/src/filiale/tongchuan/Login.vue +561 -561
- package/src/filiale/tongchuan/Main.vue +1019 -1019
- package/src/filiale/tongchuan/system.js +7 -7
- package/src/filiale/weinan/Main.vue +923 -923
- package/src/filiale/weinan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +535 -535
- package/src/filiale/wenxi/Main.vue +785 -785
- package/src/filiale/wuhai/Main.vue +807 -807
- package/src/filiale/yuchuan/Login.vue +889 -889
- package/src/filiale/yuchuan/Main.vue +864 -864
- package/src/filiale/zhoukou/Main.vue +807 -807
- package/src/plugins/GetLoginInfoService.js +536 -536
- package/src/plugins/validation.js +15 -15
- package/src/stores/AppData.js +38 -38
- package/src/styles/less/aofeng/standard.less +2507 -2507
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
@@ -1,166 +1,166 @@
|
|
1
|
-
<template>
|
2
|
-
<v-select :options='resoptions' placeholder='请选择'
|
3
|
-
:value.sync="selectres"
|
4
|
-
:multiple="isMul"
|
5
|
-
search="true"
|
6
|
-
:disabled="mustselect"
|
7
|
-
:close-on-select="!isMul"
|
8
|
-
@change="resChange"
|
9
|
-
>
|
10
|
-
</v-select>
|
11
|
-
</template>
|
12
|
-
<script>
|
13
|
-
import {HttpResetClass} from 'vue-client'
|
14
|
-
|
15
|
-
export default {
|
16
|
-
title: '资源选择',
|
17
|
-
props: {
|
18
|
-
|
19
|
-
//资源类型
|
20
|
-
restype:'',
|
21
|
-
//是否只查询营业厅
|
22
|
-
specialquery: {
|
23
|
-
type: Boolean,
|
24
|
-
default: false
|
25
|
-
},
|
26
|
-
//资源数据
|
27
|
-
resObj:{},
|
28
|
-
isMul: {
|
29
|
-
type: Boolean,
|
30
|
-
default: true
|
31
|
-
},
|
32
|
-
//资源初始化数据
|
33
|
-
initresid: {
|
34
|
-
type: Array,
|
35
|
-
default() { return [] },
|
36
|
-
},
|
37
|
-
//父层id
|
38
|
-
parentresid: {
|
39
|
-
type: Array,
|
40
|
-
default() { return [] },
|
41
|
-
},
|
42
|
-
mustselect: {
|
43
|
-
type: Boolean,
|
44
|
-
default: false
|
45
|
-
},
|
46
|
-
},
|
47
|
-
data () {
|
48
|
-
return {
|
49
|
-
//资源数据
|
50
|
-
resObj:{},
|
51
|
-
//资源数据列表
|
52
|
-
resoptions:[],
|
53
|
-
//选中资源数据
|
54
|
-
selectres: [],
|
55
|
-
}
|
56
|
-
},
|
57
|
-
ready () {
|
58
|
-
//获取资源列表
|
59
|
-
this.getResList()
|
60
|
-
},
|
61
|
-
methods:{
|
62
|
-
//树形结构变成list
|
63
|
-
findById(val) {
|
64
|
-
if(val){
|
65
|
-
if(this.checkidres(val)){
|
66
|
-
this.treetoList(val,'')
|
67
|
-
}else if(val.children.length>0){
|
68
|
-
for (let value of val.children) {
|
69
|
-
this.findById(value)
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
},
|
74
|
-
//树形结构变成list
|
75
|
-
treetoList(val,parentname) {
|
76
|
-
for (let value of val.children) {
|
77
|
-
this.ergodicList(value,parentname)
|
78
|
-
}
|
79
|
-
},
|
80
|
-
//找到跟节点
|
81
|
-
ergodicList (val,parentname) {
|
82
|
-
if(val.children.length > 0 ){
|
83
|
-
parentname=parentname+val.name
|
84
|
-
this.treetoList(val,parentname)
|
85
|
-
}else {
|
86
|
-
//截取组织机构【组织机构】
|
87
|
-
if(this.restype=='organization'){
|
88
|
-
parentname=parentname.replace("组织机构","")
|
89
|
-
this.resoptions.push({label: val.name+' - '+parentname, value: val.id})
|
90
|
-
}else{
|
91
|
-
if (this.specialquery && this.restype == 'department') {
|
92
|
-
if (val.f_dep_type === '营业厅') {
|
93
|
-
this.resoptions.push({label: val.name, value: val.id})
|
94
|
-
}
|
95
|
-
}else {
|
96
|
-
this.resoptions.push({label: val.name, value: val.id})
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
},
|
101
|
-
//检查id是否存在
|
102
|
-
checkidres(val){
|
103
|
-
let flag=false
|
104
|
-
//如果没传值得话 不过滤
|
105
|
-
if(this.parentresid.length==0&&this.restype=='organization'){
|
106
|
-
flag=true
|
107
|
-
}
|
108
|
-
this.parentresid.forEach((item) => {
|
109
|
-
if(item==val.id){
|
110
|
-
flag=true
|
111
|
-
}
|
112
|
-
})
|
113
|
-
return flag;
|
114
|
-
},
|
115
|
-
//资源改变
|
116
|
-
resChange(val){
|
117
|
-
let orgnames=[]
|
118
|
-
Object.keys(this.resoptions).forEach((key) => {
|
119
|
-
if(this.selectres.includes(this.resoptions[key].value))
|
120
|
-
orgnames.push(this.resoptions[key].label)
|
121
|
-
})
|
122
|
-
console.log('资源改变。。', val, orgnames)
|
123
|
-
this.$dispatch('res-select', this.selectres, orgnames)
|
124
|
-
},
|
125
|
-
//获取资源数据
|
126
|
-
async getResList() {
|
127
|
-
|
128
|
-
let http = new HttpResetClass()
|
129
|
-
|
130
|
-
let req = await http.load('POST', '/rs/search', {data: {
|
131
|
-
source: `tool.getFullTree(this.getRights().where(row.getType()==$${this.restype}$))`,
|
132
|
-
userid: this.$login.f.id
|
133
|
-
}}, {resolveMsg: null, rejectMsg: '获取组织结构数据出错'})
|
134
|
-
this.resObj=req.data[0]
|
135
|
-
this.dealdata()
|
136
|
-
},
|
137
|
-
dealdata(){
|
138
|
-
this.resoptions=[]
|
139
|
-
this.findById(this.resObj);
|
140
|
-
//赋值资源数据
|
141
|
-
let arryselect=[]
|
142
|
-
this.resoptions.forEach((item) => {
|
143
|
-
if(this.initresid.length>0){
|
144
|
-
this.initresid.forEach((init) => {
|
145
|
-
if(item.value==init){
|
146
|
-
arryselect.push(item.value)
|
147
|
-
}
|
148
|
-
})
|
149
|
-
}
|
150
|
-
})
|
151
|
-
//赋值资源选中初始值
|
152
|
-
this.selectres=arryselect
|
153
|
-
}
|
154
|
-
},
|
155
|
-
watch: {
|
156
|
-
//监听初始化资源id
|
157
|
-
'initresid.length'(){
|
158
|
-
this.dealdata()
|
159
|
-
},
|
160
|
-
//监听初始化资源id
|
161
|
-
'parentresid'(){
|
162
|
-
this.dealdata()
|
163
|
-
},
|
164
|
-
},
|
165
|
-
}
|
166
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<v-select :options='resoptions' placeholder='请选择'
|
3
|
+
:value.sync="selectres"
|
4
|
+
:multiple="isMul"
|
5
|
+
search="true"
|
6
|
+
:disabled="mustselect"
|
7
|
+
:close-on-select="!isMul"
|
8
|
+
@change="resChange"
|
9
|
+
>
|
10
|
+
</v-select>
|
11
|
+
</template>
|
12
|
+
<script>
|
13
|
+
import {HttpResetClass} from 'vue-client'
|
14
|
+
|
15
|
+
export default {
|
16
|
+
title: '资源选择',
|
17
|
+
props: {
|
18
|
+
|
19
|
+
//资源类型
|
20
|
+
restype:'',
|
21
|
+
//是否只查询营业厅
|
22
|
+
specialquery: {
|
23
|
+
type: Boolean,
|
24
|
+
default: false
|
25
|
+
},
|
26
|
+
//资源数据
|
27
|
+
resObj:{},
|
28
|
+
isMul: {
|
29
|
+
type: Boolean,
|
30
|
+
default: true
|
31
|
+
},
|
32
|
+
//资源初始化数据
|
33
|
+
initresid: {
|
34
|
+
type: Array,
|
35
|
+
default() { return [] },
|
36
|
+
},
|
37
|
+
//父层id
|
38
|
+
parentresid: {
|
39
|
+
type: Array,
|
40
|
+
default() { return [] },
|
41
|
+
},
|
42
|
+
mustselect: {
|
43
|
+
type: Boolean,
|
44
|
+
default: false
|
45
|
+
},
|
46
|
+
},
|
47
|
+
data () {
|
48
|
+
return {
|
49
|
+
//资源数据
|
50
|
+
resObj:{},
|
51
|
+
//资源数据列表
|
52
|
+
resoptions:[],
|
53
|
+
//选中资源数据
|
54
|
+
selectres: [],
|
55
|
+
}
|
56
|
+
},
|
57
|
+
ready () {
|
58
|
+
//获取资源列表
|
59
|
+
this.getResList()
|
60
|
+
},
|
61
|
+
methods:{
|
62
|
+
//树形结构变成list
|
63
|
+
findById(val) {
|
64
|
+
if(val){
|
65
|
+
if(this.checkidres(val)){
|
66
|
+
this.treetoList(val,'')
|
67
|
+
}else if(val.children.length>0){
|
68
|
+
for (let value of val.children) {
|
69
|
+
this.findById(value)
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
},
|
74
|
+
//树形结构变成list
|
75
|
+
treetoList(val,parentname) {
|
76
|
+
for (let value of val.children) {
|
77
|
+
this.ergodicList(value,parentname)
|
78
|
+
}
|
79
|
+
},
|
80
|
+
//找到跟节点
|
81
|
+
ergodicList (val,parentname) {
|
82
|
+
if(val.children.length > 0 ){
|
83
|
+
parentname=parentname+val.name
|
84
|
+
this.treetoList(val,parentname)
|
85
|
+
}else {
|
86
|
+
//截取组织机构【组织机构】
|
87
|
+
if(this.restype=='organization'){
|
88
|
+
parentname=parentname.replace("组织机构","")
|
89
|
+
this.resoptions.push({label: val.name+' - '+parentname, value: val.id})
|
90
|
+
}else{
|
91
|
+
if (this.specialquery && this.restype == 'department') {
|
92
|
+
if (val.f_dep_type === '营业厅') {
|
93
|
+
this.resoptions.push({label: val.name, value: val.id})
|
94
|
+
}
|
95
|
+
}else {
|
96
|
+
this.resoptions.push({label: val.name, value: val.id})
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
//检查id是否存在
|
102
|
+
checkidres(val){
|
103
|
+
let flag=false
|
104
|
+
//如果没传值得话 不过滤
|
105
|
+
if(this.parentresid.length==0&&this.restype=='organization'){
|
106
|
+
flag=true
|
107
|
+
}
|
108
|
+
this.parentresid.forEach((item) => {
|
109
|
+
if(item==val.id){
|
110
|
+
flag=true
|
111
|
+
}
|
112
|
+
})
|
113
|
+
return flag;
|
114
|
+
},
|
115
|
+
//资源改变
|
116
|
+
resChange(val){
|
117
|
+
let orgnames=[]
|
118
|
+
Object.keys(this.resoptions).forEach((key) => {
|
119
|
+
if(this.selectres.includes(this.resoptions[key].value))
|
120
|
+
orgnames.push(this.resoptions[key].label)
|
121
|
+
})
|
122
|
+
console.log('资源改变。。', val, orgnames)
|
123
|
+
this.$dispatch('res-select', this.selectres, orgnames)
|
124
|
+
},
|
125
|
+
//获取资源数据
|
126
|
+
async getResList() {
|
127
|
+
|
128
|
+
let http = new HttpResetClass()
|
129
|
+
|
130
|
+
let req = await http.load('POST', '/rs/search', {data: {
|
131
|
+
source: `tool.getFullTree(this.getRights().where(row.getType()==$${this.restype}$))`,
|
132
|
+
userid: this.$login.f.id
|
133
|
+
}}, {resolveMsg: null, rejectMsg: '获取组织结构数据出错'})
|
134
|
+
this.resObj=req.data[0]
|
135
|
+
this.dealdata()
|
136
|
+
},
|
137
|
+
dealdata(){
|
138
|
+
this.resoptions=[]
|
139
|
+
this.findById(this.resObj);
|
140
|
+
//赋值资源数据
|
141
|
+
let arryselect=[]
|
142
|
+
this.resoptions.forEach((item) => {
|
143
|
+
if(this.initresid.length>0){
|
144
|
+
this.initresid.forEach((init) => {
|
145
|
+
if(item.value==init){
|
146
|
+
arryselect.push(item.value)
|
147
|
+
}
|
148
|
+
})
|
149
|
+
}
|
150
|
+
})
|
151
|
+
//赋值资源选中初始值
|
152
|
+
this.selectres=arryselect
|
153
|
+
}
|
154
|
+
},
|
155
|
+
watch: {
|
156
|
+
//监听初始化资源id
|
157
|
+
'initresid.length'(){
|
158
|
+
this.dealdata()
|
159
|
+
},
|
160
|
+
//监听初始化资源id
|
161
|
+
'parentresid'(){
|
162
|
+
this.dealdata()
|
163
|
+
},
|
164
|
+
},
|
165
|
+
}
|
166
|
+
</script>
|