address-client 3.2.9 → 3.2.13

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,7 +1,7 @@
1
1
  <template>
2
2
  <div class="flex" @keyup.enter="search">
3
3
  <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' @sort="sort()" v-ref:cri>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
7
  <div class="form-group" :class="{'col-sm-3':$parent.$parent.$parent.areaShow,'col-sm-2':!$parent.$parent.$parent.areaShow}">
@@ -72,9 +72,11 @@
72
72
  <th><nobr>城市</nobr></th>
73
73
  <th><nobr>区/县</nobr></th>
74
74
  <th><nobr>街道/乡镇</nobr></th>
75
- <th><nobr>地区类型</nobr></th>
75
+ <th><data-order field="f_iscity" name="地区类型"
76
+ :order.sync="$parent.$parent.$parent.$parent.orderFields.f_iscity"></data-order></th>
76
77
  <th><nobr>街道编号</nobr></th>
77
- <th><nobr>详细地址</nobr></th>
78
+ <th><data-order field="f_address" name="详细地址"
79
+ :order.sync="$parent.$parent.$parent.$parent.orderFields.f_address"></data-order></th>
78
80
  <th><nobr>分公司</nobr></th>
79
81
  <th title="该街道下现有的小区数"><nobr>小区数量</nobr></th>
80
82
  <th><nobr>操作</nobr></th>
@@ -116,9 +118,11 @@
116
118
  data () {
117
119
  return {
118
120
  criteriaShow: false,
119
- model: new PagedList('rs/sql/address_getstreetlist',20),
121
+ model: new PagedList('rs/sql/address_getstreetlist',20,{orderitem: this.orderitem?'"' + this.orderitem + ' "':`'id desc'`}),
120
122
  addflag: false,
121
123
  getfield: {},
124
+ //排序
125
+ orderitem:'id desc',
122
126
  addtitle:'',
123
127
  // 公司下拉
124
128
  curorgid: [this.$login.f.orgid],
@@ -133,7 +137,10 @@
133
137
  'f_org_name':'分公司',
134
138
  'streenum':'小区数量'
135
139
  }
136
- }
140
+ },
141
+ orderFields: {
142
+ f_operate_date: 'no'
143
+ },
137
144
  }
138
145
  },
139
146
  title: '街道管理',
@@ -203,8 +210,31 @@
203
210
  computed: {
204
211
  getCondition() {
205
212
  return {
206
- condition: `${this.$refs.paged.$refs.cri.condition}` + `and s.f_filialeid = '${this.f_filialeids}'`}
213
+ condition: `${this.$refs.paged.$refs.cri.condition}` + `and s.f_filialeid = '${this.f_filialeids}'`,
214
+ orderitem: this.orderitem?`${this.orderitem}`: " id desc"
215
+ }
207
216
  }
208
- }
217
+ },
218
+ events:{
219
+ 'sort' (field, rule) {
220
+ // 将所有排序方式设为不排序,实现相互排斥
221
+ console.log("field",field, rule)
222
+ for (let key in this.orderFields) {
223
+ if (key === field) {
224
+ this.orderFields[key] = rule
225
+ } else {
226
+ this.orderFields[key] = 'no'
227
+ }
228
+ }
229
+ // 如果新规则不排序,还原为默认排序
230
+ if (rule === 'no') {
231
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
232
+ } else {
233
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
234
+ }
235
+
236
+ this.search()
237
+ },
238
+ },
209
239
  }
210
240
  </script>
@@ -113,7 +113,8 @@
113
113
  <th v-if="$parent.$parent.$parent.f_special"><nobr>联系人</nobr></th>
114
114
  <th v-if="$parent.$parent.$parent.f_special"><nobr>联系电话</nobr></th>
115
115
  <!--非民用单位信息结束-->
116
- <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>安装位置</nobr></th>
116
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>通气时间</nobr></th>
117
+ <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>现有户数</nobr></th>
117
118
  <th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>片区/管理站 </nobr></th>
118
119
  <th><nobr>操作人</nobr></th>
119
120
  <th><nobr>操作日期</nobr></th>
@@ -132,7 +133,8 @@
132
133
  <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
133
134
  <td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkphone}}</nobr></td>
134
135
  <!--非民用单位信息结束-->
135
- <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_position}}</nobr></td>
136
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.gasdate}}</nobr></td>
137
+ <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.addressnum}}</nobr></td>
136
138
  <td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
137
139
  <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
138
140
  <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>