secgateway/libs/files/lighttpd/webpages/static/js/26.b4fd58dcf32001972cfe.1.4...

338 lines
9.7 KiB
Plaintext
Raw Normal View History

webpackJsonp([26],{
/***/ "GWgm":
/***/ (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/ExceptionStrategy.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var ExceptionStrategy = ({
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',
getExceptionList: '/admin/super/queryExceptionRule',
deleteException: '/admin/super/deleteExceptionRule'
};
},
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.getExceptionList(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: 1 //例外策略取1
}
}).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.getExceptionList();
}
}).catch(function (e) {});
},
getExceptionList: function getExceptionList(currentPage, pageSize) {
var that = this;
that.$axios({
method: 'post',
url: that.contextPath + that.URL.getExceptionList,
needInterceptors: true,
showError: true,
loader: true,
data: {
currentPage: (currentPage || that.currentPage || 1) - 1,
pageSize: pageSize || that.pageSize || 10,
hostName: that.domainId,
ruleType: 1 //例外策略取1
}
}).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.getExceptionList(that.currentPage, val);
},
currentChange: function currentChange(val) {
var that = this;
that.currentPage = val;
that.getExceptionList(val, that.pageSize);
},
deleteException: function deleteException(data) {
var that = this;
that.$confirm('您确定要删除该策略吗?', '提示', {
customClass: 'wafConfirm',
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
that.$axios({
method: 'post',
url: that.contextPath + that.URL.deleteException,
needInterceptors: true,
showError: true,
loader: true,
data: {
id: data.id,
hostName: data.hostName
}
}).then(function () {
that.$alert('删除成功', '提示', {
customClass: 'wafConfirm',
confirmButtonText: '我知道了',
type: 'success'
});
that.getExceptionList();
}).catch(function (e) {});
}).catch(function () {
return false;
});
}
}
});
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-396c6da1","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/ExceptionStrategy.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":"100"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{},[_c('a',{staticClass:"operaBtn",on:{"click":function($event){return _vm.deleteException(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_ExceptionStrategy = (esExports);
// CONCATENATED MODULE: ./src/pages/userFeedback/ExceptionStrategy.vue
function injectStyle (ssrContext) {
__webpack_require__("wvQ/")
}
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-396c6da1"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
ExceptionStrategy,
userFeedback_ExceptionStrategy,
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
/* harmony default export */ var pages_userFeedback_ExceptionStrategy = __webpack_exports__["default"] = (Component.exports);
/***/ }),
/***/ "wvQ/":
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
});