Browse Source

@
chore: QuotaList 移除调整金额/变更记录按钮
@

alphaH 7 hours ago
parent
commit
94e510498d

+ 0 - 36
frontend/src/views/module_payment/institution/components/QuotaList.vue

@@ -41,8 +41,6 @@
       <el-table-column label="操作" width="220" align="center" fixed="right">
         <template #default="scope">
           <el-button type="text" size="small" @click="handleDetail(scope.row)">详情</el-button>
-          <el-button v-if="scope.row.quota_id || scope.row.id" type="text" size="small" @click="handleAdjust(scope.row)">调整金额</el-button>
-          <el-button v-if="scope.row.quota_id || scope.row.id" type="text" size="small" @click="handleChanges(scope.row)">变更记录</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -61,19 +59,6 @@
     </div>
 
     <QuotaDetailDialog v-model:visible="detailVisible" :quota-id="currentQuotaId" />
-
-    <!-- 调整金额弹窗 -->
-    <AdjustAmountDialog
-      v-model:visible="adjustDialogVisible"
-      :quota-data="currentAdjustQuota"
-      @success="fetchList"
-    />
-
-    <!-- 变更记录弹窗 -->
-    <ChangeHistoryDialog
-      v-model:visible="changesDialogVisible"
-      :quota-id="currentChangeQuotaId"
-    />
   </div>
 </template>
 
@@ -84,8 +69,6 @@ import QuotaAPI, {
   QUOTA_TYPE_OPTIONS,
 } from "@/api/module_payment/quota";
 import QuotaDetailDialog from "./QuotaDetailDialog.vue";
-import AdjustAmountDialog from "@/views/module_payment/quota/components/AdjustAmountDialog.vue";
-import ChangeHistoryDialog from "@/views/module_payment/quota/components/ChangeHistoryDialog.vue";
 import { ElMessage } from "element-plus";
 import { onMounted, ref } from "vue";
 import { useEnterpriseStore } from "@/store/modules/enterprise.store";
@@ -108,11 +91,6 @@ const loading = ref(false);
 const detailVisible = ref(false);
 const currentQuotaId = ref("");
 
-const adjustDialogVisible = ref(false);
-const changesDialogVisible = ref(false);
-const currentAdjustQuota = ref<any>({});
-const currentChangeQuotaId = ref("");
-
 async function fetchList() {
   if (!props.institutionId) return;
   loading.value = true;
@@ -140,20 +118,6 @@ function handleDetail(row: any) {
   detailVisible.value = true;
 }
 
-function handleAdjust(row: any) {
-  currentAdjustQuota.value = {
-    quota_id: row.quota_id || String(row.id || ""),
-    available_amount: row.available_amount,
-    total_amount: row.total_amount,
-  };
-  adjustDialogVisible.value = true;
-}
-
-function handleChanges(row: any) {
-  currentChangeQuotaId.value = row.quota_id;
-  changesDialogVisible.value = true;
-}
-
 onMounted(() => {
   fetchList();
 });