system-clients 3.1.89-8 → 3.1.90

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 (133) hide show
  1. package/.eslintrc.js +16 -16
  2. package/build/webpack.base.conf.js +85 -75
  3. package/package.json +2 -2
  4. package/src/components/Main.vue +1 -1
  5. package/src/components/TabButton.vue +201 -0
  6. package/src/components/Tabs.vue +67 -0
  7. package/src/components/equipment/EquipmentManage.vue +65 -65
  8. package/src/components/equipment/PosAdd.vue +322 -299
  9. package/src/components/equipment/PosList.vue +294 -254
  10. package/src/components/equipment/PosManage.vue +138 -150
  11. package/src/components/equipment/PosManageBoth.vue +125 -0
  12. package/src/components/equipment/PosParamAdd.vue +234 -0
  13. package/src/components/equipment/PosParamList.vue +121 -0
  14. package/src/components/equipment/PosParamManage.vue +51 -0
  15. package/src/components/parammanage/ParamPage.vue +3 -3
  16. package/src/components/parammanage/SinglePage.vue +2 -2
  17. package/src/components/server/Login.vue +37 -9
  18. package/src/components/server/PcdBuildingSelect.vue +241 -0
  19. package/src/components/server/ResSelect.vue +5 -0
  20. package/src/components/server/ResSelectGroup.vue +144 -122
  21. package/src/components/server/RightTree.vue +5 -0
  22. package/src/styles/less/aofeng/standard.less +444 -58
  23. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
  24. package/src/styles/less/tables.less +50 -0
  25. package/src/styles/less/type.less +15 -2
  26. package/src/styles/less/variables.less +6 -3
  27. package/src/system.js +93 -87
  28. package/static/newStyle/about-us.png +0 -0
  29. package/yarn-error.log +6896 -0
  30. package/dist/index.html +0 -3
  31. package/dist/static/.gitkeep +0 -0
  32. package/dist/static/1.7881cef2853d833a86ab.js +0 -2
  33. package/dist/static/10.43c453235f37ff93e693.js +0 -2
  34. package/dist/static/11.19a73a70ee12abc54e33.js +0 -2
  35. package/dist/static/12.f48a08201d23a6ab3279.js +0 -2
  36. package/dist/static/2.ce25203a36db12c135c6.js +0 -2
  37. package/dist/static/3.b4b918df9846c518e1ad.js +0 -2
  38. package/dist/static/4.d908e190ef02e4e0422c.js +0 -2
  39. package/dist/static/5.382f5cb714a4aa05d9d4.js +0 -2
  40. package/dist/static/6.22643ee9ad70928c5ca2.js +0 -2
  41. package/dist/static/7.8ece001f2c6f144fb653.js +0 -2
  42. package/dist/static/8.4944140db91396b9bacd.js +0 -2
  43. package/dist/static/9.f3242776f89b8c2547ac.js +0 -2
  44. package/dist/static/PingFangSC-Regular.ttf +0 -0
  45. package/dist/static/app.css +0 -2
  46. package/dist/static/app2cf08cb232d85ecf35b8.js +0 -83
  47. package/dist/static/batchleft.png +0 -0
  48. package/dist/static/batchright.png +0 -0
  49. package/dist/static/bluemainbg.jpg +0 -0
  50. package/dist/static/glyphicons-halflings-regular.eot +0 -0
  51. package/dist/static/glyphicons-halflings-regular.svg +0 -288
  52. package/dist/static/glyphicons-halflings-regular.ttf +0 -0
  53. package/dist/static/glyphicons-halflings-regular.woff +0 -0
  54. package/dist/static/glyphicons-halflings-regular.woff2 +0 -0
  55. package/dist/static/huangtengbiaozhi.png +0 -0
  56. package/dist/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  57. package/dist/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  58. package/dist/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  59. package/dist/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  60. package/dist/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  61. package/dist/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  62. package/dist/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  63. package/dist/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  64. package/dist/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  65. package/dist/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  66. package/dist/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  67. package/dist/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  68. package/dist/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  69. package/dist/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  70. package/dist/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  71. package/dist/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  72. package/dist/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  73. package/dist/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  74. package/dist/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  75. package/dist/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  76. package/dist/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  77. package/dist/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  78. package/dist/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  79. package/dist/static/login-do.gif +0 -0
  80. package/dist/static/login-left.png +0 -0
  81. package/dist/static/login_bg.jpg +0 -0
  82. package/dist/static/login_title.png +0 -0
  83. package/dist/static/login_title1.png +0 -0
  84. package/dist/static/loginbg.gif +0 -0
  85. package/dist/static/loginbg.jpg +0 -0
  86. package/dist/static/loginbg1280.gif +0 -0
  87. package/dist/static/loginbg1366.gif +0 -0
  88. package/dist/static/loginlogo.png +0 -0
  89. package/dist/static/main_logo.png +0 -0
  90. package/dist/static/mainbg.jpg +0 -0
  91. package/dist/static/menulogo.png +0 -0
  92. package/dist/static/newStyle/clear.png +0 -0
  93. package/dist/static/newStyle/fife.png +0 -0
  94. package/dist/static/newStyle/hidden.png +0 -0
  95. package/dist/static/newStyle/label-clear.png +0 -0
  96. package/dist/static/newStyle/left-img.png +0 -0
  97. package/dist/static/newStyle/list_ok.png +0 -0
  98. package/dist/static/newStyle/login-check.png +0 -0
  99. package/dist/static/newStyle/login-con.png +0 -0
  100. package/dist/static/newStyle/login-do.gif +0 -0
  101. package/dist/static/newStyle/login-f.png +0 -0
  102. package/dist/static/newStyle/login-info.png +0 -0
  103. package/dist/static/newStyle/login-left.png +0 -0
  104. package/dist/static/newStyle/login-org.png +0 -0
  105. package/dist/static/newStyle/login-pwd.png +0 -0
  106. package/dist/static/newStyle/login-user.png +0 -0
  107. package/dist/static/newStyle/loginbg.gif +0 -0
  108. package/dist/static/newStyle/loginbg1280.gif +0 -0
  109. package/dist/static/newStyle/loginbg1366.gif +0 -0
  110. package/dist/static/newStyle/setting.png +0 -0
  111. package/dist/static/newStyle/shirk.png +0 -0
  112. package/dist/static/newStyle/stretch_bottom.png +0 -0
  113. package/dist/static/newStyle/stretch_left.png +0 -0
  114. package/dist/static/newStyle/stretch_right.png +0 -0
  115. package/dist/static/newStyle/stretch_top.png +0 -0
  116. package/dist/static/newStyle/system-off.png +0 -0
  117. package/dist/static/newmainbg.jpg +0 -0
  118. package/dist/static/pingfang-bold.ttf +0 -0
  119. package/dist/static/pingfang-medium.ttf +0 -0
  120. package/dist/static/pingfang-regular.ttf +0 -0
  121. package/dist/static/psicon.png +0 -0
  122. package/dist/static/singleleft.png +0 -0
  123. package/dist/static/singleright.png +0 -0
  124. package/dist/static/treeopen.png +0 -0
  125. package/dist/static/treeout.png +0 -0
  126. package/dist/static/treeset.png +0 -0
  127. package/dist/static/trendstrends.ttf +0 -0
  128. package/dist/static/usericon.png +0 -0
  129. package/dist/static/xinxi.png +0 -0
  130. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  131. package/gradle/wrapper/gradle-wrapper.properties +0 -5
  132. package/gradlew +0 -183
  133. package/gradlew.bat +0 -100
