feat: 任务新窗口打开

This commit is contained in:
kuaifan 2021-12-27 23:20:37 +08:00
parent c6eb850abe
commit ed32f9994d
2 changed files with 8 additions and 3 deletions

View File

@ -1195,6 +1195,8 @@ export default {
parent: null, parent: null,
width: Math.min(window.screen.availWidth, this.$el.clientWidth + 72), width: Math.min(window.screen.availWidth, this.$el.clientWidth + 72),
height: Math.min(window.screen.availHeight, this.$el.clientHeight + 72), height: Math.min(window.screen.availHeight, this.$el.clientHeight + 72),
minWidth: 600,
minHeight: 450,
}; };
if (this.hasOpenDialog) { if (this.hasOpenDialog) {
config.minWidth = 800; config.minWidth = 800;

View File

@ -60,14 +60,17 @@ export default {
}, },
methods: { methods: {
getInfo() { getInfo() {
let id = $A.runNum(this.$route.params.id); let task_id = $A.runNum(this.$route.params.id);
if (id <= 0) { if (task_id <= 0) {
return; return;
} }
this.loadIng++; this.loadIng++;
this.$store.dispatch("getTaskOne", id).then(({data}) => { this.$store.dispatch("getTaskOne", task_id).then(({data}) => {
this.loadIng--; this.loadIng--;
this.taskInfo = data; this.taskInfo = data;
this.$store.dispatch("getTaskContent", task_id);
this.$store.dispatch("getTaskFiles", task_id);
this.$store.dispatch("getTasks", {parent_id: task_id});
}).catch(({msg}) => { }).catch(({msg}) => {
this.loadIng--; this.loadIng--;
$A.modalError({ $A.modalError({