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,
width: Math.min(window.screen.availWidth, this.$el.clientWidth + 72),
height: Math.min(window.screen.availHeight, this.$el.clientHeight + 72),
minWidth: 600,
minHeight: 450,
};
if (this.hasOpenDialog) {
config.minWidth = 800;

View File

@ -60,14 +60,17 @@ export default {
},
methods: {
getInfo() {
let id = $A.runNum(this.$route.params.id);
if (id <= 0) {
let task_id = $A.runNum(this.$route.params.id);
if (task_id <= 0) {
return;
}
this.loadIng++;
this.$store.dispatch("getTaskOne", id).then(({data}) => {
this.$store.dispatch("getTaskOne", task_id).then(({data}) => {
this.loadIng--;
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}) => {
this.loadIng--;
$A.modalError({