首页点击标题

master
xy 12 months ago
parent dae232c5ec
commit 3a9ce833b5

@ -87,7 +87,7 @@ export default {
on: { on: {
click: _ => { click: _ => {
window.open( window.open(
`${process.env.VUE_APP_OUT_OLD}/flow/view/${row.id}?auth_token=${this.$store.getters.oa_token}`, `${process.env.VUE_APP_OUT_OLD}/flow/deal/${row.id}?auth_token=${this.$store.getters.oa_token}`,
"", "",
`top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0` `top=${this.window.top},left=${this.window.left},width=${this.window.width},height=${this.window.height},location=0`
); );
@ -297,7 +297,7 @@ export default {
auth_token: this.$store.getters.oa_token, auth_token: this.$store.getters.oa_token,
id: row.id id: row.id
}, true,"","GET",`${process.env.VUE_APP_OUT_URL}/flow/rollback`); }, true,"","GET",`${process.env.VUE_APP_OUT_URL}/flow/rollback`);
await this.getNotices() await this.getNotices(true)
} catch (err) { } catch (err) {
console.error(err) console.error(err)
} }
@ -313,10 +313,12 @@ export default {
}; };
}, },
methods: { methods: {
async getNotices() { async getNotices(isLoading=false) {
if (/^\/system/.test(this.$route.path)) return; if (/^\/system/.test(this.$route.path)) return;
try { try {
this.loading = true; if (isLoading) {
this.loading = true;
}
const res = await httpCurl({ const res = await httpCurl({
page_size: 999, page_size: 999,
auth_token: this.$store.getters.oa_token, auth_token: this.$store.getters.oa_token,
@ -353,7 +355,7 @@ export default {
this.window.height = screen.availHeight * 0.95; this.window.height = screen.availHeight * 0.95;
this.window.top = (window.screen.height - 30 - this.window.height) / 2; this.window.top = (window.screen.height - 30 - this.window.height) / 2;
this.window.left = (window.screen.width - 10 - this.window.width) / 2; this.window.left = (window.screen.width - 10 - this.window.width) / 2;
this.getNotices(); this.getNotices(true);
this.timer = setInterval(this.getNotices, 30 * 1000) this.timer = setInterval(this.getNotices, 30 * 1000)
}, },
mounted() { mounted() {

Loading…
Cancel
Save