瀏覽代碼

个人账户禁用启用

Xiao_123 6 月之前
父節點
當前提交
496f6a3cd5
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/menduner/system/madUser/index.vue

+ 3 - 2
src/views/menduner/system/madUser/index.vue

@@ -134,7 +134,7 @@
           >
             删除
           </el-button>
-          <!-- <el-button
+          <el-button
             v-if="scope.row.status === '1'"
             link
             type="primary"
@@ -149,7 +149,7 @@
             @click="handleAction(scope.row.id, 'disabled')"
           >
             禁用
-          </el-button> -->
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -252,6 +252,7 @@ const handleExport = async () => {
   }
 }
 
+// 账户禁用、启用
 const handleAction = async (id: number, type: string) => {
   try {
     await message.confirm(`确认${type === 'disabled' ? '禁用' : '启用'}该账户吗?`)