system-clients 3.2.6-1 → 3.2.6-rongcheng

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 (169) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  3. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  4. package/.gradle/buildOutputCleanup/built.bin +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  6. package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
  7. package/SystemClient.iml +11 -8
  8. package/build/webpack.base.conf.js +11 -21
  9. package/package.json +4 -6
  10. package/src/components/Main.vue +476 -626
  11. package/src/components/equipment/EquipmentManage.vue +1 -1
  12. package/src/components/equipment/PcAdd.vue +5 -5
  13. package/src/components/equipment/PcList.vue +5 -5
  14. package/src/components/equipment/PhoneAdd.vue +13 -26
  15. package/src/components/equipment/PhoneList.vue +21 -31
  16. package/src/components/equipment/PosAdd.vue +45 -231
  17. package/src/components/equipment/PosList.vue +68 -198
  18. package/src/components/equipment/PosManage.vue +9 -80
  19. package/src/components/parammanage/ParamManage.vue +2 -2
  20. package/src/components/parammanage/ParamPage.vue +8 -30
  21. package/src/components/parammanage/SinglePage.vue +4 -4
  22. package/src/components/server/LoadData.vue +2 -21
  23. package/src/components/server/Login.vue +520 -784
  24. package/src/components/server/ModifyPw.vue +7 -12
  25. package/src/components/server/ResSelect.vue +0 -5
  26. package/src/components/server/ResSelectGroup.vue +198 -198
  27. package/src/components/server/RightTree.vue +204 -289
  28. package/src/plugins/GetLoginInfoService.js +70 -76
  29. package/src/plugins/validation.js +1 -9
  30. package/src/system.js +1 -34
  31. package/.npmignore +0 -10
  32. package/build/.npmignore +0 -1
  33. package/package-lock.json +0 -23125
  34. package/src/.npmignore +0 -1
  35. package/src/components/TabButton.vue +0 -201
  36. package/src/components/Tabs.vue +0 -67
  37. package/src/components/addressManage/AddressCascadingMenu.vue +0 -145
  38. package/src/components/equipment/PosManageBoth.vue +0 -125
  39. package/src/components/equipment/PosParamAdd.vue +0 -236
  40. package/src/components/equipment/PosParamList.vue +0 -121
  41. package/src/components/equipment/PosParamManage.vue +0 -51
  42. package/src/components/server/ImageVieweTest.vue +0 -56
  43. package/src/components/server/ImageViewer.vue +0 -350
  44. package/src/components/server/PcdBuildingSelect.vue +0 -241
  45. package/src/filiale/dongguan/Login.vue +0 -889
  46. package/src/filiale/dongguan/Main.vue +0 -715
  47. package/src/filiale/dongguan/system.js +0 -6
  48. package/src/filiale/konggang/Login.vue +0 -840
  49. package/src/filiale/konggang/system.js +0 -7
  50. package/src/filiale/qianneng/ModifyPw.vue +0 -107
  51. package/src/filiale/qianneng/system.js +0 -7
  52. package/src/filiale/rizhao/LeftTree.vue +0 -111
  53. package/src/filiale/rizhao/Login.vue +0 -791
  54. package/src/filiale/rizhao/Main.vue +0 -606
  55. package/src/filiale/rizhao/system.js +0 -14
  56. package/src/filiale/yuchuan/Login.vue +0 -889
  57. package/src/filiale/yuchuan/Main.vue +0 -773
  58. package/src/filiale/yuchuan/system.js +0 -10
  59. package/src/plugins/EncryptUtil.js +0 -53
  60. package/src/plugins/HeatGetLoginInfoService.js +0 -491
  61. package/src/stores/HeatAppData.js +0 -38
  62. package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
  63. package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
  64. package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
  65. package/src/styles/fonts/glyphicons-halflings-regular.svg +0 -288
  66. package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
  67. package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
  68. package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
  69. package/src/styles/fonts/pingfang-bold.ttf +0 -0
  70. package/src/styles/fonts/pingfang-medium.ttf +0 -0
  71. package/src/styles/fonts/pingfang-regular.ttf +0 -0
  72. package/src/styles/fonts/trendstrends.ttf +0 -0
  73. package/src/styles/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  74. package/src/styles/less/.csscomb.json +0 -304
  75. package/src/styles/less/.csslintrc +0 -19
  76. package/src/styles/less/alerts.less +0 -73
  77. package/src/styles/less/aofeng/animate.min.css +0 -11
  78. package/src/styles/less/aofeng/expandcss.less +0 -569
  79. package/src/styles/less/aofeng/standard.less +0 -2507
  80. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +0 -686
  81. package/src/styles/less/aofeng/themeOne/loginStyle.less +0 -1586
  82. package/src/styles/less/aofeng/themeOne/systemStyle.less +0 -2650
  83. package/src/styles/less/aofeng/themeOne.less +0 -17
  84. package/src/styles/less/aofeng/themeTwo/newStyle1.less +0 -415
  85. package/src/styles/less/aofeng/themeTwo.less +0 -3
  86. package/src/styles/less/badges.less +0 -66
  87. package/src/styles/less/bootstrap.less +0 -66
  88. package/src/styles/less/breadcrumbs.less +0 -26
  89. package/src/styles/less/button-groups.less +0 -247
  90. package/src/styles/less/buttons.less +0 -172
  91. package/src/styles/less/carousel.less +0 -269
  92. package/src/styles/less/close.less +0 -34
  93. package/src/styles/less/code.less +0 -69
  94. package/src/styles/less/component-animations.less +0 -33
  95. package/src/styles/less/dropdowns.less +0 -216
  96. package/src/styles/less/fonts-list.less +0 -25
  97. package/src/styles/less/forms.less +0 -626
  98. package/src/styles/less/glyphicons.less +0 -305
  99. package/src/styles/less/grid.less +0 -84
  100. package/src/styles/less/input-groups.less +0 -167
  101. package/src/styles/less/jumbotron.less +0 -52
  102. package/src/styles/less/labels.less +0 -64
  103. package/src/styles/less/list-group.less +0 -141
  104. package/src/styles/less/manageStyle/manageChile.less +0 -180
  105. package/src/styles/less/manageStyle/manageStyle/manageChile.less +0 -180
  106. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +0 -1102
  107. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +0 -498
  108. package/src/styles/less/manageStyle/manageStyle.less +0 -1102
  109. package/src/styles/less/manageStyle/safeStyle.less +0 -498
  110. package/src/styles/less/media.less +0 -66
  111. package/src/styles/less/mixins/alerts.less +0 -14
  112. package/src/styles/less/mixins/background-variant.less +0 -9
  113. package/src/styles/less/mixins/border-radius.less +0 -18
  114. package/src/styles/less/mixins/buttons.less +0 -69
  115. package/src/styles/less/mixins/center-block.less +0 -7
  116. package/src/styles/less/mixins/clearfix.less +0 -22
  117. package/src/styles/less/mixins/forms.less +0 -90
  118. package/src/styles/less/mixins/gradients.less +0 -59
  119. package/src/styles/less/mixins/grid-framework.less +0 -92
  120. package/src/styles/less/mixins/grid.less +0 -122
  121. package/src/styles/less/mixins/hide-text.less +0 -21
  122. package/src/styles/less/mixins/image.less +0 -33
  123. package/src/styles/less/mixins/labels.less +0 -12
  124. package/src/styles/less/mixins/list-group.less +0 -30
  125. package/src/styles/less/mixins/nav-divider.less +0 -10
  126. package/src/styles/less/mixins/nav-vertical-align.less +0 -9
  127. package/src/styles/less/mixins/opacity.less +0 -8
  128. package/src/styles/less/mixins/pagination.less +0 -24
  129. package/src/styles/less/mixins/panels.less +0 -24
  130. package/src/styles/less/mixins/progress-bar.less +0 -10
  131. package/src/styles/less/mixins/reset-filter.less +0 -8
  132. package/src/styles/less/mixins/reset-text.less +0 -18
  133. package/src/styles/less/mixins/resize.less +0 -6
  134. package/src/styles/less/mixins/responsive-visibility.less +0 -15
  135. package/src/styles/less/mixins/size.less +0 -10
  136. package/src/styles/less/mixins/tab-focus.less +0 -9
  137. package/src/styles/less/mixins/table-row.less +0 -44
  138. package/src/styles/less/mixins/text-emphasis.less +0 -9
  139. package/src/styles/less/mixins/text-overflow.less +0 -8
  140. package/src/styles/less/mixins/vendor-prefixes.less +0 -227
  141. package/src/styles/less/mixins.less +0 -40
  142. package/src/styles/less/modals.less +0 -151
  143. package/src/styles/less/navbar.less +0 -660
  144. package/src/styles/less/navs.less +0 -285
  145. package/src/styles/less/normalize.less +0 -424
  146. package/src/styles/less/pager.less +0 -76
  147. package/src/styles/less/pagination.less +0 -89
  148. package/src/styles/less/panels.less +0 -275
  149. package/src/styles/less/popovers.less +0 -131
  150. package/src/styles/less/print.less +0 -101
  151. package/src/styles/less/progress-bars.less +0 -87
  152. package/src/styles/less/responsive-embed.less +0 -35
  153. package/src/styles/less/responsive-utilities.less +0 -194
  154. package/src/styles/less/scaffolding.less +0 -161
  155. package/src/styles/less/stand.less +0 -207
  156. package/src/styles/less/tables.less +0 -312
  157. package/src/styles/less/theme.less +0 -291
  158. package/src/styles/less/thumbnails.less +0 -36
  159. package/src/styles/less/tooltip.less +0 -102
  160. package/src/styles/less/type.less +0 -316
  161. package/src/styles/less/utilities.less +0 -55
  162. package/src/styles/less/variables.less +0 -899
  163. package/src/styles/less/wells.less +0 -29
  164. package/src/util/Daiban.json +0 -12
  165. package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
  166. package/static/logo.png +0 -0
  167. package/static/newStyle/about-us.png +0 -0
  168. package/static/rizhao.png +0 -0
  169. package/yarn-error.log +0 -6896
