system-clients 3.1.92-aode → 3.1.92-test

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 (51) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/{5.5 → 5.2.1}/gc.properties +0 -0
  3. package/.gradle/buildOutputCleanup/built.bin +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  5. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  6. package/SystemClient.iml +1 -1
  7. package/build/webpack.base.conf.js +85 -78
  8. package/package.json +4 -4
  9. package/src/components/Main.vue +589 -508
  10. package/src/components/TabButton.vue +201 -0
  11. package/src/components/Tabs.vue +67 -0
  12. package/src/components/equipment/EquipmentManage.vue +65 -65
  13. package/src/components/equipment/PcAdd.vue +5 -5
  14. package/src/components/equipment/PcList.vue +5 -5
  15. package/src/components/equipment/PhoneAdd.vue +4 -4
  16. package/src/components/equipment/PhoneList.vue +4 -4
  17. package/src/components/equipment/PosAdd.vue +324 -137
  18. package/src/components/equipment/PosList.vue +294 -164
  19. package/src/components/equipment/PosManage.vue +138 -67
  20. package/src/components/equipment/PosManageBoth.vue +125 -0
  21. package/src/components/equipment/PosParamAdd.vue +234 -0
  22. package/src/components/equipment/PosParamList.vue +121 -0
  23. package/src/components/equipment/PosParamManage.vue +51 -0
  24. package/src/components/parammanage/ParamManage.vue +2 -2
  25. package/src/components/parammanage/ParamPage.vue +7 -7
  26. package/src/components/parammanage/SinglePage.vue +4 -4
  27. package/src/components/server/ImageVieweTest.vue +56 -0
  28. package/src/components/server/ImageViewer.vue +350 -0
  29. package/src/components/server/Login.vue +717 -711
  30. package/src/components/server/PcdBuildingSelect.vue +241 -0
  31. package/src/components/server/ResSelect.vue +5 -0
  32. package/src/components/server/ResSelectGroup.vue +155 -118
  33. package/src/components/server/RightTree.vue +348 -343
  34. package/src/plugins/GetLoginInfoService.js +514 -514
  35. package/src/styles/less/aofeng/standard.less +446 -60
  36. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +13 -13
  37. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -0
  38. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -0
  39. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -0
  40. package/src/styles/less/tables.less +50 -0
  41. package/src/styles/less/type.less +16 -3
  42. package/src/styles/less/variables.less +6 -3
  43. package/src/system.js +93 -83
  44. package/static/{ewmlogo.png → logo.png} +0 -0
  45. package/static/newStyle/about-us.png +0 -0
  46. package/yarn-error.log +6896 -0
  47. package/.gradle/5.5/fileChanges/last-build.bin +0 -0
  48. package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
  49. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  50. package/static/aodelogo.png +0 -0
  51. package/static/aodenewlogo.png +0 -0
