mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-24 22:57:20 +08:00
【新增】后台分销商列表,增加申请分销的用户等级展示及等级筛选功能。
This commit is contained in:
@@ -117,6 +117,9 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
//分销等级 int
|
||||
var gradeId = Request.Form["gradeId"].FirstOrDefault().ObjectToInt(0);
|
||||
if (gradeId > 0) where = where.And(p => p.gradeId == gradeId);
|
||||
//用户等级 int
|
||||
var userGradeId = Request.Form["userGradeId"].FirstOrDefault().ObjectToInt(0);
|
||||
if (userGradeId > 0) where = where.And(p => p.UserGradeId == userGradeId);
|
||||
//手机号 nvarchar
|
||||
var mobile = Request.Form["mobile"].FirstOrDefault();
|
||||
if (!string.IsNullOrEmpty(mobile)) where = where.And(p => p.mobile.Contains(mobile));
|
||||
@@ -232,10 +235,12 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
var jm = new AdminUiCallBack { code = 0 };
|
||||
var distributionVerifyStatus = EnumHelper.EnumToList<GlobalEnumVars.DistributionVerifyStatus>();
|
||||
var grades = await _distributionGradeServices.GetCaChe();
|
||||
var userGrades = await _userGradeServices.QueryAsync();
|
||||
jm.data = new
|
||||
{
|
||||
distributionVerifyStatus,
|
||||
grades
|
||||
grades,
|
||||
userGrades
|
||||
};
|
||||
|
||||
return jm;
|
||||
|
||||
@@ -68,6 +68,16 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline">
|
||||
<select name="userGradeId">
|
||||
<option value="">请选择用户等级</option>
|
||||
{{# layui.each(indexData.userGrades, function(index, item){ }}
|
||||
<option value="{{ item.id }}">{{ item.title }}</option>
|
||||
{{# }); }}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline">
|
||||
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="LAY-app-CoreCmsDistribution-search"><i class="layui-icon layui-icon-search"></i>筛选</button>
|
||||
@@ -135,9 +145,18 @@
|
||||
//{ type: "checkbox", fixed: "left" },
|
||||
{ field: 'id', title: '序列', width: 60, sort: false },
|
||||
{ field: 'userId', title: '用户序列', sort: false, width: 65 },
|
||||
{
|
||||
field: 'userGradeId', title: '用户等级', sort: false, width: 90, templet: function (data) {
|
||||
for (var i = 0; i < d.data.grades.length; i++) {
|
||||
if (d.data.userGrades[i].id == data.userGradeId) {
|
||||
return d.data.userGrades[i].title;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{ field: 'name', title: '分销商名称', sort: false, width: 105 },
|
||||
{
|
||||
field: 'gradeId', title: '分销等级', sort: false, width: 65, templet: function (data) {
|
||||
field: 'gradeId', title: '分销等级', sort: false, width: 90, templet: function (data) {
|
||||
for (var i = 0; i < d.data.grades.length; i++) {
|
||||
if (d.data.grades[i].id == data.gradeId) {
|
||||
return d.data.grades[i].name;
|
||||
@@ -146,8 +165,8 @@
|
||||
}
|
||||
},
|
||||
//{ field: 'gradeId', title: '分销等级', sort: false, width: 105 },
|
||||
{ field: 'mobile', title: '手机号', sort: false, width: 90 },
|
||||
{ field: 'weixin', title: '微信号', sort: false, width: 90 },
|
||||
{ field: 'mobile', title: '手机号', sort: false, width: 100 },
|
||||
{ field: 'weixin', title: '微信号', sort: false, width: 100 },
|
||||
{ field: 'qq', title: 'qq号', sort: false, width: 90 },
|
||||
{ field: 'storeName', title: '店铺名称', sort: false },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user