@@ -2,14 +2,16 @@
2
2
  <div :class="style" v-show="companyshow">
3
3
  <label class="font_normal_body">公&emsp;&emsp;司</label>
4
4
  <right-tree @re-res="getorg"
5
+ :mustselect="mustselect"
5
6
  :initresid='initres.org'></right-tree>
6
7
  </div>
7
8
  <div :class="style" v-show="departmentshow">
8
9
  <label class="font_normal_body">部&emsp;&emsp;门</label>
9
- <res-select restype='department'
10
+ <res-select restype='department' v-ref:department
10
11
  @res-select="getdep"
11
12
  :parentresid="depresid"
12
13
  :initresid='initres.dep'
14
+ :mustselect="mustselect"
13
15
  :is-mul="mul">
14
16
  </res-select>
15
17
  </div>
@@ -19,6 +21,7 @@
19
21
  @res-select="getuser"
20
22
  :parentresid="depresid"
21
23
  :initresid='initres.user'
24
+ :mustselect="mustselect"
22
25
  :is-mul="mul">
23
26
  </res-select>
24
27
  </div>
@@ -28,6 +31,7 @@
28
31
  @res-select="getuser"
29
32
  :parentresid="userresid"
30
33
  :initresid='initres.user'
34
+ :mustselect="mustselect"
31
35
  :is-mul="mul">
