refactor: Model display creator
--bug=1057605 --user=王孝刚 【模型】模型创建者未显示 https://www.tapd.cn/62980211/s/1719783
This commit is contained in:
parent
9bd490c7ea
commit
8468d08eea
@ -24,7 +24,7 @@
|
||||
</template>
|
||||
<template #subTitle>
|
||||
<el-text class="color-secondary lighter" size="small">
|
||||
{{ $t('common.creator') }}: {{ model.username }}
|
||||
{{ $t('common.creator') }}: {{ model.nick_name }}
|
||||
</el-text>
|
||||
</template>
|
||||
<template #tag>
|
||||
@ -82,7 +82,8 @@
|
||||
v-if="isSystemShare"
|
||||
icon="Lock"
|
||||
@click.stop="openAuthorizedWorkspaceDialog(model)"
|
||||
>{{ $t('views.shared.authorized_workspace') }}</el-dropdown-item
|
||||
>{{ $t('views.shared.authorized_workspace') }}
|
||||
</el-dropdown-item
|
||||
>
|
||||
|
||||
<el-dropdown-item
|
||||
@ -124,7 +125,7 @@ import type { Provider, Model } from '@/api/type/model'
|
||||
import {computed, ref, onMounted, onBeforeUnmount} from 'vue'
|
||||
import EditModel from '@/views/model/component/EditModel.vue'
|
||||
import DownloadLoading from '@/components/loading/DownloadLoading.vue'
|
||||
import { MsgConfirm } from '@/utils/message'
|
||||
import {MsgConfirm, MsgSuccess} from '@/utils/message'
|
||||
import {modelType} from '@/enums/model'
|
||||
import ParamSettingDialog from './ParamSettingDialog.vue'
|
||||
import AuthorizedWorkspace from '@/views/system-shared/AuthorizedWorkspaceDialog.vue'
|
||||
@ -181,9 +182,11 @@ const deleteModel = () => {
|
||||
.deleteModel(props.model.id)
|
||||
.then(() => {
|
||||
emit('change')
|
||||
MsgSuccess(t('common.deleteSuccess'))
|
||||
})
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => {
|
||||
})
|
||||
}
|
||||
|
||||
const cancelDownload = () => {
|
||||
@ -239,6 +242,7 @@ const openParamSetting = () => {
|
||||
}
|
||||
|
||||
const AuthorizedWorkspaceDialogRef = ref()
|
||||
|
||||
function openAuthorizedWorkspaceDialog(row: any) {
|
||||
if (AuthorizedWorkspaceDialogRef.value) {
|
||||
AuthorizedWorkspaceDialogRef.value.open(row, 'Model')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user