From a32340336eceec8cf7d7f526d9f9fb83fc2efc5a Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Thu, 02 Apr 2026 16:48:50 +0800
Subject: [PATCH] 1
---
src/views/modules/user/manger.vue | 9 +
.env.development | 2
src/views/modules/sys-config/root2-sys-config.vue | 11 +-
src/views/modules/cryptos-spots/cryptos-pickAddr.vue | 2
src/views/modules/shop/pickAddr.vue | 5
src/views/modules/sys-config/userMange-add-or-update.vue | 10 +
src/views/modules/user/mang-fix-update-message.vue | 48 +++++++++
.env.production | 2
src/views/modules/user/mange-add-or-update.vue | 14 ++
src/views/modules/etf-spots/etf-pickAddr.vue | 2
src/crud/sys/manger.js | 157 +++++++++++++++++-------------
src/views/modules/mining/loan-order.vue | 4
12 files changed, 178 insertions(+), 88 deletions(-)
diff --git a/.env.development b/.env.development
index cc295b4..aa2bb71 100644
--- a/.env.development
+++ b/.env.development
@@ -4,7 +4,7 @@
# api接口请求地址
# 开发环境
# VUE_APP_BASE_API = 'http://154.23.189.28:8086'
-VUE_APP_BASE_API = 'https://api.crypt.bond'
+VUE_APP_BASE_API = 'https://api.eledrink.com'
# 静态资源文件url
VUE_APP_RESOURCES_URL = '/admin'
diff --git a/.env.production b/.env.production
index 5526031..d44482a 100644
--- a/.env.production
+++ b/.env.production
@@ -5,7 +5,7 @@
# 开发环境
# VUE_APP_BASE_API = http://154.23.189.28:8086
-VUE_APP_BASE_API = https://api.crypt.bond
+VUE_APP_BASE_API = https://api.eledrink.com
# 静态资源文件url
VUE_APP_RESOURCES_URL = '/admin'
diff --git a/src/crud/sys/manger.js b/src/crud/sys/manger.js
index b3f92b6..5d8654d 100644
--- a/src/crud/sys/manger.js
+++ b/src/crud/sys/manger.js
@@ -4,81 +4,102 @@
border: true,
selection: true,
selection: false, //开启勾选功能
- searchLabelWidth:130,
+ searchLabelWidth: 130,
index: false,
- indexLabel: '序号',
+ indexLabel: "序号",
stripe: true,
- menuAlign: 'center',
+ menuAlign: "center",
menuWidth: 170,
- align: 'center',
+ align: "center",
refreshBtn: true,
- searchSize: 'mini',
+ searchSize: "mini",
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
- label: 'label',
- value: 'value'
+ label: "label",
+ value: "value",
},
- column: [{
- label: '用户名(钱包地址)',
- prop: 'userName',
- placeholder:'用户名、UID(钱包地址)',
- solt:true,
- search: true
- }, {
- label: 'UID',
- prop: 'userCode'
- }, {
- label: '实名姓名',
- prop: 'realName'
- },{
- label: '注册时间',
- prop: 'createTime'
- }, {
- type:'select',
- label: '账户类型',
- prop: 'rolename',
- searchFilterable:true,//select选择框匹配
- search: true,
- searchValue:'',//搜索的默认值
- filterable:true, //在表单为select状态时 可键盘输入进行筛选选择项
- multiple:false, //当type为select时,设置是否多选
- dicData:[{
- label:'所有账号',
- value:''
- },{
- label:'正式账号',
- value:'MEMBER'
- },{
- label:'演示账号',
- value:'GUEST'
- },{
- label:'试用账号',
- value:'TEST'
- }]
- }, {
- label: '手机号',
- prop: 'userMobile',
- search: true
- }, {
- label: '邮箱',
- prop: 'userMail',
- search: true
- }, {
- label: 'USDT账户余额',
- prop: 'moneyslot',
- slot:true,
- }, {
- label: '资产',
- prop: 'property',
- slot:true,
- }, {
- label: '提现限制流水',
- prop: 'withdrawLimitAmount'
- }, {
- label: '用户当前流水',
- prop: 'withdrawLimitNowAmount'
- }]
-}
+ column: [
+ {
+ label: "用户名(钱包地址)",
+ prop: "userName",
+ placeholder: "用户名、UID(钱包地址)",
+ solt: true,
+ search: true,
+ },
+ {
+ label: "UID",
+ prop: "userCode",
+ },
+ {
+ label: "实名姓名",
+ prop: "realName",
+ },
+ {
+ label: "注册时间",
+ prop: "createTime",
+ },
+ {
+ type: "select",
+ label: "账户类型",
+ prop: "rolename",
+ searchFilterable: true, //select选择框匹配
+ search: true,
+ searchValue: "", //搜索的默认值
+ filterable: true, //在表单为select状态时 可键盘输入进行筛选选择项
+ multiple: false, //当type为select时,设置是否多选
+ dicData: [
+ {
+ label: "所有账号",
+ value: "",
+ },
+ {
+ label: "正式账号",
+ value: "MEMBER",
+ },
+ {
+ label: "演示账号",
+ value: "GUEST",
+ },
+ {
+ label: "试用账号",
+ value: "TEST",
+ },
+ ],
+ },
+ {
+ label: "手机号",
+ prop: "userMobile",
+ search: true,
+ },
+ {
+ label: "邮箱",
+ prop: "userMail",
+ search: true,
+ },
+ {
+ label: "USDT账户余额",
+ prop: "moneyslot",
+ slot: true,
+ },
+ {
+ label: "资产",
+ prop: "property",
+ slot: true,
+ },
+ {
+ label: "提现限制流水",
+ prop: "withdrawLimitAmount",
+ },
+ {
+ label: "交割合约赢率",
+ prop: "futuresMostPrfitLevel",
+ },
+ {
+ label: "用户当前流水",
+ prop: "withdrawLimitNowAmount",
+ },
+ ],
+};
diff --git a/src/views/modules/cryptos-spots/cryptos-pickAddr.vue b/src/views/modules/cryptos-spots/cryptos-pickAddr.vue
index 4f592d0..4179607 100644
--- a/src/views/modules/cryptos-spots/cryptos-pickAddr.vue
+++ b/src/views/modules/cryptos-spots/cryptos-pickAddr.vue
@@ -40,7 +40,7 @@
icon="el-icon-edit"
size="small"
v-if="scope.row.state !=='created' && isAuth('cryptos-spots:operate')"
- <!-- @click.stop="pickHandle(scope.row.orderNo)">场控</el-button> -->
+ @click.stop="pickHandle(scope.row.orderNo)">场控</el-button>
</template>
</avue-crud>
diff --git a/src/views/modules/etf-spots/etf-pickAddr.vue b/src/views/modules/etf-spots/etf-pickAddr.vue
index 3c96b77..c3a4165 100644
--- a/src/views/modules/etf-spots/etf-pickAddr.vue
+++ b/src/views/modules/etf-spots/etf-pickAddr.vue
@@ -40,7 +40,7 @@
icon="el-icon-edit"
size="small"
v-if="scope.row.state !=='created' && isAuth('etf-spots:operate')"
- <!-- @click.stop="pickHandle(scope.row.orderNo)">电控</el-button> -->
+ @click.stop="pickHandle(scope.row.orderNo)">电控</el-button>
</template>
</avue-crud>
diff --git a/src/views/modules/mining/loan-order.vue b/src/views/modules/mining/loan-order.vue
index 57fa058..621f5e4 100644
--- a/src/views/modules/mining/loan-order.vue
+++ b/src/views/modules/mining/loan-order.vue
@@ -42,7 +42,7 @@
<template slot-scope="scope" slot="menu">
- <el-select v-if="scope.row.state[0]==1 && isAuth('mining:loan-order:operate')"
+ <el-select v-if="scope.row.state[0]==1"
v-model="scope.row.select"
class="celectSpeac"
clearable
@@ -65,7 +65,7 @@
</el-option>
</el-select>
- <el-select v-if="scope.row.state[0]==2 && isAuth('mining:loan-order:operate')"
+ <el-select v-if="scope.row.state[0]==2"
v-model="scope.row.select"
class="celectSpeac"
clearable
diff --git a/src/views/modules/shop/pickAddr.vue b/src/views/modules/shop/pickAddr.vue
index dc8bfe2..f4780f9 100644
--- a/src/views/modules/shop/pickAddr.vue
+++ b/src/views/modules/shop/pickAddr.vue
@@ -40,9 +40,8 @@
icon="el-icon-edit"
size="small"
v-if="isAuth('shop-spots:operate') && scope.row.state !== 'created'"
- <!-- @click.stop="pickHandle(scope.row.orderNo)"
- >场控</el-button -->
- >
+ @click.stop="pickHandle(scope.row.orderNo)"
+ >场控</el-button>
</template>
</avue-crud>
<pickUpdate
diff --git a/src/views/modules/sys-config/root2-sys-config.vue b/src/views/modules/sys-config/root2-sys-config.vue
index 5d266f3..c5ad7c8 100644
--- a/src/views/modules/sys-config/root2-sys-config.vue
+++ b/src/views/modules/sys-config/root2-sys-config.vue
@@ -121,13 +121,14 @@
<!-- <el-form-item label="交割合约" prop="roleName" class="item"></el-form-item> -->
<div class="item2" style="width: 520px;">
<div style="height: auto;position: relative;top: -15%;">
- 手续费
+ <!-- 手续费 -->
+ 交割合约
</div>
</div>
- <!-- <div style="background-color: white;height: 10px;"></div> -->
- <!-- <el-form-item label="24小时内交割合约客户最高赢率(设置了场控的不受影响),高于设定的值时客户必亏" style="display: flex;flex-wrap:wrap"></el-form-item>
- <el-form-item label="低于时则不限制(范例:10,为最高赢10%),为0则不限制" style="display: flex;flex-wrap:wrap"></el-form-item> -->
- <!-- <br /> -->
+ <div style="background-color: white;height: 10px;"></div>
+ <el-form-item label="24小时内交割合约客户最高赢率(设置了场控的不受影响),高于设定的值时客户必亏" style="display: flex;flex-wrap:wrap"></el-form-item>
+ <el-form-item label="低于时则不限制(范例:10,为最高赢10%),为0则不限制" style="display: flex;flex-wrap:wrap"></el-form-item>
+ <br />
<el-input-number v-model="dataForm.futures_most_prfit_level" :step="2"></el-input-number>
diff --git a/src/views/modules/sys-config/userMange-add-or-update.vue b/src/views/modules/sys-config/userMange-add-or-update.vue
index b34ae4d..3efc360 100644
--- a/src/views/modules/sys-config/userMange-add-or-update.vue
+++ b/src/views/modules/sys-config/userMange-add-or-update.vue
@@ -33,6 +33,9 @@
<el-radio :label="1">正常</el-radio>
</el-radio-group>
</el-form-item>
+ <el-form-item label="信用分" prop="creditScore">
+ <el-input v-model="dataForm.creditScore" placeholder="信用分(选填)" type="number"></el-input>
+ </el-form-item>
<el-form-item label="备注">
<el-input type="textarea" v-model="dataForm.remarks"></el-input>
</el-form-item>
@@ -101,7 +104,8 @@
email: '',
mobile: '',
roleIdList: [],
- status: 1
+ status: 1,
+ creditScore: ''
},
dataRule: {
userName: [
@@ -158,6 +162,7 @@
this.dataForm.roleIdList = data.roleIdList
this.dataForm.status = data.status
this.dataForm.remarks = data.remarks
+ this.dataForm.creditScore = data.creditScore != null ? data.creditScore : ''
})
}
})
@@ -179,7 +184,8 @@
'mobile': this.dataForm.mobile,
'status': this.dataForm.status,
'roleIdList': this.dataForm.roleIdList,
- 'remarks':this.dataForm.remarks
+ 'remarks':this.dataForm.remarks,
+ 'creditScore': this.dataForm.creditScore === '' ? undefined : this.dataForm.creditScore
})
}).then(({data}) => {
this.$message({
diff --git a/src/views/modules/user/mang-fix-update-message.vue b/src/views/modules/user/mang-fix-update-message.vue
index 975acb8..459c8b5 100644
--- a/src/views/modules/user/mang-fix-update-message.vue
+++ b/src/views/modules/user/mang-fix-update-message.vue
@@ -109,6 +109,7 @@
placeholder="请输入登录人谷歌验证码"
></el-input>
</el-form-item>
+
<el-form-item
v-if="isShow == 6"
label="限制流水"
@@ -120,7 +121,20 @@
placeholder="0.0"
></el-input>
</el-form-item>
- <div v-if="isShow == 6" style="margin: 10px; color: #278927">
+
+ <el-form-item label-width="120px"
+ v-if="isShow == 13"
+ label="交割合约赢率"
+ prop="futuresMostPrfitLevel"
+ >
+ <el-input
+ type="number"
+ v-model="dataForm.futuresMostPrfitLevel"
+ placeholder="0.0"
+ ></el-input>
+ </el-form-item>
+
+ <div v-if="isShow == 6 || isShow == 13" style="margin: 10px; color: #278927">
增加请输入正数,减少请输入负数
</div>
<!-- <el-form-item label="原密码" prop="password">
@@ -173,6 +187,7 @@
googleAuthCode: "", //登录人谷歌验证器
newSafeword: "", //新资金密码
withdrawLimitAmount: "", //限制提现流水
+ futuresMostPrfitLevel: "", //交割合约赢率
password: "",
newPassword: "",
confirmPassword: "",
@@ -259,6 +274,7 @@
this.title = m;
this.isShow = val;
this.dataForm.withdrawLimitAmount = this.row.withdrawLimitAmount;
+ this.dataForm.futuresMostPrfitLevel = this.row.futuresMostPrfitLevel;
this.visible = true;
this.options.value = this.options[0].value;
this.optionsTwo.value = this.optionsTwo[0].value;
@@ -293,6 +309,7 @@
googleAuthCode: "", //登录人谷歌验证器
newSafeword: "", //新资金密码
withdrawLimitAmount: "", //限制提现流水
+ futuresMostPrfitLevel: "", //交割合约赢率
password: "",
newPassword: "",
confirmPassword: "",
@@ -530,6 +547,35 @@
});
}
});
+ }else if (this.isShow == 13) {
+ //设置交割合约赢率
+ this.$http({
+ url: this.$http.adornUrl("/user/updateFuturesMostPrfitLevel"),
+ method: "post",
+ data: this.$http.adornData({
+ futuresMostPrfitLevel: this.dataForm.futuresMostPrfitLevel,
+ userId: this.userId,
+ }),
+ }).then(({ data }) => {
+ if (data.code == 0) {
+ this.$message({
+ message: "修改成功",
+ type: "success",
+ duration: 1000,
+ onClose: () => {
+ this.visible = false;
+ this.$nextTick(() => {
+ this.$emit("refreshDataList");
+ });
+ },
+ });
+ } else {
+ this.$message({
+ message: data.msg,
+ type: "error",
+ });
+ }
+ });
}
}
});
diff --git a/src/views/modules/user/mange-add-or-update.vue b/src/views/modules/user/mange-add-or-update.vue
index a2c3a17..af01a7a 100644
--- a/src/views/modules/user/mange-add-or-update.vue
+++ b/src/views/modules/user/mange-add-or-update.vue
@@ -126,6 +126,13 @@
placeholder="评分"
></el-input>
</el-form-item>
+ <el-form-item label="信用分" label-width="100px" prop="creditScore">
+ <el-input
+ v-model="dataForm.creditScore"
+ type="number"
+ placeholder="信用分(选填)"
+ ></el-input>
+ </el-form-item>
<el-form-item label="备注" label-width="100px" prop="remarks">
<el-input
type="textarea"
@@ -191,6 +198,7 @@
userLevel: "",
realNameAuthority:'',
status: 1,
+ creditScore: "",
},
options: [
{
@@ -270,6 +278,7 @@
this.dataForm.userLevel = row.userLevel;
this.dataForm.realNameAuthority = row.realNameAuthority;
this.dataForm.remarks = row.remarks;
+ this.dataForm.creditScore = row.creditScore != null ? row.creditScore : "";
} else {
this.options.value1 = this.options[0].value1;
this.optionsTwo.value2 = this.optionsTwo[0].value2;
@@ -288,6 +297,7 @@
email: "",
mobile: "",
userLevel: "",
+ creditScore: "",
};
},
changeVal(val) {
@@ -322,7 +332,8 @@
userId: this.roleList.userId,
remarks: this.dataForm.remarks,
userLevel: this.dataForm.userLevel,
- realNameAuthority:this.dataForm.realNameAuthority
+ realNameAuthority:this.dataForm.realNameAuthority,
+ creditScore: this.dataForm.creditScore === "" ? undefined : this.dataForm.creditScore
}),
}).then(({ data }) => {
if (data.code == 0) {
@@ -355,6 +366,7 @@
password: encrypt(this.dataForm.password),
remarks: this.dataForm.remarks,
userLevel: this.dataForm.userLevel,
+ creditScore: this.dataForm.creditScore === "" ? undefined : this.dataForm.creditScore
}),
}).then(({ data }) => {
if (data.code == 0) {
diff --git a/src/views/modules/user/manger.vue b/src/views/modules/user/manger.vue
index 3fa5c91..f07bd8d 100644
--- a/src/views/modules/user/manger.vue
+++ b/src/views/modules/user/manger.vue
@@ -164,6 +164,10 @@
value: "12",
label: "赠送用户USDT",
},
+ {
+ value: "13",
+ label: "设置交割合约赢率",
+ },
],
page: {
total: 0, // 总页数
@@ -254,9 +258,10 @@
val == 9 ||
val == 6 ||
val == 10 ||
- val == 12
+ val == 12 ||
+ val == 13
) {
- // 1资金账户 2转移账户锁定金额 3增加账户锁定金额 4减少账户锁定金额 5转移账户冻结金额 8谷歌验证 7密码 9资金密码 6提现限制流水 10强制退出 12 赠送USDT
+ // 1资金账户 2转移账户锁定金额 3增加账户锁定金额 4减少账户锁定金额 5转移账户冻结金额 8谷歌验证 7密码 9资金密码 6提现限制流水 10强制退出 12 赠送USDT 13 设置交割合约赢率
this.addOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.addOrUpdate.init(uid, m, val,row);
--
Gitblit v1.9.3