Browse Source

window.open 代码

hella_online_20240919
yufei_wang 2 months ago
parent
commit
ee5b1e691b
  1. 6
      src/components/Error/src/Error.vue

6
src/components/Error/src/Error.vue

@ -43,13 +43,17 @@ const emit = defineEmits(['errorClick'])
const btnClick = () => { const btnClick = () => {
emit('errorClick', props.type) emit('errorClick', props.type)
} }
const openClick = ()=>{
const url = 'http://172.21.32.31:8080/bi/Viwwer?proc=1&action=viewer&hback=true&db=!6210!!90fd!!6d77!!62c9!!62a5!!8868!!2f!!5236!!54c1!!5b50!!4ef6!!62a5!!5e9f!!8bb0!!5f55!.db&platform=PC&browserType=chrome&dbTabVisible=false&dbTabIndex=1&au_act=login&adminv=CC_WMS&passv=123'
window.open(url)
}
</script> </script>
<template> <template>
<div class="flex justify-center"> <div class="flex justify-center">
<div class="text-center"> <div class="text-center">
<img :src="errorMap[type].url" alt="" width="350" /> <img :src="errorMap[type].url" alt="" width="350" />
<div class="text-14px text-[var(--el-color-info)]">{{ errorMap[type].message }}</div> <div class="text-14px text-[var(--el-color-info)]" @click="openClick">{{ errorMap[type].message }}</div>
<div class="mt-20px"> <div class="mt-20px">
<ElButton type="primary" @click="btnClick">{{ errorMap[type].buttonText }}</ElButton> <ElButton type="primary" @click="btnClick">{{ errorMap[type].buttonText }}</ElButton>
</div> </div>

Loading…
Cancel
Save