address-client 3.0.25 → 3.0.26-aode
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/buildOutputCleanup/cache.properties +1 -1
- package/CHANGELOG.md +0 -3
- package/build/dev-server.js +3 -3
- package/package.json +11 -5
- package/src/address.js +3 -0
- package/src/components/AddAreaMsg.vue +14 -10
- package/src/components/AddressList.vue +87 -68
- package/src/components/AreaList.vue +23 -2
- package/src/components/AreaManage.vue +16 -2
- package/src/components/UserAddress.vue +394 -393
- package/src/components/areauser/AreaUser.vue +233 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -172
- package/gradlew.bat +0 -84
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Fri
|
|
1
|
+
#Fri Jul 10 10:01:08 CST 2020
|
|
2
2
|
gradle.version=3.5
|
package/CHANGELOG.md
CHANGED
package/build/dev-server.js
CHANGED
|
@@ -10,7 +10,7 @@ var proxy = httpProxy.createProxyServer()
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var str = 'http://127.0.0.1:8091/ldap', str2= 'http://
|
|
13
|
+
var str = 'http://127.0.0.1:8091/ldap', str2= 'http://192.168.10.14:8300'
|
|
14
14
|
var proxyTable = {
|
|
15
15
|
|
|
16
16
|
'/rs/logic/getLogin': {
|
|
@@ -32,11 +32,11 @@ var proxyTable = {
|
|
|
32
32
|
target: str2
|
|
33
33
|
},
|
|
34
34
|
'/rs/logic/getSaleInitData': {
|
|
35
|
-
target:
|
|
35
|
+
target: str2
|
|
36
36
|
},
|
|
37
37
|
'/rs': {
|
|
38
38
|
// target: 'http://192.168.50.199:8300'
|
|
39
|
-
target:
|
|
39
|
+
target: str2
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "address-client",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.26-aode",
|
|
4
4
|
"description": "地址管理前台组件",
|
|
5
5
|
"author": "wanbochao",
|
|
6
6
|
"license": "ISC",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
"mocha": "^3.2.0",
|
|
73
73
|
"ncp": "^2.0.0",
|
|
74
74
|
"rimraf": "^2.5.0",
|
|
75
|
-
"sale-client": "
|
|
75
|
+
"sale-client": "1.0.66-aode",
|
|
76
76
|
"selenium-server": "2.52.0",
|
|
77
77
|
"sinon": "^2.1.0",
|
|
78
78
|
"sinon-chai": "^2.8.0",
|
|
79
79
|
"style": "0.0.3",
|
|
80
80
|
"style-loader": "^0.20.3",
|
|
81
|
-
"system-clients": "3.
|
|
81
|
+
"system-clients": "3.1.84",
|
|
82
82
|
"url-loader": "^0.5.7",
|
|
83
|
-
"vue-client": "1.
|
|
83
|
+
"vue-client": "1.22.20-5",
|
|
84
84
|
"vue-hot-reload-api": "^1.2.0",
|
|
85
85
|
"vue-html-loader": "^1.0.0",
|
|
86
86
|
"vue-loader": "^8.2.1",
|
|
@@ -92,6 +92,12 @@
|
|
|
92
92
|
"webpack": "^1.12.2",
|
|
93
93
|
"webpack-dev-middleware": "^1.4.0",
|
|
94
94
|
"webpack-hot-middleware": "^2.6.0",
|
|
95
|
-
"webpack-merge": "^0.8.3"
|
|
95
|
+
"webpack-merge": "^0.8.3",
|
|
96
|
+
"jsencrypt": "3.0.0-rc.1"
|
|
97
|
+
},
|
|
98
|
+
"directories": {
|
|
99
|
+
"doc": "doc",
|
|
100
|
+
"example": "examples",
|
|
101
|
+
"test": "test"
|
|
96
102
|
}
|
|
97
103
|
}
|
package/src/address.js
CHANGED
|
@@ -27,6 +27,8 @@ export default function () {
|
|
|
27
27
|
Vue.component('add-street-pcd', (resolve) => { require(['./components/AddStreetOrPcd'], resolve) })
|
|
28
28
|
//小区列表
|
|
29
29
|
Vue.component('area-list', (resolve) => { require(['./components/AreaList'], resolve) })
|
|
30
|
+
// 使用该小区的用户信息
|
|
31
|
+
Vue.component('area-user', (resolve) => { require(['./components/areauser/AreaUser.vue'], resolve) })
|
|
30
32
|
//小区管理(包含修改表具,小区的添加)
|
|
31
33
|
Vue.component('area-manage', (resolve) => { require(['./components/AreaManage'], resolve) })
|
|
32
34
|
//单位管理()
|
|
@@ -43,4 +45,5 @@ export default function () {
|
|
|
43
45
|
Vue.component('user-address-change', (resolve) => { require(['./components/UserAddressChange'], resolve) })
|
|
44
46
|
//批量置换接单
|
|
45
47
|
Vue.component('batch_orders', (resolve) => { require(['./components/selectAddress/BatchOrders'], resolve) })
|
|
48
|
+
|
|
46
49
|
}
|
|
@@ -298,18 +298,22 @@
|
|
|
298
298
|
|
|
299
299
|
async initSlice (val) {
|
|
300
300
|
if (val) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
this.sliceArea = [];
|
|
302
|
+
let getAllArea = await this.$resetpost('/rs/sql/address_singleTableOrderBy', {
|
|
303
|
+
data:{
|
|
304
|
+
items: '*',
|
|
305
|
+
tablename: 't_zone',
|
|
306
|
+
orderitem: 'id',
|
|
307
|
+
condition: ` parentid = ${val}`
|
|
308
|
+
}
|
|
304
309
|
}, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
|
|
305
310
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
})
|
|
311
|
+
if(getAllArea.data){
|
|
312
|
+
getAllArea.data.forEach((res) => {
|
|
313
|
+
this.sliceArea.push({label: res.name, value: {name: res.name, code:res.number}})
|
|
314
|
+
})
|
|
315
|
+
}
|
|
316
|
+
|
|
313
317
|
}
|
|
314
318
|
},
|
|
315
319
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="flex" @keyup.enter="search">
|
|
3
3
|
<criteria-paged :model="model" v-ref:paged>
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
6
|
|
|
7
7
|
<div class="row">
|
|
8
8
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<label class="font_normal_body">组织机构</label>
|
|
11
11
|
<res-select
|
|
12
12
|
restype='organization'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
is-mul="false"
|
|
15
|
+
:initresid='$parent.$parent.curorgid'
|
|
16
16
|
>
|
|
17
17
|
</res-select>
|
|
18
18
|
</div>
|
|
@@ -59,19 +59,19 @@
|
|
|
59
59
|
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
|
|
60
60
|
<label class="font_normal_body">楼  号</label>
|
|
61
61
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
|
|
62
|
-
condition="a.f_building like '
|
|
62
|
+
condition="a.f_building like '{}'" placeholder="楼号"
|
|
63
63
|
:size="model.f_building ? model.f_building.length*2 : 6"/>
|
|
64
64
|
</div>
|
|
65
65
|
<div :class="$parent.$parent.style" >
|
|
66
66
|
<label class="font_normal_body">单  元</label>
|
|
67
67
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_unit" style="width:60%"
|
|
68
|
-
condition="a.f_unit like '
|
|
68
|
+
condition="a.f_unit like '{}'" placeholder="单元"
|
|
69
69
|
:size="model.f_unit ? model.f_unit.length*2 : 6"/>
|
|
70
70
|
</div>
|
|
71
71
|
<div :class="$parent.$parent.style">
|
|
72
72
|
<label class="font_normal_body">楼  层</label>
|
|
73
73
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_floor" style="width:60%"
|
|
74
|
-
condition="a.f_floor like '
|
|
74
|
+
condition="a.f_floor like '{}'" placeholder="楼层"
|
|
75
75
|
:size="model.f_floor ? model.f_floor.length*2 : 6"/>
|
|
76
76
|
</div>
|
|
77
77
|
<div :class="$parent.$parent.style">
|
|
@@ -80,13 +80,6 @@
|
|
|
80
80
|
condition="a.f_room like '%{}%'" placeholder="门牌号"
|
|
81
81
|
:size="model.f_room ? model.f_room.length*2 : 6"/>
|
|
82
82
|
</div>
|
|
83
|
-
<div :class="$parent.$parent.style">
|
|
84
|
-
<label class="font_normal_body">小  区</label>
|
|
85
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"
|
|
86
|
-
condition="ta.f_residential_area like '%{}%'" placeholder="小区"
|
|
87
|
-
:size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>
|
|
88
|
-
</div>
|
|
89
|
-
|
|
90
83
|
<div :class="$parent.$parent.style">
|
|
91
84
|
<label class="font_normal_body">地址 ID</label>
|
|
92
85
|
<input type="text" class="input_search" style="width:60%" v-model="model.id" style="width:60%"
|
|
@@ -99,6 +92,15 @@
|
|
|
99
92
|
condition="a.f_address like '%{}%'" placeholder="详细地址"
|
|
100
93
|
:size="model.f_address ? model.f_address.length*2 : 8"/>
|
|
101
94
|
</div>
|
|
95
|
+
<div :class="$parent.$parent.style" >
|
|
96
|
+
<label class="font_normal_body">特殊地址</label>
|
|
97
|
+
<v-select :value.sync="model.f_special"
|
|
98
|
+
v-model="model.f_special"
|
|
99
|
+
:options='$parent.$parent.specialoptions' placeholder='请选择'
|
|
100
|
+
condition=" {} "
|
|
101
|
+
close-on-select></v-select>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
102
104
|
</div>
|
|
103
105
|
</div>
|
|
104
106
|
</criteria>
|
|
@@ -135,8 +137,8 @@
|
|
|
135
137
|
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
136
138
|
<td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
|
|
137
139
|
<td style="text-align:center">
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
141
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
140
142
|
<button type="button" name="button" class="btn btn-link"
|
|
141
143
|
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
142
144
|
</td>
|
|
@@ -158,6 +160,8 @@
|
|
|
158
160
|
</article>
|
|
159
161
|
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
160
162
|
</modal>
|
|
163
|
+
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
164
|
+
|
|
161
165
|
</template>
|
|
162
166
|
|
|
163
167
|
<script>
|
|
@@ -166,6 +170,7 @@
|
|
|
166
170
|
export default {
|
|
167
171
|
data () {
|
|
168
172
|
return {
|
|
173
|
+
iswork: false,
|
|
169
174
|
criteriaShow: false,
|
|
170
175
|
model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
171
176
|
addflag: false,
|
|
@@ -177,7 +182,8 @@
|
|
|
177
182
|
|
|
178
183
|
//文件上传弹框
|
|
179
184
|
showFile: false,
|
|
180
|
-
showrightchange:true
|
|
185
|
+
showrightchange:true,
|
|
186
|
+
specialoptions:[{label:"全部",value:""},{label:"是",value:"a.f_special ='1'"},{label:"否",value:"a.f_special is null"}]
|
|
181
187
|
}
|
|
182
188
|
},
|
|
183
189
|
title: '地址列表',
|
|
@@ -222,67 +228,80 @@
|
|
|
222
228
|
this.$dispatch('modify',val)
|
|
223
229
|
},
|
|
224
230
|
async delete(row){
|
|
225
|
-
if(row.id){
|
|
226
|
-
var id = row.id
|
|
227
|
-
let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
|
|
228
|
-
if(userfiles.data.length){
|
|
229
|
-
this.$showAlert('该地址下已有正常表具档案,无法删除!','warning',1000)
|
|
230
|
-
}else{
|
|
231
|
-
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
232
|
-
this.$dispatch('cancel')
|
|
233
|
-
})
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
231
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
232
|
+
if(row.id){
|
|
233
|
+
var id = row.id
|
|
234
|
+
let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state in ('正常','待开通')`}},{resolveMsg: null, rejectMsg: null})
|
|
235
|
+
let isdelete = await this.$resetpost('rs/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
|
|
236
|
+
if(userfiles.data.length){
|
|
237
|
+
this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
|
|
238
|
+
return
|
|
239
|
+
}
|
|
240
|
+
if(isdelete.data.length){
|
|
241
|
+
this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
|
|
242
|
+
return
|
|
246
243
|
}
|
|
244
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
245
|
+
this.$dispatch('cancel')
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
},
|
|
247
249
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
search () {
|
|
251
|
+
this.$refs.paged.$refs.cri.search()
|
|
252
|
+
},
|
|
251
253
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
this.f_filialeids = val[0]
|
|
254
|
+
selfSearch (args) {
|
|
255
|
+
debugger
|
|
256
|
+
//去除空格
|
|
257
|
+
for(let key in args.model){
|
|
258
|
+
if(args.model[key] instanceof String){
|
|
259
|
+
args.model[key] = args.model[key].trim();
|
|
259
260
|
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
console.log("filepath="+JSON.stringify(data))
|
|
269
|
-
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
270
|
-
if(res.data.type=="success"){
|
|
271
|
-
this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
|
|
272
|
-
}else{
|
|
273
|
-
this.$showMessage(res.data.msg);
|
|
274
|
-
}
|
|
261
|
+
}
|
|
262
|
+
if (!this.f_orgid) {
|
|
263
|
+
this.getorg([this.$login.f.orgid])
|
|
264
|
+
}
|
|
265
|
+
console.log("xxx"+this.f_filialeids)
|
|
266
|
+
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
267
|
+
this.model.search(args.condition, args.model)
|
|
268
|
+
},
|
|
275
269
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
270
|
+
//清空
|
|
271
|
+
clear(){
|
|
272
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
273
|
+
},
|
|
274
|
+
getorg (val) {
|
|
275
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
276
|
+
if (!this.f_orgid) {
|
|
277
|
+
this.f_orgid = this.f_filialeids
|
|
278
|
+
}
|
|
279
|
+
this.f_filialeids = val[0]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
events: {
|
|
283
|
+
onFileUpload: async function (file, res) {
|
|
284
|
+
this.$showAlert('文件上传成功','success',1000);
|
|
285
|
+
this.iswork = true
|
|
286
|
+
console.log("上传完毕"+JSON.stringify(res))
|
|
287
|
+
let data = {
|
|
288
|
+
filepath: res.f_downloadpath,
|
|
289
|
+
user:this.$login.f
|
|
290
|
+
}
|
|
291
|
+
this.closeFile();
|
|
292
|
+
try{
|
|
293
|
+
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
294
|
+
this.$showAlert("导入成功",'success', 2000);
|
|
295
|
+
this.iswork = false
|
|
279
296
|
this.init()
|
|
280
297
|
})
|
|
281
|
-
}
|
|
282
|
-
'onFileError'(error) {
|
|
283
|
-
this.$showAlert(error, 'warning', 2000)
|
|
298
|
+
}catch(e){
|
|
284
299
|
}
|
|
300
|
+
},
|
|
301
|
+
'onFileError'(error) {
|
|
302
|
+
this.$showAlert(error, 'warning', 2000)
|
|
285
303
|
}
|
|
304
|
+
}
|
|
286
305
|
|
|
287
306
|
}
|
|
288
307
|
</script>
|
|
@@ -38,6 +38,16 @@
|
|
|
38
38
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_street"
|
|
39
39
|
condition="f_street like '%{}%'" placeholder="街道"/>
|
|
40
40
|
</div>
|
|
41
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
|
|
42
|
+
<label class="font_normal_body">户数大于</label>
|
|
43
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.areacount"
|
|
44
|
+
condition="isnull(resi.areacount,0) >= '{}'" placeholder="使用人数大于等于"/>
|
|
45
|
+
</div>
|
|
46
|
+
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.areaShow">
|
|
47
|
+
<label class="font_normal_body">户数小于</label>
|
|
48
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.areacount_end"
|
|
49
|
+
condition="isnull(resi.areacount,0) <='{}'" placeholder="使用人数小于等于"/>
|
|
50
|
+
</div>
|
|
41
51
|
<div class="col-sm-4 form-group button-range">
|
|
42
52
|
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
43
53
|
<button v-if="!$parent.$parent.f_special" class="button_new button_spacing" style="width: max-content;" @click="$parent.$parent.add('小区')">添加小区</button>
|
|
@@ -97,6 +107,8 @@
|
|
|
97
107
|
<th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
|
|
98
108
|
<!--非民用单位信息结束-->
|
|
99
109
|
<th><nobr>片区/管理站 </nobr></th>
|
|
110
|
+
<th><nobr>使用人数 </nobr></th>
|
|
111
|
+
<th><nobr>关联地址 </nobr></th>
|
|
100
112
|
<th><nobr>操作人</nobr></th>
|
|
101
113
|
<th><nobr>操作日期</nobr></th>
|
|
102
114
|
<th><nobr>操作</nobr></th>
|
|
@@ -118,12 +130,14 @@
|
|
|
118
130
|
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
|
|
119
131
|
<!--非民用单位信息结束-->
|
|
120
132
|
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
133
|
+
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.id,row.f_residential_area)" class="btn btn-link">{{row.areacount}}</button></td>
|
|
134
|
+
<td style="text-align:center"><nobr>{{row.addresscount}}</nobr></td>
|
|
121
135
|
<td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
|
|
122
136
|
<td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
123
137
|
<td><nobr>
|
|
124
138
|
<!--<button type="button" name="button" class="btn btn-link"
|
|
125
139
|
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
126
|
-
<button type="button" name="button" class="btn btn-link"
|
|
140
|
+
<button type="button" name="button" class="btn btn-link" v-if="row.areacount===0"
|
|
127
141
|
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
128
142
|
</nobr></td>
|
|
129
143
|
</tr>
|
|
@@ -168,6 +182,12 @@
|
|
|
168
182
|
this.search()
|
|
169
183
|
},
|
|
170
184
|
methods: {
|
|
185
|
+
operate (f_residential_area_id,f_residential_area) {
|
|
186
|
+
this.$parent.areaShow = false;
|
|
187
|
+
this.$parent.usershow=true
|
|
188
|
+
this.$parent.f_residential_area_id=f_residential_area_id
|
|
189
|
+
this.$parent.f_residential_area=f_residential_area
|
|
190
|
+
},
|
|
171
191
|
hidden() {
|
|
172
192
|
this.criteriaShow = !this.criteriaShow
|
|
173
193
|
},
|
|
@@ -207,7 +227,8 @@
|
|
|
207
227
|
this.$dispatch('modify',val)
|
|
208
228
|
},
|
|
209
229
|
selfSearch (args) {
|
|
210
|
-
|
|
230
|
+
this.$parent.usershow = false;
|
|
231
|
+
this.$parent.areaShow = false;
|
|
211
232
|
if (!this.f_orgid) {
|
|
212
233
|
this.getorg([this.$login.f.orgid])
|
|
213
234
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="unit" class="flex-row" :class="{'binary':areaShow}">
|
|
3
|
-
<div :class="{'basic-main':!areaShow,'binary-left':areaShow}">
|
|
3
|
+
<div :class="{'basic-main':!areaShow && !usershow,'binary-left':areaShow|| usershow}">
|
|
4
4
|
<area-list @select-changed="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
|
|
5
5
|
</div>
|
|
6
|
+
<div class="binary-right" v-if="usershow" style="width: 60%">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<area-user :f_residential_area_id="f_residential_area_id" :f_filialeid="f_filialeids" :f_residential_area="f_residential_area"></area-user>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
6
11
|
<div v-show="areaShow" style="width: 60%" class="binary-right">
|
|
7
12
|
<div class="flex">
|
|
8
13
|
<add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
|
|
@@ -21,10 +26,14 @@
|
|
|
21
26
|
return {
|
|
22
27
|
//分公司id串
|
|
23
28
|
width:'100%',
|
|
24
|
-
f_filialeids: this.$login.f.
|
|
29
|
+
f_filialeids: this.$login.f.orgid,
|
|
25
30
|
areaShow:false,
|
|
26
31
|
areatype:'小区',
|
|
32
|
+
f_filialeid:this.$login.f.orgid,
|
|
27
33
|
arearow:{},
|
|
34
|
+
usershow:false,
|
|
35
|
+
f_residential_area_id:'',
|
|
36
|
+
f_residential_area:'',
|
|
28
37
|
style:'col-sm-2 form-group'
|
|
29
38
|
}
|
|
30
39
|
},
|
|
@@ -37,6 +46,7 @@
|
|
|
37
46
|
methods:{
|
|
38
47
|
selected(obj){
|
|
39
48
|
this.style='col-sm-3 form-group'
|
|
49
|
+
this.usershow =false
|
|
40
50
|
if(obj.val&&obj.val.id){
|
|
41
51
|
console.log('对比分公司', obj.val.f_filialeid, this.f_filialeids)
|
|
42
52
|
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
@@ -58,6 +68,7 @@
|
|
|
58
68
|
}
|
|
59
69
|
},
|
|
60
70
|
refresh() {
|
|
71
|
+
this.usershow =false
|
|
61
72
|
this.areaShow = false
|
|
62
73
|
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
63
74
|
}
|
|
@@ -66,6 +77,7 @@
|
|
|
66
77
|
'add'(){
|
|
67
78
|
this.style='col-sm-3 form-group'
|
|
68
79
|
this.areaShow=true
|
|
80
|
+
this.usershow =false
|
|
69
81
|
this.$refs.addareamsg.cleardara()
|
|
70
82
|
this.$refs.addareamsg.operation='add'
|
|
71
83
|
this.$refs.addareamsg.areatype='小区'
|
|
@@ -74,12 +86,14 @@
|
|
|
74
86
|
'confirm' () {
|
|
75
87
|
this.style='col-sm-2 form-group'
|
|
76
88
|
this.areaShow = false
|
|
89
|
+
this.usershow =false
|
|
77
90
|
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
78
91
|
},
|
|
79
92
|
'cancel' () {
|
|
80
93
|
this.style='col-sm-2 form-group'
|
|
81
94
|
this.$refs.arealist.$refs.paged.$refs.cri.search()
|
|
82
95
|
this.areaShow = false
|
|
96
|
+
this.usershow =false
|
|
83
97
|
}
|
|
84
98
|
}
|
|
85
99
|
}
|