You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 lines
9.8 KiB

"use strict";(self["webpackChunkh5_u2"]=self["webpackChunkh5_u2"]||[]).push([[353],{8859:function(e,t,a){var l=a(4311),r=a(5975);const n={baseURL:location.origin,timeout:5e3},o=l.Z.create(n);o.interceptors.request.use((function(e){return"get"===e.method&&"/api/login"!==e.url&&(localStorage.getItem("os-token")?(e.params||(e.params={}),Object.assign(e.params,{token:localStorage.getItem("os-token")})):((0,r.z8)({message:"请先登录",type:"warning"}),localStorage.clear())),e}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(e){return 1===e.data.ret&&(0,r.z8)({message:"请先登录",type:"warning"}),e.data}),(function(e){return Promise.reject(e)})),t["Z"]=o},2648:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Gh:function(){return transformJSON},WU:function(){return format},XF:function(){return getDiffDate},ax:function(){return transformBeginTime},c$:function(){return getArray},w6:function(){return range}});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7658),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);function getArray(e=0,t=new Date,a=new Date){t.setDate(t.getDate()-e),a.setDate(a.getDate()+e);var l=[],r=[],n=["日","一","二","三","四","五","六"],o=0;while(a.getTime()-t.getTime()>=0){o++;var p=1==(t.getMonth()+1).toString().length?"0"+(t.getMonth()+1).toString():t.getMonth()+1,u=1==t.getDate().toString().length?"0"+t.getDate():t.getDate(),i=n[t.getDay()];r.push(p+"月"+u+"日(周"+i+")");var d={};d.week=1==o?"今天":"周"+i,d.date=(new Date).getFullYear()+"-"+p+"-"+u,d.date2=p+"-"+u,l.push(d),t.setDate(t.getDate()+1)}return l}function format(e){return e.map((e=>({title:e.date.slice(5),dataKey:e.date,key:e.date,width:60})))}function getDiffDate(e,t){var a=new Array,l=0;while(e<=t){a[l]=e;var r=new Date(e).getTime(),n=r+864e5,o=new Date(n).getFullYear()+"-",p=new Date(n).getMonth()+1<10?"0"+(new Date(n).getMonth()+1)+"-":new Date(n).getMonth()+1+"-",u=new Date(n).getDate()<10?"0"+new Date(n).getDate():new Date(n).getDate();e=o+p+u,l++}return a[0]=a[0].slice(0,10),a}function randomColorAndNotRed(){var e=Math.floor(200*Math.random()),t=Math.floor(206*Math.random()+50),a=Math.floor(206*Math.random()+50);return`rgb(${e},${t},${a})`}function transformBeginTime(e){return getFormatDateTime(e)}function getFormatDateTime(e){var t=new Date;t.setDate(t.getDate()-e);var a=t.getFullYear(),l=t.getMonth()+1,r=t.getDate(),n=t.getHours(),o=t.getMinutes(),p=t.getSeconds();return[a,"-",l<10?`0${l}`:l,"-",r<10?`0${r}`:r," ",n<10?`0${n}`:n,":",o<10?`0${o}`:o,":",p<10?`0${p}`:p].join("")}function transformJSON(e){return new Function("return "+e)()}function transformArray(str){return eval("("+str+")")}function range(e){let[t,a]=e.split("-");t=parseInt(t),a=parseInt(a);let l=a-t+1,r=t-1;return Array.apply(null,{length:l}).map(((e,t)=>(r++,r)))}},5830:function(e,t,a){a.d(t,{Z:function(){return m}});var l=a(3396),r=a(7139),n=a(4870);a(2648);const o=e=>((0,l.dD)("data-v-79ac3e0f"),e=e(),(0,l.Cn)(),e),p=o((()=>(0,l._)("p",null,"请输入你想要删除的数量",-1))),u={style:{"text-align":"right",margin:"0"}};var i={__name:"Table",props:{data:{type:Array,require:!0},columns:{type:Array,require:!0},page:Boolean,total:Number},emits:["changePage"],setup(e,{emit:t}){const a=e,o=(0,n.iH)([]);(0,l.YP)((()=>a.data),(e=>{"expand"==a.columns[0].type&&(o.value=e.map((e=>{if(e.paramStr){if(5==e.type){const t=JSON.parse(e.paramStr);return t.uidList=e.uidList||e.uid,[t]}return[JSON.parse(e.paramStr)]}})))}));const i=(0,n.iH)(null),d=(0,n.iH)([]),s=(0,n.iH)(1),m=e=>{t("changePage",e)},c=()=>{d.value=[]};return(t,n)=>{const _=(0,l.up)("el-input-number"),g=(0,l.up)("el-button"),w=(0,l.up)("el-popover"),f=(0,l.up)("el-space"),b=(0,l.up)("el-table-column"),y=(0,l.up)("el-table"),h=(0,l.up)("el-pagination");return(0,l.wg)(),(0,l.iD)("div",{class:"table",onClick:c},[(0,l.Wm)(y,{ref_key:"table",ref:i,style:{width:"100%"},data:a.data},(0,l.Nv)({_:2},["expand"!=a.columns[0].type?{name:"default",fn:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(a.columns,(e=>((0,l.wg)(),(0,l.j4)(b,{key:e.prop,prop:e.prop,label:e.label,width:e.width},(0,l.Nv)({_:2},["operation"===e.prop?{name:"default",fn:(0,l.w5)((t=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.operation,((e,a)=>((0,l.wg)(),(0,l.j4)(f,{key:a},{default:(0,l.w5)((()=>["删除"===e.text?((0,l.wg)(),(0,l.j4)(w,{key:0,visible:d.value[t.$index],placement:"top",width:160,trigger:"hover"},{reference:(0,l.w5)((()=>[(0,l.Wm)(g,{size:"small",type:e.type,onClick:e=>{s.value=1,d.value[t.$index]=!0}},{default:(0,l.w5)((()=>[(0,l.Uk)((0,r.zw)(e.text),1)])),_:2},1032,["type","onClick"])])),default:(0,l.w5)((()=>[p,(0,l.Wm)(_,{placeholder:"请输入数量",modelValue:s.value,"onUpdate:modelValue":n[0]||(n[0]=e=>s.value=e),min:1,size:"small"},null,8,["modelValue"]),(0,l._)("div",u,[(0,l.Wm)(g,{size:"small",text:"",onClick:e=>d.value[t.$index]=!1},{default:(0,l.w5)((()=>[(0,l.Uk)("取消")])),_:2},1032,["onClick"]),(0,l.Wm)(g,{size:"small",type:"primary",onClick:a=>{e.onClick(t.row,t.$index,s.value),d.value[t.$index]=!1}},{default:(0,l.w5)((()=>[(0,l.Uk)("确认")])),_:2},1032,["onClick"])])])),_:2},1032,["visible"])):(0,l.kq)("",!0)])),_:2},1024)))),128))])),key:"0"}:void 0]),1032,["prop","label","width"])))),128))])),key:"0"}:{name:"default",fn:(0,l.w5)((()=>[(0,l.Wm)(b,{type:"expand",width:50},{default:(0,l.w5)((e=>[(0,l.Wm)(y,{data:o.value[e.$index]},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(a.columns[0].cols[e?.row?.type-1],(e=>((0,l.wg)(),(0,l.j4)(b,{key:e.prop,prop:e.prop,label:e.label,width:e.width},null,8,["prop","label","width"])))),128))])),_:2},1032,["data"])])),_:1}),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(a.columns.slice(1),(e=>((0,l.wg)(),(0,l.j4)(b,{key:e.prop,prop:e.prop,label:e.label,width:e.width},(0,l.Nv)({_:2},["operation"===e.prop?{name:"default",fn:(0,l.w5)((t=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.operation,((e,a)=>((0,l.wg)(),(0,l.j4)(f,{key:a},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{size:"small",onClick:a=>e.onClick(t.row,t.$index),type:e.type},{default:(0,l.w5)((()=>[(0,l.Uk)((0,r.zw)(e.text),1)])),_:2},1032,["onClick","type"])])),_:2},1024)))),128))])),key:"0"}:void 0]),1032,["prop","label","width"])))),128))])),key:"1"}]),1032,["data"]),e.page?((0,l.wg)(),(0,l.j4)(h,{key:0,layout:"prev, pager, next",total:e.total||0,background:"",onCurrentChange:m},null,8,["total"])):(0,l.kq)("",!0)])}}},d=a(89);const s=(0,d.Z)(i,[["__scopeId","data-v-79ac3e0f"]]);var m=s},8370:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var l=a(3396),r=a(4870),n=a(5830),o=[[{prop:"coinID",label:"货币ID"},{prop:"name",label:"名称"},{prop:"nums",label:"数量"},{prop:"num",label:"操作数量"}],[{prop:"DescId",label:"英雄ID"},{prop:"SerialNum",label:"唯一ID"},{prop:"nickname",label:"称号"},{prop:"Star",label:"品质"},{prop:"Level",label:"等级"},{prop:"SuperEvolve",label:"是否超进化"},{prop:"SuperEvolveLevel",label:"超进化等级"},{prop:"TempWeaponLevel",label:"专武等级"},{prop:"num",label:"操作数量"}],[{prop:"Id",label:"背包道具ID"},{prop:"name",label:"名称"},{prop:"Count",label:"数量"},{prop:"num",label:"操作数量"}],[{prop:"DescId",label:"背包装备ID"},{prop:"SerialNum",label:"唯一ID"},{prop:"name",label:"名称"},{prop:"State",label:"品质"},{prop:"Level",label:"强化等级"},{prop:"num",label:"操作数量"}],[{prop:"uidList",label:"uidList"},{prop:"opId",label:"opId"}]],p=a(8859);a(9564);const u={class:"hero"};var i={__name:"operationHistory",setup(e){const t={1:"删除",2:"新增"},a={1:"货币",2:"英雄",3:"背包道具",4:"背包装备",5:"vip活动"},i=(0,r.iH)(0),d=(0,r.qj)({uid:"",type:"",opUser:"",opId:""}),s=()=>{m()};(0,l.bv)((async()=>{await m()}));const m=async(e=1)=>{const{data:l,count:r}=await p.Z.get("/api/select_playerop",{params:{pageSize:10,pageIndex:e,uid:d.uid,type:d.type,opUser:d.opUser,opId:d.opId}});i.value=r,_.value=l.map((e=>(e.operationContent=t[e.opType]+"【"+a[e.type]+"】",e)))},c=e=>{m(e)},_=(0,r.iH)([]),g=(0,r.iH)([{type:"expand",cols:o},{prop:"opUser",label:"操作用户"},{prop:"uid",label:"UID"},{prop:"createTime",label:"操作时间"},{prop:"operationContent",label:"操作内容"}]);return(e,t)=>{const a=(0,l.up)("el-input"),o=(0,l.up)("el-form-item"),p=(0,l.up)("el-button"),m=(0,l.up)("el-form");return(0,l.wg)(),(0,l.iD)("div",u,[(0,l.Wm)(m,{inline:!0,model:(0,r.SU)(d),"label-width":"120px"},{default:(0,l.w5)((()=>[(0,l.Wm)(o,{label:"uid"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{placeholder:"请输入uid",modelValue:(0,r.SU)(d).uid,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,r.SU)(d).uid=e),style:{width:"200px"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(o,{label:"操作类型"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{placeholder:"请输入操作类型",modelValue:(0,r.SU)(d).type,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,r.SU)(d).type=e),style:{width:"200px"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(o,{label:"操作人员账号"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{placeholder:"请输入操作人员账号",modelValue:(0,r.SU)(d).opUser,"onUpdate:modelValue":t[2]||(t[2]=e=>(0,r.SU)(d).opUser=e),style:{width:"200px"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(o,{label:"操作物品ID"},{default:(0,l.w5)((()=>[(0,l.Wm)(a,{placeholder:"请输入操作物品ID",modelValue:(0,r.SU)(d).opId,"onUpdate:modelValue":t[3]||(t[3]=e=>(0,r.SU)(d).opId=e),style:{width:"200px"}},null,8,["modelValue"])])),_:1}),(0,l.Wm)(o,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{type:"primary",onClick:s},{default:(0,l.w5)((()=>[(0,l.Uk)("搜索")])),_:1})])),_:1})])),_:1},8,["model"]),(0,l.Wm)(n.Z,{data:(0,r.SU)(_),columns:(0,r.SU)(g),page:"",total:(0,r.SU)(i),onChangePage:c},null,8,["data","columns","total"])])}}},d=a(89);const s=(0,d.Z)(i,[["__scopeId","data-v-23861c2f"]]);var m=s}}]);
//# sourceMappingURL=operationHistory.112d61a7.js.map