feat: 添加风险性筛选功能至表格,优化数据展示
This commit is contained in:
parent
3c8eeee26c
commit
e2de8f45f7
|
|
@ -511,6 +511,42 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="风险性" align="center" width="220">
|
||||||
|
<template #header>
|
||||||
|
<el-dropdown trigger="click" @command="handleCommand2">
|
||||||
|
<div class="el-dropdown-link">
|
||||||
|
<text style="color: rgba(0, 0, 0, 0.85); font-size: 14px">风险性</text>
|
||||||
|
<el-image :src="icon_table_filter" style="width: 20px; height: 20px"></el-image>
|
||||||
|
</div>
|
||||||
|
<template #dropdown>
|
||||||
|
<div>
|
||||||
|
<el-dropdown-menu>
|
||||||
|
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
||||||
|
<el-dropdown-item :command="0">无敏</el-dropdown-item>
|
||||||
|
<el-dropdown-item :command="40">低敏</el-dropdown-item>
|
||||||
|
<el-dropdown-item :command="70">中敏</el-dropdown-item>
|
||||||
|
<el-dropdown-item :command="85">高敏</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dropdown>
|
||||||
|
</template>
|
||||||
|
<template v-slot="scope">
|
||||||
|
<el-tooltip v-if="scope.row.politicalSensitivity >= 0 && scope.row.politicalSensitivity < 40" content="基本不涉及时政敏感信息,可支持一定范围的传播" placement="top">
|
||||||
|
<el-tag type="info">{{ scope.row.politicalSensitivity >= 0 && scope.row.politicalSensitivity < 40 ? '无敏' : '' }}</el-tag>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="scope.row.politicalSensitivity >= 40 && scope.row.politicalSensitivity < 70" content="可能一定程度上涵盖时政相关信息,但一般不涉及确认敏感的议题" placement="top">
|
||||||
|
<el-tag type="primary">{{ scope.row.politicalSensitivity >= 40 && scope.row.politicalSensitivity < 70 ? '低敏' : '' }}</el-tag>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="scope.row.politicalSensitivity >= 70 && scope.row.politicalSensitivity < 85" content="可能存在具备政治立场倾向性或有不当表述,建议内部传阅或局部修改后发布" placement="top">
|
||||||
|
<el-tag type="warning">{{ scope.row.politicalSensitivity >= 70 && scope.row.politicalSensitivity < 85 ? '中敏' : '' }}</el-tag>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip v-if="scope.row.politicalSensitivity >= 85" content="极可能包含高敏感信息,存在不适合在公开场合传播的信息内容" placement="top">
|
||||||
|
<el-tag type="danger">{{ scope.row.politicalSensitivity >= 85 ? '高敏' : '' }}</el-tag>
|
||||||
|
</el-tooltip>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="publishTime" label="报道时间" sortable="custom" align="center" />
|
<el-table-column prop="publishTime" label="报道时间" sortable="custom" align="center" />
|
||||||
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
|
|
@ -996,6 +1032,11 @@ function handleCommand(val) {
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleCommand2(val) {
|
||||||
|
form.value.politicalSensitivity = val;
|
||||||
|
getData();
|
||||||
|
}
|
||||||
|
|
||||||
function handleCommandRating(val) {
|
function handleCommandRating(val) {
|
||||||
form.value.rating = val;
|
form.value.rating = val;
|
||||||
getData();
|
getData();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue