address-client 3.2.74 → 3.2.76
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 +1 -1
- package/src/filiale/shanxian/AddressList.vue +658 -634
- package/src/filiale/shanxian/AreaList.vue +26 -3
- package/src/main.js +1 -1
|
@@ -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
|