chunk-753a6dee.f3b054ea.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-753a6dee"],{"04d1":function(e,t,a){var r=a("342f"),o=r.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},"4e82":function(e,t,a){"use strict";var r=a("23e7"),o=a("1c0b"),s=a("7b0b"),n=a("50c4"),i=a("577e"),l=a("d039"),c=a("addb"),u=a("a640"),d=a("04d1"),h=a("d998"),f=a("2d00"),p=a("512ce"),m=[],g=m.sort,b=l((function(){m.sort(void 0)})),v=l((function(){m.sort(null)})),w=u("sort"),T=!l((function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(p)return p<603;var e,t,a,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(r=0;r<47;r++)m.push({k:t+r,v:a})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),L=b||!v||!w||!T,y=function(e){return function(t,a){return void 0===a?-1:void 0===t?1:void 0!==e?+e(t,a)||0:i(t)>i(a)?1:-1}};r({target:"Array",proto:!0,forced:L},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(T)return void 0===e?g.call(t):g.call(t,e);var a,r,i=[],l=n(t.length);for(r=0;r<l;r++)r in t&&i.push(t[r]);i=c(i,y(e)),a=i.length,r=0;while(r<a)t[r]=i[r++];while(r<l)delete t[r++];return t}})},"512ce":function(e,t,a){var r=a("342f"),o=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},"9a51":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper-cont"},[a("el-card",{staticClass:"box-card search-content",attrs:{shadow:"never"}},[a("el-form",{attrs:{"label-position":"right",size:"small","label-width":"100px",id:"saLogSearchForm",model:e.searchParams}},[a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"名称"}},[a("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.searchParams.name,callback:function(t){e.$set(e.searchParams,"name",t)},expression:"searchParams.name"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检查对象"}},[a("el-select",{attrs:{placeholder:"请选择检查对象"},model:{value:e.searchParams.subject,callback:function(t){e.$set(e.searchParams,"subject",t)},expression:"searchParams.subject"}},e._l(e.getDictByField("subject"),(function(e){return a("el-option",{key:e.id,attrs:{label:e.paramName,value:e.paramCode}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"检查时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.searchParams.chkTimeRange,callback:function(t){e.$set(e.searchParams,"chkTimeRange",t)},expression:"searchParams.chkTimeRange"}})],1)],1)],1),a("el-row",{attrs:{gutter:15}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"响应码"}},[a("el-input",{attrs:{placeholder:"请输入响应码"},model:{value:e.searchParams.responseCode,callback:function(t){e.$set(e.searchParams,"responseCode",t)},expression:"searchParams.responseCode"}})],1)],1),a("el-col",{attrs:{offset:8,span:8}},[a("el-form-item",{staticClass:"search-content-button-container"},[a("el-button-group",[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:e.search}},[e._v("查询 ")]),a("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.resetSearchParam}},[e._v("重置 ")])],1)],1)],1)],1)],1)],1),a("el-card",{staticClass:"box-card",attrs:{shadow:"hover"}},[e.inViewMode?e._e():a("el-button-group",[e.$store.state.isDev?a("el-button",{attrs:{size:"mini",icon:"el-icon-plus"},on:{click:e.addNewSaLog}},[e._v("新增 ")]):e._e(),a("el-button",{attrs:{type:"danger",size:"mini",icon:"el-icon-delete"},on:{click:e.deleteSelectedSaLog}},[e._v("删除 ")]),a("el-button",{attrs:{size:"mini",icon:"el-icon-tickets"},on:{click:e.viewSelectedSaLog}},[e._v("查看 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.saLogTableLoading,expression:"saLogTableLoading"}],ref:"saLogTable",staticStyle:{width:"100%","margin-top":"15px","margin-bottom":"15px"},attrs:{size:"medium",stripe:"",border:"","tooltip-effect":"dark",data:e.saLogTablePage.list},on:{"row-click":e.handleRowClick,"sort-change":e.handleSortChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"name",label:"名称",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"subject",label:"检查对象",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.eleTableColumnFormatter(t,e.getDictByField("subject"))))]}}])}),a("el-table-column",{attrs:{prop:"chkTime",label:"检查时间",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"responseCode",label:"响应码",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"responseTime",label:"响应时间",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"crtResult",label:"当次检查结果",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.eleTableColumnFormatter(t,e.getDictByField("crtResult"))))]}}])}),a("el-table-column",{attrs:{prop:"result",label:"最终结果",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.eleTableColumnFormatter(t,e.getDictByField("result"))))]}}])}),e.inViewMode?e._e():a("el-table-column",{attrs:{label:"操作",width:"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.isDev?a("el-tooltip",{attrs:{content:"编辑",placement:"top",enterable:!1,"hide-after":1e3}},[a("el-button",{attrs:{size:"mini",icon:"el-icon-edit"},on:{click:function(a){return e.saLogRecordEdit(t)}}})],1):e._e(),a("el-tooltip",{attrs:{content:"删除",placement:"top",enterable:!1,"hide-after":1e3}},[a("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-delete"},on:{click:function(a){return e.saLogRecordRemove(t)}}})],1)]}}],null,!1,2300470211)})],1),a("el-pagination",{attrs:{layout:"total, sizes, ->, prev, pager, next, jumper","pager-count":5,"hide-on-single-page":"",total:e.saLogTablePage.count,"page-sizes":[5,10,15,20],"page-size":e.searchParams.limit,background:""},on:{"size-change":e.handleTableSizeChange,"current-change":e.handleTableCurrentChange}})],1)],1)},o=[],s=(a("4e82"),a("ac1f"),a("1276"),a("159b"),a("feb9")),n=a("a18c"),i=a("f8ff"),l=JSON.stringify({name:"",subject:"",chkTimeRange:[],responseCode:"",responseTime:"",detail:"",crtResult:"",result:"",limit:5,offset:0,order:"",sort:""}),c={name:"saLogList",data:function(){return{searchParams:JSON.parse(l),fieldDictTypeMap:{subject:"SERVICE_CODE",crtResult:"RESULT_TYPE",result:"RESULT_TYPE"},pageDictMap:{},extraQueriesVisible:!1,editType:Object(i["f"])("editType"),saLogTablePage:{},saLogTableLoading:!1}},computed:{inViewMode:function(){return"view"===this.editType}},methods:{eleTableColumnFormatter:i["d"],getDictByField:function(e){return this.pageDictMap[this.fieldDictTypeMap[e]]},search:function(){this.searchParams.offset=0,this.refreshTable()},refreshTable:function(){var e=this;e.saLogTableLoading=!0,s["a"].getSaLogList(e.searchParams).then((function(t){e.saLogTablePage=t,e.saLogTableLoading=!1}))},resetSearchParam:function(){this.searchParams=JSON.parse(l),this.refreshTable()},toggleExtraQueries:function(){this.extraQueriesVisible=!this.extraQueriesVisible},handleRowClick:function(e,t,a){Object(i["c"])(this.$refs.saLogTable,e,a)},handleTableSizeChange:function(e){this.searchParams.limit=e,this.refreshTable()},handleTableCurrentChange:function(e){this.searchParams.offset=this.searchParams.limit*(e-1),this.refreshTable()},handleSortChange:function(e){null===e.prop||null===e.order?(this.searchParams.sort=l.sort,this.searchParams.order=l.order):(this.searchParams.sort=e.prop,this.searchParams.order=e.order.split("ending")[0]),this.refreshTable()},addNewSaLog:function(){this.showFormDialog({editType:"add"})},viewSelectedSaLog:function(){var e=this,t=e.$refs.saLogTable.selection;1===t.length?e.showFormDialog({editType:"view",id:t[0].id}):e.$message.warning("仅能选择一条记录进行查看")},showFormDialog:function(e){var t=this;Object(i["h"])({el:"saLogForm",url:"".concat(n["b"],"/saLogForm"),props:e,title:"".concat(Object(i["e"])(e.editType),"检测日志"),onConfirm:function(a,r){"view"!==e.editType?a.save((function(){t.refreshTable(),r()})):r()}})},deleteSelectedSaLog:function(){var e=this,t=e.$refs.saLogTable.selection;0!==t.length?e.$confirm("数据删除后不可恢复,确定继续删除吗?","删除提醒",{type:"warning"}).then((function(){var a=[];t.forEach((function(e){e.id&&a.push(e.id)})),a.length>0&&s["a"].deleteAllSaLog(a).then((function(t){e.refreshTable(),e.$message.success("删除检测日志成功")}))})):e.$message.warning("请选择要删除的记录")},editSelectedSaLog:function(){var e=this,t=this.$refs.saLogTable.selection;1===t.length?e.showFormDialog({editType:"edit",id:t[0].id}):e.$message.warning("仅能选择一条记录进行修改")},saLogRecordEdit:function(e){this.showFormDialog({editType:"edit",id:e.row.id})},saLogRecordRemove:function(e){var t=this;t.$confirm("数据删除后不可恢复,确定继续删除吗?","删除提醒",{type:"warning"}).then((function(){var a="删除检测日志";s["a"].deleteSaLog(e.row.id).then((function(e){t.refreshTable(),t.$message.success("".concat(a,"成功"))}))}))},handleSelectionChange:function(e){}},created:function(){var e=this;Object(i["g"])().then((function(){e.pageDictMap=e.dictionary,e.refreshTable()}))}},u=c,d=a("2877"),h=Object(d["a"])(u,r,o,!1,null,"3f697d1e",null);t["default"]=h.exports},addb:function(e,t){var a=Math.floor,r=function(e,t){var n=e.length,i=a(n/2);return n<8?o(e,t):s(r(e.slice(0,i),t),r(e.slice(i),t),t)},o=function(e,t){var a,r,o=e.length,s=1;while(s<o){r=s,a=e[s];while(r&&t(e[r-1],a)>0)e[r]=e[--r];r!==s++&&(e[r]=a)}return e},s=function(e,t,a){var r=e.length,o=t.length,s=0,n=0,i=[];while(s<r||n<o)s<r&&n<o?i.push(a(e[s],t[n])<=0?e[s++]:t[n++]):i.push(s<r?e[s++]:t[n++]);return i};e.exports=r},d998:function(e,t,a){var r=a("342f");e.exports=/MSIE|Trident/.test(r)},feb9:function(e,t,a){"use strict";a("99af");var r=a("f121"),o=a("59aa"),s=a("2b0e"),n="".concat(r["a"],"/serviceability/saLog");t["a"]={getSaLogList:function(e){return o["a"].get("".concat(n,"/getSaLogList"),{params:e}).then((function(e){if(e&&e.data&&e.data.list)return e.data;s["default"].prototype.$message.error("加载日志列表失败")}))},getSaLogEntity:function(e){return o["a"].get("".concat(n,"/getEntity?id=").concat(e)).then((function(e){if(e&&e.data&&"success"===e.data.type)return e.data;s["default"].prototype.$message.error("加载日志失败")}))},deleteAllSaLog:function(e){return o["a"].post("".concat(n,"/deleteAll"),e)},deleteSaLog:function(e){return o["a"].post("".concat(n,"/delete?id=").concat(e))},saveSaLog:function(e){return o["a"].post("".concat(n,"/save"),e)}}}}]);