Commit 2db64978 by xue_wengang

移动设备管理

parent 8d076be3
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
@click="rowOperation(row,index,operations.option)" @click="rowOperation(row,index,operations.option)"
:style="{color:operations.color}" :style="{color:operations.color}"
size="mini" size="mini"
v-if="operations.label == '设备远程控制'" v-else-if="operations.label == '设备远程控制'"
>{{ row.sbzt=='2' ? '取消设备远程控制' : operations.label }}</el-button> >{{ row.sbzt=='2' ? '取消设备远程控制' : operations.label }}</el-button>
<el-button :icon="operations.icon" <el-button :icon="operations.icon"
:type="operations.type" :type="operations.type"
......
...@@ -541,14 +541,25 @@ export default { ...@@ -541,14 +541,25 @@ export default {
}); });
} else if (index == 3) { } else if (index == 3) {
let self = this; let self = this;
self if(row.sbzt=='2'){
.doQueryRequest({ sfzh: row.bdidcard }, "/aapydgl/ycsbkz") self
.then((res) => { .doQueryRequest({ sfzh: row.bdidcard }, "/aapydgl/qxYcsbkz")
if (res.code == 200) { .then((res) => {
self.$message.success("设备远程控制成功"); if (res.code == 200) {
this.getList(); self.$message.success("取消设备远程控制成功");
} this.getList();
}); }
});
}else{
self
.doQueryRequest({ sfzh: row.bdidcard }, "/aapydgl/ycsbkz")
.then((res) => {
if (res.code == 200) {
self.$message.success("设备远程控制成功");
this.getList();
}
});
}
} else if (index == 4) { } else if (index == 4) {
this.yysq(row.bdidcard); this.yysq(row.bdidcard);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment