|
@@ -9,7 +9,7 @@
|
|
|
<!-- 待处理列表 -->
|
|
<!-- 待处理列表 -->
|
|
|
<el-tab-pane label="待处理" name="pending">
|
|
<el-tab-pane label="待处理" name="pending">
|
|
|
<!-- 统计卡片 -->
|
|
<!-- 统计卡片 -->
|
|
|
- <el-row :gutter="20" style="margin-bottom: 20px">
|
|
|
|
|
|
|
+ <el-row :gutter="20" class="mb-20">
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<StatCard label="待定价" :value="draftCount" color="info" icon="el-icon-price-tag" />
|
|
<StatCard label="待定价" :value="draftCount" color="info" icon="el-icon-price-tag" />
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -28,7 +28,7 @@
|
|
|
<div v-if="draftWishes.length > 0" class="wish-section">
|
|
<div v-if="draftWishes.length > 0" class="wish-section">
|
|
|
<SectionTitle title="待定价" />
|
|
<SectionTitle title="待定价" />
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table style="width: 100%" height="100%" :data="draftWishes" border v-loading="loading">
|
|
|
|
|
|
|
+<el-table class="full-width" height="100%" :data="draftWishes" border v-loading="loading">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
@@ -59,7 +59,7 @@
|
|
|
<div v-if="pendingExchangeWishes.length > 0" class="wish-section">
|
|
<div v-if="pendingExchangeWishes.length > 0" class="wish-section">
|
|
|
<SectionTitle title="⏳ 待审批兑换" />
|
|
<SectionTitle title="⏳ 待审批兑换" />
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table :data="pendingExchangeWishes" border v-loading="loading" style="width: 100%" height="100%">
|
|
|
|
|
|
|
+<el-table :data="pendingExchangeWishes" border v-loading="loading" class="full-width" height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
@@ -94,7 +94,7 @@
|
|
|
<div v-if="approvedWishes.length > 0" class="wish-section">
|
|
<div v-if="approvedWishes.length > 0" class="wish-section">
|
|
|
<SectionTitle title="待兑现" />
|
|
<SectionTitle title="待兑现" />
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table :data="approvedWishes" border v-loading="loading" style="width: 100%" height="100%">
|
|
|
|
|
|
|
+<el-table :data="approvedWishes" border v-loading="loading" class="full-width" height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
@@ -121,7 +121,7 @@
|
|
|
<div v-if="exchangingWishes.length > 0" class="wish-section">
|
|
<div v-if="exchangingWishes.length > 0" class="wish-section">
|
|
|
<SectionTitle title="待收货确认" />
|
|
<SectionTitle title="待收货确认" />
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table :data="exchangingWishes" border v-loading="loading" style="width: 100%" height="100%">
|
|
|
|
|
|
|
+<el-table :data="exchangingWishes" border v-loading="loading" class="full-width" height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
<el-table-column prop="childName" label="孩子" width="100"></el-table-column>
|
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
<el-table-column prop="title" label="心愿名称" min-width="200"></el-table-column>
|
|
@@ -146,7 +146,7 @@
|
|
|
<!-- 全部心愿 -->
|
|
<!-- 全部心愿 -->
|
|
|
<el-tab-pane label="全部心愿" name="all">
|
|
<el-tab-pane label="全部心愿" name="all">
|
|
|
<!-- 搜索筛选 -->
|
|
<!-- 搜索筛选 -->
|
|
|
- <el-form :inline="true" :model="searchForm" style="margin-bottom: 20px">
|
|
|
|
|
|
|
+ <el-form :inline="true" :model="searchForm" class="mb-20">
|
|
|
<el-form-item label="家庭">
|
|
<el-form-item label="家庭">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="searchForm.familyName"
|
|
v-model="searchForm.familyName"
|
|
@@ -159,7 +159,7 @@
|
|
|
icon="el-icon-close"
|
|
icon="el-icon-close"
|
|
|
v-if="searchForm.familyId"
|
|
v-if="searchForm.familyId"
|
|
|
@click.stop="clearFamily"
|
|
@click.stop="clearFamily"
|
|
|
- style="padding: 8px"
|
|
|
|
|
|
|
+ class="pt-8"
|
|
|
></el-button>
|
|
></el-button>
|
|
|
<i slot="suffix" class="el-input__icon el-icon-arrow-down" @click.stop="showFamilySelector"></i>
|
|
<i slot="suffix" class="el-input__icon el-icon-arrow-down" @click.stop="showFamilySelector"></i>
|
|
|
</el-input>
|
|
</el-input>
|
|
@@ -184,12 +184,12 @@
|
|
|
|
|
|
|
|
<!-- 家庭选择对话框 -->
|
|
<!-- 家庭选择对话框 -->
|
|
|
<el-dialog title="选择家庭" :visible.sync="familyDialogVisible" width="600px">
|
|
<el-dialog title="选择家庭" :visible.sync="familyDialogVisible" width="600px">
|
|
|
- <el-table :data="familyList" border v-loading="familyLoading" @row-click="selectFamily" style="cursor: pointer" :max-height="300">
|
|
|
|
|
|
|
+ <el-table :data="familyList" border v-loading="familyLoading" @row-click="selectFamily" class="cursor-pointer" :max-height="300">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="name" label="家庭名称" min-width="150"></el-table-column>
|
|
<el-table-column prop="name" label="家庭名称" min-width="150"></el-table-column>
|
|
|
<el-table-column prop="inviteCode" label="邀请码" width="120"></el-table-column>
|
|
<el-table-column prop="inviteCode" label="邀请码" width="120"></el-table-column>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
- style="margin-top: 15px; text-align: right"
|
|
|
|
|
|
|
+ class="mb-15-rows"
|
|
|
@current-change="loadFamilies"
|
|
@current-change="loadFamilies"
|
|
|
:current-page="familyPagination.current"
|
|
:current-page="familyPagination.current"
|
|
|
:page-size="familyPagination.size"
|
|
:page-size="familyPagination.size"
|
|
@@ -199,7 +199,7 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<div class="adm-table-wrap">
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table :data="tableData" border v-loading="loading" style="width: 100%" height="100%">
|
|
|
|
|
|
|
+<el-table :data="tableData" border v-loading="loading" class="full-width" height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="80">
|
|
<el-table-column prop="id" label="ID" width="80">
|
|
|
<template slot="header">
|
|
<template slot="header">
|
|
|
<span class="sort-header" @click.stop="onSortClick('id', $event)">ID<span v-if="sortIndex('id') !== null" class="sort-index" :class="sortClass('id') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('id') }}</span>{{ sortIcon('id') }}</span>
|
|
<span class="sort-header" @click.stop="onSortClick('id', $event)">ID<span v-if="sortIndex('id') !== null" class="sort-index" :class="sortClass('id') === 'sort-asc' ? 'sort-asc-badge' : 'sort-desc-badge'">{{ sortIndex('id') }}</span>{{ sortIcon('id') }}</span>
|
|
@@ -262,7 +262,7 @@
|
|
|
<
|
|
<
|
|
|
|
|
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
- style="margin-top: 20px; text-align: right"
|
|
|
|
|
|
|
+ class="mb-20-rows"
|
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="pagination.current"
|
|
:current-page="pagination.current"
|
|
@@ -567,4 +567,11 @@ export default {
|
|
|
color: var(--adm-text-45);
|
|
color: var(--adm-text-45);
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
}
|
|
}
|
|
|
|
|
+/* == C 批内联清理工具类 == */
|
|
|
|
|
+.mb-20 { margin-bottom: 20px; }
|
|
|
|
|
+.mb-20-rows { margin-top: 20px; text-align: right; }
|
|
|
|
|
+.mb-15-rows { margin-top: 15px; text-align: right; }
|
|
|
|
|
+.pt-8 { padding: 8px; }
|
|
|
|
|
+.full-width { width: 100%; }
|
|
|
|
|
+.cursor-pointer { cursor: pointer; }
|
|
|
</style>
|
|
</style>
|