| | |
| | | # 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' |
| | | |
| | |
| | | |
| | | # 开发环境 |
| | | # 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' |
| | | |
| | |
| | | selection: false, //开启勾选功能 |
| | | 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(钱包地址)', |
| | | 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', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: "UID", |
| | | prop: "userCode", |
| | | }, |
| | | { |
| | | label: "实名姓名", |
| | | prop: "realName", |
| | | }, |
| | | { |
| | | label: "注册时间", |
| | | prop: "createTime", |
| | | }, |
| | | { |
| | | type: "select", |
| | | label: "账户类型", |
| | | prop: "rolename", |
| | | searchFilterable:true,//select选择框匹配 |
| | | search: true, |
| | | searchValue:'',//搜索的默认值 |
| | | 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', |
| | | 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', |
| | | }, |
| | | { |
| | | label: "资产", |
| | | prop: "property", |
| | | slot:true, |
| | | }, { |
| | | label: '提现限制流水', |
| | | prop: 'withdrawLimitAmount' |
| | | }, { |
| | | label: '用户当前流水', |
| | | prop: 'withdrawLimitNowAmount' |
| | | }] |
| | | } |
| | | }, |
| | | { |
| | | label: "提现限制流水", |
| | | prop: "withdrawLimitAmount", |
| | | }, |
| | | { |
| | | label: "交割合约赢率", |
| | | prop: "futuresMostPrfitLevel", |
| | | }, |
| | | { |
| | | label: "用户当前流水", |
| | | prop: "withdrawLimitNowAmount", |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | |
| | | <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 |
| | |
| | | </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 |
| | |
| | | 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 |
| | |
| | | <!-- <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> |
| | | |
| | | |
| | |
| | | <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> |
| | |
| | | email: '', |
| | | mobile: '', |
| | | roleIdList: [], |
| | | status: 1 |
| | | status: 1, |
| | | creditScore: '' |
| | | }, |
| | | dataRule: { |
| | | userName: [ |
| | |
| | | this.dataForm.roleIdList = data.roleIdList |
| | | this.dataForm.status = data.status |
| | | this.dataForm.remarks = data.remarks |
| | | this.dataForm.creditScore = data.creditScore != null ? data.creditScore : '' |
| | | }) |
| | | } |
| | | }) |
| | |
| | | '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({ |
| | |
| | | placeholder="请输入登录人谷歌验证码" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | v-if="isShow == 6" |
| | | label="限制流水" |
| | |
| | | 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"> |
| | |
| | | googleAuthCode: "", //登录人谷歌验证器 |
| | | newSafeword: "", //新资金密码 |
| | | withdrawLimitAmount: "", //限制提现流水 |
| | | futuresMostPrfitLevel: "", //交割合约赢率 |
| | | password: "", |
| | | newPassword: "", |
| | | confirmPassword: "", |
| | |
| | | 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; |
| | |
| | | googleAuthCode: "", //登录人谷歌验证器 |
| | | newSafeword: "", //新资金密码 |
| | | withdrawLimitAmount: "", //限制提现流水 |
| | | futuresMostPrfitLevel: "", //交割合约赢率 |
| | | password: "", |
| | | newPassword: "", |
| | | confirmPassword: "", |
| | |
| | | }); |
| | | } |
| | | }); |
| | | }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", |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | |
| | | 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" |
| | |
| | | userLevel: "", |
| | | realNameAuthority:'', |
| | | status: 1, |
| | | creditScore: "", |
| | | }, |
| | | options: [ |
| | | { |
| | |
| | | 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; |
| | |
| | | email: "", |
| | | mobile: "", |
| | | userLevel: "", |
| | | creditScore: "", |
| | | }; |
| | | }, |
| | | changeVal(val) { |
| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | value: "12", |
| | | label: "赠送用户USDT", |
| | | }, |
| | | { |
| | | value: "13", |
| | | label: "设置交割合约赢率", |
| | | }, |
| | | ], |
| | | page: { |
| | | total: 0, // 总页数 |
| | |
| | | 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); |