address-client 1.6.79 → 1.6.82
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/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +185 -0
- package/gradlew.bat +89 -0
- package/package.json +1 -1
- package/src/App.vue +16 -16
- package/src/components/AddAreaMsg.vue +1022 -1022
- package/src/components/AreaList.vue +227 -200
- package/src/components/AreaManage.vue +73 -73
- package/src/components/UseGasAreaList.vue +110 -110
- package/yarn-error.log +0 -7599
|
@@ -1,200 +1,227 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="stand-work-list" class="datapanel flex bg-white p-10">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-inline auto" partial>
|
|
6
|
-
<!-- <div class="form-group form-input-group" v-if="$parent.$parent.f_special">
|
|
7
|
-
<input type="text" class="form-control _zoom2" v-model="model.f_province"
|
|
8
|
-
condition="oldid like '%{}%'" placeholder="单位ID"
|
|
9
|
-
:size="model.oldid ? model.oldid.length*2 : 2"/>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="form-group form-input-group" v-if="!$parent.$parent.f_special">
|
|
12
|
-
<input type="text" class="form-control _zoom2" v-model="model.f_province"
|
|
13
|
-
condition="oldid like '%{}%'" placeholder="小区ID"
|
|
14
|
-
:size="model.oldid ? model.oldid.length*2 : 2"/>
|
|
15
|
-
</div>-->
|
|
16
|
-
<div class="row">
|
|
17
|
-
<div class="form-group col-sm-3">
|
|
18
|
-
<label class="font_normal_body _zoom4">省份</label>
|
|
19
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_province"
|
|
20
|
-
condition="f_province like '%{}%'" placeholder="省份"/>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="form-group col-sm-3">
|
|
23
|
-
<label class="font_normal_body _zoom4">城市</label>
|
|
24
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_city"
|
|
25
|
-
condition="f_city like '%{}%'" placeholder="城市"/>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="form-group col-sm-3">
|
|
28
|
-
<label class="font_normal_body _zoom4">区县</label>
|
|
29
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_district"
|
|
30
|
-
condition="f_district like '%{}%'" placeholder="区县"/>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-3" style="display: inline-block;float: right;text-align: right">
|
|
33
|
-
<button class="btn btn-success " @click="search()" >查询</button>
|
|
34
|
-
<button class="btn btn-success " @click="$parent.$parent.clear()">清空</button>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="row" style="margin-top: 5px">
|
|
38
|
-
<div class="form-group col-sm-3">
|
|
39
|
-
<label class="font_normal_body _zoom4">街道</label>
|
|
40
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_street"
|
|
41
|
-
condition="f_street like '%{}%'" placeholder="街道"/>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="form-group col-sm-3" v-if="$parent.$parent.f_special">
|
|
44
|
-
<label class="font_normal_body _zoom4" >单位ID</label>
|
|
45
|
-
<input type="text" class="form-control _zoom6" v-model="model.oldid"
|
|
46
|
-
condition="oldid like '%{}%'" placeholder="单位ID"/>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="form-group col-sm-3" v-if="$parent.$parent.f_special">
|
|
49
|
-
<label class="font_normal_body _zoom4" >单位</label>
|
|
50
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
51
|
-
condition="f_residential_area like '%{}%'" placeholder="单位"/>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="form-group col-sm-3" v-if="!$parent.$parent.f_special">
|
|
54
|
-
<label class="font_normal_body _zoom4" >小区ID</label>
|
|
55
|
-
<input type="text" class="form-control _zoom6" v-model="model.oldid"
|
|
56
|
-
condition="oldid like '%{}%'" placeholder="小区ID"/>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="form-group col-sm-3" v-if="!$parent.$parent.f_special">
|
|
59
|
-
<label class="font_normal_body _zoom4" >小区</label>
|
|
60
|
-
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
61
|
-
condition="f_residential_area like '%{}%'" placeholder="小区"/>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="col-sm-3" style="display: inline-block;float: right;text-align: right">
|
|
64
|
-
<button v-if="!$parent.$parent.f_special" class="btn btn-success " @click="$parent.$parent.add('小区')"> 添加小区 </button>
|
|
65
|
-
<button v-if="$parent.$parent.f_special" class="btn btn-success " @click="$parent.$parent.add('单位')"> 添加单位 </button>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
</div>
|
|
70
|
-
</criteria>
|
|
71
|
-
<data-grid :model="model" partial='list' v-ref:grid>
|
|
72
|
-
<template partial='head'>
|
|
73
|
-
<tr>
|
|
74
|
-
<th><nobr>id</nobr></th>
|
|
75
|
-
<th><nobr>省份</nobr></th>
|
|
76
|
-
<th><nobr>城市</nobr></th>
|
|
77
|
-
<th><nobr>区/县</nobr></th>
|
|
78
|
-
<th><nobr>街道名称</nobr></th>
|
|
79
|
-
<!--民用小区信息开始-->
|
|
80
|
-
<th v-if="!$parent.$parent.$parent.f_special"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<th v-if="
|
|
86
|
-
<th v-if="
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<th v-if="$parent.$parent.$parent.f_special"><nobr
|
|
90
|
-
|
|
91
|
-
<th><nobr
|
|
92
|
-
<th><nobr
|
|
93
|
-
<th><nobr
|
|
94
|
-
|
|
95
|
-
<th><nobr
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<td style="text-align:center"><nobr>{{row.
|
|
106
|
-
<td style="text-align:center"><nobr>{{row.
|
|
107
|
-
<td style="text-align:center"><nobr>{{row.
|
|
108
|
-
<td style="text-align:center"><nobr>{{row.
|
|
109
|
-
|
|
110
|
-
<td
|
|
111
|
-
<td
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<td style="text-align:center"><nobr>{{row.
|
|
115
|
-
<td
|
|
116
|
-
|
|
117
|
-
<td><nobr>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="stand-work-list" class="datapanel flex bg-white p-10">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-inline auto" partial>
|
|
6
|
+
<!-- <div class="form-group form-input-group" v-if="$parent.$parent.f_special">
|
|
7
|
+
<input type="text" class="form-control _zoom2" v-model="model.f_province"
|
|
8
|
+
condition="oldid like '%{}%'" placeholder="单位ID"
|
|
9
|
+
:size="model.oldid ? model.oldid.length*2 : 2"/>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-group form-input-group" v-if="!$parent.$parent.f_special">
|
|
12
|
+
<input type="text" class="form-control _zoom2" v-model="model.f_province"
|
|
13
|
+
condition="oldid like '%{}%'" placeholder="小区ID"
|
|
14
|
+
:size="model.oldid ? model.oldid.length*2 : 2"/>
|
|
15
|
+
</div>-->
|
|
16
|
+
<div class="row">
|
|
17
|
+
<div class="form-group col-sm-3">
|
|
18
|
+
<label class="font_normal_body _zoom4">省份</label>
|
|
19
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_province"
|
|
20
|
+
condition="f_province like '%{}%'" placeholder="省份"/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group col-sm-3">
|
|
23
|
+
<label class="font_normal_body _zoom4">城市</label>
|
|
24
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_city"
|
|
25
|
+
condition="f_city like '%{}%'" placeholder="城市"/>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group col-sm-3">
|
|
28
|
+
<label class="font_normal_body _zoom4">区县</label>
|
|
29
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_district"
|
|
30
|
+
condition="f_district like '%{}%'" placeholder="区县"/>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-3" style="display: inline-block;float: right;text-align: right">
|
|
33
|
+
<button class="btn btn-success " @click="search()" >查询</button>
|
|
34
|
+
<button class="btn btn-success " @click="$parent.$parent.clear()">清空</button>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="row" style="margin-top: 5px">
|
|
38
|
+
<div class="form-group col-sm-3">
|
|
39
|
+
<label class="font_normal_body _zoom4">街道</label>
|
|
40
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_street"
|
|
41
|
+
condition="f_street like '%{}%'" placeholder="街道"/>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-group col-sm-3" v-if="$parent.$parent.f_special">
|
|
44
|
+
<label class="font_normal_body _zoom4" >单位ID</label>
|
|
45
|
+
<input type="text" class="form-control _zoom6" v-model="model.oldid"
|
|
46
|
+
condition="oldid like '%{}%'" placeholder="单位ID"/>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="form-group col-sm-3" v-if="$parent.$parent.f_special">
|
|
49
|
+
<label class="font_normal_body _zoom4" >单位</label>
|
|
50
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
51
|
+
condition="f_residential_area like '%{}%'" placeholder="单位"/>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-group col-sm-3" v-if="!$parent.$parent.f_special">
|
|
54
|
+
<label class="font_normal_body _zoom4" >小区ID</label>
|
|
55
|
+
<input type="text" class="form-control _zoom6" v-model="model.oldid"
|
|
56
|
+
condition="oldid like '%{}%'" placeholder="小区ID"/>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="form-group col-sm-3" v-if="!$parent.$parent.f_special">
|
|
59
|
+
<label class="font_normal_body _zoom4" >小区</label>
|
|
60
|
+
<input type="text" class="form-control _zoom6" v-model="model.f_residential_area"
|
|
61
|
+
condition="f_residential_area like '%{}%'" placeholder="小区"/>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-3" style="display: inline-block;float: right;text-align: right">
|
|
64
|
+
<button v-if="!$parent.$parent.f_special" class="btn btn-success " @click="$parent.$parent.add('小区')"> 添加小区 </button>
|
|
65
|
+
<button v-if="$parent.$parent.f_special" class="btn btn-success " @click="$parent.$parent.add('单位')"> 添加单位 </button>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
</criteria>
|
|
71
|
+
<data-grid :model="model" partial='list' v-ref:grid>
|
|
72
|
+
<template partial='head'>
|
|
73
|
+
<tr>
|
|
74
|
+
<th><nobr>id</nobr></th>
|
|
75
|
+
<th><nobr>省份</nobr></th>
|
|
76
|
+
<th><nobr>城市</nobr></th>
|
|
77
|
+
<th><nobr>区/县</nobr></th>
|
|
78
|
+
<th><nobr>街道名称</nobr></th>
|
|
79
|
+
<!--民用小区信息开始-->
|
|
80
|
+
<th v-if="!$parent.$parent.$parent.f_special">
|
|
81
|
+
<!-- <nobr>小区ID</nobr>-->
|
|
82
|
+
<data-order field="oldid" name="小区ID"
|
|
83
|
+
:order.sync="$parent.$parent.$parent.orderFields.oldid"></data-order>
|
|
84
|
+
</th>
|
|
85
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
86
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
|
|
87
|
+
<!--民用小区信息结束-->
|
|
88
|
+
<!--非民用单位信息开始-->
|
|
89
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位ID</nobr></th>
|
|
90
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
|
|
91
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>单位地址</nobr></th>
|
|
92
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
|
|
93
|
+
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
|
|
94
|
+
<!--非民用单位信息结束-->
|
|
95
|
+
<th><nobr>片区/管理站 </nobr></th>
|
|
96
|
+
<th><nobr>营业网点</nobr></th>
|
|
97
|
+
<th><nobr>操作人</nobr></th>
|
|
98
|
+
<th><nobr>操作日期</nobr></th>
|
|
99
|
+
<th><nobr>操作</nobr></th>
|
|
100
|
+
|
|
101
|
+
</tr>
|
|
102
|
+
</template>
|
|
103
|
+
<template partial='body'>
|
|
104
|
+
<tr>
|
|
105
|
+
<td style="text-align:center"><nobr>{{row.id}}</nobr></td>
|
|
106
|
+
<td style="text-align:center"><nobr>{{row.f_province}}</nobr></td>
|
|
107
|
+
<td style="text-align:center"><nobr>{{row.f_city}}</nobr></td>
|
|
108
|
+
<td style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
109
|
+
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
110
|
+
<td style="text-align:center"><nobr>{{row.oldid}}</nobr></td>
|
|
111
|
+
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
112
|
+
<td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
|
|
113
|
+
<!--非民用单位信息开始-->
|
|
114
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
|
|
115
|
+
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
|
|
116
|
+
<!--非民用单位信息结束-->
|
|
117
|
+
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
118
|
+
<td style="text-align:center"><nobr>{{row.f_outlets}}</nobr></td>
|
|
119
|
+
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
120
|
+
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
121
|
+
<td><nobr>
|
|
122
|
+
<!--<button type="button" name="button" class="btn btn-link"
|
|
123
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
124
|
+
<button type="button" name="button" class="btn btn-link"
|
|
125
|
+
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
126
|
+
</nobr></td>
|
|
127
|
+
</tr>
|
|
128
|
+
</template>
|
|
129
|
+
<template partial='foot'></template>
|
|
130
|
+
</data-grid>
|
|
131
|
+
</criteria-paged>
|
|
132
|
+
</div>
|
|
133
|
+
</template>
|
|
134
|
+
|
|
135
|
+
<script>
|
|
136
|
+
import { PagedList } from 'vue-client'
|
|
137
|
+
|
|
138
|
+
export default {
|
|
139
|
+
data () {
|
|
140
|
+
return {
|
|
141
|
+
model: new PagedList('rs/sql/address_getarealist',20,{orderitem:`' oldid asc '`}),
|
|
142
|
+
userid: this.$login.f.id,
|
|
143
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
144
|
+
addflag: false,
|
|
145
|
+
addtitle:'',
|
|
146
|
+
orderFields: {
|
|
147
|
+
oldid:'asc'
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
title: '小区管理',
|
|
152
|
+
props:{
|
|
153
|
+
f_special:{
|
|
154
|
+
type: String
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
ready(){
|
|
158
|
+
|
|
159
|
+
},
|
|
160
|
+
methods: {
|
|
161
|
+
async delete(row){
|
|
162
|
+
if(row.id){
|
|
163
|
+
var id = row.id
|
|
164
|
+
let useraredss = await this.$resetpost('rs/sql/address_singleTable',
|
|
165
|
+
{data: {
|
|
166
|
+
items: 'count(*) num',
|
|
167
|
+
tablename: 't_user_address',
|
|
168
|
+
condition: `f_residential_area_id='${id}'`}
|
|
169
|
+
},
|
|
170
|
+
{resolveMsg: null, rejectMsg: null})
|
|
171
|
+
if(useraredss.data[0].num>0){
|
|
172
|
+
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
173
|
+
}else{
|
|
174
|
+
this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
175
|
+
this.$dispatch('cancel')
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
sort (field, rule) {
|
|
181
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
182
|
+
for (let key in this.orderFields) {
|
|
183
|
+
if (key === field) {
|
|
184
|
+
this.orderFields[key] = rule
|
|
185
|
+
} else {
|
|
186
|
+
this.orderFields[key] = 'no'
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// 如果新规则不排序,还原为默认排序
|
|
192
|
+
if (rule === 'no') {
|
|
193
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
194
|
+
} else {
|
|
195
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
this.search()
|
|
199
|
+
},
|
|
200
|
+
add(val){
|
|
201
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
202
|
+
this.$dispatch('add')
|
|
203
|
+
},
|
|
204
|
+
modify(val){
|
|
205
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
206
|
+
this.$dispatch('modify',val)
|
|
207
|
+
},
|
|
208
|
+
search (args) {
|
|
209
|
+
if(this.f_special){
|
|
210
|
+
args.condition = `${args.condition} and s.f_special='1' `
|
|
211
|
+
}else{
|
|
212
|
+
args.condition = `${args.condition} and s.f_special is null `
|
|
213
|
+
}
|
|
214
|
+
this.$dispatch('search',args)
|
|
215
|
+
this.model.search(args.condition, args.model)
|
|
216
|
+
},
|
|
217
|
+
//清空
|
|
218
|
+
clear(){
|
|
219
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
watch:{
|
|
223
|
+
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
}
|
|
227
|
+
</script>
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div class="flex" style="flex: 1; width:60%">
|
|
4
|
-
<area-list @select-changed="selected" v-ref:arealist></area-list>
|
|
5
|
-
</div>
|
|
6
|
-
<div v-show="areaShow" class="datapanel" style="margin-left: 10px;width: 40%">
|
|
7
|
-
<div class="flex">
|
|
8
|
-
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
9
|
-
:row="arearow"></add-area-msg>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
title: '小区管理',
|
|
18
|
-
components: {},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
//分公司id串
|
|
22
|
-
areaShow: false,
|
|
23
|
-
areatype: '小区',
|
|
24
|
-
arearow: {},
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
ready() {
|
|
28
|
-
},
|
|
29
|
-
props: {},
|
|
30
|
-
methods: {
|
|
31
|
-
selected(obj) {
|
|
32
|
-
if (obj.val && obj.val.id) {
|
|
33
|
-
this.areaShow = true
|
|
34
|
-
this.$refs.addareamsg.cleardara()
|
|
35
|
-
this.$refs.addareamsg.operation = 'modify'
|
|
36
|
-
this.$refs.addareamsg.areatype = '小区'
|
|
37
|
-
try {
|
|
38
|
-
obj.val.default_devices = obj.val.default_devices ? JSON.parse(obj.val.default_devices) : []
|
|
39
|
-
}catch (e){
|
|
40
|
-
console.log("设备赋值错误")
|
|
41
|
-
} this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
|
|
42
|
-
this.$refs.addareamsg.oldsize = obj.val.card_size
|
|
43
|
-
this.$refs.addareamsg.initdata()
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
events: {
|
|
48
|
-
'add'() {
|
|
49
|
-
this.areaShow = true
|
|
50
|
-
this.$refs.addareamsg.cleardara()
|
|
51
|
-
this.$refs.addareamsg.operation = 'add'
|
|
52
|
-
this.$refs.addareamsg.areatype = '小区'
|
|
53
|
-
this.$refs.addareamsg.oldsize = 0
|
|
54
|
-
this.$refs.addareamsg.initdata()
|
|
55
|
-
},
|
|
56
|
-
'modify'(area) {
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
'confirm'() {
|
|
60
|
-
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
61
|
-
this.areaShow = false
|
|
62
|
-
},
|
|
63
|
-
'cancel'() {
|
|
64
|
-
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
65
|
-
this.areaShow = false
|
|
66
|
-
},
|
|
67
|
-
'search'() {
|
|
68
|
-
this.areaShow = false
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
</script>
|
|
73
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="flex" style="flex: 1; width:60%">
|
|
4
|
+
<area-list @select-changed="selected" v-ref:arealist></area-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="areaShow" class="datapanel" style="margin-left: 10px;width: 40%">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
9
|
+
:row="arearow"></add-area-msg>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
title: '小区管理',
|
|
18
|
+
components: {},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
//分公司id串
|
|
22
|
+
areaShow: false,
|
|
23
|
+
areatype: '小区',
|
|
24
|
+
arearow: {},
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
ready() {
|
|
28
|
+
},
|
|
29
|
+
props: {},
|
|
30
|
+
methods: {
|
|
31
|
+
selected(obj) {
|
|
32
|
+
if (obj.val && obj.val.id) {
|
|
33
|
+
this.areaShow = true
|
|
34
|
+
this.$refs.addareamsg.cleardara()
|
|
35
|
+
this.$refs.addareamsg.operation = 'modify'
|
|
36
|
+
this.$refs.addareamsg.areatype = '小区'
|
|
37
|
+
try {
|
|
38
|
+
obj.val.default_devices = obj.val.default_devices ? JSON.parse(obj.val.default_devices) : []
|
|
39
|
+
}catch (e){
|
|
40
|
+
console.log("设备赋值错误")
|
|
41
|
+
} this.$refs.addareamsg.areamodel = Object.assign({}, obj.val)
|
|
42
|
+
this.$refs.addareamsg.oldsize = obj.val.card_size
|
|
43
|
+
this.$refs.addareamsg.initdata()
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
events: {
|
|
48
|
+
'add'() {
|
|
49
|
+
this.areaShow = true
|
|
50
|
+
this.$refs.addareamsg.cleardara()
|
|
51
|
+
this.$refs.addareamsg.operation = 'add'
|
|
52
|
+
this.$refs.addareamsg.areatype = '小区'
|
|
53
|
+
this.$refs.addareamsg.oldsize = 0
|
|
54
|
+
this.$refs.addareamsg.initdata()
|
|
55
|
+
},
|
|
56
|
+
'modify'(area) {
|
|
57
|
+
|
|
58
|
+
},
|
|
59
|
+
'confirm'() {
|
|
60
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
61
|
+
this.areaShow = false
|
|
62
|
+
},
|
|
63
|
+
'cancel'() {
|
|
64
|
+
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
65
|
+
this.areaShow = false
|
|
66
|
+
},
|
|
67
|
+
'search'() {
|
|
68
|
+
this.areaShow = false
|
|
69
|
+
},
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
|