|
@@ -53,6 +53,12 @@
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdateDevice(scope.row)"
|
|
|
>更新设备</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-offline"
|
|
|
+ @click="handleOffLine(scope.row)"
|
|
|
+ >强制下线</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -85,8 +91,9 @@
|
|
|
|
|
|
<script>
|
|
|
import { listAccount, getAccount, delAccount, addAccount, auditAccount, exportAccount,updateDevice } from "@/api/qw/account";
|
|
|
-// import { getCompanyList } from "@/api/company/company";
|
|
|
+import { qwLoginOut } from "@/api/qw/login";
|
|
|
|
|
|
+import store from "@/store";
|
|
|
export default {
|
|
|
name: "Account",
|
|
|
data() {
|
|
@@ -232,6 +239,14 @@ export default {
|
|
|
this.title = "账号审核";
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ qwLoginOut(deviceId) {
|
|
|
+ qwLoginOut(deviceId).then(response => {
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
@@ -274,6 +289,19 @@ export default {
|
|
|
this.msgSuccess("变更成功");
|
|
|
}).catch(function() {});
|
|
|
},
|
|
|
+ handleOffLine(row){
|
|
|
+ const id = row.id || this.ids
|
|
|
+ this.$confirm('确定强制下线吗?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ qwLoginOut(row.deviceId);
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ }).catch(function() {});
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|