@@ -18,15 +18,14 @@
18
18
  </div>
19
19
  </div>
20
20
  <div class="has-feedback form-group"
21
- :class="{'has-warning':$v.newpassword.required,'has-error':($v.newpassword.numbersAndLetter8to16 || $v.newpassword.minlength)&& !$v.newpassword.required && !$v.newpassword.chinesePassword,
22
- 'has-success': !$v.newpassword.required && !$v.newpassword.numbersAndLetter8to16&&!$v.newpassword.minlength && !$v.newpassword.chinesePassword}">
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
23
  <label for="newpassword" class="col-sm-4 col-sm-offset-1 control-label">新的密码:&nbsp;&nbsp;</label>
24
24
  <div class="col-sm-4">
25
- <input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true, numbersAndLetter8to16: true, minlength: 6,chinesePassword: true}'>
26
- <span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !$v.newpassword.minlength && !($v.newpassword.numbersAndLetter8to16 && !($v.newpassword.required)) && !($v.newpassword.chinesePassword) "></span>
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
27
  <span v-if="$v.newpassword.required">不能为空</span>
28
- <span v-if="($v.newpassword.numbersAndLetter8to16||$v.newpassword.minlength) && !($v.newpassword.required&&$v.newpassword.minlength)">密码必须是8~16位数字与字母组合</span>
29
- <span v-if="$v.newpassword.chinesePassword">密码不能包含中文</span>
28
+ <span v-if="$v.newpassword.strongpassword && !($v.newpassword.required)">密码必须包含英文大小写、阿拉伯数字、字符</span>
30
29
  </div>
