阿拉蕾 1 year ago
parent
commit
e1acb76538
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/views/qw/qwAccounts/index.vue

+ 11 - 1
src/views/qw/qwAccounts/index.vue

@@ -36,6 +36,11 @@
               <el-tag prop="isAudit" v-for="(item, index) in isAuditOptions"  :type="scope.row.isAudit==-1?'danger':'success'"  v-if="scope.row.isAudit==item.dictValue">{{item.dictLabel}}</el-tag>
           </template>
       </el-table-column>
+      <el-table-column label="在线状态" align="center" prop="authCheck" >
+          <template slot-scope="scope">
+              <el-tag prop="authCheck" v-for="(item, index) in authCheckOptions"  :type="scope.row.authCheck==0?'danger':'success'"  v-if="scope.row.authCheck==item.dictValue">{{item.dictLabel}}</el-tag>
+          </template>
+      </el-table-column>
       <el-table-column label="关联设备id" align="center" prop="deviceId" />
       <el-table-column label="创建时间" align="center" prop="createTime" />
       <el-table-column label="设备是否可用" align="center" prop="availableDevice" >
@@ -47,7 +52,7 @@
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
-            v-if="scope.row.availableDevice >= -1"
+            v-if="scope.row.availableDevice == -1"
             size="mini"
             type="text"
             icon="el-icon-edit"
@@ -57,6 +62,7 @@
             size="mini"
             type="text"
             icon="el-icon-offline"
+            v-if="scope.row.authCheck == 1"
             @click="handleOffLine(scope.row)"
           >强制下线</el-button>
         </template>
@@ -116,6 +122,7 @@ export default {
       accountList: [],
       isAuditOptions:[],
       availableOptions:[],
+      authCheckOptions:[],
       // 弹出层标题
       title: "",
       // 是否显示弹出层
@@ -166,6 +173,9 @@ export default {
     this.getDicts("qw_device_status").then((response) => {
       this.availableOptions = response.data;
     });
+    this.getDicts("qw_login_status").then((response) => {
+      this.authCheckOptions = response.data;
+    });
   },
   methods: {
     /** 查询企微功能账号管理列表 */