新版交易所前段管理后台
1
5 days ago b4dd0687c7285f3be32860adccfa523a62bfd4c6
src/views/modules/mining/mining-add-or-update.vue
@@ -236,7 +236,7 @@
              v-model="dataForm.cycle_close"
              placeholder="可解锁周期"
            ><template v-slot:append>
                <span>天</span>
                <span>分钟</span>
              </template></el-input>
          </el-form-item>
        </el-col>
@@ -278,10 +278,6 @@
            </el-select>
          </el-form-item>
      <el-form-item  label="登录人资金密码"  prop="login_safeword">
        <el-input v-model="dataForm.login_safeword" type="password" placeholder="请输入登录人资金密码"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取消</el-button>
@@ -290,7 +286,6 @@
  </el-dialog>
</template>
<script>
import { encrypt } from "@/utils/crypto";
import { Debounce } from "@/utils/debounce";
export default {
  data() {
@@ -358,9 +353,6 @@
      dataRule: {
        roleName: [
          { required: true, message: "角色名称不能为空", trigger: "blur" },
        ],
        login_safeword: [
            { required: true, message: '登录人资金密码不能为空', trigger: 'blur' },
        ],
      },
      tempKey: -666666, // 临时key, 用于解决tree半选中状态项不能传给后台接口问题. # 待优化
@@ -432,8 +424,7 @@
            url: this.$http.adornUrl(`/normal/adminMinerAction!update.action`),
            method: "get",
            params: this.$http.adornParams({
              ...this.dataForm,
              login_safeword:encrypt(this.dataForm.login_safeword)
              ...this.dataForm
            }),
          }).then(({ data }) => {
            console.log("data => " + JSON.stringify(data));