404页面 首页图书统计

master
xy 2 years ago
parent e5c09a8584
commit 92453fb420

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

@ -9,12 +9,9 @@
</div> </div>
<div class="bullshit"> <div class="bullshit">
<div class="bullshit__oops">OOPS!</div> <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__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> <div class="bullshit__info">请检查您输入的网址是否正确或者单击下面的按钮返回主页</div>
<a href="" class="bullshit__return-home">Back to home</a> <a href="" class="bullshit__return-home">返回首页</a>
</div> </div>
</div> </div>
</div> </div>
@ -26,7 +23,7 @@ export default {
name: 'Page404', name: 'Page404',
computed: { computed: {
message() { message() {
return 'The webmaster said that you can not enter this page...' return '无法进入这个页面...'
} }
} }
} }

@ -70,7 +70,7 @@ export default {
async getToken () { async getToken () {
if(/^\/system/.test(this.$route.path)) return if(/^\/system/.test(this.$route.path)) return
const token = await httpCurl({ 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`) },true,"","POST",`${process.env['VUE_APP_OUT_Book']}/api/admin/auth/oss-login`)
this.token = token.access_token this.token = token.access_token
}, },

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

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

@ -16,23 +16,23 @@
:columns="table" :columns="table"
></Table> ></Table>
<div <!-- <div-->
ref="todo-page" <!-- ref="todo-page"-->
style="display: flex; justify-content: center; margin: 10px 0" <!-- style="display: flex; justify-content: center; margin: 10px 0"-->
> <!-- >-->
<Page <!-- <Page-->
:total="/^\/system/.test(this.$route.path) ? example.length : total" <!-- :total="/^\/system/.test(this.$route.path) ? example.length : total"-->
size="small" <!-- size="small"-->
show-elevator <!-- show-elevator-->
show-total <!-- show-total-->
@on-change=" <!-- @on-change="-->
(e) => { <!-- (e) => {-->
select.page = e; <!-- select.page = e;-->
getNotices(); <!-- getNotices();-->
} <!-- }-->
" <!-- "-->
/> <!-- />-->
</div> <!-- </div>-->
</div> </div>
</el-card> </el-card>
</template> </template>
@ -117,21 +117,19 @@ export default {
}, },
on: { on: {
["click"]: (_) => { ["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') { if(row.from_type === 'contract') {
this.$router.push({ this.$router.push({
path: '/contract/contract/contractList', path: '/contract/contract/contractList',
query: { 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() { init() {
let cardDom = document.getElementById("todo-card"); let cardDom = document.getElementById("todo-card");
let cardTitleH = 58; let cardTitleH = 58;
let page = this.$refs["todo-page"];
const elementResize = ElementResize({ const elementResize = ElementResize({
strategy: "scroll", strategy: "scroll",
}); });
@ -212,8 +209,7 @@ export default {
this.tableHeight = this.tableHeight =
cardDom.getBoundingClientRect().height - cardDom.getBoundingClientRect().height -
40 - 40 -
cardTitleH - cardTitleH
page.getBoundingClientRect().height;
}); });
}, },
}, },

Loading…
Cancel
Save