Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-cf35a8a4.3522af07.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
7.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cf35a8a4"],{"0dc2":function(a,e,t){},"5e88":function(a,e,t){"use strict";t.r(e);var n=function(){var a=this,e=a._self._c;return e("div",{},[e("el-card",[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[a._v(a._s(a.$t("transactionLogManage.queryCondition")))])]),e("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:a.transactionLogManageInfo.conditions}},[e("el-form-item",[e("el-input",{attrs:{placeholder:a.$t("transactionLogManage.inputTransactionId"),clearable:""},model:{value:a.transactionLogManageInfo.conditions.transactionId,callback:function(e){a.$set(a.transactionLogManageInfo.conditions,"transactionId",e)},expression:"transactionLogManageInfo.conditions.transactionId"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:a.$t("transactionLogManage.inputAppId"),clearable:""},model:{value:a.transactionLogManageInfo.conditions.appId,callback:function(e){a.$set(a.transactionLogManageInfo.conditions,"appId",e)},expression:"transactionLogManageInfo.conditions.appId"}})],1),e("el-form-item",[e("el-input",{attrs:{placeholder:a.$t("transactionLogManage.inputServiceCode"),clearable:""},model:{value:a.transactionLogManageInfo.conditions.serviceCode,callback:function(e){a.$set(a.transactionLogManageInfo.conditions,"serviceCode",e)},expression:"transactionLogManageInfo.conditions.serviceCode"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:a._queryLogMethod}},[e("i",{staticClass:"el-icon-search"}),a._v(" "+a._s(a.$t("transactionLogManage.query"))+" ")]),e("el-button",{on:{click:a._resetLogMethod}},[e("i",{staticClass:"el-icon-refresh"}),a._v(" "+a._s(a.$t("transactionLogManage.reset"))+" ")])],1)],1)],1),e("el-card",{staticClass:"margin-top-sm"},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[a._v(a._s(a.$t("transactionLogManage.transactionLog")))])]),e("el-table",{staticStyle:{width:"100%"},attrs:{data:a.transactionLogManageInfo.logs,border:""}},[e("el-table-column",{attrs:{prop:"transactionId",label:a.$t("transactionLogManage.transactionId"),align:"center"}}),e("el-table-column",{attrs:{prop:"srcIp",label:a.$t("transactionLogManage.srcIp"),align:"center"}}),e("el-table-column",{attrs:{prop:"appId",label:a.$t("transactionLogManage.appId"),align:"center"}}),e("el-table-column",{attrs:{prop:"serviceCode",label:a.$t("transactionLogManage.serviceCode"),align:"center"}}),e("el-table-column",{attrs:{prop:"costTime",label:a.$t("transactionLogManage.costTime"),align:"center"}}),e("el-table-column",{attrs:{prop:"state",label:a.$t("transactionLogManage.state"),align:"center"},scopedSlots:a._u([{key:"default",fn:function(e){return[a._v(" "+a._s("F"===e.row.state?a.$t("transactionLogManage.failed"):a.$t("transactionLogManage.success"))+" ")]}}])}),e("el-table-column",{attrs:{prop:"createTime",label:a.$t("transactionLogManage.createTime"),align:"center"}}),e("el-table-column",{attrs:{label:a.$t("transactionLogManage.operation"),align:"center"},scopedSlots:a._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return a.viewLogMessage(t.row)}}},[a._v(" "+a._s(a.$t("transactionLogManage.viewMessage"))+" ")])]}}])})],1),e("el-pagination",{attrs:{"current-page":a.transactionLogManageInfo.conditions.page,"page-size":a.transactionLogManageInfo.conditions.row,layout:"total, prev, pager, next",total:a.transactionLogManageInfo.total},on:{"current-change":a.handleCurrentChange}})],1),e("transaction-log-message",{ref:"transactionLogMessage"})],1)},o=[],s=t("b775");function r(a){return new Promise((e,t)=>{Object(s["a"])({url:"/transactionLog/queryTransactionLog",method:"get",params:a}).then(a=>{const t=a.data;e(t)}).catch(a=>{t(a)})})}function i(a){return new Promise((e,t)=>{Object(s["a"])({url:"/transactionLog/queryTransactionLogMessage",method:"get",params:a}).then(a=>{const t=a.data;e(t)}).catch(a=>{t(a)})})}var c=function(){var a=this,e=a._self._c;return e("el-dialog",{attrs:{title:a.$t("transactionLogMessage.logMessage"),visible:a.dialogVisible,width:"80%",top:"5vh"},on:{"update:visible":function(e){a.dialogVisible=e}}},[e("el-form",{attrs:{"label-position":"top"}},[e("el-form-item",{attrs:{label:a.$t("transactionLogMessage.requestHeader")}},[e("el-input",{attrs:{type:"textarea",rows:3,readonly:""},model:{value:a.transactionLogMessageInfo.requestHeader,callback:function(e){a.$set(a.transactionLogMessageInfo,"requestHeader",e)},expression:"transactionLogMessageInfo.requestHeader"}})],1),e("el-form-item",{attrs:{label:a.$t("transactionLogMessage.requestMessage")}},[e("el-input",{attrs:{type:"textarea",rows:4,readonly:""},model:{value:a.transactionLogMessageInfo.requestMessage,callback:function(e){a.$set(a.transactionLogMessageInfo,"requestMessage",e)},expression:"transactionLogMessageInfo.requestMessage"}})],1),e("el-form-item",{attrs:{label:a.$t("transactionLogMessage.responseHeader")}},[e("el-input",{attrs:{type:"textarea",rows:3,readonly:""},model:{value:a.transactionLogMessageInfo.responseHeader,callback:function(e){a.$set(a.transactionLogMessageInfo,"responseHeader",e)},expression:"transactionLogMessageInfo.responseHeader"}})],1),e("el-form-item",{attrs:{label:a.$t("transactionLogMessage.responseMessage")}},[e("el-input",{attrs:{type:"textarea",rows:4,readonly:""},model:{value:a.transactionLogMessageInfo.responseMessage,callback:function(e){a.$set(a.transactionLogMessageInfo,"responseMessage",e)},expression:"transactionLogMessageInfo.responseMessage"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"warning"},on:{click:function(e){a.dialogVisible=!1}}},[a._v(" "+a._s(a.$t("transactionLogMessage.cancel"))+" ")])],1)],1)},g=[],l={name:"TransactionLogMessage",data(){return{dialogVisible:!1,transactionLogMessageInfo:{logId:"",requestHeader:"",responseHeader:"",requestMessage:"",responseMessage:""}}},methods:{open(a){this.transactionLogMessageInfo.logId=a.logId,this.clearLogMessage(),this.getLogMessage(a),this.dialogVisible=!0},async getLogMessage(a){try{const e=await i({logId:a.logId});e.data&&e.data.length>0&&Object.assign(this.transactionLogMessageInfo,e.data[0])}catch(e){console.error("请求失败:",e)}},clearLogMessage(){this.transactionLogMessageInfo={logId:"",requestHeader:"",responseHeader:"",requestMessage:"",responseMessage:""}}}},d=l,p=(t("cb5c"),t("2877")),u=Object(p["a"])(d,c,g,!1,null,"cc779bc0",null),f=u.exports,M={name:"TransactionLogManage",components:{TransactionLogMessage:f},data(){return{transactionLogManageInfo:{logs:[],total:0,records:1,conditions:{appId:"",serviceCode:"",transactionId:"",page:1,row:10}}}},created(){this._listLogs(1,10)},methods:{async _listLogs(a,e){this.transactionLogManageInfo.conditions.page=a,this.transactionLogManageInfo.conditions.row=e;try{const a=await r(this.transactionLogManageInfo.conditions);this.transactionLogManageInfo.total=a.total,this.transactionLogManageInfo.records=a.records,this.transactionLogManageInfo.logs=a.data}catch(t){console.error("请求失败:",t)}},viewLogMessage(a){this.$refs.transactionLogMessage.open(a)},_queryLogMethod(){this._listLogs(1,10)},_resetLogMethod(){this.transactionLogManageInfo.conditions={appId:"",serviceCode:"",transactionId:"",page:1,row:10},this._listLogs(1,10)},handleCurrentChange(a){this._listLogs(a,this.transactionLogManageInfo.conditions.row)}}},L=M,I=(t("6315"),Object(p["a"])(L,n,o,!1,null,"b7d768dc",null));e["default"]=I.exports},6315:function(a,e,t){"use strict";t("0dc2")},a099:function(a,e,t){},cb5c:function(a,e,t){"use strict";t("a099")}}]);
//# sourceMappingURL=chunk-cf35a8a4.3522af07.js.map