|
@@ -12,6 +12,7 @@
|
12
|
12
|
<Option :value="2">离线设备</Option>
|
13
|
13
|
</Select>
|
14
|
14
|
<Select
|
|
15
|
+ v-if="searchForm.atype === 1"
|
15
|
16
|
v-model="searchForm.doEvent"
|
16
|
17
|
style="margin-right: 10px; width: 150px"
|
17
|
18
|
@on-change="searchList()"
|
|
@@ -159,16 +160,19 @@ export default {
|
159
|
160
|
},
|
160
|
161
|
// 获取列表
|
161
|
162
|
getList() {
|
162
|
|
- device_manager_list_od({
|
|
163
|
+ let form = {
|
163
|
164
|
rtype: this.powerParams.rtype,
|
164
|
165
|
objectid: this.powerParams.objectid,
|
165
|
166
|
page: this.searchForm.page,
|
166
|
167
|
size: this.searchForm.size,
|
167
|
168
|
schoolid: this.powerParams.objectid,
|
168
|
169
|
atype: this.searchForm.atype,
|
169
|
|
- doEvent: this.searchForm.doEvent,
|
170
|
170
|
name: this.searchForm.name
|
171
|
|
- }).then((data) => {
|
|
171
|
+ };
|
|
172
|
+ if (this.searchForm.atype === 1) {
|
|
173
|
+ form.doEvent = this.searchForm.doEvent;
|
|
174
|
+ }
|
|
175
|
+ device_manager_list_od(form).then((data) => {
|
172
|
176
|
if (data.code === 0) {
|
173
|
177
|
this.searchForm.list = data.obj.data;
|
174
|
178
|
this.searchForm.total = data.obj.total;
|