소스 검색

fix: quota_id为空时模板显示和按钮用id兜底

alphah 1 주 전
부모
커밋
34ea3add91
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. BIN
      frontend/dist.zip
  2. 3 3
      frontend/src/views/module_payment/institution/components/QuotaList.vue

BIN
frontend/dist.zip


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

@@ -7,7 +7,7 @@
       <el-table-column type="index" label="序号" width="60" align="center" />
       <el-table-column label="额度ID" min-width="160" show-overflow-tooltip>
         <template #default="scope">
-          {{ scope.row.quota_id || "-" }}
+          {{ scope.row.quota_id || scope.row.id || "-" }}
         </template>
       </el-table-column>
       <el-table-column label="员工ID" min-width="140" show-overflow-tooltip>
@@ -41,8 +41,8 @@
       <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" type="text" size="small" @click="handleAdjust(scope.row)">调整金额</el-button>
-          <el-button v-if="scope.row.quota_id" type="text" size="small" @click="handleChanges(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>