2 lines
7.9 KiB
JavaScript
2 lines
7.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4bbf9b6"],{"2e9b":function(t,e,o){"use strict";o("8709")},"78d3":function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:3}},[e("el-card",{staticClass:"list-selector"},[e("ul",{staticClass:"list-selector-list"},t._l(t.partnerLogInfo.partners,(function(o,r){return e("li",{key:r,class:{selected:t.partnerLogInfo.conditions.ppId==o.ppId},on:{click:function(e){return t.swatchPartner(o)}}},[t._v(" "+t._s(o.partnerName)+" ")])})),0)])],1),e("el-col",{attrs:{span:21}},[e("el-card",[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("partnerLog.queryCondition")))])]),e("el-form",{staticClass:"demo-form-inline text-left",attrs:{inline:!0}},[e("el-form-item",[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerLog.inputUserName")},model:{value:t.partnerLogInfo.conditions.personName,callback:function(e){t.$set(t.partnerLogInfo.conditions,"personName",e)},expression:"partnerLogInfo.conditions.personName"}})],1),e("el-form-item",[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerLog.selectLogAction")},model:{value:t.partnerLogInfo.conditions.logAction,callback:function(e){t.$set(t.partnerLogInfo.conditions,"logAction",e)},expression:"partnerLogInfo.conditions.logAction"}})],1),e("el-form-item",[e("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:t.$t("partnerLog.selectStatus")},model:{value:t.partnerLogInfo.conditions.state,callback:function(e){t.$set(t.partnerLogInfo.conditions,"state",e)},expression:"partnerLogInfo.conditions.state"}})],1),e("el-form-item",[e("el-date-picker",{staticStyle:{width:"200px"},attrs:{type:"datetime",placeholder:t.$t("partnerLog.selectStartTime"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.partnerLogInfo.conditions.queryStartTime,callback:function(e){t.$set(t.partnerLogInfo.conditions,"queryStartTime",e)},expression:"partnerLogInfo.conditions.queryStartTime"}})],1),e("el-form-item",[e("el-date-picker",{staticStyle:{width:"200px"},attrs:{type:"datetime",placeholder:t.$t("partnerLog.selectEndTime"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.partnerLogInfo.conditions.queryEndTime,callback:function(e){t.$set(t.partnerLogInfo.conditions,"queryEndTime",e)},expression:"partnerLogInfo.conditions.queryEndTime"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){return t._queryPartnerLogMethod()}}},[t._v(" "+t._s(t.$t("partnerLog.query"))+" ")])],1)],1)],1),e("el-card",{staticStyle:{"margin-top":"20px"}},[e("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[e("span",[t._v(t._s(t.$t("partnerLog.partnerLog")))])]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.partnerLogInfo.partnerLogs,border:""}},[e("el-table-column",{attrs:{prop:"logId",label:t.$t("partnerLog.serialNumber"),align:"center"}}),e("el-table-column",{attrs:{prop:"logAction",label:t.$t("partnerLog.logAction"),align:"center"}}),e("el-table-column",{attrs:{prop:"personId",label:t.$t("partnerLog.userId"),align:"center"}}),e("el-table-column",{attrs:{prop:"personName",label:t.$t("partnerLog.userName"),align:"center"}}),e("el-table-column",{attrs:{prop:"state",label:t.$t("partnerLog.status"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:e}){return[t._v(" "+t._s("10002"==e.state?t.$t("partnerLog.success"):t.$t("partnerLog.fail"))+" ")]}}])}),e("el-table-column",{attrs:{prop:"createTime",label:t.$t("partnerLog.deliveryTime"),align:"center"}}),e("el-table-column",{attrs:{label:t.$t("partnerLog.operation"),align:"center"},scopedSlots:t._u([{key:"default",fn:function({row:o}){return[e("el-button",{attrs:{size:"mini"},on:{click:function(e){return t._openViewPartnerLogModel(o)}}},[t._v(" "+t._s(t.$t("partnerLog.message"))+" ")])]}}])})],1),e("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":t.partnerLogInfo.conditions.page,"page-size":t.partnerLogInfo.conditions.row,layout:"total, prev, pager, next",total:t.partnerLogInfo.total},on:{"current-change":t.handleCurrentChange}})],1)],1)],1),e("show-partner-log",{ref:"showPartnerLog"})],1)},n=[],a=o("b775"),s=o("7323");function l(t){return new Promise((e,o)=>{Object(a["a"])({url:"/partner.listPartnerLog",method:"get",params:{...t,shopId:Object(s["f"])()}}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function i(t){return new Promise((e,o)=>{Object(a["a"])({url:"/partner.listPartnerPool",method:"get",params:{...t,shopId:Object(s["f"])()}}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}function c(t){return new Promise((e,o)=>{Object(a["a"])({url:"/accessControlLog.listAccessControlLogParam",method:"get",params:{...t,shopId:Object(s["f"])()}}).then(t=>{const o=t.data;e(o)}).catch(t=>{o(t)})})}var p=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{title:t.$t("showPartnerLog.accessLog"),visible:t.dialogVisible,width:"80%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("el-form",{attrs:{"label-position":"left","label-width":"120px"}},[e("el-form-item",{attrs:{label:t.$t("showPartnerLog.requestMessage")}},[e("el-input",{attrs:{type:"textarea",rows:10,readonly:""},model:{value:t.showPartnerLogInfo.reqParam,callback:function(e){t.$set(t.showPartnerLogInfo,"reqParam",e)},expression:"showPartnerLogInfo.reqParam"}})],1),e("el-form-item",{attrs:{label:t.$t("showPartnerLog.responseMessage")}},[e("el-input",{attrs:{type:"textarea",rows:10,readonly:""},model:{value:t.showPartnerLogInfo.resParam,callback:function(e){t.$set(t.showPartnerLogInfo,"resParam",e)},expression:"showPartnerLogInfo.resParam"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(t._s(t.$t("showPartnerLog.cancel")))])],1)],1)},d=[],g={name:"ShowPartnerLog",data(){return{dialogVisible:!1,showPartnerLogInfo:{logId:"",reqParam:"",resParam:""}}},methods:{open(t){this.showPartnerLogInfo={...t},this.loadShowPartnerLogInfo(),this.dialogVisible=!0},handleClose(t){this.clearShowPartnerLogInfo(),t()},async loadShowPartnerLogInfo(){try{const t=await c({page:1,row:1,logId:this.showPartnerLogInfo.logId,shopId:Object(s["f"])()});t.data&&t.data.length>0&&(this.showPartnerLogInfo={...t.data[0]})}catch(t){console.error(t)}},clearShowPartnerLogInfo(){this.showPartnerLogInfo={logId:"",reqParam:"",resParam:""}}}},f=g,u=o("2877"),h=Object(u["a"])(f,p,d,!1,null,null,null),m=h.exports,L={name:"PartnerLog",components:{ShowPartnerLog:m},data(){return{loading:!1,partnerLogInfo:{partnerLogs:[],partners:[],total:0,conditions:{ppId:"",logAction:"",state:"",personName:"",queryStartTime:"",queryEndTime:"",page:1,row:10,shopId:""}}}},created(){this.partnerLogInfo.conditions.shopId=Object(s["f"])(),this._listPartners()},methods:{handleCurrentChange(t){this.partnerLogInfo.conditions.page=t,this._listPartnerLogs()},async _listPartnerLogs(){this.loading=!0;try{const t=await l(this.partnerLogInfo.conditions);this.partnerLogInfo.partnerLogs=t.data,this.partnerLogInfo.total=t.total}catch(t){console.error(t)}finally{this.loading=!1}},_openViewPartnerLogModel(t){this.$refs.showPartnerLog.open(t)},_queryPartnerLogMethod(){this.partnerLogInfo.conditions.page=1,this._listPartnerLogs()},async _listPartners(){try{const t=await i({page:1,row:100,shopId:Object(s["f"])()});this.partnerLogInfo.partners=t.data,t.data&&t.data.length>0&&(this.partnerLogInfo.conditions.ppId=t.data[0].ppId,this._listPartnerLogs())}catch(t){console.error(t)}},swatchPartner(t){this.partnerLogInfo.conditions.ppId=t.ppId,this._listPartnerLogs()}}},I=L,b=(o("2e9b"),Object(u["a"])(I,r,n,!1,null,"664ddceb",null));e["default"]=b.exports},8709:function(t,e,o){}}]);
|
|
//# sourceMappingURL=chunk-d4bbf9b6.3ef1001a.js.map
|