From 089bf5d2378b3c4a61d795b2a92bede2c193b771 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Tue, 06 Jan 2026 11:22:58 +0800
Subject: [PATCH] 1

---
 src/views/modules/user/mangr-other-update.vue |  264 ++++++++++++++++++++--------------------------------
 1 files changed, 103 insertions(+), 161 deletions(-)

diff --git a/src/views/modules/user/mangr-other-update.vue b/src/views/modules/user/mangr-other-update.vue
index 94f3f91..3351be1 100644
--- a/src/views/modules/user/mangr-other-update.vue
+++ b/src/views/modules/user/mangr-other-update.vue
@@ -1,101 +1,42 @@
 <template>
-  <el-dialog
-    :title="title"
-    :visible.sync="visible"
-    @close="handClose"
-    width="800px"
-    :append-to-body="true"
-  >
-    <avue-crud
-      ref="crud"
-      :page.sync="page"
-      :data="dataList"
-      :option="tableOption"
-      @search-change="searchChange"
-      @selection-change="selectionChange"
-    >
+  <el-dialog :title="title" :visible.sync="visible" @close="handClose" width="800px" :append-to-body="true">
+    <avue-crud ref="crud" :page.sync="page" :data="dataList" :option="tableOption" @search-change="searchChange"
+      @selection-change="selectionChange">
       <template slot="menuLeft"> </template>
     </avue-crud>
-    <el-form
-      :model="dataForm"
-      :rules="dataRule"
-      ref="dataForm"
-      @keyup.enter.native="dataFormSubmit()"
-      label-width="80px"
-      v-if="this.isShow"
-    >
+    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
+      label-width="80px" v-if="this.isShow">
       <div class="spranDiv">交易</div>
       <!-- 锁定金额 -->
       <el-form-item label="转移方向" v-if="isShow == 2" label-width="100px">
-        <el-select
-          v-model="resetLock.value"
-          placeholder="转移方向"
-          @change="changeVal()"
-          class="spanselect"
-        >
-          <el-option
-            v-for="item in resetLock"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          >
+        <el-select v-model="resetLock.value" placeholder="转移方向" @change="changeVal()" class="spanselect">
+          <el-option v-for="item in resetLock" :key="item.value" :label="item.label" :value="item.value">
           </el-option>
         </el-select>
       </el-form-item>
       <!-- 冻结金额 -->
       <el-form-item label="转移方向" v-if="isShow == 5" label-width="100px">
-        <el-select
-          v-model="resetFreeze.value"
-          placeholder="转移方向"
-          @change="changeVal()"
-          class="spanselect"
-        >
-          <el-option
-            v-for="item in resetFreeze"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          >
+        <el-select v-model="resetFreeze.value" placeholder="转移方向" @change="changeVal()" class="spanselect">
+          <el-option v-for="item in resetFreeze" :key="item.value" :label="item.label" :value="item.value">
           </el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="账变币种" label-width="100px">
-        <el-select
-          v-model="usdtArr.value"
-          placeholder="账变币种"
-          width="200px"
-          class="spanselect"
-          @change="changeVal()"
-        >
-          <el-option
-            v-for="item in usdtArr"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          >
+        <el-select v-model="usdtArr.value" placeholder="账变币种" width="200px" class="spanselect" @change="changeVal()">
+          <el-option v-for="item in usdtArr" :key="item.value" :label="item.label" :value="item.value">
           </el-option>
         </el-select>
       </el-form-item>
-      <el-form-item
-        :label="isShow == 3 || isShow == 4 ? '锁定金额' : '转移金额'"
-        prop="moneyRevise"
-        label-width="100px"
-      >
+      <el-form-item :label="isShow == 3 || isShow == 4 ? '锁定金额' : '转移金额'" prop="moneyRevise" label-width="100px">
         <el-input type="number" v-model="dataForm.moneyRevise"></el-input>
       </el-form-item>
-      <div class="spranDiv">登录人资金密码</div>
+      <!-- <div class="spranDiv">登录人资金密码</div>
       <el-form-item label="资金密码" prop="loginSafeword" label-width="100px">
