|
@@ -203,6 +203,12 @@
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handleRestPwd(scope.row)"
|
|
@click="handleRestPwd(scope.row)"
|
|
>重置密码</el-button>
|
|
>重置密码</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ @click="handleRestPayPwd(scope.row)"
|
|
|
|
+ >重置支付密码</el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@@ -412,6 +418,23 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 重置支付密码对话框 -->
|
|
|
|
+ <el-dialog :title="title" :visible.sync="resetPayPwdopen" width="500px" append-to-body>
|
|
|
|
+ <el-form ref="resetPayPwdForm" :model="resetPayPwdForm" :rules="resetPayPwdRules" label-width="80px">
|
|
|
|
+ <el-form-item label="用户id" prop="userId">
|
|
|
|
+ <el-input v-model="resetPayPwdForm.userId" disabled />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="密码" prop="password">
|
|
|
|
+ <el-input v-model="resetPayPwdForm.password" placeholder="请输入密码" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitResetPayPwdForm">确 定</el-button>
|
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
<!-- 充值对话框 -->
|
|
<!-- 充值对话框 -->
|
|
<el-dialog :title="title" :visible.sync="chargeopen" width="700px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="chargeopen" width="700px" append-to-body>
|
|
<el-form ref="chargeForm" :model="chargeForm" :rules="currentRules" :validate-on-rule-change=false label-width="150px">
|
|
<el-form ref="chargeForm" :model="chargeForm" :rules="currentRules" :validate-on-rule-change=false label-width="150px">
|
|
@@ -857,7 +880,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listUser, getUser, delUser, addUser, updateUser,resetUser,userCharge,channelList,withdraw,openLive,userDetail,liveCommission,getGift,updateUserAgent,updateGameCommissionAgent } from "@/api/business/user";
|
|
|
|
|
|
+import { listUser, getUser, delUser, addUser, updateUser,resetUser,userCharge,channelList,withdraw,openLive,userDetail,liveCommission,getGift,updateUserAgent,updateGameCommissionAgent,restPayPwd } from "@/api/business/user";
|
|
import { listAccount} from "@/api/business/account";
|
|
import { listAccount} from "@/api/business/account";
|
|
import { listOrder } from "@/api/business/order";
|
|
import { listOrder } from "@/api/business/order";
|
|
import { listBetting} from "@/api/business/betting";
|
|
import { listBetting} from "@/api/business/betting";
|
|
@@ -910,6 +933,7 @@ export default {
|
|
open: false,
|
|
open: false,
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
resetPwdopen: false,
|
|
resetPwdopen: false,
|
|
|
|
+ resetPayPwdopen: false,
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
resetWithdrawopen: false,
|
|
resetWithdrawopen: false,
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
@@ -1010,6 +1034,8 @@ export default {
|
|
form: {},
|
|
form: {},
|
|
//重置密码
|
|
//重置密码
|
|
resetPwdForm:{},
|
|
resetPwdForm:{},
|
|
|
|
+ //重置支付密码
|
|
|
|
+ resetPayPwdForm:{},
|
|
//补足流水
|
|
//补足流水
|
|
resetWithdrawForm:{},
|
|
resetWithdrawForm:{},
|
|
//充值
|
|
//充值
|
|
@@ -1025,6 +1051,11 @@ export default {
|
|
{ required: true, message: "密码不能为空", trigger: "blur" }
|
|
{ required: true, message: "密码不能为空", trigger: "blur" }
|
|
],
|
|
],
|
|
},
|
|
},
|
|
|
|
+ resetPayPwdRules: {
|
|
|
|
+ password: [
|
|
|
|
+ { required: true, message: "密码不能为空", trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
chargeRules: {
|
|
chargeRules: {
|
|
amount: [
|
|
amount: [
|
|
{ required: true, message: "金额不能为空", trigger: "blur" }
|
|
{ required: true, message: "金额不能为空", trigger: "blur" }
|
|
@@ -1187,8 +1218,10 @@ export default {
|
|
this.resetWithdrawopen = false;
|
|
this.resetWithdrawopen = false;
|
|
this.liveOpen = false;
|
|
this.liveOpen = false;
|
|
this.superOpen = false;
|
|
this.superOpen = false;
|
|
|
|
+ this.resetPayPwdopen = false;
|
|
this.reset();
|
|
this.reset();
|
|
this.resetPwd();
|
|
this.resetPwd();
|
|
|
|
+ this.resetPayPwd();
|
|
this.resetCharge();
|
|
this.resetCharge();
|
|
this.resetWithdraw();
|
|
this.resetWithdraw();
|
|
},
|
|
},
|
|
@@ -1363,6 +1396,13 @@ export default {
|
|
};
|
|
};
|
|
this.resetForm("restPwdForm");
|
|
this.resetForm("restPwdForm");
|
|
},// 表单重置
|
|
},// 表单重置
|
|
|
|
+ resetPayPwd() {
|
|
|
|
+ this.resetPayPwdForm = {
|
|
|
|
+ userId: null,
|
|
|
|
+ password: null
|
|
|
|
+ };
|
|
|
|
+ this.resetForm("restPayPwdForm");
|
|
|
|
+ },// 表单重置
|
|
resetWithdraw() {
|
|
resetWithdraw() {
|
|
this.resetWithdrawForm = {
|
|
this.resetWithdrawForm = {
|
|
userId: null,
|
|
userId: null,
|
|
@@ -1430,6 +1470,17 @@ export default {
|
|
this.resetPwdopen = true;
|
|
this.resetPwdopen = true;
|
|
this.title = "重置密码";
|
|
this.title = "重置密码";
|
|
},
|
|
},
|
|
|
|
+ /** 重置支付密码按钮操作 */
|
|
|
|
+ handleRestPayPwd(row) {
|
|
|
|
+ this.resetPayPwd();
|
|
|
|
+ const userid = row.userid;
|
|
|
|
+ this.resetPayPwdForm = {
|
|
|
|
+ userId:userid,
|
|
|
|
+ password:""
|
|
|
|
+ };
|
|
|
|
+ this.resetPayPwdopen = true;
|
|
|
|
+ this.title = "重置支付密码";
|
|
|
|
+ },
|
|
/** 补足流水按钮操作 */
|
|
/** 补足流水按钮操作 */
|
|
handleWithdraw(row) {
|
|
handleWithdraw(row) {
|
|
this.resetWithdraw();
|
|
this.resetWithdraw();
|
|
@@ -1524,6 +1575,26 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ /** 重置密码提交按钮 */
|
|
|
|
+ submitResetPayPwdForm() {
|
|
|
|
+ this.$refs["resetPayPwdForm"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: '加载中',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
+ });
|
|
|
|
+ setTimeout(function (){loading.close();},1000);
|
|
|
|
+ restPayPwd(this.resetPayPwdForm).then(response => {
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ this.resetPayPwdopen = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ loading.close();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
/** 补足流水提交按钮 */
|
|
/** 补足流水提交按钮 */
|
|
submitWithdrawForm() {
|
|
submitWithdrawForm() {
|
|
var that =this;
|
|
var that =this;
|