address-client 1.6.80 → 1.6.83
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
|
@@ -898,8 +898,8 @@ export default {
|
|
|
898
898
|
this.areamodel.twoalarm = 10
|
|
899
899
|
if (this.areamodel.default_devices.length === 0 && !this.f_special) this.areamodel.default_devices = ['灶具', '热水器']
|
|
900
900
|
} else if (this.areamodel.f_price_name.indexOf('锅炉') > -1) {
|
|
901
|
-
this.areamodel.onealarm =
|
|
902
|
-
this.areamodel.twoalarm =
|
|
901
|
+
this.areamodel.onealarm = 20
|
|
902
|
+
this.areamodel.twoalarm = 10
|
|
903
903
|
if (this.areamodel.default_devices.length === 0 && !this.f_special) this.areamodel.default_devices = ['灶具', '壁挂锅炉']
|
|
904
904
|
}
|
|
905
905
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="stand-work-list" class="datapanel flex bg-white p-10">
|
|
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.search' v-ref:cri>
|
|
5
5
|
<div novalidate class="form-inline auto" partial>
|
|
6
6
|
<!-- <div class="form-group form-input-group" v-if="$parent.$parent.f_special">
|
|
@@ -77,7 +77,11 @@
|
|
|
77
77
|
<th><nobr>区/县</nobr></th>
|
|
78
78
|
<th><nobr>街道名称</nobr></th>
|
|
79
79
|
<!--民用小区信息开始-->
|
|
80
|
-
<th v-if="!$parent.$parent.$parent.f_special"
|
|
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>
|
|
81
85
|
<th v-if="!$parent.$parent.$parent.f_special"><nobr>小区名称</nobr></th>
|
|
82
86
|
<th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
|
|
83
87
|
<!--民用小区信息结束-->
|
|
@@ -134,11 +138,14 @@
|
|
|
134
138
|
export default {
|
|
135
139
|
data () {
|
|
136
140
|
return {
|
|
137
|
-
model: new PagedList('rs/sql/address_getarealist',20),
|
|
141
|
+
model: new PagedList('rs/sql/address_getarealist',20,{orderitem:`' oldid asc '`}),
|
|
138
142
|
userid: this.$login.f.id,
|
|
139
143
|
source:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`,
|
|
140
144
|
addflag: false,
|
|
141
|
-
addtitle:''
|
|
145
|
+
addtitle:'',
|
|
146
|
+
orderFields: {
|
|
147
|
+
oldid:'asc'
|
|
148
|
+
}
|
|
142
149
|
}
|
|
143
150
|
},
|
|
144
151
|
title: '小区管理',
|
|
@@ -170,6 +177,26 @@
|
|
|
170
177
|
}
|
|
171
178
|
}
|
|
172
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
|
+
},
|
|
173
200
|
add(val){
|
|
174
201
|
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
175
202
|
this.$dispatch('add')
|