1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c213b6f","chunk-78e62f3e","chunk-5c0a3a2a","chunk-7fc567ab","chunk-78e62f3e","chunk-2d21408e","chunk-2d0a4474"],{"0680":function(e,t,r){"use strict";r.r(t),r.d(t,"getDict",(function(){return o}));r("96cf");var n=r("1da1"),a=r("4360"),o=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a["store"].dispatch("dictionary/getDictionary",t);case 2:return e.abrupt("return",a["store"].getters["dictionary/getDictionary"][t]);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},2626:function(e,t,r){"use strict";var n=r("d066"),a=r("9bf2"),o=r("b622"),i=r("83ab"),s=o("species");e.exports=function(e){var t=n(e),r=a.f;i&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},"3bbe":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"4d63":function(e,t,r){var n=r("83ab"),a=r("da84"),o=r("94ca"),i=r("7156"),s=r("9bf2").f,c=r("241c").f,l=r("44e7"),u=r("ad6d"),f=r("9f7f"),p=r("6eeb"),d=r("d039"),h=r("69f3").set,g=r("2626"),b=r("b622"),m=b("match"),v=a.RegExp,y=v.prototype,D=/a/g,w=/a/g,S=new v(D)!==D,I=f.UNSUPPORTED_Y,_=n&&o("RegExp",!S||I||d((function(){return w[m]=!1,v(D)!=D||v(w)==w||"/a/i"!=v(D,"i")})));if(_){var x=function(e,t){var r,n=this instanceof x,a=l(e),o=void 0===t;if(!n&&a&&e.constructor===x&&o)return e;S?a&&!o&&(e=e.source):e instanceof x&&(o&&(t=u.call(e)),e=e.source),I&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,"")));var s=i(S?new v(e,t):v(e,t),n?this:y,x);return I&&r&&h(s,{sticky:r}),s},O=function(e){e in x||s(x,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},R=c(v),k=0;while(R.length>k)O(R[k++]);y.constructor=x,x.prototype=y,p(a,"RegExp",x)}g("RegExp")},5319:function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),o=r("7b0b"),i=r("50c4"),s=r("a691"),c=r("1d80"),l=r("8aa5"),u=r("14c3"),f=Math.max,p=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,b=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,r,n){var m=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=n.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(r,n){var a=c(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,a,n):t.call(String(a),r,n)},function(e,n){if(!m&&v||"string"===typeof n&&-1===n.indexOf(y)){var o=r(t,e,this,n);if(o.done)return o.value}var c=a(e),d=String(this),h="function"===typeof n;h||(n=String(n));var g=c.global;if(g){var w=c.unicode;c.lastIndex=0}var S=[];while(1){var I=u(c,d);if(null===I)break;if(S.push(I),!g)break;var _=String(I[0]);""===_&&(c.lastIndex=l(d,i(c.lastIndex),w))}for(var x="",O=0,R=0;R<S.length;R++){I=S[R];for(var k=String(I[0]),E=f(p(s(I.index),d.length),0),T=[],N=1;N<I.length;N++)T.push(b(I[N]));var M=I.groups;if(h){var A=[k].concat(T,E,d);void 0!==M&&A.push(M);var C=String(n.apply(void 0,A))}else C=D(k,d,E,T,M,n);E>=O&&(x+=d.slice(O,E)+C,O=E+k.length)}return x+d.slice(O)}];function D(e,r,n,a,i,s){var c=n+e.length,l=a.length,u=g;return void 0!==i&&(i=o(i),u=h),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var f=d(u/10);return 0===f?t:f<=l?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):t}s=a[u-1]}return void 0===s?"":s}))}}))},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("1d80"),a=r("5899"),o="["+a+"]",i=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},7156:function(e,t,r){var n=r("861d"),a=r("d2bb");e.exports=function(e,t,r){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==r&&n(i=o.prototype)&&i!==r.prototype&&a(e,i),e}},8456:function(e,t,r){"use strict";var n=r("e16f"),a=r.n(n);a.a},a4a2:function(e,t,r){"use strict";r.r(t);r("4de4");var n=r("5530"),a=(r("96cf"),r("1da1")),o=r("0680"),i=r("c466");t["default"]={data:function(){return{page:1,total:10,pageSize:10,tableData:[],searchInfo:{}}},watch:{"searchInfo.id":function(e){e&&e.length<3||this.getTableData()},"searchInfo.stage":function(){this.getTableData()},"searchInfo.supply":function(){this.getTableData()},"searchInfo.type":function(){this.getTableData()},"searchInfo.confirm":function(){this.getTableData()},"searchInfo.self_employed":function(){this.getTableData()},"searchInfo.keyword":function(e){var t=e[e.length-1];1!=e.length&&(t<="z"&&t>="A"||this.getTableData())},"searchInfo.fromDate":function(e){e&&!searchInfo.toDate&&(e>this.searchInfo.toDate||this.getTableData())},"searchInfo.saleman":function(e){var t=e[e.length-1];1!=e.length&&(t<="z"&&t>="A"||this.getTableData())},"searchInfo.toDate":function(){val&&!searchInfo.fromDate&&(val<this.searchInfo.fromDate||this.getTableData())}},methods:{filterDict:function(e,t){var r=this[t+"Options"]&&this[t+"Options"].filter((function(t){return t.value==e}));return r&&r[0]&&r[0].label},getDict:function(e){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(o["getDict"])(e);case 2:return n=r.sent,t[e+"Options"]=n,r.abrupt("return",n);case 5:case"end":return r.stop()}}),r)})))()},handleSizeChange:function(e){this.pageSize=e,this.getTableData()},handlerUpdate:function(e,t){this.tableData[e]=t},handleCurrentChange:function(e){this.page=e,this.getTableData()},getTableData:function(){var e=arguments,t=this;return Object(a["a"])(regeneratorRuntime.mark((function r(){var a,o,s,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:t.page,o=e.length>1&&void 0!==e[1]?e[1]:t.pageSize,s=Object(n["a"])({page:a,pageSize:o},t.searchInfo),t.searchInfo.id&&(s.id=+t.searchInfo.id||0),t.searchInfo.fromDate&&(s.fromDate=Object(i["toDate"])(t.searchInfo.fromDate)),t.searchInfo.toDate&&(s.toDate=Object(i["toDate"])(t.searchInfo.toDate)),r.next=8,t.listApi(s);case 8:c=r.sent,200==c.code&&(t.tableData=c.data.list,t.total=c.data.total,t.page=c.data.page,t.pageSize=c.data.pageSize);case 10:case"end":return r.stop()}}),r)})))()}}}},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),o=r("94ca"),i=r("6eeb"),s=r("5135"),c=r("c6b6"),l=r("7156"),u=r("c04e"),f=r("d039"),p=r("7c73"),d=r("241c").f,h=r("06cf").f,g=r("9bf2").f,b=r("58a8").trim,m="Number",v=a[m],y=v.prototype,D=c(p(y))==m,w=function(e){var t,r,n,a,o,i,s,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=b(l),t=l.charCodeAt(0),43===t||45===t){if(r=l.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+l}for(o=l.slice(2),i=o.length,s=0;s<i;s++)if(c=o.charCodeAt(s),c<48||c>a)return NaN;return parseInt(o,n)}return+l};if(o(m,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var S,I=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof I&&(D?f((function(){y.valueOf.call(r)})):c(r)!=m)?l(new v(w(t)),r,I):w(t)},_=n?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)s(v,S=_[x])&&!s(I,S)&&g(I,S,h(v,S));I.prototype=y,y.constructor=I,i(a,m,I)}},aee9:function(e,t,r){"use strict";r.r(t),r.d(t,"deleteSysOperationRecord",(function(){return a})),r.d(t,"deleteSysOperationRecordByIds",(function(){return o})),r.d(t,"getSysOperationRecordList",(function(){return i}));var n=r("b775"),a=function(e){return Object(n["default"])({url:"/sysOperationRecord/deleteSysOperationRecord",method:"delete",data:e})},o=function(e){return Object(n["default"])({url:"/sysOperationRecord/deleteSysOperationRecordByIds",method:"delete",data:e})},i=function(e){return Object(n["default"])({url:"/sysOperationRecord/getSysOperationRecordList",method:"get",params:e})}},b006:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"search-term"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.searchInfo}},[r("el-form-item",{attrs:{label:"请求方法"}},[r("el-input",{attrs:{placeholder:"搜索条件"},model:{value:e.searchInfo.method,callback:function(t){e.$set(e.searchInfo,"method",t)},expression:"searchInfo.method"}})],1),r("el-form-item",{attrs:{label:"请求路径"}},[r("el-input",{attrs:{placeholder:"搜索条件"},model:{value:e.searchInfo.path,callback:function(t){e.$set(e.searchInfo,"path",t)},expression:"searchInfo.path"}})],1),r("el-form-item",{attrs:{label:"结果状态码"}},[r("el-input",{attrs:{placeholder:"搜索条件"},model:{value:e.searchInfo.status,callback:function(t){e.$set(e.searchInfo,"status",t)},expression:"searchInfo.status"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("查询")])],1),r("el-form-item",[r("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.deleteVisible,callback:function(t){e.deleteVisible=t},expression:"deleteVisible"}},[r("p",[e._v("确定要删除吗?")]),r("div",{staticStyle:{"text-align":"right",margin:"0"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.deleteVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.onDelete}},[e._v("确定")])],1),r("el-button",{attrs:{slot:"reference",icon:"el-icon-delete",size:"mini",type:"danger"},slot:"reference"},[e._v("批量删除")])],1)],1)],1)],1),r("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",stripe:"","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{label:"操作人",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.user.userName)+"("+e._s(t.row.user.nickName)+")")])]}}])}),r("el-table-column",{attrs:{label:"日期",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatDate")(t.row.CreatedAt)))]}}])}),r("el-table-column",{attrs:{label:"状态码",prop:"status",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.status))])],1)]}}])}),r("el-table-column",{attrs:{label:"请求ip",prop:"ip",width:"120"}}),r("el-table-column",{attrs:{label:"请求方法",prop:"method",width:"120"}}),r("el-table-column",{attrs:{label:"请求路径",prop:"path",width:"240"}}),r("el-table-column",{attrs:{label:"请求",prop:"path",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.body?r("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[r("div",{staticClass:"popover-box"},[r("pre",[e._v(e._s(e.fmtBody(t.row.body)))])]),r("i",{staticClass:"el-icon-view",attrs:{slot:"reference"},slot:"reference"})]):r("span",[e._v("无")])],1)]}}])}),r("el-table-column",{attrs:{label:"响应",prop:"path",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.resp?r("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[r("div",{staticClass:"popover-box"},[r("pre",[e._v(e._s(e.fmtBody(t.row.resp)))])]),r("i",{staticClass:"el-icon-view",attrs:{slot:"reference"},slot:"reference"})]):r("span",[e._v("无")])],1)]}}])}),r("el-table-column",{attrs:{label:"按钮组"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.visible,callback:function(r){e.$set(t.row,"visible",r)},expression:"scope.row.visible"}},[r("p",[e._v("确定要删除吗?")]),r("div",{staticStyle:{"text-align":"right",margin:"0"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.row.visible=!1}}},[e._v("取消")]),r("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(r){return e.deleteSysOperationRecord(t.row)}}},[e._v("确定")])],1),r("el-button",{attrs:{slot:"reference",icon:"el-icon-delete",size:"mini",type:"danger"},slot:"reference"},[e._v("删除")])],1)]}}])})],1),r("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":e.page,"page-size":e.pageSize,"page-sizes":[10,30,50,100],total:e.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)},a=[],o=(r("d81d"),r("96cf"),r("1da1")),i=r("aee9"),s=r("c466"),c=r("a4a2"),l={name:"SysOperationRecord",mixins:[c["default"]],data:function(){return{listApi:i["getSysOperationRecordList"],dialogFormVisible:!1,type:"",deleteVisible:!1,multipleSelection:[],formData:{ip:null,method:null,path:null,status:null,latency:null,agent:null,error_message:null,user_id:null}}},filters:{formatDate:function(e){if(null!=e&&""!=e){var t=new Date(e);return Object(s["formatTimeToStr"])(t,"yyyy-MM-dd hh:mm:ss")}return""},formatBoolean:function(e){return null!=e?e?"是":"否":""}},methods:{onSubmit:function(){this.page=1,this.pageSize=10,this.getTableData()},handleSelectionChange:function(e){this.multipleSelection=e},onDelete:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=[],e.multipleSelection&&e.multipleSelection.map((function(e){r.push(e.ID)})),t.next=4,Object(i["deleteSysOperationRecordByIds"])({ids:r});case 4:n=t.sent,200==n.code&&(e.$message({type:"success",message:"删除成功"}),e.tableData.length==r.length&&e.page--,e.deleteVisible=!1,e.getTableData());case 6:case"end":return t.stop()}}),t)})))()},deleteSysOperationRecord:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.visible=!1,r.next=3,Object(i["deleteSysOperationRecord"])({ID:e.ID});case 3:n=r.sent,200==n.code&&(t.$message({type:"success",message:"删除成功"}),1==t.tableData.length&&t.page--,t.getTableData());case 5:case"end":return r.stop()}}),r)})))()},fmtBody:function(e){try{return JSON.parse(e)}catch(t){return e}}},created:function(){this.getTableData()}},u=l,f=(r("8456"),r("2877")),p=Object(f["a"])(u,n,a,!1,null,null,null);t["default"]=p.exports},c466:function(e,t,r){"use strict";r.r(t),r.d(t,"curDate",(function(){return n})),r.d(t,"formatTimeToStr",(function(){return a})),r.d(t,"toDatetime",(function(){return o})),r.d(t,"toDate",(function(){return i})),r.d(t,"toDateShow",(function(){return s})),r.d(t,"getDate",(function(){return c}));r("a9e3"),r("4d63"),r("ac1f"),r("25f0"),r("5319");function n(){var e=(new Date).Format("yyyy-MM-dd");return e.toLocaleString()}function a(e,t){var r=new Date(e).Format("yyyy-MM-dd hh:mm:ss");return t&&(r=new Date(e).Format(t)),r.toLocaleString()}function o(e){if(!e)return"---";Number(e)&&(e*=1e3);var t=new Date(e).Format("yyyy-MM-dd hh:mm:ss");return t.toLocaleString()}function i(e){if(!e)return"2020-01-01";Number(e)&&(e*=1e3);var t=new Date(e).Format("yyyy-MM-dd");return t.toLocaleString()}function s(e){if(!e)return"---";Number(e)&&(e*=1e3);var t=new Date(e).Format("yyyy-MM-dd");return t.toLocaleString()}function c(e){var t=new Date;return t.setDate(t.getDate()+e),i(t)}Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e}},d2bb:function(e,t,r){var n=r("825a"),a=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(o){}return function(r,o){return n(r),a(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},e16f:function(e,t,r){}}]);
|