提交 0b33538c authored 作者: matian's avatar matian

chore:帖子列表修改以及增加帖子楼层

上级 730d90e5
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import AppUpload from '@/components/base/AppUpload.vue' import AppUpload from '@/components/base/AppUpload.vue'
import type { FormInstance, FormRules } from 'element-plus' import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { useProjectList } from '@/composables/useGetProjectList' import { useProjectList } from '@/composables/useGetProjectList'
import { createPosts, getConditionList } from '../api' import { createPosts, getConditionList } from '../api'
import { useMapStore } from '@/stores/map' import { useMapStore } from '@/stores/map'
......
...@@ -123,6 +123,7 @@ const getContent = (val: any) => { ...@@ -123,6 +123,7 @@ const getContent = (val: any) => {
:src="props.firstFloor?.avatar || 'https://webapp-pub.ezijing.com/center_resource/avatar.png'" :src="props.firstFloor?.avatar || 'https://webapp-pub.ezijing.com/center_resource/avatar.png'"
class="left_avatar" class="left_avatar"
/> />
<div class="left_floor">{{ props.firstFloor?.floor }}</div>
<div class="left_name">{{ props.firstFloor?.name }}</div> <div class="left_name">{{ props.firstFloor?.name }}</div>
<div class="left_remark" v-if="props.firstFloor?.tag !== '老师'"> <div class="left_remark" v-if="props.firstFloor?.tag !== '老师'">
<img :src="imgUrl" class="remark_img" /> <img :src="imgUrl" class="remark_img" />
...@@ -229,6 +230,14 @@ const getContent = (val: any) => { ...@@ -229,6 +230,14 @@ const getContent = (val: any) => {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: relative; position: relative;
.left_floor {
position: absolute;
top: 5px;
right: 10px;
font-size: 16px;
font-weight: 400;
color: #333333;
}
.left_logo { .left_logo {
height: 0; height: 0;
......
...@@ -74,17 +74,17 @@ const listOptions = $computed(() => { ...@@ -74,17 +74,17 @@ const listOptions = $computed(() => {
{ type: 'input', prop: 'name', label: '发帖人:', placeholder: '发帖人' } { type: 'input', prop: 'name', label: '发帖人:', placeholder: '发帖人' }
], ],
columns: [ columns: [
{ label: '序号', type: 'index', align: 'center', width: '100px' }, { label: '序号', type: 'index', align: 'center', width: 80 },
{ label: '帖子标题', prop: 'title', align: 'center' }, { label: '帖子标题', prop: 'title', align: 'center', width: 100 },
{ label: '帖子类型', prop: 'type_name', align: 'center' }, { label: '帖子类型', prop: 'type_name', align: 'center', width: 100 },
{ label: '发帖人', prop: 'sso_name', align: 'center' }, { label: '发帖人', prop: 'sso_name', align: 'center', width: 100 },
{ label: '所属课程', prop: 'course_name', align: 'center' }, { label: '所属课程', prop: 'course_name', align: 'center', width: 200 },
{ label: '所属班级', prop: 'class_name', align: 'center' }, { label: '所属班级', prop: 'class_name', align: 'center', width: 200 },
{ label: '所属学期', prop: 'semester_name', align: 'center' }, { label: '所属学期', prop: 'semester_name', align: 'center', width: 200 },
{ label: '所属机构/院校', prop: 'organ_name', align: 'center' }, { label: '所属机构/院校', prop: 'organ_name', align: 'center', width: 150 },
{ label: '回复数量', prop: 'reply_count', align: 'center' }, { label: '回复数量', prop: 'reply_count', align: 'center', width: 100 },
{ label: '更新时间', prop: 'updated_time', align: 'center' }, { label: '更新时间', prop: 'updated_time', align: 'center', width: 200 },
{ label: '操作', slots: 'table-operate', align: 'center', fixed: 'right', width: 200 } { label: '操作', slots: 'table-operate', align: 'center', fixed: 'right', width: 160 }
] ]
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论