|
|
@@ -9,7 +9,7 @@
|
|
|
<!-- 奖励列表 -->
|
|
|
<el-tab-pane label="奖励列表" name="list">
|
|
|
<!-- 搜索筛选 -->
|
|
|
- <el-form :inline="true" :model="searchForm" style="margin-bottom: 20px">
|
|
|
+ <el-form :inline="true" :model="searchForm" class="mb-20">
|
|
|
<el-form-item label="家庭">
|
|
|
<el-input
|
|
|
v-model="searchForm.familyName"
|
|
|
@@ -22,7 +22,7 @@
|
|
|
icon="el-icon-close"
|
|
|
v-if="searchForm.familyId"
|
|
|
@click.stop="clearFamily"
|
|
|
- style="padding: 8px"
|
|
|
+ class="padding-8"
|
|
|
></el-button>
|
|
|
<i slot="suffix" class="el-input__icon el-icon-arrow-down" @click.stop="showFamilySelector"></i>
|
|
|
</el-input>
|
|
|
@@ -43,7 +43,7 @@
|
|
|
|
|
|
<!-- 家庭选择对话框 -->
|
|
|
<el-dialog title="选择家庭" :visible.sync="familyDialogVisible" width="600px">
|
|
|
- <el-table :max-height="tableHeight" style="cursor: pointer" :data="familyList" border v-loading="familyLoading" @row-click="selectFamily">
|
|
|
+ <el-table :max-height="tableHeight" class="cursor-pointer" :data="familyList" border v-loading="familyLoading" @row-click="selectFamily">
|
|
|
<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="inviteCode" label="邀请码" width="120"></el-table-column>
|
|
|
@@ -53,7 +53,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-pagination
|
|
|
- style="margin-top: 15px; text-align: right"
|
|
|
+ class="pagination-mt15"
|
|
|
@current-change="loadFamilies"
|
|
|
:current-page="familyPagination.current"
|
|
|
:page-size="familyPagination.size"
|
|
|
@@ -63,7 +63,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<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">
|
|
|
<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>
|
|
|
@@ -132,7 +132,7 @@
|
|
|
</div>
|
|
|
|
|
|
<el-pagination
|
|
|
- style="margin-top: 20px; text-align: right"
|
|
|
+ class="pagination-mt20"
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="pagination.current"
|
|
|
@@ -145,11 +145,11 @@
|
|
|
|
|
|
<!-- 奖励模板 -->
|
|
|
<el-tab-pane label="奖励模板" name="templates">
|
|
|
- <el-button type="primary" size="small" style="margin-bottom: 15px" @click="showCreateTemplate">
|
|
|
+ <el-button type="primary" size="small" class="mb-15" @click="showCreateTemplate">
|
|
|
新建模板
|
|
|
</el-button>
|
|
|
<div class="adm-table-wrap">
|
|
|
-<el-table :data="templates" border v-loading="loadingTemplates" style="width: 100%" height="100%">
|
|
|
+<el-table :data="templates" border v-loading="loadingTemplates" class="full-width" height="100%">
|
|
|
<el-table-column prop="id" label="ID" width="80"></el-table-column>
|
|
|
<el-table-column prop="title" label="模板名称" min-width="200"></el-table-column>
|
|
|
<el-table-column prop="pointsRequired" label="所需积分" width="120">
|
|
|
@@ -444,4 +444,16 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
+<style scoped>
|
|
|
+.page-container { padding: 20px; }
|
|
|
+/* == C 批内联清理工具类 == */
|
|
|
+.mb-20 { margin-bottom: 20px; }
|
|
|
+.mb-15 { margin-bottom: 15px; }
|
|
|
+.padding-8 { padding: 8px; }
|
|
|
+.cursor-pointer { cursor: pointer; }
|
|
|
+.pagination-mt15 { margin-top: 15px; text-align: right; }
|
|
|
+.pagination-mt20 { margin-top: 20px; text-align: right; }
|
|
|
+.full-width { width: 100%; }
|
|
|
+</style>
|
|
|
+
|
|
|
|