Commit 450354b2 by zhangzhijie

公共管理对外服务完善日志记录,新增“服务统计”模块

parent 6dc29a23
...@@ -37,3 +37,9 @@ export const uploadServerInstructionFile = params => ...@@ -37,3 +37,9 @@ export const uploadServerInstructionFile = params =>
//删除服务使用说明 //删除服务使用说明
export const removeServerInstruction = params => export const removeServerInstruction = params =>
post(`${base.alyIP}/commonServer/removeServerInstruction`, params); post(`${base.alyIP}/commonServer/removeServerInstruction`, params);
export const childServerLogging = params =>
post(`${base.alyIP}/commonServer/childServerLogging`, params);
export const getAccessStatistics = params =>
post(`${base.alyIP}/commonServer/getAccessStatistics`, params);
...@@ -29,6 +29,15 @@ const menuLayouts = [ ...@@ -29,6 +29,15 @@ const menuLayouts = [
component: () => import("@/views/commonServer/basicCommonManageServer/serverLogModule.vue") component: () => import("@/views/commonServer/basicCommonManageServer/serverLogModule.vue")
}, },
{ {
path: "/serverAccessStatistics",
name: "serverAccessStatistics",
meta: {
isAdd: false,
title: '服务访问统计'
},
component: () => import("@/views/commonServer/basicCommonManageServer/serverAccessStatistics.vue")
},
{
path: "/serverInstructionsManage", path: "/serverInstructionsManage",
name: "serverInstructionsManage", name: "serverInstructionsManage",
meta: { meta: {
......
...@@ -293,6 +293,14 @@ export default { ...@@ -293,6 +293,14 @@ export default {
disabled: false, disabled: false,
}, },
{ {
id: "serverAccessStatistics",
label: "服务访问统计",
index: "serverAccessStatistics",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "serverInstructionsManage", id: "serverInstructionsManage",
label: "服务说明管理", label: "服务说明管理",
index: "serverInstructionsManage", index: "serverInstructionsManage",
......
...@@ -12,19 +12,19 @@ ...@@ -12,19 +12,19 @@
<el-form ref="form" label-width="110px"> <el-form ref="form" label-width="110px">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="操作人:" style="text-align: left;"> <el-form-item label="访问人:" style="text-align: left;">
<el-input v-model="search.operationUserName" placeholder="请输入操作人姓名" style="width:100%"> <el-input v-model="search.operationUserName" placeholder="请输入访问人姓名" style="width:100%">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="操作人单位:"> <el-form-item label="访问人单位:">
<el-input v-model="search.operationUnitName" placeholder="请输入操作人单位"> <el-input v-model="search.operationUnitName" placeholder="请输入访问人单位">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="操作模块:"> <el-form-item label="访问模块:">
<el-input v-model="search.operationServerName" placeholder="请输入服务名称"></el-input> <el-input v-model="search.operationServerName" placeholder="请输入服务名称"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="操作时间:"> <el-form-item label="访问时间:">
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date"
placeholder="请选择查询时间" v-model="search.operationTime"> placeholder="请选择查询时间" v-model="search.operationTime">
</el-date-picker> </el-date-picker>
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-button-group style="margin-left: 2.5%"> <el-button-group style="margin-left: 2.5%">
<el-button size="mini" type="primary" icon="el-icon-search" @click="dataSearch">查询</el-button> <el-button size="mini" type="primary" icon="el-icon-search" @click="dataSearch">查询</el-button>
<el-button size="mini" icon="el-icon-minus" @click="reset">重置</el-button> <el-button size="mini" icon="el-icon-minus" @click="reset">重置</el-button>
</el-button-group> </el-button-group>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
...@@ -70,23 +70,27 @@ ...@@ -70,23 +70,27 @@
<el-table :data="tableData" v-loading="tableLoading" stripe element-loading-spinner="el-icon-loading"> <el-table :data="tableData" v-loading="tableLoading" stripe element-loading-spinner="el-icon-loading">
<el-table-column label="序号" type="index" width="75" align="center"></el-table-column> <el-table-column label="序号" type="index" width="75" align="center"></el-table-column>
<el-table-column label="操作类型" align="center"> <el-table-column label="操作类型" align="center">
<template slot-scope="scope"> <template v-slot="scope">
<p v-if="scope.row.operationType == '1'">新增</p> <p v-if="scope.row.operationType == '1'">新增</p>
<p v-if="scope.row.operationType == '2'">删除</p> <p v-if="scope.row.operationType == '2'">删除</p>
<p v-if="scope.row.operationType == '3'">修改</p> <p v-if="scope.row.operationType == '3'">修改</p>
<p v-if="scope.row.operationType == '4'">查询</p> <p v-if="scope.row.operationType == '4'">查询</p>
<p v-if="scope.row.operationType == '5'">申请</p> <p v-if="scope.row.operationType == '5'">申请</p>
<p v-if="scope.row.operationType == '6'">审批</p> <p v-if="scope.row.operationType == '6'">审批</p>
<p v-if="scope.row.operationType == '7'">下载</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作模块" prop="operationServerName" align="center"></el-table-column> <el-table-column label="访问模块" prop="operationServerName" align="center"></el-table-column>
<el-table-column label="操作业务" prop="operationName" align="center"></el-table-column> <el-table-column label="访问业务" prop="operationName" align="center"></el-table-column>
<el-table-column label="操作人" prop="operationUserName" align="center"></el-table-column> <el-table-column label="访问人" prop="operationUserName" align="center"></el-table-column>
<el-table-column label="操作人单位" prop="operationUnitName" align="center"></el-table-column> <el-table-column label="访问人单位" prop="operationUnitName" align="center"></el-table-column>
<el-table-column label="操作时间" prop="operationTime" align="center"></el-table-column> <el-table-column label="访问时间" prop="operationTime" align="center"></el-table-column>
<el-table-column label="访问ip" prop="operationIp" align="center"></el-table-column>
<!--
<el-table-column label="请求参数" prop="parameterDetail" align="center"></el-table-column>
-->
<el-table-column label="操作" align="center" width="250"> <el-table-column label="操作" align="center" width="250">
<template slot-scope="scope"> <template v-slot="scope">
<el-button type="text" size="mini " @click="removeLog(scope.row)">删除日志</el-button> <el-button type="text" size="mini " @click="removeLog(scope.row)">删除日志</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -125,6 +129,7 @@ export default { ...@@ -125,6 +129,7 @@ export default {
{id: "4", value: "查询"}, {id: "4", value: "查询"},
{id: "5", value: "申请"}, {id: "5", value: "申请"},
{id: "6", value: "审批"}, {id: "6", value: "审批"},
{id: "7", value: "下载"},
], ],
search: { search: {
OperationType: '', OperationType: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment