address-client 3.2.26 → 3.2.27

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.
@@ -1,76 +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
-
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
+