This commit is contained in:
xingyu4j
2022-11-16 11:32:47 +08:00
parent d485b8289d
commit eed6a9a689
7 changed files with 81 additions and 18 deletions

View File

@@ -109,18 +109,18 @@ const handleCreate = () => {
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
// 设置数据
const res = await NoticeApi.getNoticeApi(rowId)
unref(formRef)?.setValues(res)
setDialogTile('update')
}
// 详情操作
const handleDetail = async (rowId: number) => {
setDialogTile('detail')
// 设置数据
const res = await NoticeApi.getNoticeApi(rowId)
detailRef.value = res
setDialogTile('detail')
}
// 删除操作

View File

@@ -34,7 +34,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
isSearch: true
},
{
title: '公告内容', // TODO 星语:详情时,公告展示有办法是 html 么?
title: '公告内容',
field: 'content',
table: {
type: 'html'