mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-02 19:08:12 +00:00
feat: 任务新窗口打开
This commit is contained in:
parent
c6eb850abe
commit
ed32f9994d
@ -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;
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user