webpackJsonp([61],{
|
|
|
|
/***/ "eJd/":
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
|
|
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
|
|
var stringify = __webpack_require__("mvHQ");
|
|
var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
|
|
|
|
// EXTERNAL MODULE: ./src/api/index.js + 5 modules
|
|
var api = __webpack_require__("gyMJ");
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/journal.vue
|
|
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
|
|
/* harmony default export */ var journal = ({
|
|
name: "journal",
|
|
data: function data() {
|
|
return {
|
|
detailDialogVisible: false,
|
|
detailDialogVisibleOne: false,
|
|
query: {
|
|
operType: "",
|
|
operateName: "",
|
|
operModul: "",
|
|
pageSize: 10,
|
|
pageNum: 1,
|
|
datePicker: ['', '']
|
|
},
|
|
queryOne: {
|
|
operType: "",
|
|
operateName: "",
|
|
operModul: "",
|
|
pageSize: 10,
|
|
pageNum: 1
|
|
},
|
|
activeName: 'first',
|
|
tableData: [],
|
|
tableDataOne: [],
|
|
multipleSelection: [],
|
|
delList: [],
|
|
editVisible: false,
|
|
pageTotal: 0,
|
|
pageTotalOne: 0,
|
|
form: {},
|
|
idx: -1,
|
|
id: -1,
|
|
detailMode: {},
|
|
detailModeOne: {}
|
|
};
|
|
},
|
|
beforeCreate: function beforeCreate() {
|
|
// var tenantId = JSON.parse(localStorage.getItem('tenantId'))
|
|
// if (tenantId == 400) {
|
|
// this.$store.commit('defaultsettenantid')
|
|
// }
|
|
},
|
|
created: function created() {
|
|
this.getOperates();
|
|
this.getOperatesOne();
|
|
},
|
|
|
|
methods: {
|
|
// 显示详情
|
|
showDetail: function showDetail(index, row) {
|
|
this.detailMode = row;
|
|
this.detailDialogVisible = true;
|
|
},
|
|
|
|
// 显示详情
|
|
showDetailOne: function showDetailOne(index, row) {
|
|
this.detailModeOne = row;
|
|
this.detailDialogVisibleOne = true;
|
|
},
|
|
reset: function reset() {
|
|
this.query = {
|
|
operType: "",
|
|
operateName: "",
|
|
operModul: "",
|
|
pageSize: 10,
|
|
pageNum: 1,
|
|
datePicker: ['', '']
|
|
};
|
|
this.searchPrame();
|
|
},
|
|
handleClick: function handleClick(tab, event) {
|
|
console.log(tab, event);
|
|
},
|
|
time: function time() {
|
|
var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
|
|
|
|
var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
|
|
return date.toJSON().substr(0, 19).replace('T', ' ');
|
|
},
|
|
searchPrame: function searchPrame() {
|
|
this.query.pageNum = 1;
|
|
this.getOperates();
|
|
},
|
|
searchPrameOne: function searchPrameOne() {
|
|
this.queryOne.pageNum = 1;
|
|
this.getOperatesOne();
|
|
},
|
|
searchParaProcess: function searchParaProcess(obj) {
|
|
var myObj = new Object();
|
|
for (var key in obj) {
|
|
if (obj[key] != "" && obj[key] != 'Invalid date' && obj[key] != null) {
|
|
myObj[key] = obj[key];
|
|
}
|
|
}
|
|
return stringify_default()(myObj);
|
|
},
|
|
|
|
// 获取操作日志
|
|
getOperates: function getOperates() {
|
|
var _this = this;
|
|
|
|
var q = this.searchParaProcess({
|
|
operType: this.query.operType,
|
|
operateName: this.query.operateName,
|
|
operModul: this.query.operModul,
|
|
operUrl: this.query.operUrl,
|
|
startTime: this.query.datePicker[0],
|
|
endTime: this.query.datePicker[1]
|
|
});
|
|
var data = {
|
|
pageNum: this.query.pageNum,
|
|
pageSize: this.query.pageSize,
|
|
q: q,
|
|
orderType: "desc",
|
|
orderBy: "createAt"
|
|
};
|
|
Object(api["g" /* httpPost */])(data, this.$api.getOperateList).then(function (res) {
|
|
res.data.list.map(function (li) {
|
|
li.createAt = _this.time(+new Date(li.createAt));
|
|
});
|
|
_this.tableData = res.data.list;
|
|
_this.pageTotal = res.data.total;
|
|
});
|
|
},
|
|
|
|
// 获取操作日志
|
|
getOperatesOne: function getOperatesOne() {
|
|
var _this2 = this;
|
|
|
|
var q = {
|
|
operateName: this.queryOne.operateName
|
|
};
|
|
var data = {
|
|
pageNum: this.queryOne.pageNum,
|
|
pageSize: this.queryOne.pageSize,
|
|
orderType: "desc",
|
|
orderBy: "createAt",
|
|
q: stringify_default()(q)
|
|
};
|
|
Object(api["d" /* httpGet */])(data, this.$api.getExceptionList).then(function (res) {
|
|
res.data.list.map(function (li) {
|
|
li.createAt = _this2.time(+new Date(li.createAt));
|
|
});
|
|
_this2.tableDataOne = res.data.list;
|
|
_this2.pageTotalOne = res.data.total;
|
|
});
|
|
},
|
|
|
|
// 分页导航
|
|
handlePageChange: function handlePageChange(val) {
|
|
this.query.pageNum = val;
|
|
this.getOperates();
|
|
},
|
|
handleSizeChange: function handleSizeChange(val) {
|
|
this.query.pageNum = 1;
|
|
this.query.pageSize = val;
|
|
this.getOperates();
|
|
},
|
|
handlePageChangeOne: function handlePageChangeOne(val) {
|
|
this.queryOne.pageNum = val;
|
|
this.getOperatesOne();
|
|
},
|
|
handleSizeChangeOne: function handleSizeChangeOne(val) {
|
|
this.queryOne.pageNum = 1;
|
|
this.queryOne.pageSize = val;
|
|
this.getOperatesOne();
|
|
}
|
|
}
|
|
});
|
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6868df17","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/journal.vue
|
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"container"},[_c('el-tabs',{on:{"tab-click":_vm.handleClick},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[_c('el-tab-pane',{attrs:{"label":"操作日志","name":"first"}},[_c('div',{staticClass:"handle-box"},[_c('el-input',{staticClass:"handle-input mr10 wRem3",attrs:{"size":"small","clearable":true,"placeholder":"用户名"},model:{value:(_vm.query.operateName),callback:function ($$v) {_vm.$set(_vm.query, "operateName", $$v)},expression:"query.operateName"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 wRem3",attrs:{"size":"small","clearable":true,"placeholder":"操作模块"},model:{value:(_vm.query.operModul),callback:function ($$v) {_vm.$set(_vm.query, "operModul", $$v)},expression:"query.operModul"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 wRem3",attrs:{"size":"small","clearable":true,"placeholder":"操作路径"},model:{value:(_vm.query.operUrl),callback:function ($$v) {_vm.$set(_vm.query, "operUrl", $$v)},expression:"query.operUrl"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"wRem3",attrs:{"size":"small","type":"datetime","placeholder":"选择开始日期时间","default-time":"12:00:00"},model:{value:(_vm.query.datePicker[0]),callback:function ($$v) {_vm.$set(_vm.query.datePicker, 0, $$v)},expression:"query.datePicker[0]"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"wRem3",attrs:{"size":"small","type":"datetime","placeholder":"选择结束日期时间","default-time":"12:00:00"},model:{value:(_vm.query.datePicker[1]),callback:function ($$v) {_vm.$set(_vm.query.datePicker, 1, $$v)},expression:"query.datePicker[1]"}}),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10",attrs:{"size":"small","placeholder":"请求类型"},model:{value:(_vm.query.operType),callback:function ($$v) {_vm.$set(_vm.query, "operType", $$v)},expression:"query.operType"}},[_c('el-option',{key:"1",attrs:{"label":"查询","value":"查询"}}),_vm._v(" "),_c('el-option',{key:"2",attrs:{"label":"删除","value":"删除"}}),_vm._v(" "),_c('el-option',{key:"3",attrs:{"label":"添加","value":"添加"}}),_vm._v(" "),_c('el-option',{key:"4",attrs:{"label":"更新","value":"更新"}})],1),_vm._v(" "),_c('el-button',{staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.reset}},[_vm._v("重置")]),_vm._v(" "),_c('el-button',{staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.searchPrame}},[_vm._v("搜索")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","header-cell-class-name":"table-header","height":"500"}},[_c('el-table-column',{attrs:{"label":"序号","type":"index","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v("\n "+_vm._s(_vm.pageTotal - ((_vm.query.pageNum-1)*_vm.query.pageSize) - scope.$index)+"\n ")]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operateName","label":"用户"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"ip","label":"IP"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operDesc","label":"操作描述","show-overflow-tooltip":true}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operMethod","label":"操作方法","show-overflow-tooltip":true}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operModul","label":"操作模块"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"请求参数","show-overflow-tooltip":true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"tooltip"},[_vm._v(_vm._s(scope.row.operRequ))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"返回参数","show-overflow-tooltip":true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"tooltip"},[_vm._v(_vm._s(scope.row.operResp))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operType","label":"请求类型"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operUrl","label":"请求路径"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createAt","label":"操作时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"详情","placement":"top"}},[_c('i',{staticClass:"iconfont httpicon-chaxun detail",on:{"click":function($event){return _vm.showDetail(scope.$index, scope.row)}}})])]}}])})],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","layout":"total, sizes, prev, pager, next, jumper","current-page":_vm.query.pageNum,"page-size":_vm.query.pageSize,"total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handlePageChange}})],1)],1),_vm._v(" "),_c('el-tab-pane',{attrs:{"label":"异常日志","name":"second"}},[_c('div',{staticClass:"handle-box"},[_c('el-input',{staticClass:"handle-input mr10",attrs:{"size":"small","clearable":true,"placeholder":"用户名"},model:{value:(_vm.queryOne.operateName),callback:function ($$v) {_vm.$set(_vm.queryOne, "operateName", $$v)},expression:"queryOne.operateName"}}),_vm._v(" "),_c('el-button',{staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.searchPrameOne}},[_vm._v("搜索")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableDataOne,"border":"","header-cell-class-name":"table-header","height":"500"}},[_c('el-table-column',{attrs:{"prop":"id","label":"ID"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operateName","label":"用户"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"ip","label":"IP"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"错误信息","show-overflow-tooltip":true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"tooltip"},[_vm._v(_vm._s(scope.row.excMessage))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"excName","label":"错误名称","show-overflow-tooltip":true}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operMethod","label":"操作方法","show-overflow-tooltip":true}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"请求参数","show-overflow-tooltip":true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"tooltip"},[_vm._v(_vm._s(scope.row.excRequ))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operUrl","label":"请求路径"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createAt","label":"操作时间"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作","align":"center"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":"详情","placement":"top"}},[_c('i',{staticClass:"iconfont httpicon-chaxun detail",on:{"click":function($event){return _vm.showDetailOne(scope.$index, scope.row)}}})])]}}])})],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","layout":"total, sizes, prev, pager, next, jumper","current-page":_vm.queryOne.pageNum,"page-size":_vm.queryOne.pageSize,"total":_vm.pageTotalOne},on:{"size-change":_vm.handleSizeChangeOne,"current-change":_vm.handlePageChangeOne}})],1)],1)],1)],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"提示","visible":_vm.detailDialogVisible,"width":"40%","center":""},on:{"update:visible":function($event){_vm.detailDialogVisible=$event}}},[_c('el-form',{ref:"form4",staticClass:"formBox",attrs:{"model":_vm.detailMode,"label-width":"80px"}},[_c('el-form-item',{attrs:{"label":"用户:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operateName))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"IP:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.ip))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"操作模块:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operModul))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"操作描述:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operDesc))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"请求路径:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operUrl))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"请求类型:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operType))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"请求参数:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operRequ))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"返回参数:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.operResp))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"操作时间:"}},[_c('span',[_vm._v(_vm._s(_vm.detailMode.createAt))])])],1),_vm._v(" "),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":function($event){_vm.detailDialogVisible = false}}},[_vm._v("确 定")])],1)],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"提示","visible":_vm.detailDialogVisibleOne,"width":"40%","center":""},on:{"update:visible":function($event){_vm.detailDialogVisibleOne=$event}}},[_c('el-form',{ref:"form4",staticClass:"formBox",attrs:{"model":_vm.detailModeOne,"label-width":"80px"}},[_c('el-form-item',{attrs:{"label":"用户:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.operateName))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"IP:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.ip))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"请求路径:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.operUrl))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"请求参数:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.excRequ))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"操作方法:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.operMethod))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"错误名称:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.excName))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"错误信息:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.excMessage))])]),_vm._v(" "),_c('el-form-item',{attrs:{"label":"操作时间:"}},[_c('span',[_vm._v(_vm._s(_vm.detailModeOne.createAt))])])],1),_vm._v(" "),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":function($event){_vm.detailDialogVisible = false}}},[_vm._v("确 定")])],1)],1)],1)}
|
|
var staticRenderFns = []
|
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
/* harmony default export */ var views_journal = (esExports);
|
|
// CONCATENATED MODULE: ./src/views/journal.vue
|
|
function injectStyle (ssrContext) {
|
|
__webpack_require__("tQuM")
|
|
}
|
|
var normalizeComponent = __webpack_require__("VU/8")
|
|
/* script */
|
|
|
|
|
|
/* template */
|
|
|
|
/* template functional */
|
|
var __vue_template_functional__ = false
|
|
/* styles */
|
|
var __vue_styles__ = injectStyle
|
|
/* scopeId */
|
|
var __vue_scopeId__ = "data-v-6868df17"
|
|
/* moduleIdentifier (server only) */
|
|
var __vue_module_identifier__ = null
|
|
var Component = normalizeComponent(
|
|
journal,
|
|
views_journal,
|
|
__vue_template_functional__,
|
|
__vue_styles__,
|
|
__vue_scopeId__,
|
|
__vue_module_identifier__
|
|
)
|
|
|
|
/* harmony default export */ var src_views_journal = __webpack_exports__["default"] = (Component.exports);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "tQuM":
|
|
/***/ (function(module, exports) {
|
|
|
|
// removed by extract-text-webpack-plugin
|
|
|
|
/***/ })
|
|
|
|
});
|