404页面 首页图书统计

master
xy 2 years ago
parent e5c09a8584
commit 92453fb420

@ -238,6 +238,11 @@ const actions = {
} else {
accessedRoutes = filterAsyncRoutes(asyncRoutes, roles)
}
accessedRoutes.push({
path: '*',
redirect: '/404',
hidden: true
})
commit('SET_ROUTES', accessedRoutes)
resolve(accessedRoutes)

@ -9,12 +9,9 @@
</div>
<div class="bullshit">
<div class="bullshit__oops">OOPS!</div>
<div class="bullshit__info">All rights reserved
<a style="color:#20a0ff" href="https://wallstreetcn.com" target="_blank">wallstreetcn</a>
</div>
<div class="bullshit__headline">{{ message }}</div>
<div class="bullshit__info">Please check that the URL you entered is correct, or click the button below to return to the homepage.</div>
<a href="" class="bullshit__return-home">Back to home</a>
<div class="bullshit__info">请检查您输入的网址是否正确或者单击下面的按钮返回主页</div>
<a href="" class="bullshit__return-home">返回首页</a>
</div>
</div>
</div>
@ -26,7 +23,7 @@ export default {
name: 'Page404',
computed: {
message() {
return 'The webmaster said that you can not enter this page...'
return '无法进入这个页面...'
}
}
}

@ -70,7 +70,7 @@ export default {
async getToken () {
if(/^\/system/.test(this.$route.path)) return
const token = await httpCurl({
auth_token: this.$store.state.user.authToken
auth_token: this.$store.getters.oa_token
},true,"","POST",`${process.env['VUE_APP_OUT_Book']}/api/admin/auth/oss-login`)
this.token = token.access_token
},

@ -69,8 +69,7 @@ export default {
if (/^\/system/.test(this.$route.path)) return;
const token = await httpCurl(
{
id: this.$store.state.user.userId,
username: this.$store.state.user.username,
auth_token: this.$store.getters.oa_token
},
true,
"",

@ -135,7 +135,8 @@
<script>
import { index, show, save, destroy } from "@/api/system/diyMenu";
import { listmenu } from "@/api/system/menu";
import { deepCopy } from '@/utils'
import { deepCopy } from '@/utils';
import { getAuthMenu } from "@/api/user"
export default {
name: "card7",
layout: {
@ -210,7 +211,7 @@ export default {
}
})
}
this.menus = (await listmenu())
this.menus = (await getAuthMenu())
formatMenu(this.menus)
},

@ -16,23 +16,23 @@
:columns="table"
></Table>
<div
ref="todo-page"
style="display: flex; justify-content: center; margin: 10px 0"
>
<Page
:total="/^\/system/.test(this.$route.path) ? example.length : total"
size="small"
show-elevator
show-total
@on-change="
(e) => {
select.page = e;
getNotices();
}
"
/>
</div>
<!-- <div-->
<!-- ref="todo-page"-->
<!-- style="display: flex; justify-content: center; margin: 10px 0"-->
<!-- >-->
<!-- <Page-->
<!-- :total="/^\/system/.test(this.$route.path) ? example.length : total"-->
<!-- size="small"-->
<!-- show-elevator-->
<!-- show-total-->
<!-- @on-change="-->
<!-- (e) => {-->
<!-- select.page = e;-->
<!-- getNotices();-->
<!-- }-->
<!-- "-->
<!-- />-->
<!-- </div>-->
</div>
</el-card>
</template>
@ -117,21 +117,19 @@ export default {
},
on: {
["click"]: (_) => {
if (row.from_type === "szemcold") {
window.open(
`${process.env.VUE_APP_OUT_OLD}/index.php?s=/flow/edit/id/${row.id}&username=${this.$store.state.user.username}`,
"edit",
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
);
return
}
if(row.from_type === 'contract') {
this.$router.push({
path: '/contract/contract/contractList',
query: {
keyword:/\[(.*?)\]/.exec(row.content) ? /\[(.*?)\]/.exec(row.content)[1] : ''
keyword:/\[(.*?)\]/.exec(row.title) ? /\[(.*?)\]/.exec(row.title)[1] : ''
}
})
} else {
window.open(
`${process.env.VUE_APP_OUT_OLD}/flow/view/${row.id}?auth_token=${this.$store.getters.oa_token}`,
"edit",
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
);
}
},
},
@ -204,7 +202,6 @@ export default {
init() {
let cardDom = document.getElementById("todo-card");
let cardTitleH = 58;
let page = this.$refs["todo-page"];
const elementResize = ElementResize({
strategy: "scroll",
});
@ -212,8 +209,7 @@ export default {
this.tableHeight =
cardDom.getBoundingClientRect().height -
40 -
cardTitleH -
page.getBoundingClientRect().height;
cardTitleH
});
},
},

Loading…
Cancel
Save