338 lines
9.7 KiB
Plaintext
338 lines
9.7 KiB
Plaintext
|
webpackJsonp([19],{
|
||
|
|
||
|
/***/ "2eB3":
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
// removed by extract-text-webpack-plugin
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "enX4":
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
|
||
|
// EXTERNAL MODULE: ./src/components/Title.vue + 2 modules
|
||
|
var Title = __webpack_require__("/+Ed");
|
||
|
|
||
|
// EXTERNAL MODULE: ./src/components/Pagination.vue + 2 modules
|
||
|
var Pagination = __webpack_require__("cMGX");
|
||
|
|
||
|
// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
||
|
var vuex_esm = __webpack_require__("NYxO");
|
||
|
|
||
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/userFeedback/FalsePositive.vue
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/* harmony default export */ var FalsePositive = ({
|
||
|
name: 'FalsePositive',
|
||
|
components: {
|
||
|
Title: Title["a" /* default */],
|
||
|
Pagination: Pagination["a" /* default */]
|
||
|
},
|
||
|
data: function data() {
|
||
|
return {
|
||
|
moduleTitle: '用户反馈',
|
||
|
pageTitle: '误报反馈',
|
||
|
total: 0,
|
||
|
currentPage: 1,
|
||
|
pageSize: 10,
|
||
|
tableData: [],
|
||
|
domainList: [],
|
||
|
domainId: ''
|
||
|
};
|
||
|
},
|
||
|
|
||
|
computed: {
|
||
|
URL: function URL() {
|
||
|
var that = this;
|
||
|
return {
|
||
|
getDomainList: '/admin/super/queryDomain',
|
||
|
getFalseList: '/admin/super/queryExceptionRule',
|
||
|
addException: '/admin/super/createExceptionRule'
|
||
|
};
|
||
|
},
|
||
|
tableHeight: function tableHeight() {
|
||
|
return this.$store.state.falseTHeight;
|
||
|
},
|
||
|
contextPath: function contextPath() {
|
||
|
return this.$store.state.urlHost;
|
||
|
}
|
||
|
},
|
||
|
watch: {
|
||
|
domainId: function domainId(value) {
|
||
|
var that = this;
|
||
|
that.currentPage = 1;
|
||
|
that.getFalseList(1);
|
||
|
}
|
||
|
},
|
||
|
mounted: function mounted() {
|
||
|
var that = this;
|
||
|
that.getDomainList();
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
getDomainList: function getDomainList() {
|
||
|
var that = this;
|
||
|
that.$axios({
|
||
|
method: 'post',
|
||
|
url: that.contextPath + that.URL.getDomainList,
|
||
|
needInterceptors: true,
|
||
|
showError: true,
|
||
|
loader: true,
|
||
|
data: {
|
||
|
ruleType: 0 //误报取0
|
||
|
}
|
||
|
}).then(function (data) {
|
||
|
that.domainList = data || [];
|
||
|
that.domainList = that.domainList.map(function (item) {
|
||
|
return { id: item, name: item };
|
||
|
});
|
||
|
if (that.domainList.length > 0) {
|
||
|
that.domainList.splice(0, 0, { name: '全部', id: '' });
|
||
|
that.domainId = that.domainList[0].id;
|
||
|
that.getFalseList();
|
||
|
}
|
||
|
}).catch(function (e) {});
|
||
|
},
|
||
|
getFalseList: function getFalseList(currentPage, pageSize) {
|
||
|
var that = this;
|
||
|
that.$axios({
|
||
|
method: 'post',
|
||
|
url: that.contextPath + that.URL.getFalseList,
|
||
|
needInterceptors: true,
|
||
|
showError: true,
|
||
|
loader: true,
|
||
|
data: {
|
||
|
currentPage: (currentPage || that.currentPage || 1) - 1,
|
||
|
pageSize: pageSize || that.pageSize || 10,
|
||
|
hostName: that.domainId,
|
||
|
ruleType: 0 //误报取0
|
||
|
}
|
||
|
}).then(function (result) {
|
||
|
that.total = result.totalItems;
|
||
|
that.tableData = result.data || [];
|
||
|
that.tableData = that.tableData.map(function (item) {
|
||
|
item.reqParams = item.attackField + ':' + item.attackContent;
|
||
|
return item;
|
||
|
});
|
||
|
}).catch(function (e) {});
|
||
|
},
|
||
|
sizeChange: function sizeChange(val) {
|
||
|
var that = this;
|
||
|
that.currentPage = 1;
|
||
|
that.pageSize = val;
|
||
|
that.getFalseList(that.currentPage, val);
|
||
|
},
|
||
|
currentChange: function currentChange(val) {
|
||
|
var that = this;
|
||
|
that.currentPage = val;
|
||
|
that.getFalseList(val, that.pageSize);
|
||
|
},
|
||
|
addException: function addException(data) {
|
||
|
var that = this;
|
||
|
that.$confirm('您确定要添加例外吗?', '提示', {
|
||
|
customClass: 'wafConfirm',
|
||
|
confirmButtonText: '确认',
|
||
|
cancelButtonText: '取消',
|
||
|
type: 'warning'
|
||
|
}).then(function () {
|
||
|
that.$axios({
|
||
|
method: 'post',
|
||
|
url: that.contextPath + that.URL.addException,
|
||
|
needInterceptors: true,
|
||
|
showError: true,
|
||
|
loader: true,
|
||
|
data: {
|
||
|
id: data.id,
|
||
|
hostName: data.hostName
|
||
|
}
|
||
|
}).then(function () {
|
||
|
that.$alert('规则已添加到例外策略', '提示', {
|
||
|
customClass: 'wafConfirm',
|
||
|
confirmButtonText: '我知道了',
|
||
|
type: 'success'
|
||
|
});
|
||
|
that.getFalseList();
|
||
|
}).catch(function (e) {});
|
||
|
}).catch(function () {
|
||
|
return false;
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-6418a2ae","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/pages/userFeedback/FalsePositive.vue
|
||
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('Title',{attrs:{"pTitle":_vm.moduleTitle,"title":_vm.pageTitle}}),_vm._v(" "),_c('div',{staticClass:"con-content"},[_c('div',{staticClass:"handle"},[_c('span',[_vm._v("选择域名")]),_vm._v(" "),_c('el-select',{staticClass:"con-select-btn",attrs:{"size":"small","placeholder":"请选择域名","popper-class":"defaultSelect"},model:{value:(_vm.domainId),callback:function ($$v) {_vm.domainId=$$v},expression:"domainId"}},_vm._l((_vm.domainList),function(item){return _c('el-option',{key:item.id,attrs:{"label":item.name,"value":item.id}})}),1)],1),_vm._v(" "),_c('div',{staticClass:"table-area"},[_c('el-table',{ref:"falsePositiveTable",staticClass:"contable",staticStyle:{"width":"100%"},attrs:{"border":"","height":_vm.tableHeight,"data":_vm.tableData,"tooltip-effect":"dark"}},[_c('el-table-column',{attrs:{"prop":"rulesId","label":"触发日志编号","width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.rulesId}},[_vm._v("\n "+_vm._s(scope.row.rulesId)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"attackTime","label":"攻击时间","min-width":"150"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"hostIp","label":"攻击来源","min-width":"120"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"attackTag","label":"攻击类型","min-width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.attackTag}},[_vm._v("\n "+_vm._s(scope.row.attackTag)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"requestUri","label":"URL","min-width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.requestUri}},[_vm._v("\n "+_vm._s(scope.row.requestUri)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"httpMethod","label":"请求方法","min-width":"90"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.httpMethod}},[_vm._v("\n "+_vm._s(scope.row.httpMethod)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"reqParams","label":"请求参数","min-width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.reqParams}},[_vm._v("\n "+_vm._s(scope.row.reqParams)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"attackAction","label":"规则动作","min-width":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"rowBreak",attrs:{"title":scope.row.attackAction}},[_vm._v("\n "+_vm._s(scope.row.attackAction)+"\n ")])]}}])}),_vm._v(" "),_c('el-table-column',{staticClass:"el-breadcrumb",attrs:{"label":"操作","width":"90"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"handleCell"},[_c('a',{staticClass:"operaBtn",on:{"click":function($event){return _vm.addException(scope.row)}}},[_vm._v("添加例外")])])]}}])})],1)],1),_vm._v(" "),_c('Pagination',{attrs:{"total":_vm.total,"pageSize":_vm.pageSize,"currentPage":_vm.currentPage},on:{"sizeChange":_vm.sizeChange,"currentChange":_vm.currentChange}})],1)],1)}
|
||
|
var staticRenderFns = []
|
||
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
||
|
/* harmony default export */ var userFeedback_FalsePositive = (esExports);
|
||
|
// CONCATENATED MODULE: ./src/pages/userFeedback/FalsePositive.vue
|
||
|
function injectStyle (ssrContext) {
|
||
|
__webpack_require__("2eB3")
|
||
|
}
|
||
|
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-6418a2ae"
|
||
|
/* moduleIdentifier (server only) */
|
||
|
var __vue_module_identifier__ = null
|
||
|
var Component = normalizeComponent(
|
||
|
FalsePositive,
|
||
|
userFeedback_FalsePositive,
|
||
|
__vue_template_functional__,
|
||
|
__vue_styles__,
|
||
|
__vue_scopeId__,
|
||
|
__vue_module_identifier__
|
||
|
)
|
||
|
|
||
|
/* harmony default export */ var pages_userFeedback_FalsePositive = __webpack_exports__["default"] = (Component.exports);
|
||
|
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
});
|