address-client 3.0.33-aode → 3.0.34-aodeToV4
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/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/CHANGELOG.md +12 -12
- package/examples/showAdd/App.vue +40 -40
- package/index.html +40 -40
- package/package.json +1 -1
- package/src/components/AddAreaMsg.vue +599 -599
- package/src/components/AddStreetOrPcd.vue +231 -231
- package/src/components/AddressAddAddress.vue +479 -479
- package/src/components/AddressFiles.vue +156 -156
- package/src/components/AddressList.vue +23 -7
- package/src/components/AddressManage.vue +117 -117
- package/src/components/AddressTree.vue +501 -501
- package/src/components/AreaFiles.vue +73 -73
- package/src/components/AreaList.vue +36 -6
- package/src/components/AreaManage.vue +101 -101
- package/src/components/AreaTree.vue +508 -508
- package/src/components/Basch.vue +72 -72
- package/src/components/BatchOrders.vue +328 -328
- package/src/components/CityManage.vue +76 -76
- package/src/components/NewAddressInfo.vue +432 -432
- package/src/components/OneCodeList.vue +1 -1
- package/src/components/StreetList.vue +184 -184
- package/src/components/UserAddress.vue +780 -780
- package/src/components/UserAddressChange.vue +58 -58
- package/src/components/addressts/AddressListts.vue +6 -6
- package/src/components/addressts/UserAddressChangets.vue +1 -1
- package/src/components/addressts/UserAddressts.vue +6 -6
- package/src/components/areauser/AreaUser.vue +233 -233
- package/src/components/selectAddress/BatchList.vue +326 -326
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="width: auto;">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:criteria >
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="col-sm-9 ">
|
|
7
|
-
<input type="text" class="input_search button_spacing" v-model="model.f_residential_area"
|
|
8
|
-
condition="f_residential_area like '%{}%'" placeholder='小区名称'>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="span" style="float:right;"id='filesArea'>
|
|
11
|
-
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</criteria>
|
|
15
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" >
|
|
16
|
-
<template partial='head'>
|
|
17
|
-
<tr>
|
|
18
|
-
<th>序号</th>
|
|
19
|
-
<th>小区详细地址</th>
|
|
20
|
-
<th>操作</th>
|
|
21
|
-
</tr>
|
|
22
|
-
</template>
|
|
23
|
-
<template partial='body'>
|
|
24
|
-
<td id = "1" style="text-align: center;">{{$index + 1}}</td>
|
|
25
|
-
<td>{{row.f_area_address}}-{{row.f_residential_area}}-{{row.f_comments}}</td>
|
|
26
|
-
<td style="text-align: center;">
|
|
27
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.foundFile(row)">建档</button>
|
|
28
|
-
</td>
|
|
29
|
-
</template>
|
|
30
|
-
</data-grid>
|
|
31
|
-
</criteria-paged>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script>
|
|
36
|
-
import { PagedList } from 'vue-client'
|
|
37
|
-
export default {
|
|
38
|
-
title: '小区列表',
|
|
39
|
-
data () {
|
|
40
|
-
return {
|
|
41
|
-
model: new PagedList('
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
props: ['f_filialeid'],
|
|
45
|
-
// ready () {
|
|
46
|
-
// this.search()
|
|
47
|
-
// },
|
|
48
|
-
watch: {
|
|
49
|
-
'f_filialeid' (val) {
|
|
50
|
-
this.search()
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
foundFile (row) {
|
|
55
|
-
console.log('小区建档', row)
|
|
56
|
-
this.$emit('re-ref', row)
|
|
57
|
-
},
|
|
58
|
-
search () {
|
|
59
|
-
this.$refs.paged.$refs.criteria.search()
|
|
60
|
-
},
|
|
61
|
-
selfsearch (datas) {
|
|
62
|
-
console.log('查询小区', this.f_filialeid)
|
|
63
|
-
datas.condition += ` and a.f_filialeid = '${this.f_filialeid}'`
|
|
64
|
-
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
65
|
-
this.model.search(datas.condition, this.model)
|
|
66
|
-
},
|
|
67
|
-
// 主要提供外部组件调用,刷新数据
|
|
68
|
-
reflash () {
|
|
69
|
-
this.$refs.paged.$refs.criteria.search()
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="width: auto;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfsearch' v-ref:criteria >
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="col-sm-9 ">
|
|
7
|
+
<input type="text" class="input_search button_spacing" v-model="model.f_residential_area"
|
|
8
|
+
condition="f_residential_area like '%{}%'" placeholder='小区名称'>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="span" style="float:right;"id='filesArea'>
|
|
11
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</criteria>
|
|
15
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" >
|
|
16
|
+
<template partial='head'>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>序号</th>
|
|
19
|
+
<th>小区详细地址</th>
|
|
20
|
+
<th>操作</th>
|
|
21
|
+
</tr>
|
|
22
|
+
</template>
|
|
23
|
+
<template partial='body'>
|
|
24
|
+
<td id = "1" style="text-align: center;">{{$index + 1}}</td>
|
|
25
|
+
<td>{{row.f_area_address}}-{{row.f_residential_area}}-{{row.f_comments}}</td>
|
|
26
|
+
<td style="text-align: center;">
|
|
27
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.foundFile(row)">建档</button>
|
|
28
|
+
</td>
|
|
29
|
+
</template>
|
|
30
|
+
</data-grid>
|
|
31
|
+
</criteria-paged>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
import { PagedList } from 'vue-client'
|
|
37
|
+
export default {
|
|
38
|
+
title: '小区列表',
|
|
39
|
+
data () {
|
|
40
|
+
return {
|
|
41
|
+
model: new PagedList('api/af-revenue/sql/address_getArea', 20)
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
props: ['f_filialeid'],
|
|
45
|
+
// ready () {
|
|
46
|
+
// this.search()
|
|
47
|
+
// },
|
|
48
|
+
watch: {
|
|
49
|
+
'f_filialeid' (val) {
|
|
50
|
+
this.search()
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
foundFile (row) {
|
|
55
|
+
console.log('小区建档', row)
|
|
56
|
+
this.$emit('re-ref', row)
|
|
57
|
+
},
|
|
58
|
+
search () {
|
|
59
|
+
this.$refs.paged.$refs.criteria.search()
|
|
60
|
+
},
|
|
61
|
+
selfsearch (datas) {
|
|
62
|
+
console.log('查询小区', this.f_filialeid)
|
|
63
|
+
datas.condition += ` and a.f_filialeid = '${this.f_filialeid}'`
|
|
64
|
+
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
65
|
+
this.model.search(datas.condition, this.model)
|
|
66
|
+
},
|
|
67
|
+
// 主要提供外部组件调用,刷新数据
|
|
68
|
+
reflash () {
|
|
69
|
+
this.$refs.paged.$refs.criteria.search()
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
<button v-if="$parent.$parent.f_special"class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('单位')">添加单位</button>
|
|
55
55
|
<button v-if="$parent.$parent.checkitem.length>=1" class="button_clear button_spacing" @click="$parent.$parent.deleteall()">批量删除</button>
|
|
56
56
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
57
|
+
<export-excel :data="$parent.$parent.getCondition" :defaultselect="$parent.$parent.getfield"
|
|
58
|
+
:field="$parent.$parent.getfield"
|
|
59
|
+
sqlurl="api/af-revenue/logic/exportfile" sql-name="address_getarealist" template-name='小区导出'
|
|
60
|
+
:choose-col="true"></export-excel>
|
|
57
61
|
<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
|
|
58
62
|
</div>
|
|
59
63
|
</div>
|
|
@@ -116,6 +120,8 @@
|
|
|
116
120
|
<!--非民用单位信息结束-->
|
|
117
121
|
<th><nobr>片区/管理站 </nobr></th>
|
|
118
122
|
<th><nobr>使用人数 </nobr></th>
|
|
123
|
+
<th><nobr>首次通气日期 </nobr></th>
|
|
124
|
+
<th><nobr>通气年限 </nobr></th>
|
|
119
125
|
<th><nobr>关联地址 </nobr></th>
|
|
120
126
|
<th><nobr>操作人</nobr></th>
|
|
121
127
|
<th><nobr>操作日期</nobr></th>
|
|
@@ -149,6 +155,8 @@
|
|
|
149
155
|
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
150
156
|
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.id,row.f_residential_area)" class="btn btn-link">{{row.areacount}}</button></td>
|
|
151
157
|
<td style="text-align:center"><nobr>{{row.addresscount}}</nobr></td>
|
|
158
|
+
<td style="text-align:center"><nobr>{{row.open_date}}</nobr></td>
|
|
159
|
+
<td style="text-align:center"><nobr>{{row.yeardiff}}</nobr></td>
|
|
152
160
|
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
153
161
|
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
154
162
|
<td><nobr>
|
|
@@ -175,10 +183,10 @@
|
|
|
175
183
|
checkall:false,
|
|
176
184
|
checkitem:[],
|
|
177
185
|
criteriaShow: false,
|
|
178
|
-
model: new PagedList('
|
|
186
|
+
model: new PagedList('api/af-revenue/sql/address_getarealist',50),
|
|
179
187
|
addflag: false,
|
|
180
188
|
addtitle:'',
|
|
181
|
-
|
|
189
|
+
condition:'',
|
|
182
190
|
// 公司下拉
|
|
183
191
|
curorgid: [this.$login.f.orgid],
|
|
184
192
|
f_orgid: ''
|
|
@@ -186,6 +194,20 @@
|
|
|
186
194
|
},
|
|
187
195
|
title: '小区管理',
|
|
188
196
|
computed:{
|
|
197
|
+
getCondition() {
|
|
198
|
+
return {condition: this.condition}
|
|
199
|
+
},
|
|
200
|
+
getfield() {
|
|
201
|
+
let filed =[]
|
|
202
|
+
if(this.f_special){
|
|
203
|
+
filed = {'f_district': '区/县', 'f_street': '街道名称','f_residential_area':'小区名称','f_area_address': '详细地址','f_comments': '小区备注', 'f_slice_area': '片区/管理站','areacount':'使用人数',
|
|
204
|
+
'open_date': '首次通气时间','yeardiff': '通气年限','f_operator': '操作人','f_operate_date': '操作日期'}
|
|
205
|
+
}else {
|
|
206
|
+
filed = {'f_district': '区/县', 'f_street': '街道名称','f_residential_area':'单位名称','f_area_address': '单位地址','f_comments': '小区备注','f_linkname':'联系人', 'f_linkphone':'联系电话','f_slice_area': '片区/管理站','areacount':'使用人数',
|
|
207
|
+
'open_date': '首次通气时间','yeardiff': '通气年限','f_operator': '操作人','f_operate_date': '操作日期'}
|
|
208
|
+
}
|
|
209
|
+
return filed
|
|
210
|
+
},
|
|
189
211
|
ischeckall(){
|
|
190
212
|
let arr =[]
|
|
191
213
|
for(let i=0;i<this.model.rows.length;i++){
|
|
@@ -261,7 +283,7 @@
|
|
|
261
283
|
async delete(row){
|
|
262
284
|
if(row.id){
|
|
263
285
|
var id = row.id
|
|
264
|
-
let useraredss = await this.$resetpost('
|
|
286
|
+
let useraredss = await this.$resetpost('api/af-revenue/sql/address_singleTable',
|
|
265
287
|
{data: {
|
|
266
288
|
items: 'f_residential_area_id',
|
|
267
289
|
tablename: 't_user_address',
|
|
@@ -271,17 +293,24 @@
|
|
|
271
293
|
if(useraredss.data.length>0){
|
|
272
294
|
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
273
295
|
}else{
|
|
274
|
-
this.$resetdelete('
|
|
296
|
+
this.$resetdelete('api/af-revenue/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
275
297
|
this.$dispatch('cancel')
|
|
276
298
|
})
|
|
277
299
|
}
|
|
278
300
|
}
|
|
279
301
|
},
|
|
280
302
|
deleteall(){
|
|
281
|
-
|
|
282
|
-
|
|
303
|
+
let msg =`共计删除${this.checkitem.length}个小区,请确认删除操作`
|
|
304
|
+
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
305
|
+
if (res === 'confirm') {
|
|
306
|
+
//发出事件,用于建档或修正档案
|
|
307
|
+
this.$resetpost('api/af-revenue/logic/deleteAreaAll',{data:{arr:this.checkitem}}).then((res)=>{
|
|
308
|
+
this.search()
|
|
309
|
+
})
|
|
310
|
+
}
|
|
283
311
|
})
|
|
284
312
|
|
|
313
|
+
|
|
285
314
|
},
|
|
286
315
|
add(val){
|
|
287
316
|
if (this.f_filialeids) {
|
|
@@ -308,6 +337,7 @@
|
|
|
308
337
|
}else{
|
|
309
338
|
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
310
339
|
}
|
|
340
|
+
this.condition = args.condition
|
|
311
341
|
this.model.search(args.condition, args.model)
|
|
312
342
|
},
|
|
313
343
|
//清空
|
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row" :class="{'binary':areaShow}">
|
|
3
|
-
<div :class="{'basic-main':!areaShow && !usershow,'binary-left':areaShow|| usershow}">
|
|
4
|
-
<area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="binary-right" v-if="usershow" style="width: 60%">
|
|
7
|
-
<div class="flex">
|
|
8
|
-
<area-user :f_residential_area_id="f_residential_area_id" :f_filialeid="f_filialeids" :f_residential_area="f_residential_area"></area-user>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div v-show="areaShow" style="width: 60%" class="binary-right">
|
|
12
|
-
<div class="flex">
|
|
13
|
-
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
14
|
-
:f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
export default {
|
|
22
|
-
title: '小区管理',
|
|
23
|
-
components:{
|
|
24
|
-
},
|
|
25
|
-
data () {
|
|
26
|
-
return {
|
|
27
|
-
//分公司id串
|
|
28
|
-
width:'100%',
|
|
29
|
-
f_filialeids: this.$login.f.orgid,
|
|
30
|
-
areaShow:false,
|
|
31
|
-
areatype:'小区',
|
|
32
|
-
f_filialeid:this.$login.f.orgid,
|
|
33
|
-
arearow:{},
|
|
34
|
-
usershow:false,
|
|
35
|
-
f_residential_area_id:'',
|
|
36
|
-
f_residential_area:'',
|
|
37
|
-
style:'col-sm-2 form-group'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
ready(){
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
props:{
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
methods:{
|
|
47
|
-
selected(obj){
|
|
48
|
-
this.style='col-sm-3 form-group'
|
|
49
|
-
this.usershow =false
|
|
50
|
-
if(obj.val&&obj.val.id){
|
|
51
|
-
console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
|
|
52
|
-
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
53
|
-
this.refresh()
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
this.areaShow=true
|
|
57
|
-
this.$refs.addareamsg.cleardara()
|
|
58
|
-
this.$refs.addareamsg.operation='modify'
|
|
59
|
-
this.$refs.addareamsg.areatype='小区'
|
|
60
|
-
this.$refs.addareamsg.areamodel=Object.assign({},obj.val)
|
|
61
|
-
if (obj.val.f_slice_area) {
|
|
62
|
-
this.$refs.addareamsg.areamodel.slice_area = [{
|
|
63
|
-
name: this.$refs.addareamsg.areamodel.f_slice_area,
|
|
64
|
-
code: this.$refs.addareamsg.areamodel.f_area_code
|
|
65
|
-
}]
|
|
66
|
-
}
|
|
67
|
-
this.$refs.addareamsg.initdata(obj.val)
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
refresh() {
|
|
71
|
-
this.usershow =false
|
|
72
|
-
this.areaShow = false
|
|
73
|
-
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
events:{
|
|
77
|
-
'add'(){
|
|
78
|
-
this.style='col-sm-3 form-group'
|
|
79
|
-
this.areaShow=true
|
|
80
|
-
this.usershow =false
|
|
81
|
-
this.$refs.addareamsg.cleardara()
|
|
82
|
-
this.$refs.addareamsg.operation='add'
|
|
83
|
-
this.$refs.addareamsg.areatype='小区'
|
|
84
|
-
this.$refs.addareamsg.initdata()
|
|
85
|
-
},
|
|
86
|
-
'confirm' () {
|
|
87
|
-
this.style='col-sm-2 form-group'
|
|
88
|
-
this.areaShow = false
|
|
89
|
-
this.usershow =false
|
|
90
|
-
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
91
|
-
},
|
|
92
|
-
'cancel' () {
|
|
93
|
-
this.style='col-sm-2 form-group'
|
|
94
|
-
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
95
|
-
this.areaShow = false
|
|
96
|
-
this.usershow =false
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
</script>
|
|
101
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row" :class="{'binary':areaShow}">
|
|
3
|
+
<div :class="{'basic-main':!areaShow && !usershow,'binary-left':areaShow|| usershow}">
|
|
4
|
+
<area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="binary-right" v-if="usershow" style="width: 60%">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<area-user :f_residential_area_id="f_residential_area_id" :f_filialeid="f_filialeids" :f_residential_area="f_residential_area"></area-user>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div v-show="areaShow" style="width: 60%" class="binary-right">
|
|
12
|
+
<div class="flex">
|
|
13
|
+
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
14
|
+
:f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
title: '小区管理',
|
|
23
|
+
components:{
|
|
24
|
+
},
|
|
25
|
+
data () {
|
|
26
|
+
return {
|
|
27
|
+
//分公司id串
|
|
28
|
+
width:'100%',
|
|
29
|
+
f_filialeids: this.$login.f.orgid,
|
|
30
|
+
areaShow:false,
|
|
31
|
+
areatype:'小区',
|
|
32
|
+
f_filialeid:this.$login.f.orgid,
|
|
33
|
+
arearow:{},
|
|
34
|
+
usershow:false,
|
|
35
|
+
f_residential_area_id:'',
|
|
36
|
+
f_residential_area:'',
|
|
37
|
+
style:'col-sm-2 form-group'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
ready(){
|
|
41
|
+
|
|
42
|
+
},
|
|
43
|
+
props:{
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
methods:{
|
|
47
|
+
selected(obj){
|
|
48
|
+
this.style='col-sm-3 form-group'
|
|
49
|
+
this.usershow =false
|
|
50
|
+
if(obj.val&&obj.val.id){
|
|
51
|
+
console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
|
|
52
|
+
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
53
|
+
this.refresh()
|
|
54
|
+
return
|
|
55
|
+
}
|
|
56
|
+
this.areaShow=true
|
|
57
|
+
this.$refs.addareamsg.cleardara()
|
|
58
|
+
this.$refs.addareamsg.operation='modify'
|
|
59
|
+
this.$refs.addareamsg.areatype='小区'
|
|
60
|
+
this.$refs.addareamsg.areamodel=Object.assign({},obj.val)
|
|
61
|
+
if (obj.val.f_slice_area) {
|
|
62
|
+
this.$refs.addareamsg.areamodel.slice_area = [{
|
|
63
|
+
name: this.$refs.addareamsg.areamodel.f_slice_area,
|
|
64
|
+
code: this.$refs.addareamsg.areamodel.f_area_code
|
|
65
|
+
}]
|
|
66
|
+
}
|
|
67
|
+
this.$refs.addareamsg.initdata(obj.val)
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
refresh() {
|
|
71
|
+
this.usershow =false
|
|
72
|
+
this.areaShow = false
|
|
73
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
events:{
|
|
77
|
+
'add'(){
|
|
78
|
+
this.style='col-sm-3 form-group'
|
|
79
|
+
this.areaShow=true
|
|
80
|
+
this.usershow =false
|
|
81
|
+
this.$refs.addareamsg.cleardara()
|
|
82
|
+
this.$refs.addareamsg.operation='add'
|
|
83
|
+
this.$refs.addareamsg.areatype='小区'
|
|
84
|
+
this.$refs.addareamsg.initdata()
|
|
85
|
+
},
|
|
86
|
+
'confirm' () {
|
|
87
|
+
this.style='col-sm-2 form-group'
|
|
88
|
+
this.areaShow = false
|
|
89
|
+
this.usershow =false
|
|
90
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
91
|
+
},
|
|
92
|
+
'cancel' () {
|
|
93
|
+
this.style='col-sm-2 form-group'
|
|
94
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
95
|
+
this.areaShow = false
|
|
96
|
+
this.usershow =false
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|
|
101
|
+
|