| | |
| | | prop="noticeTitle" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="公告类型" |
| | | align="center" |
| | | prop="noticeType" |
| | | :formatter="typeFormat" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="状态" |
| | | align="center" |
| | | prop="status" |
| | | :formatter="statusFormat" |
| | | width="100" |
| | | /> |
| | | <el-table-column label="公告类型" align="center" prop="noticeType" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="typeOptions" :value="scope.row.noticeType"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" prop="status" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="statusOptions" :value="scope.row.status"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="创建者" align="center" prop="createBy" width="100" /> |
| | | <el-table-column label="创建时间" align="center" prop="createTime" width="100"> |
| | | <template slot-scope="scope"> |
| | |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 公告状态字典翻译 |
| | | statusFormat(row, column) { |
| | | return this.selectDictLabel(this.statusOptions, row.status); |
| | | }, |
| | | // 公告状态字典翻译 |
| | | typeFormat(row, column) { |
| | | return this.selectDictLabel(this.typeOptions, row.noticeType); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |