|
|
|
|
@ -4,41 +4,41 @@ |
|
|
|
|
<div class="search"> |
|
|
|
|
<div style="display: flex; align-items: center"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.taskParentId" |
|
|
|
|
placeholder="任务父类" |
|
|
|
|
v-model="searchForm.createBy" |
|
|
|
|
placeholder="用户" |
|
|
|
|
class="search-select" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in parentList" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.dictValue" |
|
|
|
|
:value="item.id" |
|
|
|
|
v-for="item in userList" |
|
|
|
|
:key="item.createBy" |
|
|
|
|
:label="item.createBy" |
|
|
|
|
:value="item.createBy" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.taskTypeName" |
|
|
|
|
placeholder="任务种类" |
|
|
|
|
v-model="searchForm.title" |
|
|
|
|
placeholder="操作模块" |
|
|
|
|
class="search-select" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in taskTypeList" |
|
|
|
|
:key="item.taskTypeName" |
|
|
|
|
:label="item.taskTypeName" |
|
|
|
|
:value="item.taskTypeName" |
|
|
|
|
v-for="item in moduleList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item" |
|
|
|
|
:value="item" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.taskLevel" |
|
|
|
|
placeholder="任务等级" |
|
|
|
|
v-model="searchForm.remoteIp" |
|
|
|
|
placeholder="IP地址" |
|
|
|
|
class="search-select" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in levelList" |
|
|
|
|
:key="item.id" |
|
|
|
|
:label="item.dictValue" |
|
|
|
|
:value="item.id" |
|
|
|
|
v-for="item in ipList" |
|
|
|
|
:key="item.remoteIp" |
|
|
|
|
:label="item.remoteIp" |
|
|
|
|
:value="item.remoteIp" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
@ -75,12 +75,18 @@ |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
> |
|
|
|
|
<template slot="model" slot-scope="scope"> |
|
|
|
|
{{ scope.row.title.split("-")[0] }} |
|
|
|
|
</template> |
|
|
|
|
<template slot="title" slot-scope="scope"> |
|
|
|
|
{{ scope.row.title.split("-")[1] }} |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getList } from "@/api/logs"; |
|
|
|
|
import { getList, getConditionData } from "@/api/logs"; |
|
|
|
|
import { tableOption } from "@/const/journal/journal.js"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
@ -99,29 +105,25 @@ export default { |
|
|
|
|
loading: false, |
|
|
|
|
parentList: [], |
|
|
|
|
levelList: [], |
|
|
|
|
userList: [], |
|
|
|
|
moduleList: [], |
|
|
|
|
ipList: [], |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
// this.getDict(); |
|
|
|
|
this.getDict(); |
|
|
|
|
this.onLoad(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 字典请求 |
|
|
|
|
// getDict() { |
|
|
|
|
// getTaskParent().then((res) => { |
|
|
|
|
// this.parentList = res.data.data; |
|
|
|
|
// const column = this.findObject(this.option.column, "taskParentId"); |
|
|
|
|
// column.dicData = res.data.data; |
|
|
|
|
// }); |
|
|
|
|
// getTaskLevel().then((res) => { |
|
|
|
|
// this.levelList = res.data.data; |
|
|
|
|
// const column = this.findObject(this.option.column, "taskLevel"); |
|
|
|
|
// column.dicData = res.data.data; |
|
|
|
|
// }); |
|
|
|
|
// getTaskTypeData().then((res) => { |
|
|
|
|
// this.taskTypeList = res.data.data; |
|
|
|
|
// }); |
|
|
|
|
// }, |
|
|
|
|
getDict() { |
|
|
|
|
getConditionData().then((res) => { |
|
|
|
|
const { user, module, ip } = res.data.data; |
|
|
|
|
this.userList = user; |
|
|
|
|
this.moduleList = module; |
|
|
|
|
this.ipList = ip; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
// 列表 |
|
|
|
|
onLoad() { |
|
|
|
|
this.loading = true; |
|
|
|
|
@ -133,17 +135,11 @@ export default { |
|
|
|
|
this.searchForm.startTime = this.searchForm.timeArr[0]; |
|
|
|
|
this.searchForm.endTime = this.searchForm.timeArr[1]; |
|
|
|
|
} |
|
|
|
|
const { |
|
|
|
|
taskParentId, |
|
|
|
|
taskTypeName, |
|
|
|
|
taskLevel, |
|
|
|
|
startTime, |
|
|
|
|
endTime, |
|
|
|
|
} = this.searchForm; |
|
|
|
|
const { createBy, title, remoteIp, startTime, endTime } = this.searchForm; |
|
|
|
|
let params = { |
|
|
|
|
taskParentId, |
|
|
|
|
taskTypeName, |
|
|
|
|
taskLevel, |
|
|
|
|
createBy, |
|
|
|
|
title, |
|
|
|
|
remoteIp, |
|
|
|
|
startTime, |
|
|
|
|
endTime, |
|
|
|
|
}; |
|
|
|
|
|