@@ -0,0 +1,241 @@
1
+ <template>
2
+ <div :class="style" v-show="show.pcdShow">
3
+ <label class="font_normal_body">省&nbsp;市&nbsp;区&nbsp;</label>
4
+ <v-select :value.sync="model.f_pcd"
5
+ class="select_list select"
6
+ enter-push
7
+ v-model="model.f_pcd"
8
+ style="width: 60%"
9
+ :multiple="mul"
10
+ @change="pcdChange"
11
+ :options='arrays.pcd' placeholder='选择省市区'
12
+ close-on-select v-el:cc>
13
+ </v-select>
14
+ </div>
15
+ <div :class="style" v-show="show.streetShow">
16
+ <label class="font_normal_body">街&emsp;&emsp;道</label>
17
+ <v-select :value.sync="model.f_street"
18
+ class="select_list select"
19
+ enter-push
20
+ v-model="model.f_street"
21
+ @change="streetChange"
22
+ style="width: 60%"
23
+ :multiple="mul"
24
+ :options='arrays.street' placeholder='选择街道'
25
+ close-on-select v-el:cc>
26
+ </v-select>
27
+ </div>
28
+ <div :class="style" v-show="show.areaShow">
29
+ <label class="font_normal_body">小&ensp;&ensp;&ensp;&ensp;区</label>
30
+ <v-select :value.sync="model.f_residential_area"
31
+ class="select_list select"
32
+ enter-push
33
+ v-model="model.f_residential_area"
34
+ style="width: 60%"
35
+ :multiple="mul"
36
+ @change="areaChange()"
37
+ :options='arrays.area' placeholder='选择小区'
38
+ close-on-select v-el:cc>
39
+ </v-select>
40
+ </div>
41
+ <div :class="style" v-show="show.buildingShow">
42
+ <label class="font_normal_body">楼&emsp;&emsp;栋</label>
43
+ <v-select :value.sync="model.f_building"
44
+ class="select_list select"
45
+ enter-push
46
+ v-model="model.f_building"
47
+ style="width: 60%"
48
+ :multiple="mul"
49
+ :options='arrays.building' placeholder='选择楼栋'
50
+ close-on-select v-el:cc>
51
+ </v-select>
52
+ </div>
53
+ </template>
54
+ <script>
55
+ import plugin from '../../plugins/GetLoginInfoService'
56
+ import { HttpResetClass } from 'vue-client'
57
+ let readyGen = async function (self) {
58
+ self.showComponent.find((item)=>{
59
+ switch(item){
60
+ case 'pcd': self.show.pcdShow=true; break;
61
+ case 'street': self.show.streetShow=true; break;
62
+ case 'area': self.show.areaShow=true; break;
63
+ case 'building': self.show.buildingShow=true; break;
64
+ }
65
+ })
66
+ self.arrays.pcd=[{label:'全部',value:''}]
67
+ if(self.show.pcdShow){
68
+ let HttpReset = new HttpResetClass()
69
+ var pcd = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
70
+ data: {
71
+ items: 'f_pcd',
72
+ tablename: 't_pcd',
73
+ condition: `f_pcd is not null group by f_pcd`,
74
+ orderitem: 'f_pcd'
75
+ }
76
+ }, {resolveMsg: null, rejectMsg: '获取省市区出错!'})
77
+ for(var i=0;i<pcd.data.length;i++){
78
+ self.arrays.pcd.push({label:pcd.data[i].f_pcd,value:pcd.data[i].f_pcd})
79
+ }
80
+ }else if(self.show.streetShow){
81
+ console.log("------------查街道")
82
+ let HttpReset = new HttpResetClass()
83
+ var street = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
84
+ data: {
85
+ items: 'f_street',
86
+ tablename: 't_street',
87
+ condition: `f_filialeid = '${self.$login.f.orgid}' and f_street is not null group by f_street`,
88
+ orderitem: 'f_street'
89
+ }
90
+ }, {resolveMsg: null, rejectMsg: '获取街道出错!'})
91
+ for(var i=0;i<street.data.length;i++){
92
+ self.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
93
+ }
94
+ }else if(self.show.areaShow){
95
+ let HttpReset = new HttpResetClass()
96
+ var area = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
97
+ data: {
98
+ items: 'f_residential_area',
99
+ tablename: 't_area',
100
+ condition: `f_filialeid = '${self.$login.f.orgid}' and f_residential_area is not null group by f_residential_area`,
101
+ orderitem: 'f_residential_area'
102
+ }
103
+ }, {resolveMsg: null, rejectMsg: '获取小区出错!'})
104
+ for(var i=0;i<area.data.length;i++){
105
+ self.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
106
+ }
107
+ }
108
+
109
+
110
+ }
111
+ export default {
112
+ title: '省市区级联选择',
113
+ props: {
114
+ style: {
115
+ type: String,
116
+ default: 'col-sm-2 form-group'
117
+ },
118
+ mul: {
119
+ type: Boolean,
120
+ default: false
121
+ },
122
+ showComponent:{
123
+ default:['pcd','street','area','building']
124
+ }
125
+
126
+ },
127
+ data () {
128
+ return {
129
+ condition:'',
130
+ show:{
131
+ pcdShow:false,
132
+ streetShow:false,
133
+ areaShow:false,
134
+ buildingShow:false
135
+ },
136
+ arrays:{
137
+ pcd:[{label: '全部', value: ''}],
138
+ street:[{label: '全部', value: ''}],
139
+ area:[{label: '全部', value: ''}],
140
+ building:[{label: '全部', value: ''}]
141
+ },
142
+ model:{
143
+ f_pcd:[],
144
+ f_street:[],
145
+ f_residential_area:[],
146
+ f_building:[]
147
+ }
148
+
149
+ }
150
+ },
151
+ ready () {
152
+ readyGen(this)
153
+ },
154
+ methods:{
155
+ async pcdChange(){
156
+ this.arrays.street=[{label:'全部',value:''}]
157
+ var condition = `f_filialeid = '${this.$login.f.orgid}' and f_street is not null group by f_street`
158
+ let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
159
+ data: {
160
+ items: 'f_street',
161
+ tablename: 't_street',
162
+ condition: condition,
163
+ orderitem: 'f_street'
164
+ }
165
+ }, {resolveMsg: null, rejectMsg: '获取街道出错'})
166
+ for(var i=0;i<street.data.length;i++){
167
+ this.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
168
+ }
169
+ this.returnCondition()
170
+ },
171
+ async streetChange(){
172
+ this.arrays.area=[{label:'全部',value:''}]
173
+ var condition = `f_street = '${this.model.f_street?this.model.f_street:null}' and f_residential_area is not null group by f_residential_area`
174
+ let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {
175
+ data: {
176
+ items: 'f_residential_area',
177
+ tablename: 't_area',
178
+ condition: condition,
179
+ orderitem: 'f_residential_area'
180
+ }
181
+ }, {resolveMsg: null, rejectMsg: '获取小区出错'})
182
+ for(var i=0;i<area.data.length;i++){
183
+ this.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
184
+ }
185
+ this.returnCondition()
186
+ },
187
+ async areaChange(){
188
+ this.building = [{label:'全部',value:''}]
189
+ var condition=''
190
+ if(this.show.areaShow){
191
+ condition = `f_residential_area = '${this.model.f_residential_area?this.model.f_residential_area:null}' and f_building is not null group by f_building`
192
+ }else{
193
+ condition = `f_filialeid = '${this.$login.f.orgid}' and f_building is not null group by f_building`
194
+ }
195
+ let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
196
+ data: {
197
+ items: 'f_building',
198
+ tablename: 't_user_address',
199
+ condition: condition,
200
+ orderitem: 'f_building'
201
+ }
202
+ }, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
203
+ for(var i=0;i<build.data.length;i++){
204
+ this.arrays.building.push({label:build.data[i].f_building,value:build.data[i].f_building})
205
+ }
206
+ this.returnCondition()
207
+ },
208
+
209
+ returnCondition(){
210
+ this.condition=''
211
+ if(this.model.f_pcd){
212
+ if(this.model.f_pcd.length>0){
213
+ this.condition+=` and f_pcd = '${this.model.f_pcd[0]}'`
214
+ }
215
+ }
216
+ if(this.model.f_street) {
217
+ if (this.model.f_street.length > 0) {
218
+ this.condition += ` and f_street = '${this.model.f_street[0]}'`
219
+ }
220
+ }
221
+ if(this.model.f_area) {
222
+ if (this.model.f_area.length > 0) {
223
+ this.condition += ` and f_area = '${this.model.f_area[0]}'`
224
+ }
225
+ }
226
+ if(this.model.f_building) {
227
+ if (this.model.f_building.length > 0) {
228
+ this.condition += ` and f_building = '${this.model.f_building[0]}'`
229
+ }
230
+ }
231
+ // this.$parent.setCon(this.condition)
232
+ this.$dispatch('setcon',this.condition)
233
+ }
234
+ },
235
+ watch: {
236
+ // 'condition'(val){
237
+ //
238
+ // }
239
+ }
240
+ }
241
+ </script>
@@ -3,6 +3,7 @@
3
3
  :value.sync="selectres"
