Commit 26854243 authored by 王's avatar

来源码管理

parent 7aa69515
...@@ -548,6 +548,10 @@ ...@@ -548,6 +548,10 @@
page page
}, },
mounted(){ mounted(){
console.log('this.$route.params', this.$route)
if (this.$route.query.code) {
this.searchFrom.invite_type = this.$route.query.code
}
this.getOrderList(); this.getOrderList();
this.getGoodsOption(); this.getGoodsOption();
}, },
......
...@@ -12,17 +12,23 @@ ...@@ -12,17 +12,23 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="code" 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>
<el-table-column <el-table-column
label="可以提现"> label="是否可提现">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.is_withdraw | isWithdraw}} {{scope.row.is_withdraw | isWithdraw}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="no_cash_user" 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>
<el-table-column <el-table-column
prop="desc" prop="desc"
...@@ -53,11 +59,11 @@ ...@@ -53,11 +59,11 @@
append-to-body append-to-body
:visible.sync="dialog.show" :visible.sync="dialog.show"
width="50%"> 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-form-item label="名字" prop="title">
<el-input v-model="dialog.form.title"></el-input> <el-input v-model="dialog.form.title"></el-input>
</el-form-item> </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-input v-model="dialog.form.code"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否可提现"> <el-form-item label="是否可提现">
...@@ -69,7 +75,7 @@ ...@@ -69,7 +75,7 @@
</el-form-item> </el-form-item>
<el-row> <el-row>
<el-col :span="16"> <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-input v-model="dialog.form.no_cash_user"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -140,6 +146,26 @@ ...@@ -140,6 +146,26 @@
</span> </span>
</el-dialog> </el-dialog>
</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> </div>
</template> </template>
...@@ -194,6 +220,13 @@ ...@@ -194,6 +220,13 @@
userList: [], userList: [],
searchUserFrom: {}, searchUserFrom: {},
multipleSelection: [], multipleSelection: [],
noCashUserDialog: {
total: 0,
limit: 1000,
nowPage: 1,
show: false
},
noCashUserList: []
} }
}, },
filters: { filters: {
...@@ -308,6 +341,20 @@ ...@@ -308,6 +341,20 @@
this.userDialog.total = res.total; 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){ edit(data){
this.dialog.show = true; this.dialog.show = true;
this.dialog.form.id = data.id; this.dialog.form.id = data.id;
...@@ -396,7 +443,10 @@ ...@@ -396,7 +443,10 @@
} }
} }
}) })
} },
goToOrder(code){
this.$router.push('/order?code='+ code);
},
} }
} }
</script> </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