修复补号bug

This commit is contained in:
扫地僧 2026-04-29 18:54:02 +08:00
parent bbecc5650d
commit e776179c72
4 changed files with 60 additions and 6 deletions

View File

@ -183,7 +183,17 @@ const asideTextColor = ref("#bfcbd9");
const activeColor = ref("#3973FF");
const activeBgColor = ref("#3973FF");
const isMobile = ref(false);
const mobileOpen = computed(() => isMobile.value && !isCollapse.value);
const currentModuleId = ref(null);
const closeMobile = () => {
if (isMobile.value) {
store.state.isCollapse = true;
}
};
const updateDeviceType = () => {
isMobile.value = window.innerWidth <= 768;
//

View File

@ -1,5 +1,5 @@
<script setup>
import { computed, onMounted, reactive, ref, watch } from "vue";
import { computed, onMounted, onUnmounted, reactive, ref, watch } from "vue";
import { ElMessage } from "element-plus";
import Edit from "./components/edit.vue";
import DetailDialog from "./components/detail.vue";
@ -475,6 +475,7 @@ function copyCardInfo(row) {
<div class="toolbar-right">
<el-button type="primary" @click="openAddDialog('single')">添加账号</el-button>
<el-button type="success" @click="openAddDialog('batch')">批量添加</el-button>
<el-button type="warning" @click="replenishVisible = true">补号</el-button>
<el-button @click="markExtractForSelected">批量标记提取</el-button>
<el-button @click="apiDocVisible = true">接口说明</el-button>
</div>
@ -591,6 +592,19 @@ function copyCardInfo(row) {
@confirm="handleExtract"
/>
<ReplenishDialog
v-model="replenishVisible"
:loading="loading"
:type="replenishForm.type"
:platform="replenishForm.platform"
:remark="replenishForm.remark"
:platform-map="PLATFORM_MAP"
@update:type="(v) => (replenishForm.type = v)"
@update:platform="(v) => (replenishForm.platform = v)"
@update:remark="(v) => (replenishForm.remark = v)"
@confirm="handleReplenish"
/>
<!-- 接口说明抽屉 -->
<el-drawer
v-model="apiDocVisible"

View File

@ -433,6 +433,7 @@ function copyCardInfo(row) {
<div class="toolbar-right">
<el-button type="primary" @click="openAddDialog('single')">添加账号</el-button>
<el-button type="success" @click="openAddDialog('batch')">批量添加</el-button>
<el-button type="warning" @click="replenishVisible = true">补号</el-button>
<el-button @click="markExtractForSelected">批量标记提取</el-button>
<el-button @click="apiDocVisible = true">接口说明</el-button>
</div>
@ -447,7 +448,8 @@ function copyCardInfo(row) {
/>
</el-tabs>
<el-table :data="pagedList" border stripe style="width: 100%" :loading="loading" @selection-change="handleSelectionChange">
<div class="table-scroll">
<el-table :data="pagedList" border stripe style="width: 100%" :loading="loading" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="52" />
<el-table-column prop="id" label="ID" width="80" />
<el-table-column label="账号类型" width="160" align="center">
@ -538,6 +540,19 @@ function copyCardInfo(row) {
@confirm="handleExtract"
/>
<ReplenishDialog
v-model="replenishVisible"
:loading="loading"
:type="replenishForm.type"
:platform="replenishForm.platform"
:remark="replenishForm.remark"
:platform-map="PLATFORM_MAP"
@update:type="(v) => (replenishForm.type = v)"
@update:platform="(v) => (replenishForm.platform = v)"
@update:remark="(v) => (replenishForm.remark = v)"
@confirm="handleReplenish"
/>
<!-- 接口说明抽屉 -->
<el-drawer
v-model="apiDocVisible"

View File

@ -432,6 +432,7 @@ function copyCardInfo(row) {
<div class="toolbar-right">
<el-button type="primary" @click="openAddDialog('single')">添加账号</el-button>
<el-button type="success" @click="openAddDialog('batch')">批量添加</el-button>
<el-button type="warning" @click="replenishVisible = true">补号</el-button>
<el-button @click="markExtractForSelected">批量标记提取</el-button>
<el-button @click="apiDocVisible = true">接口说明</el-button>
</div>
@ -446,7 +447,8 @@ function copyCardInfo(row) {
/>
</el-tabs>
<el-table :data="pagedList" border stripe style="width: 100%" :loading="loading" @selection-change="handleSelectionChange">
<div class="table-scroll">
<el-table :data="pagedList" border stripe style="width: 100%" :loading="loading" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="52" />
<el-table-column prop="id" label="ID" width="80" />
<el-table-column label="账号类型" width="160" align="center">
@ -537,6 +539,19 @@ function copyCardInfo(row) {
@confirm="handleExtract"
/>
<ReplenishDialog
v-model="replenishVisible"
:loading="loading"
:type="replenishForm.type"
:platform="replenishForm.platform"
:remark="replenishForm.remark"
:platform-map="PLATFORM_MAP"
@update:type="(v) => (replenishForm.type = v)"
@update:platform="(v) => (replenishForm.platform = v)"
@update:remark="(v) => (replenishForm.remark = v)"
@confirm="handleReplenish"
/>
<!-- 接口说明抽屉 -->
<el-drawer
v-model="apiDocVisible"