| <!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> | 
|             <el-tabs v-model="activeName" > | 
|                 <el-tab-pane label="分销员管理" name="first"> | 
|                     <el-row style="display:flex;align-items: center;"> | 
|                         <el-col> | 
|                             <el-button type="primary" @click="addSaleMan()">新增分销员</el-button> | 
|                         </el-col> | 
|                         <el-col> | 
|                             <el-form ref="form" :model="form" inline > | 
|                                 <el-form-item label="审核状态" prop="shenheState"> | 
|                                     <el-select v-model="form.shenheState" placeholder="请选择"> | 
|                                         <el-option | 
|                                                 v-for="item in shenheStateList" | 
|                                                 :key="item.value" | 
|                                                 :label="item.label" | 
|                                                 :value="item.value" | 
|                                         > | 
|                                         </el-option> | 
|                                     </el-select> | 
|                                 </el-form-item> | 
|                                 <el-button type="primary" @click="search" >搜索</el-button> | 
|                                 <el-button @click="resetForm('form')">重置</el-button> | 
|                             </el-form> | 
|                         </el-col> | 
|                     </el-row> | 
|                     <el-row> | 
|                         <template> | 
|                             <el-table id="proj" :data="fxyList.rows"  :height="height" stripe @sort-change="sortChange"> | 
|                                 <el-table-column | 
|                                         type="selection" | 
|                                         width="55"> | 
|                                 </el-table-column> | 
|                                 <el-table-column | 
|                                         prop="userId" | 
|                                         label="id" | 
|                                         width="180"> | 
|                                 </el-table-column> | 
|                                 <el-table-column | 
|                                         fixed="right" | 
|                                         label="操作" | 
|                                         width="auto"> | 
|                                     <template slot-scope="scope"> | 
|                                         <el-button type="text" size="small" @click="addSaleManApply(scope.row)">审核</el-button> | 
|                                         <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button> | 
|                                         <el-button type="text" size="small">编辑</el-button> | 
|                                     </template> | 
|                                 </el-table-column> | 
|                             </el-table> | 
|                         </template> | 
|                     </el-row> | 
|                     <el-row class="paginationStyle"  > | 
|                         <el-pagination background | 
|                                        @size-change="changePageSize" | 
|                                        @current-change="changeCurrentPage" | 
|                                        :current-page="fxyList.currentPage" | 
|                                        :page-sizes="[10, 20, 30, 50]" | 
|                                        :page-size="fxyList.pageSize" | 
|                                        layout="total, sizes, prev, pager, next, jumper" | 
|                                        :total="fxyList.total"> | 
|                         </el-pagination> | 
|                     </el-row> | 
|                 </el-tab-pane> | 
|                 <el-tab-pane label="分佣方案" name="second"> | 
|                     <template> | 
|                         <el-table | 
|                                 :data="tableData" | 
|                                 style="width: 100%" | 
|                                 height="250"> | 
|                             <el-table-column | 
|                                     prop="name" | 
|                                     label="方案名称" | 
|                                     width="180"> | 
|                             </el-table-column> | 
|                             <el-table-column | 
|                                     prop="name" | 
|                                     label="推广提成%" | 
|                                     width="180"> | 
|                             </el-table-column> | 
|                             <el-table-column | 
|                                     prop="name" | 
|                                     label="邀请提成 %" | 
|                                     width="180"> | 
|                             </el-table-column> | 
|                             <el-table-column | 
|                                     prop="name" | 
|                                     label="等级条件(推广金额额)" | 
|                                     width="180"> | 
|                             </el-table-column> | 
|                             <el-table-column | 
|                                 fixed="right" | 
|                                 label="操作" | 
|                                 width="100"> | 
|                             <template slot-scope="scope"> | 
|                                 <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button> | 
|                                 <el-button type="text" size="small">编辑</el-button> | 
|                             </template> | 
|                         </el-table-column> | 
|                         </el-table> | 
|                     </template> | 
|                 </el-tab-pane> | 
|                 <el-tab-pane label="推广文案" name="third"> | 
|                     <el-row> | 
|                         <script style="width: 100%; height: 500px" id="description" name="description" | 
|                                 type="text/plain"></script> | 
|                     </el-row> | 
|                     <el-row justify="center" type="flex"> | 
|                         <el-button type="primary" @click="submit()">保存</el-button> | 
|                     </el-row> | 
|                 </el-tab-pane> | 
|                 <el-tab-pane label="分享图片上传" name="fourth"> | 
|                     <el-row> | 
|                         <div class="ibox-content"> | 
|                             <form class="form-horizontal" id="dataform" | 
|                                   onsubmit="javascripr:return false;"> | 
|                                 <div class="form-group"> | 
|                                     <label class="col-sm-2 control-label">门店照片</label> | 
|                                     <div class="col-sm-8"> | 
|                                         <input autocomplete="off"   v-model="fxtp.paramValue" name="shopImag" id="info6" | 
|                                                class="form-control  upload-input" type="text" /> <a | 
|                                             class="btn btn-primary radius upload-a">选择图片 | 
|                                     </a> | 
|                                     </div> | 
|                                 </div> | 
|                                 <el-row justify="center" type="flex"> | 
|                                     <el-button type="primary" @click="submittp(paramValue)">保存</el-button> | 
|                                 </el-row> | 
|                             </form> | 
|                         </div> | 
|                     </el-row> | 
|                 </el-tab-pane> | 
|             </el-tabs> | 
|         </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> | 
|     //百度编辑器 | 
|     MUI.initImgUpload(".upload-input"); | 
|     var ue = {}; | 
|     var app = new Vue({ | 
|         el: '#app', | 
|         data: { | 
|             fxy:[], | 
|             fenxiaoGrade: "", | 
|             tableData:[], | 
|             tgwa: "", | 
|             activeName: 'first', | 
|             multipleSelection: [], | 
|             jfyxq:[], | 
|             fxtp:{}, | 
|             jfdxj:[], | 
|             mdjf:[], | 
|             scjf:[], | 
|             form:{ | 
|                 shenheState:'', | 
|                 order:'', | 
|                 sort:'' | 
|             }, | 
|             //条件查询审核状态 | 
|             shenheStateList:[ | 
|                 {value:'',label:'全部'}, | 
|                 {value:1,label:'未审核'}, | 
|                 {value:2,label:'通过'}, | 
|                 {value:3,label:'未通过'} | 
|             ], | 
|             fxyList:{ | 
|                 rows:[], | 
|                 total:0, | 
|                 pageSize:10, | 
|                 currentPage:1, | 
|             }, | 
|             height:'calc(100vh - 240px)', | 
|         }, | 
|   | 
|         created: function () { | 
|             this.loadInfo(); | 
|             window.addEventListener("keydown", this.keydown); | 
|             //初始化编辑器 | 
|             ue = UE.getEditor('description'); | 
|             //百度编辑器 | 
|             MUI.initImgUpload(".upload-input"); | 
|         }, | 
|         mounted: function () { | 
|         }, | 
|         methods: { | 
|             //加载分类 | 
|             loadInfo() { | 
|                 let _this = this; | 
|                 _this.loadParamSetting(); | 
|             }, | 
|             submittp(paramValue) { | 
|                 alert(paramValue); | 
|             }, | 
|             toggleSelection(rows) { | 
|                 if (rows) { | 
|                     rows.forEach(row => { | 
|                         this.$refs.multipleTable.toggleRowSelection(row); | 
|                     }); | 
|                 } else { | 
|                     this.$refs.multipleTable.clearSelection(); | 
|                 } | 
|             }, | 
|             handleSelectionChange(val) { | 
|                 this.multipleSelection = val; | 
|             }, | 
|             handleClick(row) { | 
|                 console.log(row); | 
|             }, | 
|             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; | 
|                     } | 
|                 }); | 
|             }, | 
|             getRequestParam(){ | 
|                 let _this = this; | 
|                 return   { | 
|                     shenheState:_this.form.shenheState, | 
|                     order:_this.form.order, | 
|                     sort:_this.form.sort, | 
|                 } | 
|             }, | 
|             search:function(){ | 
|                 this.fxyList.currentPage=1; | 
|                 this.loadInfo(); | 
|             }, | 
|             keydown(evt){ | 
|                 if(evt.keyCode==13) { | 
|                     this.search(); | 
|                 } | 
|             }, | 
|             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(); | 
|             }, | 
|             //新增分销员页面 | 
|             addSaleMan(){ | 
|                 layer.full(layer.open({ | 
|                     type: 2, | 
|                     title: "选择会员", | 
|                     maxmin: true, | 
|                     area: [MUI.SIZE_L, '500px'], | 
|                     content : [ basePath + '/admin/redirect/fenxiao/fenxiao-apply'] | 
|                 })); | 
|             }, | 
|   | 
|             submit() { | 
|             } | 
|         } | 
|     }) | 
| </script> | 
|   | 
| </body> | 
| </html> |