|
|
@@ -16,6 +16,11 @@
|
|
|
详情
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+ <template v-slot:readStatus="{row}">
|
|
|
+ <el-tag v-if="row.readStatus" type="success">{{ '已读' }}</el-tag>
|
|
|
+ <el-tag v-else type="danger">{{ '未读' }}</el-tag>
|
|
|
+
|
|
|
+ </template>
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
<!--新增、修改-->
|
|
|
@@ -45,10 +50,9 @@ export default {
|
|
|
fixed: 'left'
|
|
|
},
|
|
|
{
|
|
|
- prop: 'templateNickname',
|
|
|
- label: '发送人',
|
|
|
- minWidth: '60',
|
|
|
- align: "center",
|
|
|
+ prop: 'templateContent',
|
|
|
+ label: '消息',
|
|
|
+ minWidth: '150',
|
|
|
},
|
|
|
{
|
|
|
prop: 'templateCode',
|
|
|
@@ -56,12 +60,6 @@ export default {
|
|
|
minWidth: '120',
|
|
|
align: "center",
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'templateContent',
|
|
|
- label: '模板内容',
|
|
|
- minWidth: '150',
|
|
|
- align: "center",
|
|
|
- },
|
|
|
{
|
|
|
prop: 'userName',
|
|
|
label: '接收人',
|
|
|
@@ -70,24 +68,29 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'readStatus',
|
|
|
- label: '是否已读',
|
|
|
- minWidth: '60',
|
|
|
+ label: '状态',
|
|
|
+ width: '90',
|
|
|
+ slot:'readStatus',
|
|
|
align: "center",
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.readStatus ? '已读' : '未读';
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
prop: 'readTime',
|
|
|
label: '阅读时间',
|
|
|
- minWidth: '120',
|
|
|
+ width: '170',
|
|
|
align: "center",
|
|
|
showOverflowTooltip: true,
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'templateNickname',
|
|
|
+ label: '发送人',
|
|
|
+ width: '100',
|
|
|
+ align: "center",
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'createTime',
|
|
|
label: '创建时间',
|
|
|
- minWidth: '120',
|
|
|
+ width: '170',
|
|
|
align: "center",
|
|
|
showOverflowTooltip: true,
|
|
|
},
|