Parcourir la source

feat(system): 添加注销状态显示和优化按钮布局

- 在apiUsers表格中新增注销状态列,显示正常、注销中、已注销三种状态
- 使用el-tag组件为不同注销状态设置对应的颜色标识
- 优化unsubscribeLog页面的按钮布局,移除多余的换行和缩进
- 保持解除注销按钮的功能不变,仅调整代码格式
fugui001 il y a 3 semaines
Parent
commit
6e70d54a91

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

@@ -104,7 +104,13 @@
         <el-table-column label="门票数" align="center" prop="itemsQuantity" />
         <el-table-column label="比赛数" align="center" prop="tournamentCount" />
         <el-table-column label="账号状态" align="center" prop="statusText" />
-
+        <el-table-column label="注销状态" align="center" prop="deactivateStatus">
+          <template #default="scope">
+            <el-tag v-if="scope.row.deactivateStatus === 0" type="success">正常</el-tag>
+            <el-tag v-else-if="scope.row.deactivateStatus === 1" type="warning">注销中</el-tag>
+            <el-tag v-else type="danger">已注销</el-tag>
+          </template>
+        </el-table-column>
         <el-table-column label="操作" align="center" width="550" class-name="small-padding fixed-width">
           <template #default="scope">
             <div class="action-container">

+ 1 - 3
src/views/system/physical/unsubscribeLog/index.vue

@@ -71,9 +71,7 @@
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
           <template #default="scope">
             <el-tooltip v-if="scope.row.operationType === 'unsubscribe'" content="解除注销" placement="top">
-              <el-button link type="primary" icon="Edit" @click="removeUnsubscribe2(scope.row)"
-                >解除注销</el-button
-              >
+              <el-button link type="primary" icon="Edit" @click="removeUnsubscribe2(scope.row)">解除注销</el-button>
             </el-tooltip>
             <!--
             <el-tooltip content="删除" placement="top">