Flex
2025-04-07 8f41a4f8bb6570d7a4db1b1a8293e1eacb56990a
easegen-front/src/views/digitalcourse/digitalhumans/index.vue
@@ -173,7 +173,7 @@
          <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')}}
@@ -190,8 +190,10 @@
    />
  </ContentWrap>
  <!-- 表单弹窗:添加/修改 -->
  <!-- 表单弹窗:添加 -->
  <DigitalHumansForm ref="formRef" @success="getList" />
  <!-- 表单弹窗:修改 -->
  <LookDigitalHumansForm ref="LookformRef" @success="getList" />
  <!-- 处理 -->
  <AuditForm ref="auditFormRef" @success="getList" />
</template>
@@ -203,6 +205,7 @@
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() // 用户信息缓存
@@ -260,13 +263,20 @@
  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)
}