Commit 26854243 authored by 王's avatar

来源码管理

parent 7aa69515
......@@ -548,6 +548,10 @@
page
},
mounted(){
console.log('this.$route.params', this.$route)
if (this.$route.query.code) {
this.searchFrom.invite_type = this.$route.query.code
}
this.getOrderList();
this.getGoodsOption();
},
......
......@@ -12,17 +12,23 @@
</el-table-column>
<el-table-column
prop="code"
label="渠道码类型">
label="来源CODE">
<template slot-scope="scope">
<a href="javascript:void(0);" @click="goToOrder(scope.row.code)">{{scope.row.code}}</a>
</template>
</el-table-column>
<el-table-column
label="可以提现">
label="是否可提现">
<template slot-scope="scope">
{{scope.row.is_withdraw | isWithdraw}}
</template>
</el-table-column>
<el-table-column
prop="no_cash_user"
label="被限制的提现用户">
label="不可提现用户">
<template slot-scope="scope">
<a href="javascript:void(0);" @click="getNoCashUser(scope.row.no_cash_user)">{{scope.row.no_cash_user}}</a>
</template>
</el-table-column>
<el-table-column
prop="desc"
......@@ -53,11 +59,11 @@
append-to-body
:visible.sync="dialog.show"
width="50%">
<el-form ref="form" :rules="dialog.rules" :model="dialog.form" label-width="100px">
<el-form ref="form" :rules="dialog.rules" :model="dialog.form" label-width="120px">
<el-form-item label="名字" prop="title">
<el-input v-model="dialog.form.title"></el-input>
</el-form-item>
<el-form-item label="渠道码类型" prop="code">
<el-form-item label="来源CODE" prop="code">
<el-input v-model="dialog.form.code"></el-input>
</el-form-item>
<el-form-item label="是否可提现">
......@@ -69,7 +75,7 @@
</el-form-item>
<el-row>
<el-col :span="16">
<el-form-item label="用户ID">
<el-form-item label="不可提现用户ID">
<el-input v-model="dialog.form.no_cash_user"></el-input>
</el-form-item>
</el-col>
......@@ -140,6 +146,26 @@
</span>
</el-dialog>
</el-dialog>
<el-dialog :visible.sync="noCashUserDialog.show" append-to-body>
<el-table
:data="noCashUserList"
style="width: 100%">
<el-table-column
className="f-c"
label="用户">
<template slot-scope="scope">
<img style="margin-right:5px;width: 50px;height: 50px;border-radius: 50px" :src="scope.row.avatar">{{scope.row.nickname}}(ID:{{scope.row.user_id}})
</template>
</el-table-column>
<el-table-column
prop="mobile"
label="手机号">
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="noCashUserDialog.show = false">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
......@@ -194,6 +220,13 @@
userList: [],
searchUserFrom: {},
multipleSelection: [],
noCashUserDialog: {
total: 0,
limit: 1000,
nowPage: 1,
show: false
},
noCashUserList: []
}
},
filters: {
......@@ -308,6 +341,20 @@
this.userDialog.total = res.total;
})
},
getNoCashUser(ids){
let json = {
page: this.noCashUserDialog.nowPage,
limit: this.noCashUserDialog.limit
};
if (ids) {
json.user_id = ids
}
getUserListApi(json).then(res=>{
this.noCashUserList = res.list;
this.noCashUserDialog.total = res.total;
this.noCashUserDialog.show = true;
})
},
edit(data){
this.dialog.show = true;
this.dialog.form.id = data.id;
......@@ -396,7 +443,10 @@
}
}
})
}
},
goToOrder(code){
this.$router.push('/order?code='+ code);
},
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment