| | |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm('detail', scope.row.id)" |
| | | @click="OpenLookformRef('detail', scope.row.id)" |
| | | v-hasPermi="['digitalcourse:digital-humans:delete']" |
| | | > |
| | | {{t('digitalhumans.view')}} |
| | |
| | | /> |
| | | </ContentWrap> |
| | | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <!-- 表单弹窗:添加 --> |
| | | <DigitalHumansForm ref="formRef" @success="getList" /> |
| | | <!-- 表单弹窗:修改 --> |
| | | <LookDigitalHumansForm ref="LookformRef" @success="getList" /> |
| | | <!-- 处理 --> |
| | | <AuditForm ref="auditFormRef" @success="getList" /> |
| | | </template> |
| | |
| | | import download from '@/utils/download' |
| | | import * as DigitalHumansApi from '@/api/digitalcourse/digitalhumans' |
| | | import DigitalHumansForm from './DigitalHumansForm.vue' |
| | | import LookDigitalHumansForm from './LookDigitalHumansForm.vue' |
| | | import AuditForm from './AuditForm.vue' |
| | | import { useUserStoreWithOut } from '@/store/modules/user' |
| | | const userStore = useUserStoreWithOut() // 用户信息缓存 |
| | |
| | | handleQuery() |
| | | } |
| | | |
| | | /** 添加/修改操作 */ |
| | | /** 添加操作 */ |
| | | const formRef = ref() |
| | | const auditFormRef = ref() |
| | | const openForm = (type: string, id?: number) => { |
| | | formRef.value.open(type, id) |
| | | } |
| | | |
| | | /* 修改操作 */ |
| | | const LookformRef = ref() |
| | | const OpenLookformRef = ( type: string, id?:number ) => { |
| | | LookformRef.value.open( type, id ) |
| | | } |
| | | |
| | | |
| | | const openAuditForm = (type: string, id?: number) => { |
| | | auditFormRef.value.open(type, id) |
| | | } |