新版交易所前段管理后台
1
PC-20250623MANY\Administrator
2025-09-18 76202ecee700d4c37eb55f900e37c9878bf4722b
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fdddf7f","chunk-02125506"],{"02b5":function(t,e,a){},"20ca":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));const s=(t,e)=>{let a,s=e||300;return function(){let e=arguments;a&&clearTimeout(a);let i=!a;a=setTimeout(()=>{a=null},s),i&&t.apply(this,e)}}},"72eb":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));const s={searchMenuSpan:6,columnBtn:!1,border:!0,selection:!1,index:!1,indexLabel:"序号",stripe:!0,menuAlign:"center",menuWidth:250,align:"center",refreshBtn:!0,searchSize:"mini",addBtn:!1,editBtn:!1,delBtn:!1,viewBtn:!1,props:{label:"label",value:"value"},column:[{label:"用户名",placeholder:"用户名、UID",prop:"userName",search:!0},{label:"UID",prop:"userCode"},{label:"账号类型",prop:"roleName",type:"select",dicData:[{label:"所有账号",value:""},{label:"正式账号",value:"MEMBER"},{label:"演示账号",value:"GUEST"},{label:"试用账号",value:"TEST"}]},{label:"类型",prop:"typeName"},{label:"备注",prop:"remark"}]}},c1c8:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mod-cryptos-indexImg"},[a("avue-crud",{ref:"crud",attrs:{page:t.page,data:t.dataList,option:t.tableOption},on:{"update:page":function(e){t.page=e},"search-change":t.searchChange,"selection-change":t.selectionChange,"on-load":t.getDataList},scopedSlots:t._u([{key:"menu",fn:function(e){return[t.isAuth("sys:user:update")?a("el-button",{attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:function(a){return a.stopPropagation(),t.addOrUpdateHandle(t.options,e.row)}}},[t._v("编辑")]):t._e(),t.isAuth("sys:user:delete")?a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:function(a){return a.stopPropagation(),t.deleteHandle(e.row.uuid,e.row.userName)}}},[t._v("删除")]):t._e()]}}])},[a("template",{slot:"menuLeft"},[t.isAuth("sys:user:save")?a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(e){return e.stopPropagation(),t.addOrUpdateHandle(t.options)}}},[t._v("新增")]):t._e()],1)],2),t.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:t.getDataList}}):t._e(),t.UpdateGogle?a("add-or-gogle",{ref:"UpdateGogle",on:{refreshDataList:t.getDataList}}):t._e()],1)},i=[],r=(a("14d9"),a("c7fc")),o=a("72eb"),n={data(){return{dataList:[],options:[],dataListLoading:!1,dataListSelections:[],addOrUpdateVisible:!1,UpdateGogle:!1,tableOption:o["a"],page:{total:0,currentPage:1,pageSize:10},searchParams:{}}},components:{AddOrUpdate:r["default"]},created(){this.getConfig()},methods:{getDataList(t,e){this.dataListLoading=!0,this.$http({url:this.$http.adornUrl("/normal/adminProfitAndLossConfigAction!/list.action"),method:"get",params:this.$http.adornParams(Object.assign({type:"cryptos",current:null==t?this.page.currentPage:t.currentPage,size:null==t?this.page.pageSize:t.pageSize},this.searchParams))}).then(({data:t})=>{this.dataList=t.data.records,this.page.total=t.data.total,this.dataListLoading=!1,e&&e()})},getConfig(t,e){this.$http({url:this.$http.adornUrl("/normal/adminProfitAndLossConfigAction!/config.action"),method:"get",params:this.$http.adornParams(Object.assign({},t),!1)}).then(({data:t})=>{if(0==t.code){let e=Object.keys(t.data),a=Object.values(t.data);for(let t=0;t<e.length;t++){let s={};s.label=a[t],s.value=e[t],this.options.push(s)}}console.log(this.options),e&&e()})},searchChange(t,e){this.page.currentPage=1,this.searchParams=t,this.getDataList(this.page,e)},selectionChange(t){this.dataListSelections=t},addOrUpdateHandle(t,e){this.addOrUpdateVisible=!0,this.$nextTick(()=>{this.$refs.addOrUpdate.init(t,e)})},deleteHandle(t,e){this.$confirm(`确定对[用户${e}]进行[${t?"删除":"批量删除"}]操作?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$http({url:this.$http.adornUrl("/normal/adminProfitAndLossConfigAction!/toDelete.action"),method:"get",params:this.$http.adornParams(Object.assign({uuid:t}))}).then(({data:t})=>{0==t.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.getDataList()}}):this.$message({message:t.msg,type:"error",duration:1500,onClose:()=>{}})})}).catch(()=>{})}}},l=n,d=a("2877"),c=Object(d["a"])(l,s,i,!1,null,null,null);e["default"]=c.exports},c7fc:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mod-index-img"},[a("el-dialog",{attrs:{title:t.dataForm.imgId?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e},close:t.handClose}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"100px"}},[t.row?a("el-form-item",{attrs:{label:"用户名",prop:"userName"}},[a("el-input",{attrs:{disabled:"",placeholder:"用户名"},model:{value:t.dataForm.userName,callback:function(e){t.$set(t.dataForm,"userName",e)},expression:"dataForm.userName"}})],1):t._e(),a("el-form-item",{attrs:{label:"用户UID",prop:"userCode"}},[a("el-input",{attrs:{disabled:!!t.row,placeholder:"用户UID"},model:{value:t.dataForm.userCode,callback:function(e){t.$set(t.dataForm,"userCode",e)},expression:"dataForm.userCode"}})],1),a("el-form-item",{attrs:{label:"类型"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeVal},model:{value:t.options.value,callback:function(e){t.$set(t.options,"value",e)},expression:"options.value"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"500",autosize:{minRows:8,maxRows:8},"show-word-limit":""},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1),t.prodsSelectVisible?a("prods-select",{ref:"prodsSelect",attrs:{isSingle:!0},on:{refreshSelectProds:t.selectCouponProds}}):t._e()],1)},i=[],r=a("cf95"),o=a("17c9"),n=a("20ca"),l={data(){return{dataForm:{userCode:"",userName:"",remark:"",uuid:""},row:"",options:[],dataRule:{userCode:[{required:!0,message:"UID不能为空",trigger:"blur"}],remark:[{required:!0,message:"备注不能为空",trigger:"blur"}]},card:{id:0,pic:"",name:"",realData:{prod:[],shop:[],activity:[]}},page:{total:0,currentPage:1,pageSize:10},prodsSelectVisible:!1,visible:!1}},components:{PicUpload:r["a"],ProdsSelect:o["a"]},methods:{init(t,e){this.options=t,this.row=e||"",e?(this.dataForm.remark=e.remark,this.dataForm.uuid=e.uuid,this.dataForm.userCode=e.userCode,this.dataForm.userName=e.userName,this.options.value=e.type):this.options.value=this.options[0].value,this.visible=!0},dataFormSubmit:Object(n["a"])((function(){this.row?this.$refs["dataForm"].validate(t=>{t&&this.$http({url:this.$http.adornUrl("/normal/adminProfitAndLossConfigAction!/update.action"),method:"post",data:this.$http.adornData({remark:this.dataForm.remark,type:this.options.value,uuid:this.dataForm.uuid})}).then(({data:t})=>{0==t.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:t.msg,type:"error",duration:1500,onClose:()=>{}})})}):this.$refs["dataForm"].validate(t=>{t&&this.$http({url:this.$http.adornUrl("/normal/adminProfitAndLossConfigAction!/add.action"),method:"post",data:this.$http.adornData({remark:this.dataForm.remark,type:this.options.value,userCode:this.dataForm.userCode})}).then(({data:t})=>{0==t.code?this.$message({message:"操作成功",type:"success",duration:1500,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:t.msg,type:"error",duration:1500,onClose:()=>{}})})})})),handClose(){this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},deleteRelation(){this.dataForm.relation=null},addProd(){this.prodsSelectVisible=!0,this.$nextTick(()=>{this.$refs.prodsSelect.init(this.card.realData.prod)})},changeVal(t){this.$forceUpdate()},selectCouponProds(t){if(this.card.realData.prods=t,t.length){let e=t[0];this.dataForm.relation=e.prodId,this.card.pic=e.pic,this.card.name=e.prodName,this.card.id=e.prodId}else this.card={},this.relation=null},addShop(){alert("选择店铺")},addActivity(){alert("选择活动")}}},d=l,c=(a("d2d0"),a("2877")),u=Object(c["a"])(d,s,i,!1,null,"501c5b79",null);e["default"]=u.exports},d2d0:function(t,e,a){"use strict";a("02b5")}}]);