|
|
@@ -54,7 +54,11 @@
|
|
|
{{ formatDate(scope.row.createTime) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="announcementStatus" label="公告状态" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="announcementStatus" label="公告状态" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.announcementStatus == '1'?'已发布':'草稿'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="small" type="text" @click="handleRelease(scope.row)" v-if="scope.row.announcementStatus == '草稿'"
|
|
|
@@ -255,8 +259,6 @@ export default {
|
|
|
const fileName = row.images.substring(row.images.lastIndexOf('/') + 1)
|
|
|
this.fileList = [{ name: fileName, url: row.images }]
|
|
|
}
|
|
|
- const obj = this.statusOptions.find((item) => item.label == row.announcementStatus)
|
|
|
- this.form.announcementStatus = obj ? obj.value : 2
|
|
|
this.title = '编辑公告'
|
|
|
this.titleType = 'edit'
|
|
|
this.addDialogVisible = true
|