看板
Showing
2 changed files
with
11 additions
and
12 deletions
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | 404错误! | 9 | 404错误! |
| 10 | </h1> | 10 | </h1> |
| 11 | <h2>您没有访问权限!</h2> | 11 | <h2>您没有访问权限!</h2> |
| 12 | <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6> | 12 | <h6>对不起,您没有访问权限,请不要进行非法操作!</h6> |
| 13 | <!-- <ul class="list-unstyled">--> | 13 | <!-- <ul class="list-unstyled">--> |
| 14 | <!-- <li class="link-type">--> | 14 | <!-- <li class="link-type">--> |
| 15 | <!-- <router-link to="/">--> | 15 | <!-- <router-link to="/">--> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="main"> | 2 | <div class="main"> |
| 3 | <el-row class="w100"> | 3 | <el-row class="w100"> |
| 4 | <el-col v-if="obj?.IFBASE" :span="type=='否'?8:12"> | 4 | <el-col v-if="obj.IFBASE" :span="type=='否'?8:12"> |
| 5 | <left-page :obj="obj" :type="type" :url="result"/> | 5 | <left-page :obj="obj" :type="type" :url="result"/> |
| 6 | </el-col> | 6 | </el-col> |
| 7 | <el-col v-if="type=='否'" :span="8"> | 7 | <el-col v-if="type=='否'" :span="8"> |
| 8 | <center-page :obj="obj" :type="type=='否'" :url="result"/> | 8 | <center-page :obj="obj" :type="type=='否'" :url="result"/> |
| 9 | </el-col> | 9 | </el-col> |
| 10 | <el-col v-if="obj?.IFBASE" :span="type=='否'?8:12"> | 10 | <el-col v-if="obj.IFBASE" :span="type=='否'?8:12"> |
| 11 | <right-page :obj="obj" :type="type" :url="result"/> | 11 | <right-page :obj="obj" :type="type" :url="result"/> |
| 12 | </el-col> | 12 | </el-col> |
| 13 | </el-row> | 13 | </el-row> |
| ... | @@ -21,32 +21,31 @@ import CenterPage from "@/viewsPc/vip/centerPage" | ... | @@ -21,32 +21,31 @@ import CenterPage from "@/viewsPc/vip/centerPage" |
| 21 | import RightPage from "@/viewsPc/vip/rightPage" | 21 | import RightPage from "@/viewsPc/vip/rightPage" |
| 22 | import {getYS000} from '@/api/server.js' | 22 | import {getYS000} from '@/api/server.js' |
| 23 | import {ref, onMounted, getCurrentInstance} from 'vue' | 23 | import {ref, onMounted, getCurrentInstance} from 'vue' |
| 24 | import {useRouter} from 'vue-router' | ||
| 24 | 25 | ||
| 25 | const type = ref('是') | 26 | const type = ref('是') |
| 26 | const url = ref() | 27 | const url = ref() |
| 27 | const obj = ref({}) | 28 | const obj = ref({}) |
| 28 | const result = ref() | 29 | const result = ref() |
| 29 | 30 | const roueter = useRouter() | |
| 30 | url.value = 'http://192.168.1.152:8899/login/sid=41a9a180-b1ad-4c78-95cc-f369fadb13f0#/' | 31 | // url.value = 'http://192.168.1.152:8899/login/sid=41a9a180-b1ad-4c78-95cc-f369fadb13f0#/' |
| 31 | // url.value ='http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/' | 32 | // url.value = 'http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/' |
| 32 | // url.value = window.location.href | 33 | url.value = window.location.href |
| 33 | result.value = url.value?.split('=')[1]?.split('#')[0]; | 34 | result.value = url.value?.split('=')[1]?.split('#')[0]; |
| 34 | 35 | ||
| 35 | onMounted(() => { | 36 | onMounted(() => { |
| 36 | if (result.value) { | 37 | if (result.value) { |
| 37 | handelGetYS000() | 38 | handelGetYS000() |
| 38 | } else { | 39 | } else { |
| 39 | // handelGetYS000() | 40 | roueter.push('/401') |
| 40 | } | 41 | } |
| 41 | }) | 42 | }) |
| 42 | 43 | ||
| 43 | 44 | ||
| 44 | async function handelGetYS000() { | 45 | async function handelGetYS000() { |
| 45 | const res = await getYS000(result.value) | 46 | const res = await getYS000(result.value) |
| 46 | type.value = res.data?.IFBASE || '否' | 47 | type.value = res.data?.IFBASE || '是' |
| 47 | obj.value = res.data || { | 48 | obj.value = res.data || {} |
| 48 | IFBASE: '123' | ||
| 49 | } | ||
| 50 | } | 49 | } |
| 51 | 50 | ||
| 52 | 51 | ... | ... |
-
Please register or sign in to post a comment