|
|
@@ -6,51 +6,53 @@
|
|
|
<el-input v-model="keyword" placeholder="搜索家庭ID..." prefix-icon="el-icon-search" style="width:200px" clearable @keyup.enter.native="handleSearch" @clear="handleSearch" />
|
|
|
</div>
|
|
|
|
|
|
- <el-table :data="filteredConfigs" border stripe v-loading="loading">
|
|
|
- <el-table-column prop="familyId" label="家庭ID" width="80" />
|
|
|
- <el-table-column label="家庭名称" width="120">
|
|
|
- <template slot-scope="scope">
|
|
|
- 家庭{{ scope.row.familyId }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="materialTitle" label="测评资料" />
|
|
|
- <el-table-column prop="remindMonths" label="提醒周期" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.remindMonths }}个月
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="lastRemindAt" label="上次提醒" width="140">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ formatDate(scope.row.lastRemindAt) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="nextRemindAt" label="下次提醒" width="140">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ formatDate(scope.row.nextRemindAt) }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="状态" width="80">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-tag :type="scope.row.isEnabled === 1 ? 'success' : 'info'" size="small">
|
|
|
- {{ scope.row.isEnabled === 1 ? '启用' : '关闭' }}
|
|
|
- </el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="200" fixed="right">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-button v-if="row.isEnabled !== 1" size="mini" type="primary" @click="enableFamily(row.familyId)">启用</el-button>
|
|
|
- <el-button v-else size="mini" type="primary" @click="handleEdit(row)">修改周期</el-button>
|
|
|
- <el-dropdown trigger="hover" @command="(cmd) => handleActionCmd(row, cmd)">
|
|
|
- <el-button size="mini">
|
|
|
- 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item command="disable" icon="el-icon-close">关闭</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <div style="overflow:auto;max-height:calc(100vh - 320px);">
|
|
|
+ <el-table :data="filteredConfigs" border stripe v-loading="loading" style="max-height:calc(100vh - 320px);">
|
|
|
+ <el-table-column prop="familyId" label="家庭ID" width="80" />
|
|
|
+ <el-table-column label="家庭名称" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ 家庭{{ scope.row.familyId }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="materialTitle" label="测评资料" />
|
|
|
+ <el-table-column prop="remindMonths" label="提醒周期" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.remindMonths }}个月
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="lastRemindAt" label="上次提醒" width="140">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ formatDate(scope.row.lastRemindAt) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="nextRemindAt" label="下次提醒" width="140">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ formatDate(scope.row.nextRemindAt) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态" width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag :type="scope.row.isEnabled === 1 ? 'success' : 'info'" size="small">
|
|
|
+ {{ scope.row.isEnabled === 1 ? '启用' : '关闭' }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" width="200" fixed="right">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-button v-if="row.isEnabled !== 1" size="mini" type="primary" @click="enableFamily(row.familyId)">启用</el-button>
|
|
|
+ <el-button v-else size="mini" type="primary" @click="handleEdit(row)">修改周期</el-button>
|
|
|
+ <el-dropdown trigger="hover" @command="(cmd) => handleActionCmd(row, cmd)">
|
|
|
+ <el-button size="mini">
|
|
|
+ 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item command="disable" icon="el-icon-close">关闭</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog title="启用家庭DAN测评" :visible.sync="enableDialogVisible" width="500px">
|