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

2 lines
5.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc8892c6"],{"36f8":function(e,s,t){"use strict";t("d5f6")},"60fd":function(e,s,t){"use strict";t.r(s);var a=function(){var e=this,s=e._self._c;return s("div",[s("el-row",[s("el-col",{attrs:{span:24}},[s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[s("span",[e._v(e._s(e.$t("websiteAccessLogManage.queryCondition")))]),s("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"},on:{click:function(s){return e._moreCondition()}}},[e._v(" "+e._s(e.websiteAccessLogManageInfo.moreCondition?e.$t("websiteAccessLogManage.hide"):e.$t("websiteAccessLogManage.more"))+" ")])],1),s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:6}},[s("el-input",{attrs:{placeholder:e.$t("websiteAccessLogManage.logIdPlaceholder"),clearable:""},model:{value:e.websiteAccessLogManageInfo.conditions.logId,callback:function(s){e.$set(e.websiteAccessLogManageInfo.conditions,"logId",s)},expression:"websiteAccessLogManageInfo.conditions.logId"}})],1),s("el-col",{attrs:{span:6}},[s("el-input",{attrs:{placeholder:e.$t("websiteAccessLogManage.ipPlaceholder"),clearable:""},model:{value:e.websiteAccessLogManageInfo.conditions.ip,callback:function(s){e.$set(e.websiteAccessLogManageInfo.conditions,"ip",s)},expression:"websiteAccessLogManageInfo.conditions.ip"}})],1),s("el-col",{attrs:{span:6}},[s("el-input",{attrs:{placeholder:e.$t("websiteAccessLogManage.accessUrlPlaceholder"),clearable:""},model:{value:e.websiteAccessLogManageInfo.conditions.accessUrl,callback:function(s){e.$set(e.websiteAccessLogManageInfo.conditions,"accessUrl",s)},expression:"websiteAccessLogManageInfo.conditions.accessUrl"}})],1),s("el-col",{attrs:{span:6}},[s("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(s){return e._queryWebsiteAccessLogMethod()}}},[e._v(" "+e._s(e.$t("websiteAccessLogManage.query"))+" ")])],1)],1),e.websiteAccessLogManageInfo.moreCondition?s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:6}},[s("el-input",{attrs:{placeholder:e.$t("websiteAccessLogManage.loginStatePlaceholder"),clearable:""},model:{value:e.websiteAccessLogManageInfo.conditions.loginState,callback:function(s){e.$set(e.websiteAccessLogManageInfo.conditions,"loginState",s)},expression:"websiteAccessLogManageInfo.conditions.loginState"}})],1)],1):e._e()],1)],1)],1),s("el-row",{staticStyle:{"margin-top":"20px"}},[s("el-col",{attrs:{span:24}},[s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[s("span",[e._v(e._s(e.$t("websiteAccessLogManage.logInfo")))])]),s("website-access-log-table",{attrs:{websiteAccessLogs:e.websiteAccessLogManageInfo.websiteAccessLogs,total:e.websiteAccessLogManageInfo.total,page:e.websiteAccessLogManageInfo.conditions.page},on:{"page-change":e._listWebsiteAccessLogs}})],1)],1)],1)],1)},o=[],c=t("b775");function n(e){return new Promise((s,t)=>{Object(c["a"])({url:"/websiteAccessLog.listWebsiteAccessLog",method:"get",params:e}).then(e=>{const t=e.data;s(t)}).catch(e=>{t(e)})})}var i=function(){var e=this,s=e._self._c;return s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.websiteAccessLogs,border:""}},[s("el-table-column",{attrs:{prop:"logId",label:e.$t("websiteAccessLogManage.logId"),align:"center"}}),s("el-table-column",{attrs:{prop:"ip",label:e.$t("websiteAccessLogManage.ip"),align:"center"}}),s("el-table-column",{attrs:{prop:"accessTime",label:e.$t("websiteAccessLogManage.accessTime"),align:"center"}}),s("el-table-column",{attrs:{prop:"accessUrl",label:e.$t("websiteAccessLogManage.accessUrl"),align:"center"}}),s("el-table-column",{attrs:{prop:"loginState",label:e.$t("websiteAccessLogManage.loginState"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(s){return[e._v(" "+e._s(0==s.row.loginState?e.$t("websiteAccessLogManage.notLogin"):e.$t("websiteAccessLogManage.loggedIn"))+" ")]}}])}),s("el-table-column",{attrs:{prop:"loginName",label:e.$t("websiteAccessLogManage.loginName"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(s){return[e._v(" "+e._s(s.row.loginName||"-")+" ")]}}])})],1),s("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.page,"page-size":10,layout:"total, prev, pager, next, jumper",total:e.total},on:{"current-change":e.handlePageChange}})],1)},l=[],g={name:"WebsiteAccessLogTable",props:{websiteAccessLogs:{type:Array,default:()=>[]},total:{type:Number,default:0},page:{type:Number,default:1}},methods:{handlePageChange(e){this.$emit("page-change",e,10)}}},r=g,b=t("2877"),d=Object(b["a"])(r,i,l,!1,null,null,null),p=d.exports,u={name:"WebsiteAccessLogManage",components:{WebsiteAccessLogTable:p},data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,websiteAccessLogManageInfo:{websiteAccessLogs:[],total:0,records:1,moreCondition:!1,conditions:{logId:"",ip:"",accessUrl:"",loginState:"",page:1,row:10}}}},created(){this._listWebsiteAccessLogs(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},methods:{_listWebsiteAccessLogs(e,s){this.websiteAccessLogManageInfo.conditions.page=e,this.websiteAccessLogManageInfo.conditions.row=s,n(this.websiteAccessLogManageInfo.conditions).then(e=>{this.websiteAccessLogManageInfo.total=e.total,this.websiteAccessLogManageInfo.records=e.records,this.websiteAccessLogManageInfo.websiteAccessLogs=e.data}).catch(e=>{console.error("请求失败:",e)})},_queryWebsiteAccessLogMethod(){this._listWebsiteAccessLogs(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_moreCondition(){this.websiteAccessLogManageInfo.moreCondition=!this.websiteAccessLogManageInfo.moreCondition}}},A=u,w=(t("36f8"),Object(b["a"])(A,a,o,!1,null,"d35c0248",null));s["default"]=w.exports},d5f6:function(e,s,t){}}]);
//# sourceMappingURL=chunk-bc8892c6.81bb9ef0.js.map