新版交易所前段管理后台
1
5 days ago b4dd0687c7285f3be32860adccfa523a62bfd4c6
src/views/modules/cryptos-spots/parameters-add-or-update.vue
@@ -1,4 +1,4 @@
<template>
<template>
  <el-dialog
    :title="row ? '修改合约参数' : '新增合约参数'"
    :close-on-click-modal="false"
@@ -94,6 +94,13 @@
          placeholder="最低购买金额"
        ></el-input>
      </el-form-item>
     <el-form-item label="最高购买金额" prop="unitMaxAmount" label-width="110px">
       <el-input
         class="spammm"
         v-model="dataForm.unitMaxAmount"
         placeholder="最高购买金额"
       ></el-input>
     </el-form-item>
      <el-form-item label="手续费" prop="unitFee" label-width="110px">
        <el-input
          class="spammm"
@@ -102,15 +109,7 @@
        ></el-input>
        <el-input class="spannn" placeholder="%" disabled></el-input>
      </el-form-item>
      <el-form-item label="资金密码" prop="loginSafeword" label-width="110px">
        <el-input
          class="spammm"
          v-model="dataForm.loginSafeword"
          placeholder="请输入登录人资金密码"
          type="password"
        ></el-input>
      </el-form-item>
    </el-form>
</el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取消</el-button>
      <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
@@ -158,12 +157,10 @@
        uuid: "",
        unitFee: "",
        unitAmount: "",
      unitMaxAmount:"",
      },
      dataRule: {
        loginSafeword: [
          { required: true, message: "资金密码不能为空", trigger: "blur" },
        ],
        profitRatio: [
profitRatio: [
          { required: true, message: "交割收益不能为空", trigger: "blur" },
        ],
        profitRatioMax: [
@@ -176,6 +173,10 @@
        unitAmount: [
          { required: true, message: "最低购买金额不能为空", trigger: "blur" },
        ],
      unitMaxAmount: [
        { required: true, message: "最高购买金额不能为空", trigger: "blur" },
      ],
        remark: [
          {
            required: false,
@@ -238,7 +239,6 @@
        if (valid) {
          let n = this.$http.adornData({
            //修改
            loginSafeword: encrypt(this.dataForm.loginSafeword),
            profitRatio: this.dataForm.profitRatio,
            profitRatioMax: this.dataForm.profitRatioMax,
            symbol: this.options.value,
@@ -251,7 +251,6 @@
          });
          let m = this.$http.adornData({
            //新增
            loginSafeword: encrypt(this.dataForm.loginSafeword),
            profitRatio: this.dataForm.profitRatio,
            profitRatioMax: this.dataForm.profitRatioMax,
            symbol: this.options.value,