| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const detailByOid = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-log/operateLog/detailByOid', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | } |
| | | }) |
| | | } |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | ref="crud" |
| | | <avue-crud ref="crud" |
| | | v-model="form" |
| | | :permission="permissionList" |
| | | :page.sync="page" |
| | | :before-open="beforeOpen" |
| | | :data="data" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | :table-loading="loading" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot="description" slot-scope="scope"> |
| | | <avue-text-ellipsis :text="scope.row.description" :height="50"> |
| | | <avue-text-ellipsis :height="50" :text="scope.row.description"> |
| | | <small slot="more">...</small> |
| | | </avue-text-ellipsis> |
| | | </template> |
| | |
| | | @click="searchHandler"> 搜索</el-button> |
| | | </span> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button type="text" icon="el-icon-view" size="mini" @click="rowView(scope.row)">查看</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listLogOperate } from "@/api/logs"; |
| | | import {listLogOperate,detailByOid} from "@/api/logs"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | |
| | | prop: "realName", |
| | | align: "left", |
| | | display: false |
| | | } |
| | | }, |
| | | { |
| | | label: "用户ip", |
| | | prop: "ip", |
| | | }, |
| | | { |
| | | label: "模块", |
| | | prop: "model", |
| | | |
| | | }, |
| | | { |
| | | label: "时间", |
| | | prop: "time", |
| | | |
| | | }, |
| | | { |
| | | label: "操作结果", |
| | | prop: "operateResult", |
| | | |
| | | }, |
| | | { |
| | | label: "描述", |
| | | prop: "description", |
| | | span: 24, |
| | | minRows: 20, |
| | | }, |
| | | ], |
| | | form: {}, |
| | | selectionList: [], |
| | |
| | | searchMenuSpan: 6, |
| | | border: true, |
| | | index: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | delBtn: false, |
| | |
| | | this.getRouteParam() |
| | | }, |
| | | methods: { |
| | | rowView(row){ |
| | | this.loading = true; |
| | | detailByOid({oid:row.oid}).then(res =>{ |
| | | if(res.data.data){ |
| | | this.loading = false |
| | | this.$refs.crud.rowView(res.data.data) |
| | | } |
| | | }) |
| | | }, |
| | | searchHandler(){ |
| | | |
| | | let params = { |
| | | [this.searchSelect]:this.searchValue |
| | | }; |