合同,设置铸源星,修改奖励金

This commit is contained in:
faiz 2024-12-06 17:01:22 +08:00
parent fcd071192d
commit d15c719d48
3 changed files with 47 additions and 3 deletions
src
api
views
promoter/bankCard
user/list

View File

@ -153,6 +153,12 @@ export function changeNowMoneyApi(id) {
export function changeNowIntegralApi(id) {
return request.get(`user/change_integral/form/${id}`)
}
/**
* @description 用户列表 -- 修改奖励金
*/
export function changeBonusPriceForm(id) {
return request.get(`user/change_bonus_price/form/${id}`)
}
/**
* @description 用户列表 -- 批量设置分组
*/

View File

@ -21,11 +21,11 @@
@change="onchangeTime"
/>
</el-form-item> -->
<el-form-item label="账号" prop="keyword">
<el-form-item label="关键字" prop="keyword">
<el-input
v-model="tableFrom.keyword"
@keyup.enter.native="getList(1)"
placeholder="请输入账号"
placeholder="请输入用户昵称、手机号、身份证、账号"
class="selWidth"
clearable
/>
@ -72,6 +72,22 @@
<el-table-column label="银行卡号" prop="bank_code" min-width="90" />
<!-- <el-table-column prop="mark" label="备注" min-width="150" /> -->
<el-table-column prop="create_time" label="添加时间" min-width="90" />
<el-table-column
width="100px"
label="操作"
min-width="80"
fixed="right"
align="center"
>
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="openDown(scope.row.contract_url)"
>查看合同</el-button
>
</template>
</el-table-column>
</el-table>
<div class="block">
<el-pagination
@ -123,6 +139,13 @@ export default {
this.getList("");
},
methods: {
openDown(url) {
if (url) {
window.open(url, "_blank");
} else {
this.$message.error("合同链接不存在");
}
},
/**重置 */
searchReset() {
this.timeVal = [];

View File

@ -484,7 +484,15 @@
@click.native="setMoney(scope.row)"
>设置余额</el-dropdown-item
>
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="changeIntegral(scope.row)">设置铸源星</el-dropdown-item> -->
<el-dropdown-item
v-if="!scope.row.cancel_time"
@click.native="changeIntegral(scope.row)"
>设置铸源星</el-dropdown-item
>
<el-dropdown-item
@click.native="changeBonusPriceForm(scope.row)"
>修改奖励金</el-dropdown-item
>
<el-dropdown-item
v-if="scope.row.vip_name && !scope.row.cancel_time"
>清除等级</el-dropdown-item
@ -619,6 +627,7 @@ import {
changelabelApi,
changeNowMoneyApi,
changeNowIntegralApi,
changeBonusPriceForm,
batchChangeGroupApi,
batchChangelabelApi,
changePrommoterApi,
@ -1335,6 +1344,12 @@ export default {
this.changeSearch()
);
},
//
changeBonusPriceForm(row) {
this.$modalForm(changeBonusPriceForm(row.uid)).then(() =>
this.changeSearch()
);
},
//
getList(num) {
this.listLoading = true;