system-clients 3.2.72-yc-1 → 3.2.72-yc-3
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 +1 -1
- package/src/components/Main.vue +923 -923
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +107 -107
- package/src/components/equipment/PhoneList.vue +112 -112
- package/src/components/equipment/PhoneManage.vue +60 -60
- 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 +58 -58
- 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 +155 -155
- package/src/components/server/ResSelectGroup.vue +198 -198
- 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 +566 -566
- 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/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 +2 -0
- 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 +686 -686
@@ -1,241 +1,241 @@
|
|
1
|
-
<template>
|
2
|
-
<div :class="style" v-show="show.pcdShow">
|
3
|
-
<label class="font_normal_body">省 市 区 </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">街  道</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">小    区</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">楼  栋</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>
|
1
|
+
<template>
|
2
|
+
<div :class="style" v-show="show.pcdShow">
|
3
|
+
<label class="font_normal_body">省 市 区 </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">街  道</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">小    区</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">楼  栋</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>
|