address-client 3.2.93 → 3.2.95

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 class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-4 form-group">
8
- <label class="font_normal_body">小区名称</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
- condition="f_residential_area like '%{}%'" placeholder="小区名称"/>
11
- </div>
12
- <div class="col-sm-4 form-group button-range">
13
- <button class="button_search button_spacing" @click="search()" >查询</button>
14
- <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
15
- </div>
16
- </div>
17
- </div>
18
- </criteria>
19
- <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
20
- <template partial='head'>
21
- <th>
22
- <nobr>小区名称</nobr>
23
- </th>
24
- <th>
25
- <nobr>小区地址</nobr>
26
- </th>
27
- </template>
28
- <template partial='body'>
29
- <td style="text-align:center">
30
- <nobr>{{ row.f_residential_area }}</nobr>
31
- </td>
32
- <td style="text-align:center">
33
- <nobr>{{ row.f_area_address }}</nobr>
34
- </td>
35
- </template>
36
- <template partial='foot'></template>
37
- </data-grid>
38
- </criteria-paged>
39
- </div>
40
- </template>
41
-
42
- <script>
43
- import {PagedList} from 'vue-client'
44
-
45
- export default {
46
- data () {
47
- return {
48
- criteriaShow: false,
49
- model: new PagedList('rs/sql/address_singleTableOrderBy', 20, {
50
- tablename: `'t_area'`,
51
- items: `'f_residential_area,f_area_address'`,
52
- orderitem: `'f_area_address desc'`
53
- })
54
- }
55
- },
56
- title: '小区列表',
57
- props: ['communityid'],
58
- ready () {
59
- this.search()
60
- },
61
- methods: {
62
- hidden () {
63
- this.criteriaShow = !this.criteriaShow
64
- },
65
- cancel () {
66
- this.communityid = null
67
- this.$dispatch('cancel')
68
- },
69
- search () {
70
- this.$refs.paged.$refs.cri.search()
71
- },
72
- selfSearch (args) {
73
- args.condition = args.condition + `and f_community_id = '${this.communityid}'`
74
- this.model.search(args.condition, args.model)
75
- }
76
- },
77
- events: {},
78
- computed: {},
79
- watch: {
80
- 'communityid' (val) {
81
- if (val) {
82
- this.search()
83
- }
84
- }
85
- }
86
- }
87
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-4 form-group">
8
+ <label class="font_normal_body">小区名称</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
+ condition="f_residential_area like '%{}%'" placeholder="小区名称"/>
11
+ </div>
12
+ <div class="col-sm-4 form-group button-range">
13
+ <button class="button_search button_spacing" @click="search()" >查询</button>
14
+ <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </criteria>
19
+ <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
20
+ <template partial='head'>
21
+ <th>
22
+ <nobr>小区名称</nobr>
23
+ </th>
24
+ <th>
25
+ <nobr>小区地址</nobr>
26
+ </th>
27
+ </template>
28
+ <template partial='body'>
29
+ <td style="text-align:center">
30
+ <nobr>{{ row.f_residential_area }}</nobr>
31
+ </td>
32
+ <td style="text-align:center">
33
+ <nobr>{{ row.f_area_address }}</nobr>
34
+ </td>
35
+ </template>
36
+ <template partial='foot'></template>
37
+ </data-grid>
38
+ </criteria-paged>
39
+ </div>
40
+ </template>
41
+
42
+ <script>
43
+ import {PagedList} from 'vue-client'
44
+
45
+ export default {
46
+ data () {
47
+ return {
48
+ criteriaShow: false,
49
+ model: new PagedList('rs/sql/address_singleTableOrderBy', 20, {
50
+ tablename: `'t_area'`,
51
+ items: `'f_residential_area,f_area_address'`,
52
+ orderitem: `'f_area_address desc'`
53
+ })
54
+ }
55
+ },
56
+ title: '小区列表',
57
+ props: ['communityid'],
58
+ ready () {
59
+ this.search()
60
+ },
61
+ methods: {
62
+ hidden () {
63
+ this.criteriaShow = !this.criteriaShow
64
+ },
65
+ cancel () {
66
+ this.communityid = null
67
+ this.$dispatch('cancel')
68
+ },
69
+ search () {
70
+ this.$refs.paged.$refs.cri.search()
71
+ },
72
+ selfSearch (args) {
73
+ args.condition = args.condition + `and f_community_id = '${this.communityid}'`
74
+ this.model.search(args.condition, args.model)
75
+ }
76
+ },
77
+ events: {},
78
+ computed: {},
79
+ watch: {
80
+ 'communityid' (val) {
81
+ if (val) {
82
+ this.search()
83
+ }
84
+ }
85
+ }
86
+ }
87
+ </script>
@@ -1,78 +1,78 @@
1
- <template>
2
- <div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
3
- <div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
4
- <community-manage-list @child-dblclick="selected"
5
- :f_filialeids.sync="f_filialeids"
6
- v-ref:communitymanage>
7
- </community-manage-list>
8
- </div>
9
- <div v-show="communityManageShow == 1" class="binary-right">
10
- <add-community-manage-msg v-ref:addcommunitymanage
11
- :f_filialeids.sync="f_filialeids">
12
- </add-community-manage-msg>
13
- </div>
14
- <div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
15
- <div class="flex">
16
- <community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
17
- </div>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- export default {
24
- title: '社区管理',
25
- components: {},
26
- data () {
27
- return {
28
- // 分公司id串
29
- f_filialeids: this.$login.f.orgid,
30
- communityid: null,
31
- communityManageShow: 0
32
- }
33
- },
34
- props: {},
35
- methods: {
36
- selected (obj) {
37
- if (obj && obj.id) {
38
- if (obj.f_filialeid != this.f_filialeids) {
39
- this.refresh()
40
- return
41
- }
42
- this.communityManageShow = 1
43
- this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
44
- this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
45
- }
46
- },
47
- refresh () {
48
- this.communityManageShow = 0
49
- this.$refs.communitymanage.$refs.paged.$refs.cri.search()
50
- }
51
- },
52
- events: {
53
- 'shouAllArea' (row) {
54
- this.style = 'col-sm-3 form-group'
55
- this.communityManageShow = 2
56
- this.communityid = row.id
57
- },
58
- 'add' (areatype) {
59
- this.style = 'col-sm-3 '
60
- this.communityManageShow = 1
61
- this.$refs.addcommunitymanage.businesstype = '新增'
62
- this.$refs.addcommunitymanage.clearData()
63
- },
64
- 'confirm' () {
65
- this.style = 'col-sm-2 '
66
- this.refresh()
67
- },
68
- 'cancel' () {
69
- this.style = 'col-sm-2 '
70
- this.communityManageShow = 0
71
- this.communityid = null
72
- this.$refs.communitymanage.$refs.paged.$refs.cri.search()
73
- }
74
- }
75
- }
76
- </script>
77
-
78
-
1
+ <template>
2
+ <div id="unit" class="flex-row " :class="{'binary':communityManageShow == 0}">
3
+ <div :class="{'basic-main':communityManageShow == 0,'binary-left':communityManageShow != 0}">
4
+ <community-manage-list @child-dblclick="selected"
5
+ :f_filialeids.sync="f_filialeids"
6
+ v-ref:communitymanage>
7
+ </community-manage-list>
8
+ </div>
9
+ <div v-show="communityManageShow == 1" class="binary-right">
10
+ <add-community-manage-msg v-ref:addcommunitymanage
11
+ :f_filialeids.sync="f_filialeids">
12
+ </add-community-manage-msg>
13
+ </div>
14
+ <div v-show="communityManageShow == 2" style="width: 60%" class="binary-right">
15
+ <div class="flex">
16
+ <community-area-list v-if="communityid" :communityid="communityid"></community-area-list>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script>
23
+ export default {
24
+ title: '社区管理',
25
+ components: {},
26
+ data () {
27
+ return {
28
+ // 分公司id串
29
+ f_filialeids: this.$login.f.orgid,
30
+ communityid: null,
31
+ communityManageShow: 0
32
+ }
33
+ },
34
+ props: {},
35
+ methods: {
36
+ selected (obj) {
37
+ if (obj && obj.id) {
38
+ if (obj.f_filialeid != this.f_filialeids) {
39
+ this.refresh()
40
+ return
41
+ }
42
+ this.communityManageShow = 1
43
+ this.$refs.addcommunitymanage.businesstype = '修改' + obj.f_community_name
44
+ this.$refs.addcommunitymanage.communitymodel = Object.assign({}, obj)
45
+ }
46
+ },
47
+ refresh () {
48
+ this.communityManageShow = 0
49
+ this.$refs.communitymanage.$refs.paged.$refs.cri.search()
50
+ }
51
+ },
52
+ events: {
53
+ 'shouAllArea' (row) {
54
+ this.style = 'col-sm-3 form-group'
55
+ this.communityManageShow = 2
56
+ this.communityid = row.id
57
+ },
58
+ 'add' (areatype) {
59
+ this.style = 'col-sm-3 '
60
+ this.communityManageShow = 1
61
+ this.$refs.addcommunitymanage.businesstype = '新增'
62
+ this.$refs.addcommunitymanage.clearData()
63
+ },
64
+ 'confirm' () {
65
+ this.style = 'col-sm-2 '
66
+ this.refresh()
67
+ },
68
+ 'cancel' () {
69
+ this.style = 'col-sm-2 '
70
+ this.communityManageShow = 0
71
+ this.communityid = null
72
+ this.$refs.communitymanage.$refs.paged.$refs.cri.search()
73
+ }
74
+ }
75
+ }
76
+ </script>
77
+
78
+
@@ -25,7 +25,7 @@
25
25
  <label class="font_normal_body">社区负责人</label>
26
26
  <v-select :value.sync="model.f_community_director"
27
27
  :value-single="true"
28
- :options='$parent.$parent.$parent.directors'
28
+ :options='$parent.$parent.directors'
29
29
  placeholder='请选择'
30
30
  condition="f_community_director = '{}'"
31
31
  close-on-select