4
4
  :multiple="isMul"
5
5
  search="true"
6
+ :disabled="mustselect"
6
7
  :close-on-select="!isMul"
7
8
  @change="resChange"
8
9
  >
@@ -33,6 +34,10 @@
33
34
  type: Array,
34
35
  default() { return [] },
35
36
  },
37
+ mustselect: {
38
+ type: Boolean,
39
+ default: false
40
+ },
36
41
  },
37
42
  data () {
38
43
  return {
@@ -2,27 +2,40 @@
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>
16
- <div :class="style" v-show="operatorshow">
18
+ <div :class="style" v-show="operatorshow && (!cascade)">
17
19
  <label class="font_normal_body">人&emsp;&emsp;员</label>
18
20
  <res-select restype='user'
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>
25
- <div :class="style " v-show="sliceareashow" >
28
+ <div :class="style" v-show="operatorshow && cascade">
29
+ <label class="font_normal_body">人&emsp;&emsp;员</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" >
26
39
  <label class="font_normal_body">片&emsp;&emsp;区</label>
27
40
  <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
28
41
  :options='sliceArea' placeholder='片区/管理站' filer-key="name"
@@ -31,129 +44,153 @@
31
44
  </div>
32
45
  </template>
33
46
  <script>
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']
54
- }
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'
55
55
  },
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:[]
71
- }
72
- }
56
+ mul: {
57
+ type: Boolean,
58
+ default: true
73
59
  },
74
- ready () {
75
- console.log('开始获取组织结构。。。')
76
- this.initComponent();
77
- this.initAreas(this.$login.f.orgid)
60
+ //初始值
61
+ initres: {
62
+ type: Object,
63
+ default: null,
78
64
  },
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
- })
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;
107
119
  }
108
- },
109
- 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('数据授权限定')
110
142
 
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)
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();
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;
152
158
  }
153
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)
154
167
  },
155
- watch: {
156
-
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
+ }
157
190
  }
191
+ },
192
+ watch: {
193
+
158
194
  }
195
+ }
159
196
  </script>