<!DOCTYPE HTML>
|
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta charset="utf-8">
|
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport"
|
content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
<meta http-equiv="Cache-Control" content="no-siteapp"/>
|
<!-- 本框架基本脚本和样式 -->
|
<script type="text/javascript" th:src="@{/js/systools/MBaseVue.js}"></script>
|
<link rel="stylesheet" th:href="@{/plugin/element-ui/index.css}">
|
<link rel="stylesheet" th:href="@{/plugin/bootstrap-3.3.5/css/bootstrap.min.css}">
|
<link th:href="@{/css/styleOne/style.min.css}" rel="stylesheet" type="text/css"/>
|
|
<!-- 富文本编辑器 -->
|
<script type="text/javascript" charset="utf-8"
|
th:src="@{/plugin/beditor/ueditor.config.js}"></script>
|
<script type="text/javascript" charset="utf-8"
|
th:src="@{/plugin/beditor/ueditor.all.js}">
|
</script>
|
<script type="text/javascript" charset="utf-8"
|
th:src="@{/plugin/beditor/lang/zh-cn/zh-cn.js}"></script>
|
<style>
|
.paginationStyle{
|
background: #ffffff;
|
padding: 10px 10px;
|
margin: 0px 0px 10px 0px;
|
text-align: right;
|
}
|
</style>
|
</head>
|
|
<body>
|
<div class="ibox-content" id="app" v-cloak>
|
|
<el-row>
|
<p class="el-big-title">个人详情</p>
|
</el-row>
|
<el-row>
|
<el-col>
|
<template>
|
<img :src="detailVo.avatarUrl" width="50" height="50" class="head_pic"/>
|
</template>
|
</el-col>
|
<el-col>
|
<div>张三</div>
|
<div>
|
<el-form-item label="分销员等级" prop="salemanGrade">
|
<el-select v-model="form.salemanGrade" placeholder="请选择" filterable allow-create>
|
<el-option v-for="item in salemanGradeList " :key="item.id" :label="item.name" :value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
</div>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col>
|
<div>手机号码:</div>
|
<div>加入时间:</div>
|
<div>邀请人:</div>
|
<div>来源:</div>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-row>
|
<el-col :span="24">
|
<el-form-item>
|
<el-col class="line" :span="6" style="text-align: center">绑定客户</el-col>
|
<el-col class="line" :span="6" style="text-align: center">邀请下级</el-col>
|
<el-col class="line" :span="6" style="text-align: center">累计收益</el-col>
|
<el-col class="line" :span="6" style="text-align: center">待结算</el-col>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<el-row>
|
<el-col :span="24">
|
<el-form-item>
|
<el-col class="line" :span="6" style="text-align: center">0</el-col>
|
<el-col class="line" :span="6" style="text-align: center">0</el-col>
|
<el-col class="line" :span="6" style="text-align: center">0</el-col>
|
<el-col class="line" :span="6" style="text-align: center">0</el-col>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
</el-row>
|
|
</div>
|
</body>
|
<script type="text/javascript" th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
|
<script type="text/javascript" th:src="@{/js/plugin/jquery.query.js}"></script>
|
<script type="text/javascript" th:src="@{/plugin/bootstrap-3.3.5/js/bootstrap.min.js}"></script>
|
<script type="text/javascript" th:src="@{/js/systools/AjaxProxyVue.js}"></script>
|
<script type="text/javascript" th:src="@{/js/plugin/vue.js}"></script>
|
<script type="text/javascript" th:src="@{/plugin/element-ui/index.js}"></script>
|
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script>
|
<script type="text/javascript" th:src="@{/plugin/layer/layer.js}"></script>
|
<script type="text/javascript" th:src="@{/plugin/moment.min.js}"></script>
|
|
<script>
|
var app = new Vue({
|
el: '#app',
|
data: {
|
activeName: 'first',
|
shenheAgreeType : 2,
|
shenheDisagreeType : 3,
|
form:{
|
shenheState:'',
|
salemanGrade:'',
|
userName:'',
|
order:'',
|
sort:''
|
},
|
//条件查询审核状态
|
shenheStateList:[
|
{value:'',label:'全部'},
|
{value:1,label:'未审核'},
|
{value:2,label:'通过'},
|
{value:3,label:'未通过'}
|
],
|
//条件查询分销员等级
|
salemanGradeList:[],
|
fxyList:{
|
rows:[],
|
total:0,
|
pageSize:10,
|
currentPage:1,
|
},
|
height:'calc(100vh - 240px)',
|
},
|
|
created: function () {
|
this.loadInfo();
|
},
|
mounted: function () {
|
},
|
methods: {
|
//加载分类
|
loadInfo() {
|
let _this = this;
|
//_this.loadParamSetting();
|
//_this.getSalemanGradeList();
|
},
|
loadParamSetting() {
|
let _this = this;
|
let data=_this.getRequestParam();
|
data.pageSize=_this.fxyList.pageSize;
|
data.pageNum=_this.fxyList.currentPage;
|
AjaxProxy.requst({
|
app: _this,
|
data:data,
|
url: basePath + '/fenXiao/fenXiaoUser/findShopSalesmanApplyList',
|
callback: function (data) {
|
_this.fxyList.rows = data.rows;
|
_this.fxyList.total=data.total;
|
}
|
});
|
},
|
// 下拉框数据源---分销员等级
|
getSalemanGradeList() {
|
let _this = this;
|
AjaxProxy.requst({
|
app: _this,
|
data:[],
|
url: basePath + '/fenXiao/fenXiaoUser/getShopSalesmanGrade',
|
callback: function (data) {
|
_this.salemanGradeList = data.mapInfo.salesGrade;
|
}
|
});
|
},
|
getRequestParam(){
|
let _this = this;
|
return {
|
shenheState:_this.form.shenheState,
|
salemanGrade:_this.form.salemanGrade,
|
userName:_this.form.userName,
|
order:_this.form.order,
|
sort:_this.form.sort,
|
}
|
},
|
search:function(){
|
this.fxyList.currentPage=1;
|
this.loadInfo();
|
},
|
resetForm(formName) {
|
this.$refs[formName].resetFields();
|
},
|
sortChange:function (column){
|
if(column.order){
|
if(column.order.indexOf("desc")){
|
this.form.order="desc";
|
}else{
|
this.form.order="asc";
|
}
|
this.form.sort=column.prop;
|
this.loadInfo();
|
}
|
},
|
changePageSize(val) {
|
this.table.pageSize = val;
|
this.loadData();
|
},
|
changeCurrentPage(val) {
|
this.table.currentPage = val;
|
this.loadData();
|
},
|
//时间格式化
|
formatDate(row,column){
|
let data = row[column.property]
|
if (data ===null) {
|
return ''
|
}
|
let dt = new Date(data)
|
return dt.getFullYear() + '-' + (dt.getMonth() + 1) + '-' + dt.getDate() + ' ' + dt.getHours() + ':' + dt.getMinutes()
|
},
|
//新增分销员页面
|
addSaleMan(){
|
layer.full(layer.open({
|
type: 2,
|
title: "选择会员",
|
maxmin: true,
|
area: [MUI.SIZE_L, '500px'],
|
content : [ basePath + '/admin/redirect/fenxiao/fenxiao-apply']
|
}));
|
},
|
//修改等级
|
openUpdateSaleManGrade(){
|
layer.full(layer.open({
|
type: 2,
|
title: "修改等级",
|
maxmin: true,
|
area: [MUI.SIZE_L, '500px'],
|
content : [ basePath + '/admin/redirect/fenxiao/fenxiao-update']
|
}));
|
},
|
//审核
|
openExamineSaleManApply(row) {
|
this.$confirm('是否通过?', '审核', {
|
distinguishCancelAndClose: true,//设置关闭按钮和不通过按钮的区别
|
confirmButtonText: '通过',
|
cancelButtonText: '不通过',
|
type: 'info'
|
}).then(() => {
|
//通过
|
this.examineSaleManApply(row,this.shenheAgreeType);
|
}).catch(action => {
|
//不通过
|
if(action === 'cancel'){
|
this.examineSaleManApply(row,this.shenheDisagreeType);
|
}else{
|
//关闭按钮
|
console.log("close");
|
//this.$message({type: 'info',message: ''})
|
}
|
});
|
},
|
examineSaleManApply(row,type){
|
let _this = this;
|
let userId = row.userId;
|
let obj = {
|
userId: userId,
|
applyState: type,
|
}
|
AjaxProxy.requst({
|
app: _this,
|
data:obj,
|
url: basePath + '/fenXiao/fenXiaoUser/examineSaleManApply',
|
callback: function (data) {
|
_this.$message.success(data.info);
|
this.loadData();
|
}
|
});
|
},
|
|
submit() {
|
}
|
}
|
})
|
</script>
|
|
</body>
|
</html>
|