sqg 4 lat temu
rodzic
commit
c19f59e92f
1 zmienionych plików z 12 dodań i 1 usunięć
  1. 12 1
      front-vue/src/views/system/user/index.vue

+ 12 - 1
front-vue/src/views/system/user/index.vue

@@ -203,6 +203,14 @@
             label="状态"
             align="center"
             prop="state"
+            :show-overflow-tooltip="true"
+            :formatter="stateFormat"
+            v-if="uncheckList.state"
+          />
+          <!-- <el-table-column
+            label="状态"
+            align="center"
+            prop="state"
             v-if="uncheckList.state"
           >
             <template slot-scope="scope">
@@ -213,7 +221,7 @@
                 @change="handleStatusChange(scope.row)"
               ></el-switch>
             </template>
-          </el-table-column>
+          </el-table-column> -->
           <el-table-column
             label="创建时间"
             align="center"
@@ -852,6 +860,9 @@ export default {
         this.signCompanyId = response.data.companyId;
       });
     },
+    stateFormat(row, column) {
+      return this.selectDictLabel(this.statusOptions, row.status);
+    },
     //根据企业id查询部门和角色信息
     getRodept(item) {
       if (item) {