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