From 5d43370b99a03391c9271d04d3f351f0fd734dae Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Thu, 18 Mar 2021 20:23:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/score_shop' into score_shop --- zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-user.html | 64 +++++++++++++++++++++----------- 1 files changed, 42 insertions(+), 22 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-user.html b/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-user.html index cc2ebb2..f9966e4 100644 --- a/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-user.html +++ b/zq-erp/src/main/resources/templates/views/admin/fenxiao/fenxiao-user.html @@ -23,6 +23,9 @@ <script type="text/javascript" charset="utf-8" th:src="@{/plugin/beditor/lang/zh-cn/zh-cn.js}"></script> <style> + .panel-body{ + overflow: hidden; + } .paginationStyle{ background: #ffffff; padding: 10px 10px; @@ -56,7 +59,7 @@ </head> <body> -<div class="ibox-content" id="app" v-cloak> +<div class="panel-body" id="app" v-cloak> <el-row> <el-tabs v-model="activeName" > <el-tab-pane label="分销员管理" name="first"> @@ -99,19 +102,25 @@ type="selection"> </el-table-column> <el-table-column - label="分销员" width="120"> + label="分销员" + show-overflow-tooltip + width="150"> <template slot-scope="scope"> <img :src="scope.row.avatarUrl" width="40" height="40" class="head_pic"/> {{scope.row.nickname}} </template> </el-table-column> <el-table-column - prop="parentUser" - label="邀请人"> + prop="parentUserNow" + label="当前上级"> </el-table-column> <el-table-column prop="lowerLevelNum" - label="下级客户数"> + label="推广客户"> + </el-table-column> + <el-table-column + prop="invitedNum" + label="邀请下级"> </el-table-column> <el-table-column prop="totalRevenue" @@ -128,6 +137,7 @@ <el-table-column prop="createTime" label="加入时间" + show-overflow-tooltip :formatter="formatDate"> </el-table-column> <el-table-column @@ -138,6 +148,10 @@ <span v-if="scope.row.applyStatus == 3">未通过</span> <span v-if="scope.row.applyStatus == 4">系统删除</span> </template> + </el-table-column> + <el-table-column + prop="parentUser" + label="注册邀请人"> </el-table-column> <el-table-column label="来源"> @@ -154,7 +168,7 @@ <el-button type="primary" v-if="scope.row.applyStatus == 1" size="mini" @click="openExamineSaleManApply(scope.row)">审核</el-button> <el-button type="primary" v-if="scope.row.applyStatus == 2" size="mini" @click="openUpdateSaleManGrade(scope.row)">修改等级</el-button> <el-button type="primary" size="mini" @click="openUpdateSaleManGrade(scope.row)">详情</el-button> - <el-button type="primary" v-if="scope.row.applyStatus == 2" size="mini" @click="delSaleManGradeApply(scope.row)">删除</el-button> + <el-button type="danger" v-if="scope.row.applyStatus == 2" size="mini" @click="delSaleManGradeApply(scope.row)">删除</el-button> </el-row> </template> </el-table-column> @@ -207,9 +221,9 @@ <el-table-column label="操作" width="240"> <template slot-scope="scope"> <el-row style="display:flex;"> - <el-button type="primary" v-if="scope.row.isDefault == 1" size="mini" @click="addFyfa()">新增</el-button> + <el-button type="primary" v-if="scope.row.isDefault == 1" size="mini" @click="addFyfaReady()">新增</el-button> <el-button type="primary" size="mini" @click="updateFyfa(scope.row)">保存</el-button> - <el-button type="primary" v-if="scope.row.isDefault == 2" size="mini" @click="delFyfa(scope.row)">删除</el-button> + <el-button type="danger" v-if="scope.row.isDefault == 2" size="mini" @click="delFyfa(scope.row)">删除</el-button> </el-row> </template> </el-table-column> @@ -399,7 +413,7 @@ }); }, handleAvatarSuccess(res, file) { - this.imageUrl = URL.createObjectURL(file.raw); + this.imageUrl = res.path; }, beforeAvatarUpload(file) { const isJPG = file.type === 'image/jpeg'; @@ -438,18 +452,23 @@ this.loadFyfaSetting(); }, //新增 - addFyfa(){ + addFyfaReady(){ let _this = this; - AjaxProxy.requst({ - app: _this, - data:[], - url: basePath + '/fenXiao/fenXiaoUser/addFyfa', - callback: function (data) { - _this.$message.success(data.info); - _this.loadFyfaSetting(); - } - }); + let fyfaReady = {}; + _this.fyfaList.rows.push(fyfaReady); }, + // addFyfa(){ + // let _this = this; + // AjaxProxy.requst({ + // app: _this, + // data:[], + // url: basePath + '/fenXiao/fenXiaoUser/addFyfa', + // callback: function (data) { + // _this.$message.success(data.info); + // _this.loadFyfaSetting(); + // } + // }); + // }, updateFyfa(row){ let _this = this; let id = row.id; @@ -485,7 +504,7 @@ }).then(() => { //通过 _this.delFyfaApply(row); - _this.loadFyfaSetting(); + }).catch(action => { //不通过 if(action === 'cancel'){ @@ -509,6 +528,7 @@ url: basePath + '/fenXiao/fenXiaoUser/delFyfaApply', callback: function (data) { _this.$message.success(data.info); + _this.loadFyfaSetting(); } }); }, @@ -574,11 +594,11 @@ } }, changePageSize(val) { - this.table.pageSize = val; + this.fxyList.pageSize = val; this.loadParamSetting(); }, changeCurrentPage(val) { - this.table.currentPage = val; + this.fxyList.currentPage = val; this.loadParamSetting(); }, //时间格式化 -- Gitblit v1.9.1