修复小区背景颜色,巡检点顺序一致,投诉处理按钮
This commit is contained in:
@@ -15,20 +15,20 @@
|
||||
<el-input v-model.trim="form.noticeTitle" placeholder="请输入公告标题" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="作者" prop="author">
|
||||
<el-input v-model.trim="form.author" placeholder="请输入作者" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="作者" prop="author">-->
|
||||
<!-- <el-input v-model.trim="form.author" placeholder="请输入作者" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="公告紧急程度" prop="urgencyLevel">
|
||||
<el-select v-model="form.urgencyLevel" clearable placeholder="请选择公告紧急程度">
|
||||
<el-option v-for="dict in com_noticepc_level" :key="dict.value" :label="dict.label" :value="Number(dict.value)" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="公告紧急程度" prop="urgencyLevel">-->
|
||||
<!-- <el-select v-model="form.urgencyLevel" clearable placeholder="请选择公告紧急程度">-->
|
||||
<!-- <el-option v-for="dict in com_noticepc_level" :key="dict.value" :label="dict.label" :value="Number(dict.value)" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否发布" prop="publishStatus">
|
||||
<el-radio-group v-model="form.publishStatus">
|
||||
|
||||
@@ -36,19 +36,27 @@
|
||||
<el-table v-loading="loading" border :data="noticeList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="公告标题" align="center" prop="noticeTitle" />
|
||||
<el-table-column label="作者" width="120" align="center" prop="author" />
|
||||
<el-table-column label="紧急程度" align="center" prop="urgencyLevel">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="com_noticepc_level" :value="scope.row.urgencyLevel"></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="作者" width="120" align="center" prop="author" />-->
|
||||
<!-- <el-table-column label="紧急程度" align="center" prop="urgencyLevel">-->
|
||||
<!-- <template #default="scope">-->
|
||||
<!-- <dict-tag :options="com_noticepc_level" :value="scope.row.urgencyLevel"></dict-tag>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="发布状态" align="center" prop="publishStatus">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="com_publish_status" :value="scope.row.publishStatus"></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已读" width="120" align="center" prop="readNum" />
|
||||
<el-table-column label="未读" width="120" align="center" prop="unReadNum" />
|
||||
<el-table-column label="已读" width="120" align="center" prop="readNum">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.readNum ?? '--' }} 人</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未读" width="120" align="center" prop="unReadNum">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.unReadNum ?? '--' }} 人</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发布人" align="center" prop="publishBy" />
|
||||
<el-table-column label="发布日期" align="center" prop="publishTime" width="100">
|
||||
<template #default="scope">
|
||||
@@ -57,6 +65,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="220" fixed="right" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" @click="handleMain(scope.row)">详情</el-button>
|
||||
<el-button link type="primary" @click="handleUpdate(scope.row)" v-has-permi="['notice:notice:edit']">编辑</el-button>
|
||||
<el-button link type="primary" @click="handleDelete(scope.row)" v-has-permi="['notice:notice:remove']">删除</el-button>
|
||||
</template>
|
||||
@@ -65,6 +74,17 @@
|
||||
|
||||
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" />
|
||||
</el-card>
|
||||
|
||||
<el-dialog v-model="MainForm.visible" title="公告详情">
|
||||
<div class="w-full h-full">
|
||||
<div v-html="MainForm.content"></div>
|
||||
</div>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button @click="MainForm.visible = false">关闭</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -170,6 +190,15 @@ const handleUpdate = (row?: NoticeVO) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
const MainForm = ref({
|
||||
visible: false,
|
||||
content: ''
|
||||
});
|
||||
/** 详情按钮操作 */
|
||||
const handleMain = (row: NoticeVO) => {
|
||||
MainForm.value.visible = true;
|
||||
MainForm.value.content = row.noticeContent;
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (row?: NoticeVO) => {
|
||||
|
||||
Reference in New Issue
Block a user