webpackJsonp([21],{ /***/ "R023": /***/ (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/siteManagement/SiteErrorLists.vue // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var SiteErrorLists = ({ components: { Title: Title["a" /* default */], Pagination: Pagination["a" /* default */] }, data: function data() { return { ptitle: "网站管理", title: "网站异常列表", total: 0, pageSize: 10, currentPage: 1, tableData: [{}], editData: '', siteErrorVisible: false, form: { comment: '' }, URL: { getErrorDomainList: '/website/rest/queryErrDomain', savedata: '/website/updateErrDomain' }, rules: { comment: [{ required: true, message: '内容不能为空', trigger: 'blur' }, { min: 1, max: 50, message: '备注信息不超过50个字符', trigger: 'blur' }] } }; }, computed: Object(vuex_esm["b" /* mapState */])({ contextPath: 'urlHost', active: 'active', roleAction: 'roleAction' }), mounted: function mounted() { this.getErrorDomainList(); }, methods: { getErrorDomainList: function getErrorDomainList() { var that = this; var parameters = { pageSize: this.pageSize, currentPage: this.currentPage }; this.$axios({ method: 'post', url: that.contextPath + that.URL.getErrorDomainList, data: parameters, needInterceptors: true, showError: true, loader: true }).then(function (res) { that.tableData = res.data; that.pageSize = res.pageSize; that.currentPage = res.currentPage; that.total = res.total; }); }, setProtect: function setProtect(val) { this.siteErrorVisible = true; this.id = val.id; this.form.comment = val.comment; }, savedata: function savedata() { var _this = this; this.$refs['editCommentForm'].validate(function (valid) { if (valid) { var that = _this; var parameters = { id: that.id, comment: that.form.comment }; that.$axios({ method: 'post', url: that.contextPath + that.URL.savedata, data: parameters, needInterceptors: true, showError: true, loader: true }).then(function (res) { that.getErrorDomainList(); that.siteErrorVisible = false; that.$message({ message: '信息更新成功', type: 'success' }); }); } }); }, cancel: function cancel() { this.siteErrorVisible = false; this.$refs['editCommentForm'].resetFields(); }, sizeChange: function sizeChange(val) { this.currentPage = 1; this.pageSize = val; this.getErrorDomainList(); }, currentChange: function currentChange(val) { this.currentPage = val; this.getErrorDomainList(); }, handleSelectionChange: function handleSelectionChange(val) { this.handleUsers = val; } } }); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-4d039587","hasScoped":false,"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/siteManagement/SiteErrorLists.vue var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-breadcrumb',{attrs:{"separator-class":"el-icon-arrow-right"}},[(_vm.roleAction.topTitle)?_c('el-breadcrumb-item',{staticClass:"con-ptitle",attrs:{"to":{ path: '/CDNindex' }}},[_vm._v("Web应用防火墙")]):_vm._e(),_vm._v(" "),(!_vm.roleAction.topTitle)?_c('el-breadcrumb-item',{staticClass:"con-ptitle"},[_vm._v(_vm._s(_vm.ptitle))]):_vm._e(),_vm._v(" "),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.title))])],1),_vm._v(" "),_c('div',{staticClass:"con-content"},[_c('div',{staticClass:"table-area"},[_c('el-table',{ref:"singleTable",staticClass:"contable",staticStyle:{"width":"100%"},attrs:{"border":"","stripe":"true","height":this.$store.state.siteErrorHeight,"data":_vm.tableData,"tooltip-effect":"dark"},on:{"current-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"index","label":"编号","width":"50"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"domain","label":"域名"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',{staticClass:"rowBreak",attrs:{"title":scope.row.domain}},[_vm._v(_vm._s(scope.row.domain))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"backendAddr","label":"IP"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',{staticClass:"rowBreak",attrs:{"title":scope.row.backendAddr}},[_vm._v(_vm._s(scope.row.backendAddr))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"port","label":"端口"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.port))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createTime","label":"反馈失败时间"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.createTime))])]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"comment","label":"备注"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('span',{staticClass:"errorComm"},[_vm._v(_vm._s(scope.row.comment))]),_vm._v(" "),_c('el-button',{staticClass:"seEdit",attrs:{"type":"text"},on:{"click":function($event){return _vm.setProtect(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),_vm._v(" "),_c('el-dialog',{attrs:{"custom-class":'addUserDialog',"title":"提示","close-on-click-modal":false,"visible":_vm.siteErrorVisible,"width":"30%"},on:{"update:visible":function($event){_vm.siteErrorVisible=$event}}},[_c('div',[_c('el-form',{ref:"editCommentForm",attrs:{"label-position":"top","rules":_vm.rules,"model":_vm.form,"label-width":"40px","size":"small"}},[_c('el-form-item',{attrs:{"label":"备注","prop":"comment"}},[_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.form.comment),callback:function ($$v) {_vm.$set(_vm.form, "comment", $$v)},expression:"form.comment"}})],1)],1)],1),_vm._v(" "),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":_vm.cancel}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.savedata}},[_vm._v("确 定")])],1)])],1)} var staticRenderFns = [] var esExports = { render: render, staticRenderFns: staticRenderFns } /* harmony default export */ var siteManagement_SiteErrorLists = (esExports); // CONCATENATED MODULE: ./src/pages/siteManagement/SiteErrorLists.vue function injectStyle (ssrContext) { __webpack_require__("bc/1") } var normalizeComponent = __webpack_require__("VU/8") /* script */ /* template */ /* template functional */ var __vue_template_functional__ = false /* styles */ var __vue_styles__ = injectStyle /* scopeId */ var __vue_scopeId__ = null /* moduleIdentifier (server only) */ var __vue_module_identifier__ = null var Component = normalizeComponent( SiteErrorLists, siteManagement_SiteErrorLists, __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) /* harmony default export */ var pages_siteManagement_SiteErrorLists = __webpack_exports__["default"] = (Component.exports); /***/ }), /***/ "bc/1": /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }) });