32
36
  </res-select>
33
37
  </div>
@@ -40,135 +44,153 @@
40
44
  </div>
41
45
  </template>
42
46
  <script>
43
- import plugin from '../../plugins/GetLoginInfoService'
44
- import { HttpResetClass } from 'vue-client'
45
- export default {
46
- title: '资源选择测试',
47
- props: {
48
- style: {
49
- type: String,
50
- default: 'col-sm-2 form-group'
51
- },
52
- mul: {
53
- type: Boolean,
54
- default: true
55
- },
56
- //初始值
57
- initres: {
58
- type: Object,
59
- default: null,
60
- },
61
- showComponent:{
62
- default:['company','department','operator','slicearea']
63
- },
64
- //人员是否和部门关联
65
- cascade: {
66
- type: Boolean,
67
- default: false
68
- }
47
+ import plugin from '../../plugins/GetLoginInfoService'
48
+ import { HttpResetClass } from 'vue-client'
49
+ export default {
50
+ title: '资源选择测试',
51
+ props: {
52
+ style: {
53
+ type: String,
54
+ default: 'col-sm-2 form-group'
69
55
  },
70
- data () {
71
- return {
72
- orgresid:[this.$login.f.orgid],
73
- depresid:[],
74
- userresid:[],
75
- sliceArea: [],
76
- slice_area:[],
77
- companyshow:false,
78
- departmentshow:false,
79
- operatorshow:false,
80
- sliceareashow:false,
81
- obj:{
82
- orgnames:[],
83
- depnames:[],
84
- operatornames:[]
85
- }
86
- }
56
+ mul: {
57
+ type: Boolean,
58
+ default: true
87
59
  },
88
- ready () {
89
- console.log('开始获取组织结构。。。')
90
- this.initComponent();
91
- this.initAreas(this.$login.f.orgid)
60
+ //初始值
61
+ initres: {
62
+ type: Object,
63
+ default: null,
92
64
  },
93
- methods:{
94
- initComponent(){
95
- let self=this;
96
- this.showComponent.find((item)=>{
97
- switch(item){
98
- case 'company': self.companyshow=true; break;
99
- case 'department': self.departmentshow=true; break;
100
- case 'operator': self.operatorshow=true; break;
101
- case 'slicearea': self.sliceareashow=true; break;
102
- }
103
- })
104
- },
105
- // 初始化片区
106
- async initAreas (val) {
107
- if (val) {
108
- let http = new HttpResetClass()
109
- let getAllArea = await http.load('POST', '/rs/search', {
110
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
111
- userid: this.$login.f.id
112
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
113
- let arr = getAllArea.data.filter((res) => {
114
- return res.parentid == val
115
- })
116
- console.log('过滤之后的片区', arr)
117
- this.sliceArea = []
118
- this.slice_area = []
119
- arr.forEach((res) => {
120
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
121
- })
65
+ showComponent:{
66
+ default:['company','department','operator','slicearea']
67
+ },
68
+ //人员是否和部门关联
69
+ cascade: {
70
+ type: Boolean,
71
+ default: false
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;
122
119
  }
123
- },
124
- returnOrg(ids){
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
+ })
138
+ }
139
+ },
140
+ returnOrg(ids){
141
+ let limit = this.$login.r.includes('数据授权限定')
125
142
 
126
- let condition;
127
- if(this.depresid.length > 0)
128
- condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
129
- else
130
- condition = " and f_orgid = " + this.$login.f.orgid;
131
- if(this.userresid.length > 0){
132
- condition += " and f_depid in " + plugin.convertToIn(this.userresid);
133
- }
134
- if(ids && ids.length > 0){
135
- condition += " and f_operatorid in " + plugin.convertToIn(ids);
136
- }
137
- if(this.slice_area.length>0){
138
- condition += " and f_zones = '" + this.slice_area[0].name+"'"
139
- }
140
- this.$dispatch('re-res',condition,this.obj)
141
- },
142
- getorg (obj) {
143
- console.log("选中公司的数据11",obj.resids)
144
- this.depresid=obj.resids
145
- this.obj.orgnames = obj.res
146
- this.initAreas(obj.resids)
147
- this.returnOrg();
148
- },
149
- getdep(obj,val) {
150
- console.log("选中部门的数据22",obj)
151
- this.obj.depnames = val
152
- this.userresid=obj
153
- this.returnOrg();
154
- },
155
- getuser(obj) {
156
- this.obj.operatornames = obj
157
- console.log("选中用户的数据33",obj)
158
- this.returnOrg(obj);
159
- },
160
- getarea(val) {
161
- this.slice_area=val
162
- console.log("选中的大区",val)
163
- if(this.obj.operatornames){
164
- this.returnOrg(this.obj.operatornames);
165
- }else{
166
- this.returnOrg();
143
+ let condition;
144
+ if(this.depresid.length > 0)
145
+ condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
146
+ else
147
+ condition = " and f_orgid = " + this.$login.f.orgid;
148
+ if(this.userresid.length > 0){
149
+ condition += " and f_depid in " + plugin.convertToIn(this.userresid);
150
+ } else {
151
+ if (limit) {
152
+ let depids = []
153
+ for (let row of this.$refs.department.resoptions) {
154
+ depids.push(row.value)
155
+ }
156
+ let depid = depids.length ? plugin.convertToIn(depids) : ('')
157
+ condition += " and f_depid in " + depid;
167
158
  }
168
159
  }
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)
169
167
  },
170
- watch: {
171
-
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
+ },
179
+ getuser(obj) {
180
+ this.obj.operatornames = obj
181
+ this.returnOrg(obj);
182
+ },
183
+ getarea(val) {
184
+ this.slice_area=val
185
+ if(this.obj.operatornames){
186
+ this.returnOrg(this.obj.operatornames);
187
+ }else{
188
+ this.returnOrg();
189
+ }
172
190
  }
191
+ },
192
+ watch: {
193
+
173
194
  }
195
+ }
174
196
  </script>
@@ -26,6 +26,7 @@
26
26
  <v-select v-if="islist"
27
27
  placeholder='请选择'
28
28
  :options='childrenOptions'
29
+ :disabled="mustselect"
29
30
  @change="selectclick"
30
31
  :value-single="true"
31
32
  close-on-select></v-select>
@@ -132,6 +133,10 @@ export default {
132
133
  type: String,
133
134
  default:''
134
135
  },
136
+ mustselect: {
137
+ type: Boolean,
138
+ default: false
139
+ },
135
140
  width:{
136
141
  type:String,
137
142
  default:'60%'