赞
踩
<div id="rrapp" v-cloak> <el-row :gutter="20"> <el-col :span="5"> <div style="atsc-nav-left: #div2 #div1;" v-for=""> <h3 style="font-weight: bold;">名片分配情况</h3> <div style="margin-top: 50px;font-size: 18px"> <span >今日:<span style="color: deepskyblue;font-size: 26px;font-weight: bold"> {{table.main.data.todayTotal}}</span></span> <span >昨日:<span style="font-size: 26px;font-weight: bold"> {{table.main.data.yesTotal}}</span></span> </div> <el-divider></el-divider> <div style="margin-top: 30px;font-size: 18px" >本月累计:<span style="color: deepskyblue;font-size: 26px;font-weight: bold"> {{table.main.data.thisMonTotal}}</span> </div> <div style="margin-top: 30px;font-size: 18px" >上月总计:<span style="font-size: 26px;font-weight: bold"> {{table.main.data.fistMonTotal}}</span> </div> <h3 style="margin-top: 70px;font-weight: bold">今日顾问分配</h3> <div style="margin-top: 30px;font-size: 18px " >当前有概率顾问人数: <span style="font-size: 26px;font-weight: bold">{{table.main.data.receivedTotal}}</span> </div> <div style="margin-top: 30px;font-size: 18px" >名片达上限顾问人数: <span style="color: red;font-size: 26px;font-weight: bold">{{table.main.data.upLimitTotal}}</span> </div> <div style="margin-top: 30px;font-size: 18px" >当前概率总和: <span style="color: red;font-size: 26px;font-weight: bold">{{table.main.data.propertyTotal}}%</span> </div> <el-tooltip placement="right" style="margin-top: 50px"> <div slot="content"> 产品经理友情提示∶)<br/> 1、设定合理的概率<br/> 2、设定合理的名片上限(通常流量=名片上限*70%左右)<br/> 3、关注每个顾问近三天流量情况,灵活调整第二天概率和上限。<br/> 3、关注名片打匀情况,当某人名片上限打满后,会优先分配给其他未打满顾问<br/> 4、全部有概率的顾问打满后,后续流量按他们的概率进行分配<br/> </div> <el-button>Tips:名片分配如何科学设定?</el-button> </el-tooltip> </div></el-col> <el-col :span="8"><div id="div2"> <el-row> <h3 style="margin: auto;font-weight: bold"> 各渠道名片来源(渠道推广分析) <el-button type="primary" @click="exportExcel()" style="margin-left: 400px">导出Excel</el-button></h3> <el-table :header-cell-style="{'text-align':'center'}" height="560" ref="mainTable" :data="table3.main.data" style="width: 100%" v-loading="table3.main.loading" @selection-change="val => table3.main.selection = val.map(i => i.id)" @row-click="(row, event, column) => $refs.mainTable.toggleRowSelection(row)"> <el-table-column prop="chanel" label="渠道" align="center"> </el-table-column> <el-table-column prop="total" label="今日" align="center"> <template slot-scope="scope"> <span style="color:deepskyblue;">{{scope.row.total}}</span> </template> </el-table-column> <el-table-column prop="yesTotal" label="昨日" align="center"> <template slot-scope="scope"> <span style="color:deepskyblue;">{{scope.row.yesTotal}}</span> </template> </el-table-column> <el-table-column prop="monthTotal" label="当月累计" align="center"> </el-table-column> </el-table> <el-pagination @size-change="mainSizeChange3" @current-change="mainCurrentChange3" :current-page="table3.main.page" :page-sizes="[10, 20, 30, 40]" :page-size="table3.main.limit" layout="total, sizes, prev, pager, next, jumper" :total="table3.main.total"> </el-pagination> </el-row> </div></el-col> <el-col :span="11" id="div1"> <div> <el-row> <h3 style="margin: auto;font-weight: bold">当前分配总览</h3> <el-table :header-cell-style="{'text-align':'center'}" height="600" :row-style="{height:'20px'}" ref="mainTable" :data="table2.main.data" style="width:100%; font-size: 14px" v-loading="table2.main.loading" @selection-change="val => table2.main.selection = val.map(i => i.id)" @row-click="(row, event, column) => $refs.mainTable.toggleRowSelection(row)"> <el-table-column v-if="false" label="wxId" prop="wxId" align="center"> </el-table-column> <el-table-column width="120" prop="consultantName" label="接量顾问" align="center"> </el-table-column> <el-table-column prop="currentProbability" label="当前概率(%)" align="center"> <template slot-scope="scope"> <span style="color:red;">{{scope.row.currentProbability}}</span> </template> </el-table-column> <el-table-column prop="todayTotal" label="今日名片" align="center"> <template slot-scope="scope"> <span style="color:red;" v-if="scope.row.todayTotal >= scope.row.todayLimit">{{scope.row.todayTotal}}</span>/{{scope.row.todayLimit}} <span style="color:deepskyblue;" v-else>{{scope.row.todayTotal}}</span>/{{scope.row.todayLimit}} </template> </el-table-column> <el-table-column v-if="false" hidden="hidden" prop="todayLimit" label="今日上限" align="center"> </el-table-column> <el-table-column prop="yestTotal" label="昨日名片" align="center"> <template slot-scope="scope"> <span style="color:red;" v-if="scope.row.yestTotal >= scope.row.yestLimit">{{scope.row.yestTotal}}</span>/{{scope.row.yestLimit}} <span style="color:deepskyblue;" v-else>{{scope.row.yestTotal}} </span>/{{scope.row.yestLimit}} </template> </el-table-column> <el-table-column v-if="false" style="font-weight: bold;color: #00acd6" prop="yestLimit" label="昨日上限" align="center"> </el-table-column> <el-table-column prop="cumulativeThisMonth" label="当月累计" align="center"> </el-table-column> <el-table-column label="快速调整" fixe="right" align="center"> <template slot-scope="scope"> <el-button type="primary" @click.stop="toUpdateWindow(scope.row.wxId)" icon="el-icon-edit"></el-button> </template> </el-table-column> </el-table> <el-pagination @size-change="mainSizeChange2" @current-change="mainCurrentChange2" :current-page="table2.main.page" :page-sizes="[10, 20, 30, 40]" :page-size="table2.main.limit" layout="total, sizes, prev, pager, next, jumper" :total="table2.main.total"> </el-pagination> </el-row> </div> </el-col> <el-dialog :title="form.title" :visible.sync="table2.main.showForm"> <el-form ref="form" label-width="120px" style="width: 60%"> <el-form-item label="类型"> <el-input v-model="form.main.msgtype" placeholder="请输入类型(text=文本消息, image= 图片消息, link = 图文链接, miniprogrampage=小程序卡片"></el-input> </el-form-item> <el-form-item label="内容"> <el-input v-model="form.main.content" placeholder="请输入内容"></el-input> </el-form-item> <el-form-item label="微信文案"> <el-input v-model="form.main.wxWriter" placeholder="请输入微信文案"></el-input> </el-form-item> <el-form-item label="微信号"> <el-input v-model="form.main.remark" placeholder="请输入微信号"></el-input> </el-form-item> <el-form-item label="人数上限"> <el-input v-model="form.main.upperLimit" placeholder="请输入人数上限"></el-input> </el-form-item> <el-form-item label="关键字"> <el-input v-model="form.main.keyword" placeholder="请输入关键字"></el-input> </el-form-item> <el-form-item label="正常or无效"> <el-input v-model="form.main.status" placeholder="请输入(0:无效,1:正常)"></el-input> </el-form-item> <el-form-item label="是否默认自动回复的内容"> <el-input v-model="form.main.isDefault" placeholder="请输入是否默认(1:是,0:否)"></el-input> </el-form-item> <el-form-item label="轮换概率"> <el-input v-model="form.main.priority" placeholder="请输入轮换概率"></el-input> </el-form-item> <el-form-item label="图片"> <el-upload class="upload-demo" drag :headers="upload.uploadHeaders" :action="`${upload.baseURL}sys/oss/upload`" :limit="1" :on-success="imgUrlUploadSuccess"> <i class="el-icon-upload"></i> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> </el-upload> </el-form-item> <el-form-item label="微信二维码"> <el-upload class="upload-demo" drag :headers="upload1.uploadHeaders1" :action="`${upload.baseURL}sys/oss/upload`" :limit="1" :on-success="imgCodeUploadSuccess"> <i class="el-icon-upload"></i> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> </el-upload> </el-form-item> <el-form-item label="备注"> <el-input type="textarea" :rows="4" v-model="form.main.comment" placeholder="备注"></el-input> </el-form-item> <el-form-item label="H5地址"> <el-input type="textarea" :rows="4" v-model="form.main.wxUrl" placeholder="H5地址"></el-input> </el-form-item> <el-form-item> <el-button type="primary" @click="mainSaveOrUpdate">立即提交</el-button> <el-button @click="mainWindowClose">取消</el-button> </el-form-item> </el-form> </el-dialog> </el-row> </div>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。