|
|
@@ -84,34 +84,33 @@
|
|
|
sortable="custom"
|
|
|
width="180"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="isOnline"
|
|
|
- sort-by="is_online"
|
|
|
- label="运行状态"
|
|
|
- sortable="custom"
|
|
|
- width="180"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <el-table-column prop="isOnline" label="在线状态" width="100">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span v-if="row.isOnline" style="color:green;">在线</span>
|
|
|
+ <span v-else>不在线</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column
|
|
|
prop="sos1"
|
|
|
sort-by="sos1"
|
|
|
- label="紧急联系人号码"
|
|
|
+ label="紧急联系人1号码"
|
|
|
sortable="custom"
|
|
|
width="180"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="sos2"
|
|
|
sort-by="sos2"
|
|
|
- label="紧急联系人号码"
|
|
|
+ label="紧急联系人2号码"
|
|
|
sortable="custom"
|
|
|
width="180"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
prop="sos3"
|
|
|
sort-by="sos3"
|
|
|
- label="紧急联系人号码"
|
|
|
+ label="紧急联系人3号码"
|
|
|
sortable="custom"
|
|
|
width="180"
|
|
|
- ></el-table-column>
|
|
|
+ ></el-table-column> -->
|
|
|
<el-table-column
|
|
|
prop="stepSwitch"
|
|
|
sort-by="step_switch"
|
|
|
@@ -163,12 +162,9 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-button size="mini" type="warning" @click="handleEdit(row)"
|
|
|
- >编辑</el-button
|
|
|
- >
|
|
|
- <el-button size="mini" type="danger" @click="handleDelete(row)"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-link type="primary" :underline="false" @click="handleEdit(row)">编辑</el-link>-
|
|
|
+ <el-link type="primary" :underline="false" @click="handleRemoteConfig(row)" :disabled="!row.isOnline">同步</el-link>-
|
|
|
+ <el-link type="primary" :underline="false" @click="handleDelete(row)">删除</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -341,6 +337,27 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ handleRemoteConfig(row) {
|
|
|
+ var self = this;
|
|
|
+
|
|
|
+ baseWatchInfoApi.remoteConfig(row.id)
|
|
|
+ .then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "指令发送成功!"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ self.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: jsonData.message
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
onDetailModalClose(refreshed) {
|
|
|
//保存成功后回调
|
|
|
this.showModal = false;
|