address-client 3.2.9 → 3.2.10

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.
@@ -0,0 +1,81 @@
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'
8
+ :f_filialeids.sync="f_filialeids" :row="row"></add-street-pcd>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ title: '街道管理',
16
+ components: {},
17
+ data () {
18
+ return {
19
+ //分公司id串
20
+ f_filialeids: this.$login.f.orgid,
21
+ areaShow: false,
22
+ areatype: '街道',
23
+ jSuthority: this.$login.r,
24
+
25
+ }
26
+ },
27
+ props: {},
28
+ methods: {
29
+ selected (obj) {
30
+ console.log("this.loogin.r",this.$login.r.includes('街道信息修改'))
31
+ if (!this.jSuthority.includes('街道信息修改')) {
32
+ return
33
+ }
34
+ if (obj.val && obj.val.id) {
35
+ if (obj.val.f_filialeid != this.f_filialeids) {
36
+ this.refresh()
37
+ return
38
+ }
39
+ this.$refs.addstreetpcd.cleardara()
40
+ this.areatype = '街道'
41
+ this.areaShow = true
42
+ this.$refs.addstreetpcd.operation = 'modify'
43
+ this.$refs.addstreetpcd.streetmodel = Object.assign({}, obj.val)
44
+ this.$refs.addstreetpcd.initdata()
45
+ }
46
+ },
47
+ async refresh () {
48
+ this.areaShow = false
49
+ await this.$refs.arealist.$refs.paged.$refs.cri.search()
50
+ },
51
+
52
+
53
+ },
54
+ events: {
55
+ 'add' (areatype) {
56
+ this.style = 'col-sm-3 '
57
+ this.areaShow = true
58
+ this.$refs.addstreetpcd.cleardara()
59
+ this.$refs.addstreetpcd.operation = 'add'
60
+ this.$refs.addstreetpcd.areatype = areatype
61
+ this.$refs.addstreetpcd.initdata()
62
+ },
63
+ 'modify' (area) {
64
+ this.style = 'col-sm-2 '
65
+ },
66
+ 'confirm' () {
67
+ this.style = 'col-sm-2 '
68
+
69
+ this.refresh()
70
+ },
71
+ 'cancel' () {
72
+ this.style = 'col-sm-2 '
73
+
74
+ this.areaShow = false
75
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
76
+ }
77
+ }
78
+ }
79
+ </script>
80
+
81
+