-        <el-input
-          type="password"
-          v-model="dataForm.loginSafeword"
-          placeholder="请输入登录人资金密码"
-        ></el-input>
-      </el-form-item>
+        <el-input type="password" v-model="dataForm.loginSafeword" placeholder="请输入登录人资金密码"></el-input>
+      </el-form-item> -->
     </el-form>
     <span slot="footer" class="dialog-footer">
-      <el-button v-if="isShow == 6" type="primary" @click="cleMath()"
-        >一键清0</el-button
-      >
+      <el-button v-if="isShow == 6" type="primary" @click="cleMath()">一键清0</el-button>
       <el-button @click="visible = false">取消</el-button>
       <el-button v-if="title !== '钱包'" type="primary" @click="dataFormSubmit()">确定</el-button>
     </span>
@@ -134,10 +75,10 @@
       title: "",
       isShow: "", //标题显示内同
       userId: "",
-      userCode:'',
+      userCode: '',
       dataForm: {
         moneyRevise: "", //账变金额
-        loginSafeword: "", //登录人资金密码
+        // loginSafeword: "", //登录人资金密码
       },
 
       usdtArr: [],
@@ -167,9 +108,9 @@
         password: [
           { required: true, message: "密码不能为空", trigger: "blur" },
         ],
-        loginSafeword: [
-          { required: true, message: "资金密码不能为空", trigger: "blur" },
-        ],
+        // loginSafeword: [
+        //   { required: true, message: "资金密码不能为空", trigger: "blur" },
+        // ],
         moneyRevise: [
           { required: true, message: "金额不能为空", trigger: "blur" },
           { validator: vaBignumber, trigger: "blur" },
@@ -195,7 +136,7 @@
   },
   methods: {
     // 初始化
-    init(uid, m, val,userCode) {
+    init(uid, m, val, userCode) {
       this.userId = uid;
       this.userCode = userCode;
       this.title = m;
@@ -214,7 +155,7 @@
         cancelButtonText: "确定",
         type: "warning",
       })
-        .then(() => {})
+        .then(() => { })
         .catch((action) => {
           if (action === "cancel") {
             this.dataForm.moneyWithdraw = 0;
@@ -283,97 +224,97 @@
     // 增加账户锁定金额resetType =addLock  减少账户锁定金额resetType=subLock
     //resetType =moneryToLock可用金额->锁定金额 resetType=lockToMoney  锁定金额->可用金额
     dataFormSubmit: Debounce(function () {
-      console.log(this.dataForm.loginSafeword);
+      // console.log(this.dataForm.loginSafeword);
       this.$refs["dataForm"].validate((valid) => {
         if (valid) {
           let data = {};
-          if(this.isShow == 5){
+          if (this.isShow == 5) {
             data = {
               moneyRevise: this.dataForm.moneyRevise,
               coinType: this.usdtArr.value, // 币种
               resetType: this.resetFreeze.value,
-              loginSafeword: encrypt(this.dataForm.loginSafeword),
+              // loginSafeword: encrypt(this.dataForm.loginSafeword),
               id: this.userId,
             };
             this.$http({
-            url: this.$http.adornUrl("/exchangeApplyOrder/resetFreeze"),
-            method: "get",
-            params: this.$http.adornParams(data),
-          }).then(({ data }) => {
-            console.log(data);
-            if (data.code == 1) {
-              this.$message({
-                message: data.msg,
-                type: "error",
-              });
-            } else {
-              this.$message({
-                message: this.title + "修改成功",
-                type: "success",
-                duration: 1500,
-                onClose: () => {
-                  this.visible = false;
-                  this.$nextTick(() => {
-                    this.$emit("refreshDataList");
-                  });
-                },
-              });
-            }
-          });
-          }else if(this.isShow == 2 || 3 || 4){
+              url: this.$http.adornUrl("/exchangeApplyOrder/resetFreeze"),
+              method: "get",
+              params: this.$http.adornParams(data),
+            }).then(({ data }) => {
+              console.log(data);
+              if (data.code == 1) {
+                this.$message({
+                  message: data.msg,
+                  type: "error",
+                });
+              } else {
+                this.$message({
+                  message: this.title + "修改成功",
+                  type: "success",
+                  duration: 1500,
+                  onClose: () => {
+                    this.visible = false;
+                    this.$nextTick(() => {
+                      this.$emit("refreshDataList");
+                    });
+                  },
+                });
+              }
+            });
+          } else if (this.isShow == 2 || 3 || 4) {
             if (this.isShow == 2) {
-            //转移锁定金额
-            data = {
-              moneyRevise: this.dataForm.moneyRevise,
-              coinType: this.usdtArr.value, // 币种
-              resetType: this.resetLock.value,
-              loginSafeword: encrypt(this.dataForm.loginSafeword),
-              id: this.userId,
-            };
-          }else if (this.isShow == 3) {
-            //增加账户锁定金额
-            data = {
-              moneyRevise: this.dataForm.moneyRevise,
-              coinType: this.usdtArr.value, // 币种
-              resetType: "addLock",
-              loginSafeword: encrypt(this.dataForm.loginSafeword),
-              id: this.userId,
-            };
-          } else if (this.isShow == 4) {
-            //减少账户锁定金额
-            data = {
-              moneyRevise: this.dataForm.moneyRevise,
-              coinType: this.usdtArr.value, // 币种
-              resetType: "subLock",
-              loginSafeword: encrypt(this.dataForm.loginSafeword),
-              id: this.userId,
-            };
-          }
-          this.$http({
-            url: this.$http.adornUrl("/exchangeApplyOrder/resetLock"),
-            method: "get",
-            params: this.$http.adornParams(data),
-          }).then(({ data }) => {
-            console.log(data);
-            if (data.code == 1) {
-              this.$message({
-                message: data.msg,
-                type: "error",
-              });
-            } else {
-              this.$message({
-                message: this.title + "修改成功",
-                type: "success",
-                duration: 1500,
-                onClose: () => {
-                  this.visible = false;
-                  this.$nextTick(() => {
-                    this.$emit("refreshDataList");
-                  });
-                },
-              });
+              //转移锁定金额
+              data = {
+                moneyRevise: this.dataForm.moneyRevise,
+                coinType: this.usdtArr.value, // 币种
+                resetType: this.resetLock.value,
+                // loginSafeword: encrypt(this.dataForm.loginSafeword),
+                id: this.userId,
+              };
+            } else if (this.isShow == 3) {
+              //增加账户锁定金额
+              data = {
+                moneyRevise: this.dataForm.moneyRevise,
+                coinType: this.usdtArr.value, // 币种
+                resetType: "addLock",
+                // loginSafeword: encrypt(this.dataForm.loginSafeword),
+                id: this.userId,
+              };
+            } else if (this.isShow == 4) {
+              //减少账户锁定金额
+              data = {
+                moneyRevise: this.dataForm.moneyRevise,
+                coinType: this.usdtArr.value, // 币种
+                resetType: "subLock",
+                // loginSafeword: encrypt(this.dataForm.loginSafeword),
+                id: this.userId,
+              };
             }
-          });
+            this.$http({
+              url: this.$http.adornUrl("/exchangeApplyOrder/resetLock"),
+              method: "get",
+              params: this.$http.adornParams(data),
+            }).then(({ data }) => {
+              console.log(data);
+              if (data.code == 1) {
+                this.$message({
+                  message: data.msg,
+                  type: "error",
+                });
+              } else {
+                this.$message({
+                  message: this.title + "修改成功",
+                  type: "success",
+                  duration: 1500,
+                  onClose: () => {
+                    this.visible = false;
+                    this.$nextTick(() => {
+                      this.$emit("refreshDataList");
+                    });
+                  },
+                });
+              }
+            });
           }
         }
       });
@@ -412,6 +353,7 @@
 .spanselect {
   width: 660px;
 }
+
 .spranDiv {
   width: 100%;
   border-bottom: 1px solid rgb(240, 233, 233);

--
Gitblit v1.9.3