|
@@ -6,7 +6,7 @@
|
|
|
</PageHeader>
|
|
</PageHeader>
|
|
|
|
|
|
|
|
<!-- 搜索筛选 -->
|
|
<!-- 搜索筛选 -->
|
|
|
- <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.title"
|
|
v-model="searchForm.title"
|
|
@@ -36,7 +36,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="padding-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>
|
|
@@ -49,7 +49,7 @@
|
|
|
|
|
|
|
|
<!-- 家庭选择对话框 -->
|
|
<!-- 家庭选择对话框 -->
|
|
|
<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>
|
|
@@ -59,7 +59,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
- style="margin-top: 15px; text-align: right"
|
|
|
|
|
|
|
+ class="pagination-mt15"
|
|
|
@current-change="loadFamilies"
|
|
@current-change="loadFamilies"
|
|
|
:current-page="familyPagination.current"
|
|
:current-page="familyPagination.current"
|
|
|
:page-size="familyPagination.size"
|
|
:page-size="familyPagination.size"
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 统计卡片 -->
|
|
<!-- 统计卡片 -->
|
|
|
- <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="stats.total || 0" color="primary" icon="el-icon-tickets" />
|
|
<StatCard label="总任务数" :value="stats.total || 0" color="primary" icon="el-icon-tickets" />
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -80,7 +80,7 @@
|
|
|
|
|
|
|
|
<!-- 任务列表 -->
|
|
<!-- 任务列表 -->
|
|
|
<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>
|
|
@@ -155,7 +155,7 @@
|
|
|
|
|
|
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
- style="margin-top: 20px; text-align: right"
|
|
|
|
|
|
|
+ class="pagination-mt20"
|
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="pagination.current"
|
|
:current-page="pagination.current"
|
|
@@ -371,4 +371,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.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%; }
|
|
|
|
|
+.text-error { color: var(--adm-error-text); }
|
|
|
|
|
+</style>
|
|
|
|
|
+
|
|
|
|
|
|