31
30
  </div>
32
31
  <div class="has-feedback form-group"
@@ -62,17 +61,13 @@
62
61
  // let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
63
62
  // let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
64
63
  // Util.f.password = self.deliver.newpassword
65
- let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
64
+ let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
66
65
  self.$login.f.password = self.deliver.newpassword
67
- console.log(res.data)
68
- if (res.data == true) {
69
- self.$showAlert('修改成功!', 'success', 2000)
66
+ if (res.data) {
70
67
  self.deliver.password = ''
71
68
  self.deliver.newpassword = ''
72
69
  self.deliver.affirmpassword = ''
73
70
  self.show = false
74
- } else {
75
- self.$showMessage(res.data)
76
71
  }
77
72
  }
78
73
  export default {
@@ -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 {
@@ -1,198 +1,198 @@
1
- <template>
2
- <div :class="style" v-show="companyshow">
3
- <label class="font_normal_body">公&emsp;&emsp;司</label>
4
- <right-tree @re-res="getorg"
5
- :mustselect="mustselect"
6
- :initresid='initres.org'></right-tree>
7
- </div>
8
- <div :class="style" v-show="departmentshow">
9
- <label class="font_normal_body">部&emsp;&emsp;门</label>
10
- <res-select restype='department' v-ref:department
11
- @res-select="getdep"
12
- :parentresid="depresid"
13
- :initresid='initres.dep'
14
- :mustselect="mustselect"
15
- :is-mul="mul">
16
- </res-select>
17
- </div>
18
- <div :class="style" v-show="operatorshow && (!cascade)">
19
- <label class="font_normal_body">人&emsp;&emsp;员</label>
20
- <res-select restype='user'
21
- @res-select="getuser"
22
- :parentresid="depresid"
23
- :initresid='initres.user'
24
- :mustselect="mustselect"
25
- :is-mul="mul">
26
- </res-select>
27
- </div>
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" >
39
- <label class="font_normal_body">片&emsp;&emsp;区</label>
40
- <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
41
- :options='sliceArea' placeholder='片区/管理站' filer-key="name"
42
- close-on-select v-ref:slice>
43
- </v-select>
44
- </div>
45
- </template>
46
- <script>
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
- },
56
- mul: {
57
- type: Boolean,
58
- default: true
59
- },
60
- //初始值
61
- initres: {
62
- type: Object,
63
- default: null,
64
- },
65
- showComponent:{
66
- default:['company','department','operator','slicearea']
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
- operatorsid: [],
84
- sliceArea: [],
85
- slice_area:[],
86
- companyshow:false,
87
- departmentshow:false,
88
- operatorshow:false,
89
- sliceareashow:false,
90
- mustselect:false,
91
- obj:{
92
- orgnames:[],
93
- depnames:[],
94
- operatornames:[]
95
- }
96
- }
97
- },
98
- ready () {
99
- if(this.$login.r.includes('部门默认选中')&& this.selectin){
100
- this.initres.dep = [this.$login.f.depids]
101
- }
102
- if(this.$login.r.includes('人员默认选中')&& this.selectin){
103
- this.initres.user = [this.$login.f.id]
104
- if(this.$login.r.includes('人员强制选中')){
105
- this.mustselect = true
106
- }
107
- }
108
- this.initComponent();
109
- this.initAreas(this.$login.f.orgid)
110
- },
111
- methods:{
112
- initComponent(){
113
- let self=this;
114
- this.showComponent.find((item)=>{
115
- switch(item){
116
- case 'company': self.companyshow=true; break;
117
- case 'department': self.departmentshow=true; break;
118
- case 'operator': self.operatorshow=true; break;
119
- case 'slicearea': self.sliceareashow=true; break;
120
- }
121
- })
122
- },
123
- // 初始化片区
124
- async initAreas (val) {
125
- if (val) {
126
- let http = new HttpResetClass()
127
- let getAllArea = await http.load('POST', '/rs/search', {
128
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
129
- userid: this.$login.f.id
130
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
131
- let arr = getAllArea.data.filter((res) => {
132
- return res.parentid == val
133
- })
134
- this.sliceArea = []
135
- this.slice_area = []
136
- arr.forEach((res) => {
137
- this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
138
- })
139
- }
140
- },
141
- returnOrg(ids){
142
- let limit = this.$login.r.includes('数据授权限定')
143
-
144
- let condition;
145
- if(this.depresid.length > 0)
146
- condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
147
- else
148
- condition = " and f_orgid = " + this.$login.f.orgid;
149
- if(this.userresid.length > 0){
150
- condition += " and f_depid in " + plugin.convertToIn(this.userresid);
151
- } else {
152
- if (limit) {
153
- let depids = []
154
- for (let row of this.$refs.department.resoptions) {
155
- depids.push(row.value)
156
- }
157
- let depid = depids.length ? plugin.convertToIn(depids) : ('')
158
- condition += " and f_depid in " + depid;
159
- }
160
- }
161
- if(ids && ids.length > 0){
162
- condition += " and f_operatorid in " + plugin.convertToIn(ids);
163
- }
164
- if(this.slice_area.length>0){
165
- condition += " and f_zones = '" + this.slice_area[0].name+"'"
166
- }
167
- this.$dispatch('re-res',condition,this.obj)
168
- },
169
- getorg (obj) {
170
- this.depresid=obj.resids
171
- this.obj.orgnames = obj.res
172
- this.initAreas(obj.resids)
173
- this.returnOrg();
174
- },
175
- getdep(obj,val) {
176
- this.obj.depnames = val
177
- this.userresid=obj
178
- this.returnOrg();
179
- },
180
- getuser(obj,val) {
181
- this.obj.operatornames = val
182
- this.operatorsid = obj
183
- this.returnOrg(obj);
184
- },
185
- getarea(val) {
186
- this.slice_area=val
187
- if(this.operatorsid){
188
- this.returnOrg(this.operatorsid);
189
- }else{
190
- this.returnOrg();
191
- }
192
- }
193
- },
194
- watch: {
195
-
196
- }
197
- }
198
- </script>
1
+ <template>
2
+ <div :class="style" v-show="companyshow">
3
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
4
+ <right-tree @re-res="getorg"
5
+ :mustselect="mustselect"
6
+ :initresid='initres.org'></right-tree>
7
+ </div>
8
+ <div :class="style" v-show="departmentshow">
9
+ <label class="font_normal_body">部&emsp;&emsp;门</label>
10
+ <res-select restype='department' v-ref:department
11
+ @res-select="getdep"
12
+ :parentresid="depresid"
13
+ :initresid='initres.dep'
14
+ :mustselect="mustselect"
15
+ :is-mul="mul">
16
+ </res-select>
17
+ </div>
18
+ <div :class="style" v-show="operatorshow && (!cascade)">
19
+ <label class="font_normal_body">人&emsp;&emsp;员</label>
20
+ <res-select restype='user'
21
+ @res-select="getuser"
22
+ :parentresid="depresid"
23
+ :initresid='initres.user'
24
+ :mustselect="mustselect"
25
+ :is-mul="mul">
26
+ </res-select>
27
+ </div>
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" >
39
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
40
+ <v-select :value.sync="slice_area" v-model="slice_area" @change='getarea'
41
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
42
+ close-on-select v-ref:slice>
43
+ </v-select>
44
+ </div>
45
+ </template>
46
+ <script>
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
+ },
56
+ mul: {
57
+ type: Boolean,
58
+ default: true
59
+ },
60
+ //初始值
61
+ initres: {
62
+ type: Object,
63
+ default: null,
64
+ },
65
+ showComponent:{
66
+ default:['company','department','operator','slicearea']
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
+ operatorsid: [],
84
+ sliceArea: [],
85
+ slice_area:[],
86
+ companyshow:false,
87
+ departmentshow:false,
88
+ operatorshow:false,
89
+ sliceareashow:false,
90
+ mustselect:false,
91
+ obj:{
92
+ orgnames:[],
93
+ depnames:[],
94
+ operatornames:[]
95
+ }
96
+ }
97
+ },
98
+ ready () {
99
+ if(this.$login.r.includes('部门默认选中')&& this.selectin){
100
+ this.initres.dep = [this.$login.f.depids]
101
+ }
102
+ if(this.$login.r.includes('人员默认选中')&& this.selectin){
103
+ this.initres.user = [this.$login.f.id]
104
+ if(this.$login.r.includes('人员强制选中')){
105
+ this.mustselect = true
106
+ }
107
+ }
108
+ this.initComponent();
109
+ this.initAreas(this.$login.f.orgid)
110
+ },
111
+ methods:{
112
+ initComponent(){
113
+ let self=this;
114
+ this.showComponent.find((item)=>{
115
+ switch(item){
116
+ case 'company': self.companyshow=true; break;
117
+ case 'department': self.departmentshow=true; break;
118
+ case 'operator': self.operatorshow=true; break;
119
+ case 'slicearea': self.sliceareashow=true; break;
120
+ }
121
+ })
122
+ },
123
+ // 初始化片区
124
+ async initAreas (val) {
125
+ if (val) {
126
+ let http = new HttpResetClass()
127
+ let getAllArea = await http.load('POST', '/rs/search', {
128
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
129
+ userid: this.$login.f.id
130
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
131
+ let arr = getAllArea.data.filter((res) => {
132
+ return res.parentid == val
133
+ })
134
+ this.sliceArea = []
135
+ this.slice_area = []
136
+ arr.forEach((res) => {
137
+ this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
138
+ })
139
+ }
140
+ },
141
+ returnOrg(ids){
142
+ let limit = this.$login.r.includes('数据授权限定')
143
+
144
+ let condition;
145
+ if(this.depresid.length > 0)
146
+ condition = " and f_orgid in " + plugin.convertToIn(this.depresid);
147
+ else
148
+ condition = " and f_orgid = " + this.$login.f.orgid;
149
+ if(this.userresid.length > 0){
150
+ condition += " and f_depid in " + plugin.convertToIn(this.userresid);
151
+ } else {
152
+ if (limit) {
153
+ let depids = []
154
+ for (let row of this.$refs.department.resoptions) {
155
+ depids.push(row.value)
156
+ }
157
+ let depid = depids.length ? plugin.convertToIn(depids) : ('')
158
+ condition += " and f_depid in " + depid;
159
+ }
160
+ }
161
+ if(ids && ids.length > 0){
162
+ condition += " and f_operatorid in " + plugin.convertToIn(ids);
163
+ }
164
+ if(this.slice_area.length>0){
165
+ condition += " and f_zones = '" + this.slice_area[0].name+"'"
166
+ }
167
+ this.$dispatch('re-res',condition,this.obj)
168
+ },
169
+ getorg (obj) {
170
+ this.depresid=obj.resids
171
+ this.obj.orgnames = obj.res
172
+ this.initAreas(obj.resids)
173
+ this.returnOrg();
174
+ },
175
+ getdep(obj,val) {
176
+ this.obj.depnames = val
177
+ this.userresid=obj
178
+ this.returnOrg();
179
+ },
180
+ getuser(obj,val) {
181
+ this.obj.operatornames = val
182
+ this.operatorsid = obj
183
+ this.returnOrg(obj);
184
+ },
185
+ getarea(val) {
186
+ this.slice_area=val
187
+ if(this.operatorsid){
188
+ this.returnOrg(this.operatorsid);
189
+ }else{
190
+ this.returnOrg();
191
+ }
192
+ }
193
+ },
194
+ watch: {
195
+
196
+ }
197
+ }
198
+ </script>