address-client 3.2.47 → 3.2.50
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
CHANGED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<td><nobr>
|
|
156
156
|
<!--<button type="button" name="button" class="btn btn-link"
|
|
157
157
|
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
158
|
-
<button v-if="!row.
|
|
158
|
+
<button v-if="!row.addressnum>0" type="button" name="button" class="btn btn-danger"
|
|
159
159
|
style="padding: 5px 12px"
|
|
160
160
|
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
161
161
|
</nobr>
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
<td><nobr>
|
|
142
142
|
<!--<button type="button" name="button" class="btn btn-link"
|
|
143
143
|
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
144
|
-
<button v-if="
|
|
144
|
+
<button v-if="(row.addressnum === 0)" type="button" name="button" class="btn btn-danger"
|
|
145
145
|
style="padding: 5px 12px"
|
|
146
146
|
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
147
147
|
</nobr></td>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row " :class="{'binary':areaShow}">
|
|
3
|
+
<div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
|
|
4
|
+
<street-list @select-changed="selected" :f_filialeids.sync="f_filialeids" v-ref:arealist></street-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="areaShow" class="binary-right">
|
|
7
|
+
<add-street-pcd v-ref:addstreetpcd :areatype.sync="areatype" :operation='operation' :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
export default {
|
|
14
|
+
title: '街道管理',
|
|
15
|
+
components:{
|
|
16
|
+
},
|
|
17
|
+
data () {
|
|
18
|
+
return {
|
|
19
|
+
//分公司id串
|
|
20
|
+
f_filialeids: this.$login.f.orgid,
|
|
21
|
+
areaShow:false,
|
|
22
|
+
areatype:'街道'
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
props:{
|
|
27
|
+
|
|
28
|
+
},
|
|
29
|
+
methods:{
|
|
30
|
+
selected(obj){
|
|
31
|
+
if(obj.val&&obj.val.id){
|
|
32
|
+
// if (obj.val.f_filialeid != this.f_filialeids) {
|
|
33
|
+
// this.refresh()
|
|
34
|
+
// return
|
|
35
|
+
// }
|
|
36
|
+
this.$refs.addstreetpcd.cleardara()
|
|
37
|
+
this.areatype = '街道'
|
|
38
|
+
this.areaShow=true
|
|
39
|
+
this.$refs.addstreetpcd.operation='modify'
|
|
40
|
+
this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
|
|
41
|
+
this.$refs.addstreetpcd.initdata()
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
async refresh () {
|
|
45
|
+
this.areaShow = false
|
|
46
|
+
await this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
events:{
|
|
50
|
+
'add'(areatype){
|
|
51
|
+
this.style='col-sm-3 '
|
|
52
|
+
this.areaShow=true
|
|
53
|
+
this.$refs.addstreetpcd.cleardara()
|
|
54
|
+
this.$refs.addstreetpcd.operation='add'
|
|
55
|
+
this.$refs.addstreetpcd.areatype=areatype
|
|
56
|
+
this.$refs.addstreetpcd.initdata()
|
|
57
|
+
},
|
|
58
|
+
'modify'(area){
|
|
59
|
+
this.style='col-sm-2 '
|
|
60
|
+
},
|
|
61
|
+
'confirm' () {
|
|
62
|
+
this.style='col-sm-2 '
|
|
63
|
+
|
|
64
|
+
this.refresh()
|
|
65
|
+
},
|
|
66
|
+
'cancel' () {
|
|
67
|
+
this.style='col-sm-2 '
|
|
68
|
+
|
|
69
|
+
this.areaShow = false
|
|
70
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
|
|
@@ -8,7 +8,8 @@ let specialComp = {
|
|
|
8
8
|
'address-list': (resolve) => { require(['./AddressList.vue'], resolve) },
|
|
9
9
|
|
|
10
10
|
'add-area-msg': (resolve) => { require(['./AddAreaMsg.vue'], resolve) },
|
|
11
|
-
'user-address': (resolve) => { require(['./UserAddress.vue'], resolve) }
|
|
11
|
+
'user-address': (resolve) => { require(['./UserAddress.vue'], resolve) },
|
|
12
|
+
'city-manage': (resolve) => { require(['./CityManage.vue'], resolve) }
|
|
12
13
|
}
|
|
13
14
|
exports.specialComp = specialComp
|
|
14
15
|
|