新版交易所前段管理后台
1
jhzh
2025-09-10 f6b255f15d0acd8f4cb5a2c1528d9c5d75794cf4
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ea015cac"],{1:function(t,a){},"20ca":function(t,a,e){"use strict";e.d(a,"a",(function(){return o}));const o=(t,a)=>{let e,o=a||300;return function(){let a=arguments;e&&clearTimeout(e);let i=!e;e=setTimeout(()=>{e=null},o),i&&t.apply(this,a)}}},"25fe":function(t,a,e){},"90bc":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-dialog",{staticClass:"transport-dialog",attrs:{title:t.row?"修改合约参数":"新增合约参数","close-on-click-modal":!1,visible:t.visible,"append-to-body":"",width:"800px"},on:{"update:visible":function(a){t.visible=a},close:t.handClose}},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,"label-width":"110px",rules:t.dataRule},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:""}},[e("div",{staticClass:"green"},[t._v("交割收益:交割收益计算方式(0~100百分制)")])]),e("el-form-item",{attrs:{label:"交割合约代码"}},[e("el-select",{attrs:{placeholder:"请选择",disabled:!!t.row},on:{change:function(a){return t.changeVal()}},model:{value:t.options.value,callback:function(a){t.$set(t.options,"value",a)},expression:"options.value"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("el-form",{ref:"dataForm",attrs:{inline:!0,model:t.dataForm,rules:t.dataRule}},[e("el-form-item",{attrs:{label:"时间",prop:"timenum","label-width":"110px"}},[e("el-input",{staticClass:"spamm",attrs:{placeholder:"时间"},model:{value:t.dataForm.timenum,callback:function(a){t.$set(t.dataForm,"timenum",a)},expression:"dataForm.timenum"}})],1),e("el-form-item",{attrs:{"label-width":"110px"}},[e("el-select",{staticClass:"spann selfloat",attrs:{placeholder:"请选择"},on:{change:function(a){return t.changeVal()}},model:{value:t.optionsTwo.value,callback:function(a){t.$set(t.optionsTwo,"value",a)},expression:"optionsTwo.value"}},t._l(t.optionsTwo,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),e("el-form",{ref:"dataForm",attrs:{inline:!0,model:t.dataForm,rules:t.dataRule}},[e("el-form-item",{attrs:{label:"交割收益",prop:"profitRatio","label-width":"110px"}},[e("el-input",{staticClass:"spamm",attrs:{placeholder:""},model:{value:t.dataForm.profitRatio,callback:function(a){t.$set(t.dataForm,"profitRatio",a)},expression:"dataForm.profitRatio"}}),e("el-input",{staticClass:"spannn",attrs:{placeholder:"~",disabled:""}})],1),e("el-form-item",{attrs:{label:"",prop:"profitRatioMax","label-width":"110px"}},[e("el-input",{staticClass:"spamm",attrs:{placeholder:""},model:{value:t.dataForm.profitRatioMax,callback:function(a){t.$set(t.dataForm,"profitRatioMax",a)},expression:"dataForm.profitRatioMax"}}),e("el-input",{staticClass:"spannn",attrs:{placeholder:"%",disabled:""}})],1)],1),e("el-form-item",{attrs:{label:"最低购买金额",prop:"unitAmount","label-width":"110px"}},[e("el-input",{staticClass:"spammm",attrs:{placeholder:"最低购买金额"},model:{value:t.dataForm.unitAmount,callback:function(a){t.$set(t.dataForm,"unitAmount",a)},expression:"dataForm.unitAmount"}})],1),e("el-form-item",{attrs:{label:"最高购买金额",prop:"unitMaxAmount","label-width":"110px"}},[e("el-input",{staticClass:"spammm",attrs:{placeholder:"最高购买金额"},model:{value:t.dataForm.unitMaxAmount,callback:function(a){t.$set(t.dataForm,"unitMaxAmount",a)},expression:"dataForm.unitMaxAmount"}})],1),e("el-form-item",{attrs:{label:"手续费",prop:"unitFee","label-width":"110px"}},[e("el-input",{staticClass:"spammm",attrs:{placeholder:"手续费"},model:{value:t.dataForm.unitFee,callback:function(a){t.$set(t.dataForm,"unitFee",a)},expression:"dataForm.unitFee"}}),e("el-input",{staticClass:"spannn",attrs:{placeholder:"%",disabled:""}})],1),e("el-form-item",{attrs:{label:"资金密码",prop:"loginSafeword","label-width":"110px"}},[e("el-input",{staticClass:"spammm",attrs:{placeholder:"请输入登录人资金密码",type:"password"},model:{value:t.dataForm.loginSafeword,callback:function(a){t.$set(t.dataForm,"loginSafeword",a)},expression:"dataForm.loginSafeword"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(a){t.visible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},i=[],r=e("20ca"),s=e("90c5"),l={data(){return{visible:!1,second:0,mafterValue:0,options:[],optionsTwo:[{label:"秒",value:"second"},{label:"分",value:"minute"},{label:"时",value:"hour"},{label:"天",value:"day"}],row:"",addOrUpdateVisible:!1,dataForm:{loginSafeword:"",profitRatio:"",profitRatioMax:"",timenum:"",timeunit:"",uuid:"",unitFee:"",unitAmount:"",unitMaxAmount:""},dataRule:{loginSafeword:[{required:!0,message:"资金密码不能为空",trigger:"blur"}],profitRatio:[{required:!0,message:"交割收益不能为空",trigger:"blur"}],profitRatioMax:[{required:!0,message:"交割收益不能为空",trigger:"blur"}],timenum:[{required:!0,message:"时间不能为空",trigger:"blur"}],unitFee:[{required:!0,message:"手续费不能为空",trigger:"blur"}],unitAmount:[{required:!0,message:"最低购买金额不能为空",trigger:"blur"}],unitMaxAmount:[{required:!0,message:"最高购买金额不能为空",trigger:"blur"}],remark:[{required:!1,pattern:/\s\S+|S+\s|\S/,message:"输入格式有误",trigger:"blur"}]},page:{total:0,currentPage:1,pageSize:10},editVisible:!1}},components:{},computed:{},methods:{init(t,a){this.row=a||"",this.options=t||[],console.log(a),a?(this.dataForm.profitRatio=a.profitRatio,this.dataForm.profitRatioMax=a.profitRatioMax,this.options.value=a.symbol,this.dataForm.timenum=a.timenum,this.optionsTwo.value=a.timeunit,this.dataForm.unitAmount=a.unitAmount,this.dataForm.unitFee=a.unitFee,this.dataForm.unitMaxAmount=a.unitMaxAmount,this.dataForm.uuid=a.uuid,console.log(this.dataForm.unitAmount)):(this.options.value=this.options[0].value,this.optionsTwo.value=this.optionsTwo[0].value),this.visible=!0},changeVal(t){this.$forceUpdate()},handClose(){this.$data.dataForm=JSON.parse(JSON.stringify(this.$options.data().dataForm)),this.$nextTick(()=>{this.$refs["dataForm"].clearValidate()})},dataFormSubmit:Object(r["a"])((function(){this.$refs["dataForm"].validate(t=>{if(t){let t=this.$http.adornData({loginSafeword:Object(s["a"])(this.dataForm.loginSafeword),profitRatio:this.dataForm.profitRatio,profitRatioMax:this.dataForm.profitRatioMax,symbol:this.options.value,timenum:this.dataForm.timenum,timeunit:this.optionsTwo.value,unitAmount:this.dataForm.unitAmount,unitFee:this.dataForm.unitFee,unitMaxAmount:this.dataForm.unitMaxAmount,uuid:this.dataForm.uuid}),a=this.$http.adornData({loginSafeword:Object(s["a"])(this.dataForm.loginSafeword),profitRatio:this.dataForm.profitRatio,profitRatioMax:this.dataForm.profitRatioMax,symbol:this.options.value,timenum:this.dataForm.timenum,timeunit:this.optionsTwo.value,unitAmount:this.dataForm.unitAmount,unitFee:this.dataForm.unitFee,unitMaxAmount:this.dataForm.unitMaxAmount}),e=this.row?t:a;this.$http({url:this.$http.adornUrl("/normal/adminContractManageAction!/addFutures.action"),method:"post",data:e}).then(({data:t})=>{0==t.code?this.$message({message:"操作成功",type:"success",duration:1e3,onClose:()=>{this.visible=!1,this.$emit("refreshDataList",this.page)}}):this.$message({message:t.msg,type:"error",duration:1e3,onClose:()=>{this.visible=!1}})})}})}))}},n=l,u=(e("fc7b"),e("2877")),m=Object(u["a"])(n,o,i,!1,null,"14774055",null);a["default"]=m.exports},"90c5":function(t,a,e){"use strict";e.d(a,"a",(function(){return s}));var o=e("3452"),i=e.n(o);const r="-mall4j-password";function s(t){const a=Date.now(),e=i.a.enc.Utf8.parse(r),o=i.a.enc.Utf8.parse(a+t),s=i.a.AES.encrypt(o,e,{mode:i.a.mode.ECB,padding:i.a.pad.Pkcs7});return s.toString()}},fc7b:function(t,a,e){"use strict";e("25fe")}}]);