system-clients 3.2.72-yc → 3.2.72-yc-2

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