mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-18 13:28:12 +00:00
no message
This commit is contained in:
parent
81f8a01cc1
commit
fae46bc2b9
@ -305,16 +305,16 @@
|
|||||||
url: 'system/imgview',
|
url: 'system/imgview',
|
||||||
data: {path: path ? path : ''},
|
data: {path: path ? path : ''},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.isLoading = false;
|
|
||||||
let dirs = data['dirs'];
|
let dirs = data['dirs'];
|
||||||
for (let i = 0; i < dirs.length; i++) {
|
for (let i = 0; i < dirs.length; i++) {
|
||||||
this.browseList.push(dirs[i]);
|
this.browseList.push(dirs[i]);
|
||||||
}
|
}
|
||||||
this.browsePictureFor(data['files']);
|
this.browsePictureFor(data['files']);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.isLoading = false;
|
|
||||||
this.browseVisible = false;
|
this.browseVisible = false;
|
||||||
$A.noticeWarning(msg);
|
$A.noticeWarning(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.isLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -165,7 +165,6 @@
|
|||||||
take: 30
|
take: 30
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (!history) this.loadIng--;
|
|
||||||
this.list = data;
|
this.list = data;
|
||||||
//
|
//
|
||||||
const index = this.searchHistory.findIndex(item => item.key == key);
|
const index = this.searchHistory.findIndex(item => item.key == key);
|
||||||
@ -180,9 +179,10 @@
|
|||||||
this.searchHistory.push(tmpData)
|
this.searchHistory.push(tmpData)
|
||||||
}
|
}
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
if (!history) this.loadIng--;
|
|
||||||
this.list = [];
|
this.list = [];
|
||||||
$A.messageWarning(msg);
|
$A.messageWarning(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
if (!history) this.loadIng--;
|
||||||
});
|
});
|
||||||
}, this.searchHistory.length > 0 ? 300 : 0)
|
}, this.searchHistory.length > 0 ? 300 : 0)
|
||||||
},
|
},
|
||||||
|
|||||||
@ -309,12 +309,12 @@ export default {
|
|||||||
email: this.email,
|
email: this.email,
|
||||||
},
|
},
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.reCode();
|
this.reCode();
|
||||||
this.codeNeed = true;
|
this.codeNeed = true;
|
||||||
}).catch(_ => {
|
}).catch(_ => {
|
||||||
this.loadIng--;
|
|
||||||
this.codeNeed = false;
|
this.codeNeed = false;
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -351,7 +351,6 @@ export default {
|
|||||||
invite: this.invite,
|
invite: this.invite,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.codeNeed = false;
|
this.codeNeed = false;
|
||||||
$A.setStorage("cacheLoginEmail", this.email)
|
$A.setStorage("cacheLoginEmail", this.email)
|
||||||
this.$store.dispatch("handleClearCache", data).then(() => {
|
this.$store.dispatch("handleClearCache", data).then(() => {
|
||||||
@ -360,7 +359,6 @@ export default {
|
|||||||
this.goNext1();
|
this.goNext1();
|
||||||
});
|
});
|
||||||
}).catch(({data, msg}) => {
|
}).catch(({data, msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
if (data.code === 'email') {
|
if (data.code === 'email') {
|
||||||
$A.modalWarning(msg);
|
$A.modalWarning(msg);
|
||||||
} else {
|
} else {
|
||||||
@ -370,6 +368,8 @@ export default {
|
|||||||
this.reCode();
|
this.reCode();
|
||||||
this.codeNeed = true;
|
this.codeNeed = true;
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -822,13 +822,13 @@ export default {
|
|||||||
data: this.addData,
|
data: this.addData,
|
||||||
}).then(({data, msg}) => {
|
}).then(({data, msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.addShow = false;
|
this.addShow = false;
|
||||||
this.$refs.addProject.resetFields();
|
this.$refs.addProject.resetFields();
|
||||||
this.$store.dispatch("saveProject", data);
|
this.$store.dispatch("saveProject", data);
|
||||||
this.toggleRoute('project', {projectId: data.id})
|
this.toggleRoute('project', {projectId: data.id})
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -998,14 +998,14 @@ export default {
|
|||||||
url: 'project/task/export',
|
url: 'project/task/export',
|
||||||
data: this.exportData,
|
data: this.exportData,
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.exportLoadIng--;
|
|
||||||
this.exportTaskShow = false;
|
this.exportTaskShow = false;
|
||||||
this.$store.dispatch('downUrl', {
|
this.$store.dispatch('downUrl', {
|
||||||
url: data.url
|
url: data.url
|
||||||
});
|
});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.exportLoadIng--;
|
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.exportLoadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -259,12 +259,11 @@ export default {
|
|||||||
id: this.fileId,
|
id: this.fileId,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.loadContent--;
|
|
||||||
this.contentDetail = data.content;
|
this.contentDetail = data.content;
|
||||||
this.updateBak();
|
this.updateBak();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
this.loadContent--;
|
this.loadContent--;
|
||||||
})
|
})
|
||||||
@ -299,15 +298,15 @@ export default {
|
|||||||
},
|
},
|
||||||
}).then(({data, msg}) => {
|
}).then(({data, msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.$store.dispatch("saveFile", {
|
this.$store.dispatch("saveFile", {
|
||||||
id: this.fileId,
|
id: this.fileId,
|
||||||
size: data.size,
|
size: data.size,
|
||||||
});
|
});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.getContent();
|
this.getContent();
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,10 +136,10 @@ export default {
|
|||||||
id: this.code || this.file.id,
|
id: this.code || this.file.id,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadContent--;
|
|
||||||
this.contentDetail = data.content;
|
this.contentDetail = data.content;
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.loadContent--;
|
this.loadContent--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -221,14 +221,14 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.page = data.current_page;
|
this.page = data.current_page;
|
||||||
this.total = data.total;
|
this.total = data.total;
|
||||||
this.list = data.data;
|
this.list = data.data;
|
||||||
this.noText = '没有相关的数据';
|
this.noText = '没有相关的数据';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.noText = '数据加载失败';
|
this.noText = '数据加载失败';
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -253,13 +253,13 @@ export default {
|
|||||||
type: 'recovery'
|
type: 'recovery'
|
||||||
},
|
},
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.getLists();
|
this.getLists();
|
||||||
this.$store.dispatch("getProjectOne", row.id).catch(() => {});
|
this.$store.dispatch("getProjectOne", row.id).catch(() => {});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.getLists();
|
this.getLists();
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -268,12 +268,12 @@ export default {
|
|||||||
this.loadIng++;
|
this.loadIng++;
|
||||||
this.$store.dispatch("removeProject", row.id).then(({msg}) => {
|
this.$store.dispatch("removeProject", row.id).then(({msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.getLists();
|
this.getLists();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
this.loadIng--;
|
|
||||||
this.getLists();
|
this.getLists();
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1077,11 +1077,11 @@ export default {
|
|||||||
}),
|
}),
|
||||||
}).then(({data, msg}) => {
|
}).then(({data, msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.settingLoad--;
|
|
||||||
this.settingShow = false;
|
this.settingShow = false;
|
||||||
this.$store.dispatch("saveProject", data)
|
this.$store.dispatch("saveProject", data)
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.settingLoad--;
|
this.settingLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1096,12 +1096,12 @@ export default {
|
|||||||
},
|
},
|
||||||
}).then(({msg}) => {
|
}).then(({msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.userLoad--;
|
|
||||||
this.userShow = false;
|
this.userShow = false;
|
||||||
this.$store.dispatch("getProjectOne", this.projectId).catch(() => {});
|
this.$store.dispatch("getProjectOne", this.projectId).catch(() => {});
|
||||||
this.$store.dispatch("getTaskForProject", this.projectId).catch(() => {})
|
this.$store.dispatch("getTaskForProject", this.projectId).catch(() => {})
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.userLoad--;
|
this.userLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1116,12 +1116,12 @@ export default {
|
|||||||
},
|
},
|
||||||
}).then(({msg}) => {
|
}).then(({msg}) => {
|
||||||
$A.messageSuccess(msg);
|
$A.messageSuccess(msg);
|
||||||
this.transferLoad--;
|
|
||||||
this.transferShow = false;
|
this.transferShow = false;
|
||||||
this.$store.dispatch("getProjectOne", this.projectId).catch(() => {});
|
this.$store.dispatch("getProjectOne", this.projectId).catch(() => {});
|
||||||
this.$store.dispatch("getTaskForProject", this.projectId).catch(() => {})
|
this.$store.dispatch("getTaskForProject", this.projectId).catch(() => {})
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.transferLoad--;
|
this.transferLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1292,11 +1292,11 @@ export default {
|
|||||||
refresh: refresh === true ? 'yes' : 'no'
|
refresh: refresh === true ? 'yes' : 'no'
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.inviteLoad--;
|
|
||||||
this.inviteData = data;
|
this.inviteData = data;
|
||||||
this.inviteCopy();
|
this.inviteCopy();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.inviteLoad--;
|
this.inviteLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -111,7 +111,6 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.listPageSize), 10),
|
pagesize: Math.max($A.runNum(this.listPageSize), 10),
|
||||||
}
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
if (resetLoad === true) {
|
if (resetLoad === true) {
|
||||||
this.lists = [];
|
this.lists = [];
|
||||||
}
|
}
|
||||||
@ -143,10 +142,11 @@ export default {
|
|||||||
this.hasMorePages = data.current_page < data.last_page;
|
this.hasMorePages = data.current_page < data.last_page;
|
||||||
this.totalNum = data.total;
|
this.totalNum = data.total;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.lists = [];
|
this.lists = [];
|
||||||
this.hasMorePages = false;
|
this.hasMorePages = false;
|
||||||
this.totalNum = 0;
|
this.totalNum = 0;
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -213,14 +213,14 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.page = data.current_page;
|
this.page = data.current_page;
|
||||||
this.total = data.total;
|
this.total = data.total;
|
||||||
this.list = data.data;
|
this.list = data.data;
|
||||||
this.noText = '没有相关的数据';
|
this.noText = '没有相关的数据';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.noText = '数据加载失败';
|
this.noText = '数据加载失败';
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -231,7 +231,6 @@ export default {
|
|||||||
project_id: this.projectId,
|
project_id: this.projectId,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.list = data.map(item => {
|
this.list = data.map(item => {
|
||||||
item.project_flow_bak = JSON.stringify(item.project_flow_item)
|
item.project_flow_bak = JSON.stringify(item.project_flow_item)
|
||||||
return item;
|
return item;
|
||||||
@ -239,8 +238,9 @@ export default {
|
|||||||
this.openIndex = this.list.length === 1 ? ("index_" + this.list[0].id) : ""
|
this.openIndex = this.list.length === 1 ? ("index_" + this.list[0].id) : ""
|
||||||
this.$nextTick(this.syncScroller);
|
this.$nextTick(this.syncScroller);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -347,7 +347,6 @@ export default {
|
|||||||
project_id: this.projectId,
|
project_id: this.projectId,
|
||||||
},
|
},
|
||||||
}).then(({msg}) => {
|
}).then(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$.messageSuccess(msg);
|
$.messageSuccess(msg);
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
//
|
//
|
||||||
@ -356,9 +355,10 @@ export default {
|
|||||||
this.list.splice(index, 1)
|
this.list.splice(index, 1)
|
||||||
}
|
}
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError(msg, 301);
|
$A.modalError(msg, 301);
|
||||||
this.$Modal.remove();
|
this.$Modal.remove();
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let index = this.list.findIndex(({id}) => id == data.id)
|
let index = this.list.findIndex(({id}) => id == data.id)
|
||||||
@ -475,7 +475,6 @@ export default {
|
|||||||
},
|
},
|
||||||
method: 'post',
|
method: 'post',
|
||||||
}).then(({data, msg}) => {
|
}).then(({data, msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$.messageSuccess(msg)
|
$.messageSuccess(msg)
|
||||||
//
|
//
|
||||||
data.project_flow_bak = JSON.stringify(data.project_flow_item)
|
data.project_flow_bak = JSON.stringify(data.project_flow_item)
|
||||||
@ -488,8 +487,9 @@ export default {
|
|||||||
this.openIndex = "index_" + data.id;
|
this.openIndex = "index_" + data.id;
|
||||||
this.$nextTick(this.syncScroller);
|
this.$nextTick(this.syncScroller);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -266,14 +266,14 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.page = data.current_page;
|
this.page = data.current_page;
|
||||||
this.total = data.total;
|
this.total = data.total;
|
||||||
this.list = data.data;
|
this.list = data.data;
|
||||||
this.noText = '没有相关的数据';
|
this.noText = '没有相关的数据';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.noText = '数据加载失败';
|
this.noText = '数据加载失败';
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -214,14 +214,14 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.page = data.current_page;
|
this.page = data.current_page;
|
||||||
this.total = data.total;
|
this.total = data.total;
|
||||||
this.list = data.data;
|
this.list = data.data;
|
||||||
this.noText = '没有相关的数据';
|
this.noText = '没有相关的数据';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.noText = '数据加载失败';
|
this.noText = '数据加载失败';
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1083,7 +1083,6 @@ export default {
|
|||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.$store.dispatch("saveTask", data);
|
this.$store.dispatch("saveTask", data);
|
||||||
this.$store.dispatch("getDialogOne", data.dialog_id).then(() => {
|
this.$store.dispatch("getDialogOne", data.dialog_id).then(() => {
|
||||||
this.sendLoad--;
|
|
||||||
if ($A.isSubElectron) {
|
if ($A.isSubElectron) {
|
||||||
this.resizeDialog().then(() => {
|
this.resizeDialog().then(() => {
|
||||||
this.sendDialogMsg();
|
this.sendDialogMsg();
|
||||||
@ -1106,8 +1105,9 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.sendLoad--;
|
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.sendLoad--;
|
||||||
});
|
});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.sendLoad--;
|
this.sendLoad--;
|
||||||
|
|||||||
@ -380,14 +380,14 @@ export default {
|
|||||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.page = data.current_page;
|
this.page = data.current_page;
|
||||||
this.total = data.total;
|
this.total = data.total;
|
||||||
this.list = data.data;
|
this.list = data.data;
|
||||||
this.noText = '没有相关的数据';
|
this.noText = '没有相关的数据';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.noText = '数据加载失败';
|
this.noText = '数据加载失败';
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1145,15 +1145,15 @@ export default {
|
|||||||
refresh: refresh === true ? 'yes' : 'no'
|
refresh: refresh === true ? 'yes' : 'no'
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.linkLoad--;
|
|
||||||
this.linkData = Object.assign(data, {
|
this.linkData = Object.assign(data, {
|
||||||
id: this.linkData.id
|
id: this.linkData.id
|
||||||
});
|
});
|
||||||
this.linkCopy();
|
this.linkCopy();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.linkLoad--;
|
|
||||||
this.linkShow = false
|
this.linkShow = false
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.linkLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1348,7 +1348,6 @@ export default {
|
|||||||
id: this.shareInfo.id
|
id: this.shareInfo.id
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.shareLoad--;
|
|
||||||
if (data.id == this.shareInfo.id) {
|
if (data.id == this.shareInfo.id) {
|
||||||
this.shareList = data.list.map(item => {
|
this.shareList = data.list.map(item => {
|
||||||
item._permission = item.permission;
|
item._permission = item.permission;
|
||||||
@ -1356,9 +1355,10 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.shareLoad--;
|
|
||||||
this.shareShow = false;
|
this.shareShow = false;
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
|
}).finally(_ => {
|
||||||
|
this.shareLoad--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1374,13 +1374,11 @@ export default {
|
|||||||
force: force === true ? 1 : 0
|
force: force === true ? 1 : 0
|
||||||
}),
|
}),
|
||||||
}).then(({data, msg}) => {
|
}).then(({data, msg}) => {
|
||||||
this.shareLoad--;
|
|
||||||
$A.messageSuccess(msg)
|
$A.messageSuccess(msg)
|
||||||
this.$store.dispatch("saveFile", data);
|
this.$store.dispatch("saveFile", data);
|
||||||
this.$set(this.shareInfo, 'userids', []);
|
this.$set(this.shareInfo, 'userids', []);
|
||||||
this.getShare();
|
this.getShare();
|
||||||
}).catch(({ret, msg}) => {
|
}).catch(({ret, msg}) => {
|
||||||
this.shareLoad--;
|
|
||||||
if (ret === -3001) {
|
if (ret === -3001) {
|
||||||
$A.modalConfirm({
|
$A.modalConfirm({
|
||||||
content: '此文件夹内已有共享文件夹,子文件的共享状态将被取消,是否继续?',
|
content: '此文件夹内已有共享文件夹,子文件的共享状态将被取消,是否继续?',
|
||||||
@ -1391,6 +1389,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
$A.modalError(msg, force === true ? 301 : 0)
|
$A.modalError(msg, force === true ? 301 : 0)
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
|
this.shareLoad--;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -376,7 +376,6 @@ export default {
|
|||||||
pagesize: 50
|
pagesize: 50
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.contactsLoad--;
|
|
||||||
data.data.some((user) => {
|
data.data.some((user) => {
|
||||||
if (user.userid === this.userId) {
|
if (user.userid === this.userId) {
|
||||||
return false;
|
return false;
|
||||||
@ -395,8 +394,9 @@ export default {
|
|||||||
this.contactsCurrentPage = data.current_page;
|
this.contactsCurrentPage = data.current_page;
|
||||||
this.contactsHasMorePages = data.current_page < data.last_page;
|
this.contactsHasMorePages = data.current_page < data.last_page;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.contactsLoad--;
|
|
||||||
this.contactsHasMorePages = false;
|
this.contactsHasMorePages = false;
|
||||||
|
}).finally(_ => {
|
||||||
|
this.contactsLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -74,12 +74,12 @@ export default {
|
|||||||
code: this.code,
|
code: this.code,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.already = data.already;
|
this.already = data.already;
|
||||||
this.project = data.project;
|
this.project = data.project;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadIng--;
|
|
||||||
this.project = {}
|
this.project = {}
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -91,13 +91,13 @@ export default {
|
|||||||
code: this.code,
|
code: this.code,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.joinLoad--;
|
|
||||||
this.already = data.already;
|
this.already = data.already;
|
||||||
this.project = data.project;
|
this.project = data.project;
|
||||||
this.goProject();
|
this.goProject();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.joinLoad--;
|
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
|
this.joinLoad--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -101,7 +101,6 @@ export default {
|
|||||||
if (save) {
|
if (save) {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
}
|
}
|
||||||
this.loadIng--;
|
|
||||||
this.$store.state.columnTemplate = $A.cloneJSON(data).map(item => {
|
this.$store.state.columnTemplate = $A.cloneJSON(data).map(item => {
|
||||||
if ($A.isArray(item.columns)) {
|
if ($A.isArray(item.columns)) {
|
||||||
item.columns = item.columns.join(",")
|
item.columns = item.columns.join(",")
|
||||||
@ -112,6 +111,7 @@ export default {
|
|||||||
if (save) {
|
if (save) {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -104,13 +104,13 @@ export default {
|
|||||||
if (save) {
|
if (save) {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
}
|
}
|
||||||
this.loadIng--;
|
|
||||||
this.formData = data;
|
this.formData = data;
|
||||||
this.formDatum_bak = $A.cloneJSON(this.formData);
|
this.formDatum_bak = $A.cloneJSON(this.formData);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
if (save) {
|
if (save) {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -126,13 +126,13 @@ export default {
|
|||||||
if (save) {
|
if (save) {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
}
|
}
|
||||||
this.loadIng--;
|
|
||||||
this.formDatum = data;
|
this.formDatum = data;
|
||||||
this.formDatum_bak = $A.cloneJSON(this.formDatum);
|
this.formDatum_bak = $A.cloneJSON(this.formDatum);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
if (save) {
|
if (save) {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,12 +119,12 @@ export default {
|
|||||||
if (save) {
|
if (save) {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
}
|
}
|
||||||
this.loadIng--;
|
|
||||||
this.$store.state.taskPriority = $A.cloneJSON(data);
|
this.$store.state.taskPriority = $A.cloneJSON(data);
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
if (save) {
|
if (save) {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
}
|
}
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,11 +90,11 @@ export default {
|
|||||||
data: this.formDatum,
|
data: this.formDatum,
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
this.loadIng--;
|
|
||||||
this.$store.dispatch("saveUserInfo", data);
|
this.$store.dispatch("saveUserInfo", data);
|
||||||
this.$refs.formDatum.resetFields();
|
this.$refs.formDatum.resetFields();
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,10 +81,10 @@ export default {
|
|||||||
data,
|
data,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
$A.messageSuccess('修改成功');
|
$A.messageSuccess('修改成功');
|
||||||
this.loadIng--;
|
|
||||||
this.$store.dispatch('getUserInfo').catch(() => {});
|
this.$store.dispatch('getUserInfo').catch(() => {});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
|
}).finally(_ => {
|
||||||
this.loadIng--;
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,16 +62,16 @@ export default {
|
|||||||
url: 'file/one',
|
url: 'file/one',
|
||||||
data,
|
data,
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.fileInfo = data;
|
this.fileInfo = data;
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError({
|
$A.modalError({
|
||||||
content: msg,
|
content: msg,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,10 +136,8 @@ export default {
|
|||||||
msg_id: this.msgId,
|
msg_id: this.msgId,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.msgDetail = data;
|
this.msgDetail = data;
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError({
|
$A.modalError({
|
||||||
content: msg,
|
content: msg,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
@ -148,6 +146,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
documentKey() {
|
documentKey() {
|
||||||
|
|||||||
@ -136,10 +136,8 @@ export default {
|
|||||||
file_id: this.fileId,
|
file_id: this.fileId,
|
||||||
},
|
},
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.loadIng--;
|
|
||||||
this.fileDetail = data;
|
this.fileDetail = data;
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
this.loadIng--;
|
|
||||||
$A.modalError({
|
$A.modalError({
|
||||||
content: msg,
|
content: msg,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
@ -148,6 +146,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}).finally(_ => {
|
||||||
|
this.loadIng--;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
documentKey() {
|
documentKey() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user