ソースを参照

refactor(system): 优化 API 用户管理页面代码

- 删除未使用的注释代码
- 统一注释格式,使用双破折号 (--) 替代单破折号 (-)
- 移除页面顶部的多余注释
fugui001 5 ヶ月 前
コミット
ff1f8e9f8e
1 ファイル変更7 行追加9 行削除
  1. 7 9
      src/views/system/business/apiUsers/index.vue

+ 7 - 9
src/views/system/business/apiUsers/index.vue

@@ -1,4 +1,3 @@
-<!--
 <template>
   <div class="p-2">
     <transition :enter-active-class="proxy?.animate.searchAnimate.enter" :leave-active-class="proxy?.animate.searchAnimate.leave">
@@ -37,7 +36,7 @@
     </transition>
 
     <el-card shadow="never">
-      &lt;!&ndash;      <template #header>
+      <!--      <template #header>
         <el-row :gutter="10" class="mb8">
           &lt;!&ndash;          <el-col :span="1.5">
             <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['business:user:add']">新增</el-button>
@@ -57,10 +56,10 @@
           </el-col>&ndash;&gt;
           <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
         </el-row>
-      </template>&ndash;&gt;
+      </template>-->
 
       <el-table v-loading="loading" border :data="userList" @selection-change="handleSelectionChange">
-        &lt;!&ndash;        <el-table-column type="selection" width="55" align="center" />&ndash;&gt;
+        <!--        <el-table-column type="selection" width="55" align="center" />-->
         <el-table-column label="用户id" align="center" prop="id" v-if="true" />
         <el-table-column label="登录名称" align="center" prop="loginName" />
         <el-table-column label="用户姓名" align="center" prop="realName" />
@@ -88,7 +87,7 @@
               <el-button link type="primary" icon="View" @click="handleUpdate(scope.row)" v-hasPermi="['business:user:edit']"></el-button>
             </el-tooltip>
 
-            &lt;!&ndash; 禁用/启用 按钮 &ndash;&gt;
+            <!-- 禁用/启用 按钮 -->
             <el-tooltip :content="scope.row.status === 1 ? '禁用' : '启用'" placement="top">
               <el-button
                 link
@@ -113,7 +112,7 @@
       <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
     </el-card>
 
-    &lt;!&ndash; 查看用户详情对话框 &ndash;&gt;
+    <!-- 查看用户详情对话框 -->
     <el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body>
       <el-form ref="userFormRef" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="用户ID" prop="id">
@@ -150,13 +149,13 @@
       </el-form>
       <template #footer>
         <div class="dialog-footer">
-          &lt;!&ndash;          <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>&ndash;&gt;
+          <!--          <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>-->
           <el-button @click="cancel">取 消</el-button>
         </div>
       </template>
     </el-dialog>
 
-    &lt;!&ndash; 编辑用户对话框 &ndash;&gt;
+    <!-- 编辑用户对话框 -->
     <el-dialog :title="editDialog.title" v-model="editDialog.visible" width="500px" append-to-body>
       <el-form ref="editUserFormRef" :model="editForm" :rules="rules2" label-width="80px">
         <el-form-item label="用户ID" prop="id" v-show="false">
@@ -440,4 +439,3 @@ onMounted(() => {
   getList();
 });
 </script>
--->