update:审核预览

This commit is contained in:
2025-11-14 15:03:10 +08:00
parent 217dfb8ec4
commit 7ebf8c9b2d
3 changed files with 9 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div>知识库审核预览{{ data }}</div>
<div>知识库审核预览{{ data.cidFlowId }}</div>
</template>
<script setup lang="ts">

View File

@@ -1,29 +1,26 @@
<template>
<div class="gl-page-content">
{{ route.query.processId }}
<div class="content">
<Knowledge v-if="data.approveType === 2" :data="data" />
<div v-else>其他审核预览{{ data.cidFlowId }}</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, onMounted, watch } from 'vue';
import { ref, onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { systemQueryApproveInstanceApi } from '@/api/system/systemApprove';
import Knowledge from './components/knowledge.vue';
const w: any = window;
const $wujie: any = w.$wujie;
const route = useRoute();
const data = ref<any>({});
watch(() => route.query, () => {
console.log('kkkkk', route.query.processId);
}, { deep: true, immediate: true });
onMounted(() => {
if (route.query.processId) {
getDetailDataFun();
}
getDetailDataFun();
});
const getDetailDataFun = () => {
@@ -35,8 +32,8 @@ const getDetailDataFun = () => {
};
systemQueryApproveInstanceApi(params).then((res: any) => {
if (res.code === 200) {
console.log(9999, route.query.processId, res.data);
data.value = res.data;
$wujie.bus.$emit('APPROVAL_PREVIEW_LOADED');
}
});
};
@@ -45,8 +42,5 @@ const getDetailDataFun = () => {
<style lang="scss" scoped>
.gl-page-content {
border: 0;
.content {
height: 3000px;
}
}
</style>