|
@@ -76,6 +76,12 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
+ <vxe-column width="100px"align="center" fixed="right" title="关闭状态" field="isClose" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.isClose === '0'" style="color: #67C23A"> 未关闭 </span>
|
|
|
+ <span v-else-if="scope.row.isClose === '1'" style="color: #F56C6C"> 已关闭 </span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
<vxe-column width="100px"align="center" fixed="right" title="状态" field="status" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="detail(scope.row)" effect="dark" size="mini"
|
|
@@ -90,7 +96,7 @@
|
|
|
|
|
|
<el-button v-if="hasPermission('notify:edit')&&(scope.row.status === '1' || scope.row.status === '3')&&scope.row.createBy.id === $store.state.user.id" type="text" size="small" @click="push(scope.row)">修改</el-button>
|
|
|
<el-button v-else-if="(scope.row.status === '1' || scope.row.status === '3' || scope.row.status === '5')&&isAdmin" type="text" size="small" @click="edit(scope.row.id)">修改</el-button>
|
|
|
- <el-button v-if="scope.row.status === '5'" type="text" size="small" @click="close(scope.row.id)">关闭</el-button>
|
|
|
+ <el-button v-if="scope.row.status === '5' && scope.row.isClose === '0' && (scope.row.createBy.id === $store.state.user.id || isAdmin)" type="text" size="small" @click="close(scope.row.id)">关闭</el-button>
|
|
|
|
|
|
<el-button v-if="hasPermission('notify:edit')&&(scope.row.status === '2')&&scope.row.createBy.id === $store.state.user.id" type="text" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
|
<el-button v-if="hasPermission('notify:del')&&(scope.row.status === '1' || scope.row.status === '3')&&(scope.row.createBy.id === $store.state.user.id || isAdmin)" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
@@ -208,10 +214,7 @@
|
|
|
this.refreshList()
|
|
|
},
|
|
|
close (id) {
|
|
|
- id = id || this.$refs.notifyTable.getCheckboxRecords().map(item => {
|
|
|
- return item.id
|
|
|
- })[0]
|
|
|
- this.$confirm(`确定删除所选项吗?`, '提示', {
|
|
|
+ this.$confirm(`关闭通告后,接收人将无法查阅,确定关闭吗?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -366,3 +369,14 @@
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style>
|
|
|
+ .box {
|
|
|
+ width: 400px
|
|
|
+ }
|
|
|
+ .box .top {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .box .item {
|
|
|
+ margin: 4px;
|
|
|
+ }
|
|
|
+</style>
|