address-client 3.2.74 → 3.2.75
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex" @keyup.enter="search">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
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
|
<div class="row">
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>片区/管理站</nobr></th>
|
|
144
144
|
<th><nobr>街道/乡镇</nobr></th>
|
|
145
145
|
<th><nobr>小区(单位)</nobr></th>
|
|
146
|
-
<th><
|
|
146
|
+
<th><data-order field="f_address" name="详细地址"></data-order></th>
|
|
147
147
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>楼号</nobr></th>
|
|
148
148
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>单元</nobr></th>
|
|
149
149
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>楼层</nobr></th>
|
|
@@ -284,6 +284,11 @@
|
|
|
284
284
|
isbusy:false,
|
|
285
285
|
addflag: false,
|
|
286
286
|
addtitle:'',
|
|
287
|
+
// 排序
|
|
288
|
+
orderitem: 'f_operate_date desc',
|
|
289
|
+
orderFields: {
|
|
290
|
+
f_operate_date: 'no'
|
|
291
|
+
},
|
|
287
292
|
other: [],
|
|
288
293
|
footer: [],
|
|
289
294
|
getfield: {},
|
|
@@ -333,6 +338,25 @@
|
|
|
333
338
|
//this.$refs.paged.$refs.grid.selectInit()
|
|
334
339
|
},
|
|
335
340
|
methods: {
|
|
341
|
+
|
|
342
|
+
sort (field, rule) {
|
|
343
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
344
|
+
for (let key in this.orderFields) {
|
|
345
|
+
if (key === field) {
|
|
346
|
+
this.orderFields[key] = rule
|
|
347
|
+
} else {
|
|
348
|
+
this.orderFields[key] = 'no'
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// 如果新规则不排序,还原为默认排序
|
|
352
|
+
if (rule === 'no') {
|
|
353
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
354
|
+
} else {
|
|
355
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
this.search()
|
|
359
|
+
},
|
|
336
360
|
downloadFiles(){
|
|
337
361
|
let downurl='rs/downloadfile/file?filename=地址导入Excel模板';
|
|
338
362
|
this.$resetget(downurl,{}).then(res=>{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex" @keyup.enter="search">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged @sort="sort">
|
|
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
|
<div class="row">
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
|
|
129
129
|
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>片区/管理站 </nobr></th>
|
|
130
130
|
<th><nobr>操作人</nobr></th>
|
|
131
|
-
<th><
|
|
131
|
+
<th><data-order field="f_operate_date" name="操作日期"></data-order></th>
|
|
132
132
|
<th title="该小区下现有的地址数"><nobr>地址数</nobr></th>
|
|
133
133
|
<th><nobr>操作</nobr></th>
|
|
134
134
|
</template>
|
|
@@ -211,7 +211,12 @@
|
|
|
211
211
|
f_slice_area: '',
|
|
212
212
|
f_residential_area: ''
|
|
213
213
|
},
|
|
214
|
-
model: new PagedList('rs/sql/address_getarealist',20),
|
|
214
|
+
model: new PagedList('rs/sql/address_getarealist',20, {orderitem: '"f_operate_date DESC"'}),
|
|
215
|
+
// 排序
|
|
216
|
+
orderitem: 'f_operate_date desc',
|
|
217
|
+
orderFields: {
|
|
218
|
+
f_operate_date: 'no'
|
|
219
|
+
},
|
|
215
220
|
addflag: false,
|
|
216
221
|
addtitle:'',
|
|
217
222
|
getfield: {},
|
|
@@ -266,6 +271,24 @@
|
|
|
266
271
|
this.$refs.paged.$refs.cri.search()
|
|
267
272
|
},
|
|
268
273
|
|
|
274
|
+
sort (field, rule) {
|
|
275
|
+
// 将所有排序方式设为不排序,实现相互排斥
|
|
276
|
+
for (let key in this.orderFields) {
|
|
277
|
+
if (key === field) {
|
|
278
|
+
this.orderFields[key] = rule
|
|
279
|
+
} else {
|
|
280
|
+
this.orderFields[key] = 'no'
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
// 如果新规则不排序,还原为默认排序
|
|
284
|
+
if (rule === 'no') {
|
|
285
|
+
this.model.paramSource.orderitem = `'${this.orderitem}'`
|
|
286
|
+
} else {
|
|
287
|
+
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
this.search()
|
|
291
|
+
},
|
|
269
292
|
async delete(row){
|
|
270
293
|
if(row.id >= 0){
|
|
271
294
|
var id = row.id
|