fix: Optimize style
This commit is contained in:
parent
506187e3c2
commit
2033a3457f
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 开场白组件 -->
|
<!-- 开场白组件 -->
|
||||||
<div class="item-content mb-16">
|
<div class="item-content mb-16">
|
||||||
<div class="avatar">
|
<div class="avatar" v-if="prologue">
|
||||||
<img v-if="application.avatar" :src="application.avatar" height="32px" width="32px" />
|
<img v-if="application.avatar" :src="application.avatar" height="32px" width="32px" />
|
||||||
<LogoIcon v-else height="32px" width="32px" />
|
<LogoIcon v-else height="32px" width="32px" />
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content" v-if="prologue">
|
||||||
<el-card shadow="always" class="dialog-card" style="--el-card-padding: 10px 16px 12px">
|
<el-card shadow="always" class="dialog-card" style="--el-card-padding: 10px 16px 12px">
|
||||||
<MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer>
|
<MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|||||||
@ -48,6 +48,7 @@
|
|||||||
:row-class-name="setRowClass"
|
:row-class-name="setRowClass"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
class="log-table"
|
class="log-table"
|
||||||
|
ref="multipleTableRef"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column prop="abstract" label="摘要" show-overflow-tooltip />
|
<el-table-column prop="abstract" label="摘要" show-overflow-tooltip />
|
||||||
@ -274,6 +275,7 @@ import useStore from '@/stores'
|
|||||||
import type { Dict } from '@/api/type/common'
|
import type { Dict } from '@/api/type/common'
|
||||||
import { t } from '@/locales'
|
import { t } from '@/locales'
|
||||||
import type { FormInstance, FormRules } from 'element-plus'
|
import type { FormInstance, FormRules } from 'element-plus'
|
||||||
|
import { ElTable } from 'element-plus'
|
||||||
|
|
||||||
const { application, log, document, user } = useStore()
|
const { application, log, document, user } = useStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -313,6 +315,8 @@ const daterange = ref({
|
|||||||
start_time: '',
|
start_time: '',
|
||||||
end_time: ''
|
end_time: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const multipleTableRef = ref<InstanceType<typeof ElTable>>()
|
||||||
const multipleSelection = ref<any[]>([])
|
const multipleSelection = ref<any[]>([])
|
||||||
|
|
||||||
const ChatRecordRef = ref()
|
const ChatRecordRef = ref()
|
||||||
@ -587,7 +591,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||||||
chat_ids: arr
|
chat_ids: arr
|
||||||
}
|
}
|
||||||
logApi.postChatRecordLog(id, form.value.dataset_id, obj, documentLoading).then((res: any) => {
|
logApi.postChatRecordLog(id, form.value.dataset_id, obj, documentLoading).then((res: any) => {
|
||||||
multipleSelection.value = []
|
multipleTableRef.value?.clearSelection()
|
||||||
documentDialogVisible.value = false
|
documentDialogVisible.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user