|
|
|
@ -112,7 +112,7 @@
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { createEvent, updateEvent, deleteEvent, getEvent, getEventPage, exportEventExcel } from "@/api/farm/event"; |
|
|
|
|
import { createEvent, updateEvent, deleteEvent, getEvent, getEventPage, getEventSearchPage, exportEventExcel } from "@/api/farm/event"; |
|
|
|
|
import ImageUpload from '@/components/ImageUpload'; |
|
|
|
|
import Editor from '@/components/Editor'; |
|
|
|
|
import { getProjectPage } from "@/api/farm/project"; |
|
|
|
@ -221,6 +221,32 @@ export default {
|
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
/** 搜索条件查询列表 */ |
|
|
|
|
getSearchList() { |
|
|
|
|
this.loading = true; |
|
|
|
|
// 处理查询参数 |
|
|
|
|
let params = {...this.queryParams}; |
|
|
|
|
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime'); |
|
|
|
|
// 执行查询 |
|
|
|
|
getEventSearchPage(params).then(response => { |
|
|
|
|
response.data.list.forEach(eve => { |
|
|
|
|
this.projectList.forEach(project =>{ |
|
|
|
|
if(project.id == eve.projectId){ |
|
|
|
|
eve.projectId = project.name; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.taskList.forEach(task =>{ |
|
|
|
|
if (task.id == eve.taskId) { |
|
|
|
|
eve.taskId = task.name; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
this.list = response.data.list; |
|
|
|
|
this.total = response.data.total; |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
/** 取消按钮 */ |
|
|
|
|
cancel() { |
|
|
|
|
this.open = false; |
|
|
|
@ -241,7 +267,7 @@ export default {
|
|
|
|
|
/** 搜索按钮操作 */ |
|
|
|
|
handleQuery() { |
|
|
|
|
this.queryParams.pageNo = 1; |
|
|
|
|
this.getList(); |
|
|
|
|
this.getSearchList(); |
|
|
|
|
}, |
|
|
|
|
/** 重置按钮操作 */ |
|
|
|
|
resetQuery() { |
|
|
|
|