李磊 3 years ago
parent
commit
2b3eeefc77
  1. 11
      src/api/common.js
  2. 4
      src/components/Notice/message.vue
  3. 2
      src/views/archive/archive_scan.vue
  4. 54
      src/views/bggl/components/original_db_list.vue
  5. 136
      src/views/monitor/log_info.vue

11
src/api/common.js

@ -155,4 +155,15 @@ export function getDicAssetTreeList() {
url: '/sedirectory/getList', url: '/sedirectory/getList',
method: 'get' method: 'get'
}) })
}
export function rebutFn(params) {
return api({
url: '/flow/bohui',
method: 'post',
data: params,
paramsSerializer: function(data) {
console.log(require('qs').stringify(data, { indices: false }), 8888888888888)
return require('qs').stringify(data, { indices: false })
}
})
} }

4
src/components/Notice/message.vue

@ -129,7 +129,9 @@ export default {
readListQuery: { readListQuery: {
pageNum: 1, pageNum: 1,
pageRow: 20, pageRow: 20,
searchReadMessage: {} searchReadMessage: {},
content: '',
title: ''
}, },
readMultipleSelection: [], readMultipleSelection: [],
recycleMessage: [], recycleMessage: [],

2
src/views/archive/archive_scan.vue

@ -161,7 +161,7 @@ export default {
this.archive.archiveCount = this.paramList.length this.archive.archiveCount = this.paramList.length
this.server({ this.server({
url: '/archive/archive/addNew', url: '/archive',
method: 'post', method: 'post',
data: { data: {
archive: this.archive, archive: this.archive,

54
src/views/bggl/components/original_db_list.vue

@ -285,6 +285,16 @@
<el-form-item label="驳回意见:" required> <el-form-item label="驳回意见:" required>
<el-input v-model="bohuiForm.infoNotes" :rows="5" type="textarea" /> <el-input v-model="bohuiForm.infoNotes" :rows="5" type="textarea" />
</el-form-item> </el-form-item>
<el-form-item label="驳回环节:" required>
<el-select v-model="bohuiForm.flowstatus" placeholder="请选择">
<el-option
v-for="(item,index) in AllFlowUser"
:key="index"
:label="item.label"
:value="item.key"
/>
</el-select>
</el-form-item>
<el-form-item label="上传驳回附件:"> <el-form-item label="上传驳回附件:">
<span style="color: #dd6161">多张图片可合成一份pdf文件进行上传</span> <span style="color: #dd6161">多张图片可合成一份pdf文件进行上传</span>
<el-upload <el-upload
@ -401,7 +411,7 @@ import Pagination from '@/components/Pagination'
import Utils from '../../../utils/contact.js' import Utils from '../../../utils/contact.js'
import qs from 'qs' import qs from 'qs'
import Enclosure from '@/views/common/Enclosure' import Enclosure from '@/views/common/Enclosure'
import { rebutFn } from '@/api/common'
export default { export default {
name: 'TODOReport', name: 'TODOReport',
components: { Sticky, Pagination, Enclosure }, components: { Sticky, Pagination, Enclosure },
@ -458,8 +468,8 @@ export default {
} }
], ],
bohuiForm: { bohuiForm: {
fileName: '', infoNotes: '',
infoNotes: '' flowstatus: ''
}, },
userList: [], userList: [],
ysjlId: '', ysjlId: '',
@ -497,7 +507,8 @@ export default {
}], }],
fileList: [], fileList: [],
dialogFormVisibleSfInfo: false, dialogFormVisibleSfInfo: false,
sfInfo: {} sfInfo: {},
AllFlowUser: []
} }
}, },
created() { created() {
@ -511,11 +522,21 @@ export default {
this.common.$on('bggl-daiban-list', function() { this.common.$on('bggl-daiban-list', function() {
that.handleFilter() that.handleFilter()
}) })
this.getAllFlowUser()
}, },
methods: { methods: {
handlePreview(file) { handlePreview(file) {
window.open(file.url) window.open(file.url)
}, },
getAllFlowUser() {
this.api({
url: '/flow/getAllFlowUserList',
methods: 'get'
}).then(res => {
this.AllFlowUser = res
console.log(this.AllFlowUser)
})
},
onRemove(file) { onRemove(file) {
const array = file.url.split('/') const array = file.url.split('/')
if (array.length > 0) { if (array.length > 0) {
@ -563,7 +584,7 @@ export default {
} }
} }
this.list = data.list this.list = data.list
this.totalCount = data.totalCount this.totalCount = data.total
this.common.switchInspection(this.list) this.common.switchInspection(this.list)
const messagePush = this.$store.getters.messageCount const messagePush = this.$store.getters.messageCount
for (let i = 0; i < messagePush.length; i++) { for (let i = 0; i < messagePush.length; i++) {
@ -678,18 +699,16 @@ export default {
this.$message('请在列表选择要驳回的数据。') this.$message('请在列表选择要驳回的数据。')
return false return false
} }
this.ysjlId = '' this.ysjlId = []
const arr = []
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
if (this.multipleSelection[i].flowstatus !== 1) { if (this.multipleSelection[i].flowstatus !== 1) {
if (i === 0) { arr.push(this.multipleSelection[i].id)
this.ysjlId = this.multipleSelection[i].id
} else {
this.ysjlId = this.ysjlId + ',' + this.multipleSelection[i].id
}
} else { } else {
this.$message('存在未流转报告。') this.$message('存在未流转报告。')
} }
} }
this.ysjlId = arr
if (this.ysjlId !== '') { if (this.ysjlId !== '') {
this.dialogBohuiVisible = true this.dialogBohuiVisible = true
} }
@ -700,16 +719,13 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(this.ysjlId)
this.$refs['bohuiForm'].validate(valid => { this.$refs['bohuiForm'].validate(valid => {
if (valid) { if (valid) {
this.api({ rebutFn({
url: '/flow/bohui', ysjlIds: this.ysjlId,
method: 'post', infonotes: this.bohuiForm.infoNotes,
params: { flowstatus: this.bohuiForm.flowstatus
ids: this.ysjlId,
infonotes: this.bohuiForm.infoNotes,
fileName: this.bohuiForm.fileName
}
}).then(data => { }).then(data => {
// //
this.$message({ this.$message({

136
src/views/monitor/log_info.vue

@ -3,9 +3,30 @@
<div class="filter-container"> <div class="filter-container">
<el-form> <el-form>
<el-form-item> <el-form-item>
<el-input v-model="listQuery.createBy" placeholder="用户名" style="width: 150px" size="small" clearable @keyup.enter.native="handleFilter" /> <el-input
<el-input v-model="listQuery.address" placeholder="IP来源" style="width: 150px" size="small" clearable @keyup.enter.native="handleFilter" /> v-model="listQuery.createBy"
<el-input v-model="listQuery.description" placeholder="描述" style="width: 150px" size="small" clearable @keyup.enter.native="handleFilter" /> placeholder="用户名"
style="width: 150px"
size="small"
clearable
@keyup.enter.native="handleFilter"
/>
<el-input
v-model="listQuery.address"
placeholder="IP来源"
style="width: 150px"
size="small"
clearable
@keyup.enter.native="handleFilter"
/>
<el-input
v-model="listQuery.description"
placeholder="描述"
style="width: 150px"
size="small"
clearable
@keyup.enter.native="handleFilter"
/>
<el-date-picker <el-date-picker
v-model="value1" v-model="value1"
type="datetimerange" type="datetimerange"
@ -15,7 +36,12 @@
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
@keyup.enter.native="handleFilter" @keyup.enter.native="handleFilter"
/> />
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter"> <el-button
type="primary"
icon="el-icon-search"
size="small"
@click="handleFilter"
>
查询 查询
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -23,11 +49,26 @@
</div> </div>
<el-table :data="list" size="small" fit highlight-current-row> <el-table :data="list" size="small" fit highlight-current-row>
<el-table-column align="center" label="用户名" prop="createBy" /> <el-table-column align="center" label="用户名" prop="createBy" />
<el-table-column align="center" label="IP" prop="requestIp" :formatter="formatterIp" /> <el-table-column
align="center"
label="IP"
prop="requestIp"
:formatter="formatterIp"
/>
<el-table-column align="center" label="IP来源" prop="address" /> <el-table-column align="center" label="IP来源" prop="address" />
<el-table-column align="center" label="描述" prop="description" /> <el-table-column align="center" label="描述" prop="description" />
<el-table-column align="center" label="方法名称" :show-overflow-tooltip="true" prop="method" /> <el-table-column
<el-table-column align="center" label="参数" :show-overflow-tooltip="true" prop="params" /> align="center"
label="方法名称"
:show-overflow-tooltip="true"
prop="method"
/>
<el-table-column
align="center"
label="参数"
:show-overflow-tooltip="true"
prop="params"
/>
<el-table-column prop="time" label="请求耗时" align="center"> <el-table-column prop="time" label="请求耗时" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.time <= 300"> <el-tag v-if="scope.row.time <= 300">
@ -42,8 +83,66 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="创建日期" prop="createTime" /> <el-table-column align="center" label="创建日期" prop="createTime" />
<el-table-column
align="center"
label="参数"
:show-overflow-tooltip="true"
prop="params"
>
<template slot-scope="scope">
<el-button
type="text"
@click="checkDetail(scope.row)"
>
查看详情
</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<pagination v-show="totalCount>0" :total="totalCount" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" @pagination="getList" /> <pagination
v-show="totalCount > 0"
:total="totalCount"
:page-num.sync="listQuery.pageNum"
:page-row.sync="listQuery.pageRow"
@pagination="getList"
/>
<el-dialog title="详情" :visible.sync="dialogFormVisible">
<el-form :model="form">
<el-form-item label="接口名称" :label-width="formLabelWidth">
<span>{{ row.api }}</span>
</el-form-item>
<el-form-item label="接口地址" :label-width="formLabelWidth">
<span>{{ row.uri }}</span>
</el-form-item>
<el-form-item label="接口方法类型" :label-width="formLabelWidth">
<span>{{ row.requestMethod }}</span>
</el-form-item>
<el-form-item label="接口参数" :label-width="formLabelWidth">
<span>{{ row.requestParams }}</span>
</el-form-item>
<el-form-item label="方法名称" :label-width="formLabelWidth">
<span>{{ row.method }}</span>
</el-form-item>
<el-form-item label="接口所属模块" :label-width="formLabelWidth">
<span>{{ row.module }}</span>
</el-form-item>
<el-form-item label="接口IP地址" :label-width="formLabelWidth">
<span>{{ row.requestIp }}</span>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">
</el-button>
<el-button
type="primary"
@click="dialogFormVisible = false"
>
</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -56,11 +155,24 @@ export default {
return { return {
totalCount: 0, totalCount: 0,
list: [], list: [],
row: {},
dialogFormVisible: false,
formLabelWidth: '150px',
listQuery: { listQuery: {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
orderBy: 'id desc', orderBy: 'id desc',
logType: true logType: true,
address: '',
api: '',
apiOperation: '',
businessType: '',
contentType: '',
requestMethod: '',
requestParams: '',
time: '',
updateBy: '',
uri: ''
}, },
value1: [] value1: []
} }
@ -74,11 +186,15 @@ export default {
url: '/log/list', url: '/log/list',
method: 'get', method: 'get',
params: this.listQuery params: this.listQuery
}).then(data => { }).then((data) => {
this.list = data.list this.list = data.list
this.totalCount = data.total this.totalCount = data.total
}) })
}, },
checkDetail(row) {
this.dialogFormVisible = true
this.row = row
},
handleFilter() { handleFilter() {
this.listQuery.pageNum = 1 this.listQuery.pageNum = 1
this.listQuery.createTimeStart = this.value1[0] this.listQuery.createTimeStart = this.value1[0]

Loading…
Cancel
Save