|
@@ -4,7 +4,7 @@
|
|
|
<template slot="searchItem1">
|
|
|
<span class="label">操作账户</span>
|
|
|
<el-input
|
|
|
- v-model="searchParams.a1"
|
|
|
+ v-model="searchParams.username"
|
|
|
size="small"
|
|
|
clearable
|
|
|
placeholder="请输入"
|
|
@@ -13,31 +13,35 @@
|
|
|
</el-input>
|
|
|
</template>
|
|
|
<template slot="searchItem2">
|
|
|
- <span class="label">操作内容</span>
|
|
|
- <el-input
|
|
|
- v-model="searchParams.a2"
|
|
|
- size="small"
|
|
|
- clearable
|
|
|
- placeholder="请输入"
|
|
|
- maxlength="60"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
+ <span class="label">所属模块</span>
|
|
|
+ <el-select v-model="searchParams.module" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="item in moduleList"
|
|
|
+ :label="item.caption"
|
|
|
+ :value="item.code"
|
|
|
+ :key="item.code"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
</template>
|
|
|
<template slot="searchItem3">
|
|
|
- <span class="label">日志类型</span>
|
|
|
- <el-select v-model="searchParams.a3">
|
|
|
- <!--<el-option
|
|
|
- v-for="item in list"
|
|
|
+ <span class="label">操作类型</span>
|
|
|
+ <el-select
|
|
|
+ v-model="searchParams.operationType"
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in operationTypeList"
|
|
|
:label="item.caption"
|
|
|
:value="item.code"
|
|
|
:key="item.code"
|
|
|
- ></el-option>-->
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
<template slot="searchItem4">
|
|
|
<span class="label">操作时间</span>
|
|
|
<el-date-picker
|
|
|
- v-model="searchDate"
|
|
|
+ v-model="createDate"
|
|
|
type="daterange"
|
|
|
format="yyyy-MM-dd"
|
|
|
value-format="yyyy-MM-dd"
|
|
@@ -55,25 +59,14 @@
|
|
|
</template>
|
|
|
</search-layout>
|
|
|
|
|
|
- <div class="myTabsBox myTabsBoxThreeTabs">
|
|
|
- <!--<el-button
|
|
|
- v-bind:class="{ addBtn: true}"
|
|
|
- icon="el-icon-circle-plus-outline"
|
|
|
- @click="addOne"
|
|
|
- type="primary"
|
|
|
- >新增</el-button
|
|
|
- >-->
|
|
|
- </div>
|
|
|
-
|
|
|
<tableList
|
|
|
ref="table"
|
|
|
- style="margin: 0 30px"
|
|
|
+ style="margin: 30px"
|
|
|
:columns="columns"
|
|
|
:getDataWay="getDataWay"
|
|
|
:pagination="pagination"
|
|
|
index
|
|
|
>
|
|
|
-
|
|
|
</tableList>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -83,45 +76,43 @@ import searchLayout from "@/components/grid/searchLayout";
|
|
|
import tableList from "@/components/grid/TableList";
|
|
|
|
|
|
export default {
|
|
|
- name: "logManagement",
|
|
|
+ name: "handleLogManagement", // 操作日志
|
|
|
components: { searchLayout, tableList },
|
|
|
data() {
|
|
|
return {
|
|
|
searchParams: {
|
|
|
//搜索参数
|
|
|
- a1: "", // ID
|
|
|
- a2: "", // 算法名称
|
|
|
- a3: "", // 算法描述
|
|
|
- a4: "", // 私有类型
|
|
|
- },
|
|
|
- searchDate:[],
|
|
|
- getDataWay:{
|
|
|
- //dataType: "url",
|
|
|
- dataType: "data",
|
|
|
- type: "post",
|
|
|
- // firstRequest: false,
|
|
|
- // data: this.$api.algorithmsLibrary.selectSharedAlgorithmList,
|
|
|
- data:[{a1:'1',a2:'2',a3:'3',a4:'4',a5:'5',a6:'6'}],
|
|
|
- param: {},
|
|
|
+ username: "", // 操作账户
|
|
|
+ module: "", // 所属模块
|
|
|
+ operationType: "", // 操作类型
|
|
|
+ createTimeBegin: "", // 上传时间起
|
|
|
+ createTimeEnd: "", // 上传时间止
|
|
|
},
|
|
|
+ createDate: "",
|
|
|
+ moduleList: [],
|
|
|
+ operationTypeList: [],
|
|
|
columns: [
|
|
|
//表格列
|
|
|
{
|
|
|
- label: "操作账户",
|
|
|
- prop: "a1",
|
|
|
+ label: "账户名称",
|
|
|
+ prop: "username",
|
|
|
},
|
|
|
{
|
|
|
- label: "操作类型",
|
|
|
- prop: "a2",
|
|
|
+ label: "IP",
|
|
|
+ prop: "ip",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "所属模块",
|
|
|
+ prop: "module",
|
|
|
},
|
|
|
{
|
|
|
label: "操作时间",
|
|
|
- prop: "a3",
|
|
|
+ prop: "createTime",
|
|
|
},
|
|
|
{
|
|
|
- label: "操作内容",
|
|
|
- prop: "a4"
|
|
|
- }
|
|
|
+ label: "操作类型",
|
|
|
+ prop: "operationType",
|
|
|
+ },
|
|
|
],
|
|
|
pagination: {
|
|
|
//分页使用
|
|
@@ -131,16 +122,35 @@ export default {
|
|
|
pageSizes: [10, 30, 50, 100, 200],
|
|
|
layout: "sizes, total, prev, pager, next, jumper",
|
|
|
},
|
|
|
+ getDataWay: {
|
|
|
+ //加载表格数据
|
|
|
+ dataType: "url",
|
|
|
+ type: "post",
|
|
|
+ // firstRequest: false,
|
|
|
+ data: this.$api.systemManagement.getOperationLogPageList,
|
|
|
+ param: {},
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
-
|
|
|
- },
|
|
|
+
|
|
|
methods: {
|
|
|
doSearch() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.refreshList(this.searchParams);
|
|
|
- });
|
|
|
+ if (this.createDate) {
|
|
|
+ this.searchParams.createTimeBegin = `${this.createDate[0]}`;
|
|
|
+ this.searchParams.createTimeEnd = `${this.createDate[1]}`;
|
|
|
+ } else {
|
|
|
+ this.searchParams.createTimeBegin = "";
|
|
|
+ this.searchParams.createTimeEnd = "";
|
|
|
+ }
|
|
|
+
|
|
|
+ let pageMap = {
|
|
|
+ username: this.searchParams.username,
|
|
|
+ module: this.searchParams.module,
|
|
|
+ operationType: this.searchParams.operationType,
|
|
|
+ createTimeBegin: this.searchParams.createTimeBegin,
|
|
|
+ createTimeEnd: this.searchParams.createTimeEnd,
|
|
|
+ };
|
|
|
+ this.refreshList(pageMap);
|
|
|
},
|
|
|
//刷新table
|
|
|
refreshList(param) {
|
|
@@ -150,37 +160,24 @@ export default {
|
|
|
},
|
|
|
doReset() {
|
|
|
this.searchParams = {
|
|
|
-
|
|
|
+ username: "",
|
|
|
+ module: "",
|
|
|
+ operationType: "",
|
|
|
+ createTimeBegin: "",
|
|
|
+ createTimeEnd: "",
|
|
|
};
|
|
|
+ this.createDate = "";
|
|
|
this.doSearch();
|
|
|
},
|
|
|
- addOne() {
|
|
|
-
|
|
|
- },
|
|
|
- editRow(row) {
|
|
|
-
|
|
|
- },
|
|
|
},
|
|
|
async mounted() {
|
|
|
await this.$dicsListsInit({
|
|
|
- validationStatusList: "validationStatus",
|
|
|
+ moduleList: "moduleType",
|
|
|
+ operationTypeList: "operationType",
|
|
|
});
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
-.tabsBox {
|
|
|
- position: relative;
|
|
|
- overflow: hidden;
|
|
|
-
|
|
|
- .el-button {
|
|
|
- position: absolute;
|
|
|
- right: 40px;
|
|
|
- top: 45px;
|
|
|
- }
|
|
|
-}
|
|
|
-.myTabsBox{
|
|
|
- min-height:29px;
|
|
|
-}
|
|
|
</style>
|