address-client 3.0.17 → 3.0.19-wsd

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,87 +1,87 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
- <area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
- </div>
6
- <div v-show="areaShow" style="width: 60%" class="binary-right">
7
- <div class="flex">
8
- <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
- :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- export default {
17
- title: '小区管理',
18
- components:{
19
- },
20
- data () {
21
- return {
22
- //分公司id串
23
- width:'100%',
24
- f_filialeids: this.$login.f.f_orgids,
25
- areaShow:false,
26
- areatype:'小区',
27
- arearow:{},
28
- style:'col-sm-2 '
29
- }
30
- },
31
- ready(){
32
-
33
- },
34
- props:{
35
-
36
- },
37
- methods:{
38
- selected(obj){
39
- this.style='col-sm-3 '
40
- if(obj.val&&obj.val.id){
41
- console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
42
- if (obj.val.f_filialeid != this.f_filialeids) {
43
- this.refresh()
44
- return
45
- }
46
- this.areaShow=true
47
- this.$refs.addareamsg.cleardara()
48
- this.$refs.addareamsg.operation='modify'
49
- this.$refs.addareamsg.areatype='小区'
50
- this.$refs.addareamsg.areamodel=Object.assign({},obj.val)
51
- if (obj.val.f_slice_area && obj.val.f_area_code) {
52
- this.$refs.addareamsg.areamodel.slice_area = [{
53
- name: this.$refs.addareamsg.areamodel.f_slice_area,
54
- code: this.$refs.addareamsg.areamodel.f_area_code
55
- }]
56
- }
57
- this.$refs.addareamsg.initdata(obj.val)
58
- }
59
- },
60
- refresh() {
61
- this.areaShow = false
62
- this.$refs.arealist.$refs.paged.$refs.cri.search()
63
- }
64
- },
65
- events:{
66
- 'add'(){
67
- this.style='col-sm-3 '
68
- this.areaShow=true
69
- this.$refs.addareamsg.cleardara()
70
- this.$refs.addareamsg.operation='add'
71
- this.$refs.addareamsg.areatype='小区'
72
- this.$refs.addareamsg.initdata()
73
- },
74
- 'confirm' () {
75
- this.style='col-sm-2 '
76
- this.areaShow = false
77
- this.$refs.arealist.$refs.paged.$refs.cri.search()
78
- },
79
- 'cancel' () {
80
- this.style='col-sm-2 '
81
- this.$refs.arealist.$refs.paged.$refs.cri.search()
82
- this.areaShow = false
83
- }
84
- }
85
- }
86
- </script>
87
-
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
4
+ <area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
+ </div>
6
+ <div v-show="areaShow" style="width: 60%" class="binary-right">
7
+ <div class="flex">
8
+ <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
+ :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ export default {
17
+ title: '小区管理',
18
+ components:{
19
+ },
20
+ data () {
21
+ return {
22
+ //分公司id串
23
+ width:'100%',
24
+ f_filialeids: this.$login.f.f_orgids,
25
+ areaShow:false,
26
+ areatype:'小区',
27
+ arearow:{},
28
+ style:'col-sm-2 '
29
+ }
30
+ },
31
+ ready(){
32
+
33
+ },
34
+ props:{
35
+
36
+ },
37
+ methods:{
38
+ selected(obj){
39
+ this.style='col-sm-3 '
40
+ if(obj.val&&obj.val.id){
41
+ console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
42
+ if (obj.val.f_filialeid != this.f_filialeids) {
43
+ this.refresh()
44
+ return
45
+ }
46
+ this.areaShow=true
47
+ this.$refs.addareamsg.cleardara()
48
+ this.$refs.addareamsg.operation='modify'
49
+ this.$refs.addareamsg.areatype='小区'
50
+ this.$refs.addareamsg.areamodel=Object.assign({},obj.val)
51
+ if (obj.val.f_slice_area) {
52
+ this.$refs.addareamsg.areamodel.slice_area = [{
53
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
54
+ code: this.$refs.addareamsg.areamodel.f_area_code
55
+ }]
56
+ }
57
+ this.$refs.addareamsg.initdata(obj.val)
58
+ }
59
+ },
60
+ refresh() {
61
+ this.areaShow = false
62
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
63
+ }
64
+ },
65
+ events:{
66
+ 'add'(){
67
+ this.style='col-sm-3 '
68
+ this.areaShow=true
69
+ this.$refs.addareamsg.cleardara()
70
+ this.$refs.addareamsg.operation='add'
71
+ this.$refs.addareamsg.areatype='小区'
72
+ this.$refs.addareamsg.initdata()
73
+ },
74
+ 'confirm' () {
75
+ this.style='col-sm-2 '
76
+ this.areaShow = false
77
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
78
+ },
79
+ 'cancel' () {
80
+ this.style='col-sm-2 '
81
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
82
+ this.areaShow = false
83
+ }
84
+ }
85
+ }
86
+ </script>
87
+
@@ -1,75 +1,76 @@
1
- <template>
2
- <div id="unit" class="flex-row" >
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="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.areaShow=true
38
- this.$refs.addstreetpcd.operation='modify'
39
- this.$refs.addstreetpcd.streetmodel=Object.assign({},obj.val)
40
- this.$refs.addstreetpcd.initdata()
41
- }
42
- },
43
- async refresh () {
44
- this.areaShow = false
45
- await this.$refs.arealist.$refs.paged.$refs.cri.search()
46
- }
47
- },
48
- events:{
49
- 'add'(areatype){
50
- this.style='col-sm-3 '
51
- this.areaShow=true
52
- this.$refs.addstreetpcd.cleardara()
53
- this.$refs.addstreetpcd.operation='add'
54
- this.$refs.addstreetpcd.areatype=areatype
55
- this.$refs.addstreetpcd.initdata()
56
- },
57
- 'modify'(area){
58
- this.style='col-sm-2 '
59
- },
60
- 'confirm' () {
61
- this.style='col-sm-2 '
62
-
63
- this.refresh()
64
- },
65
- 'cancel' () {
66
- this.style='col-sm-2 '
67
-
68
- this.areaShow = false
69
- this.$refs.arealist.$refs.paged.$refs.cri.search()
70
- },
71
- }
72
- }
73
- </script>
74
-
75
-
1
+ <template>
2
+ <div id="unit" class="flex-row" >
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
+