update:流程预览bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<WujieVue
|
<WujieVue
|
||||||
class="wujie-content"
|
class="wujie-content"
|
||||||
name="spdm"
|
name="spdm"
|
||||||
:url="url"
|
:url="SPDM_URL"
|
||||||
:sync="false"
|
:sync="false"
|
||||||
:degrade="false"
|
:degrade="false"
|
||||||
:alive="false"
|
:alive="false"
|
||||||
@@ -18,7 +18,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, watch } from 'vue';
|
|
||||||
import WujieVue from "wujie-vue3";
|
import WujieVue from "wujie-vue3";
|
||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
import { SPDM_URL } from '../config';
|
import { SPDM_URL } from '../config';
|
||||||
@@ -31,7 +30,7 @@ const TENANT_ID = Cookies.get('cid_tenant_id');
|
|||||||
const TOKEN = Cookies.get('cid_token');
|
const TOKEN = Cookies.get('cid_token');
|
||||||
|
|
||||||
bus.$on('APPROVAL_PREVIEW_LOADED', () => {
|
bus.$on('APPROVAL_PREVIEW_LOADED', () => {
|
||||||
emit('load')
|
emit('load');
|
||||||
});
|
});
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -44,17 +43,14 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
|
|
||||||
const url = ref('');
|
const url = ref('');
|
||||||
|
|
||||||
onMounted(() => {
|
bus.$on('SPMD_LOADED', () => {
|
||||||
setUrlFun();
|
bus.$emit('ROUTER_CHANGE', {
|
||||||
|
path: '/spdm/approvalPreview',
|
||||||
|
query: {
|
||||||
|
processId: props.processId,
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(() => props.processId, () => {
|
|
||||||
setUrlFun();
|
|
||||||
});
|
|
||||||
|
|
||||||
const setUrlFun = () => {
|
|
||||||
url.value = `${SPDM_URL}/spdm/approvalPreview?processId=${props.processId}`
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user