|
@@ -237,6 +237,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getNowTask() { // 获取当前项目下任务
|
|
|
+ if (!this.$route.query.id) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const res = await taskList({
|
|
|
projectId: this.$route.query.id
|
|
|
})
|
|
@@ -245,6 +248,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async remoteMethod(query) { // 远程搜索任务
|
|
|
+ query = query.replace(/^\s+|\s+$/g, '')
|
|
|
+ if (query === '') {
|
|
|
+ return
|
|
|
+ }
|
|
|
this.loading = true
|
|
|
const res = await allTaskList({
|
|
|
bizId: Number(localStorage.getItem('bizId')),
|