Commit 2be41704 by 前端

bug修复

1 parent 5a9aabb8
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
getList() { getList() {
var params = { var params = {
goodsStatus: 1, goodsStatus: 1,
// goodsSource: 1, isActivityUsing: 1,
goodsSources: [1, 3], goodsSources: [1, 3],
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000,
......
...@@ -3,34 +3,21 @@ ...@@ -3,34 +3,21 @@
<div class="data-board-box"> <div class="data-board-box">
<p class="edit-title">数据看板</p> <p class="edit-title">数据看板</p>
<div class="p-20"> <div class="p-20">
<GLCombiForm ref="dataRef" <GLCombiForm ref="dataRef" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch"></GLCombiForm>
:rowNumber="1"
:formObj="searchForm"
:formData="searchFormData"
@handleOk="handleSearch"></GLCombiForm>
<div class="data-view"> <div class="data-view">
<template v-for="(item, index) in dataList"> <template v-for="(item, index) in dataList">
<div :key="index" <div :key="index" class="item">
class="item">
<div class="name"> <div class="name">
{{ item.name }} {{ item.name }}
<el-popover class="tips" <el-popover class="tips" placement="top" width="260" trigger="hover" :content="item.tips">
placement="top" <img slot="reference" class="tips-icon" src="@/components/glsx-combi-form/images/icon-tip.png" />
width="260"
trigger="hover"
:content="item.tips">
<img slot="reference"
class="tips-icon"
src="@/components/glsx-combi-form/images/icon-tip.png" />
</el-popover> </el-popover>
</div> </div>
<div class="value">{{ dataBoard[item.key] || 0 }}</div> <div class="value">{{ dataBoard[item.key] || 0 }}</div>
<template v-if="item.half"> <template v-if="item.half">
<div class="half"> <div class="half">
日环比: 日环比:
<div <div :class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]"></div>
:class="['icon', { up: dataBoard[item.half] > 0 }, { down: dataBoard[item.half] < 0 }]">
</div>
<span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span> <span class="num">{{ Math.abs(dataBoard[item.half]).toFixed(2) || 0 }}%</span>
</div> </div>
</template> </template>
...@@ -42,40 +29,17 @@ ...@@ -42,40 +29,17 @@
<div class="data-board-box"> <div class="data-board-box">
<p class="edit-title">员工排行榜</p> <p class="edit-title">员工排行榜</p>
<div class="p-20"> <div class="p-20">
<GLCombiForm ref="rankRef" <GLCombiForm ref="rankRef" :rowNumber="1" :formObj="searchRankForm" :formData="searchFormRankData" @handleOk="handleSearchRank"></GLCombiForm>
:rowNumber="1"
:formObj="searchRankForm"
:formData="searchFormRankData"
@handleOk="handleSearchRank"></GLCombiForm>
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title"></span> <span class="table-title"></span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('rank')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('rank')">导出</el-button>
</div> </div>
<GLTable ref="dataTableRef" <GLTable ref="dataTableRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :hasNum="false">
:getListApi="getListApi" <div slot="shareName" class="flex-align" slot-scope="scope">
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
:hasNum="false">
<div slot="shareName"
class="flex-align"
slot-scope="scope">
<template v-if="scope.scope.shareAvatar"> <template v-if="scope.scope.shareAvatar">
<el-popover placement="top" <el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
width="160" <img class="table-popover-img" :src="scope.scope.shareAvatar" />
trigger="hover" <img class="img-36 pointer" slot="reference" :src="scope.scope.shareAvatar" />
popper-class="table-popover-block">
<img class="table-popover-img"
:src="scope.scope.shareAvatar" />
<img class="img-36 pointer"
slot="reference"
:src="scope.scope.shareAvatar" />
</el-popover> </el-popover>
</template> </template>
<span class="m-l-10">{{ scope.scope.shareName }}</span> <span class="m-l-10">{{ scope.scope.shareName }}</span>
...@@ -89,32 +53,20 @@ ...@@ -89,32 +53,20 @@
<div class="p-20"> <div class="p-20">
<div class="flex m-b-10 w-100-percent"> <div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span> <span class="table-title">数据列表</span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('dailyOrders')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('dailyOrders')">导出</el-button>
</div> </div>
<el-table v-if="DailyOrderQuantityList.length" <el-table v-if="DailyOrderQuantityList.length" :data="DailyOrderQuantityListFormat" style="width: 100%">
:data="DailyOrderQuantityListFormat" <el-table-column :formatter="formatterHeader" label=""></el-table-column>
style="width: 100%">
<el-table-column :formatter="formatterHeader"
label=""></el-table-column>
<!-- width="140px" --> <!-- width="140px" -->
<el-table-column v-for="(item, index) in DailyOrderQuantityList" <el-table-column v-for="(item, index) in DailyOrderQuantityList" :key="index" :prop="item" :label="item.day">
:key="index"
:prop="item"
:label="item.day">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span> <span>{{ scope.$index ? item.currentOrderQuantity : item.specificDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :formatter="formatterEnd" <el-table-column :formatter="formatterEnd" fixed="right" label="总计"></el-table-column>
fixed="right"
label="总计"></el-table-column>
</el-table> </el-table>
<div v-else> <div v-else>
<img src="url" <img src="url" alt="" />
alt="" />
</div> </div>
</div> </div>
</div> </div>
...@@ -140,34 +92,19 @@ ...@@ -140,34 +92,19 @@
单 单
</span> </span>
</span> </span>
<el-button :size="size" <el-button :size="size" class="default-blue-btn" type="default" @click="handleExport('liveData')">导出</el-button>
class="default-blue-btn"
type="default"
@click="handleExport('liveData')">导出</el-button>
</div> </div>
<!-- :searchForm="tableSearchForm" --> <!-- :searchForm="tableSearchForm" -->
<GLTable ref="dataTableRefDetailPage" <GLTable ref="dataTableRefDetailPage" :getListApi="getLiveDetailPage" :noDataImg="url" :tableParams="liveTableParams" :searchForm="LiveTableSearchForm" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
:getListApi="getLiveDetailPage" <div slot="weChatName" class="flex-align" slot-scope="scope">
:noDataImg="url" <img v-if="scope.scope.avatar" class="img-36 pointer img-circle" :src="scope.scope.avatar" />
:tableParams="liveTableParams"
:searchForm="LiveTableSearchForm"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn">
<div slot="weChatName"
class="flex-align"
slot-scope="scope">
<img v-if="scope.scope.avatar"
class="img-36 pointer img-circle"
:src="scope.scope.avatar" />
<span class="m-l-10">{{ scope.scope.nickname }}</span> <span class="m-l-10">{{ scope.scope.nickname }}</span>
<span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span> <span v-if="!scope.scope.avatar && !scope.scope.nickname">-</span>
</div> </div>
<!-- <div slot="orderStatus" <div slot="orderStatus" slot-scope="scope">
slot-scope="scope"> <span :class="['table-circle', 'm-r-8', scope.scope.orderStatus == '已下单' ? 'back-green' : 'back-grey']"></span>
<span <span>{{ scope.scope.orderStatus ? scope.scope.orderStatus : '-' }}</span>
:class="['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"></span> </div>
<span>{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}</span>
</div> -->
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -186,7 +123,7 @@ const dataList = [ ...@@ -186,7 +123,7 @@ const dataList = [
{ name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' }, { name: '累计浏览量', key: 'totalBrowseCount', tips: '页面被浏览的总次数(一人多次访问计为多次)' },
{ name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' }, { name: '累计访客数', key: 'totalFansCount', tips: '访问页面的总人数(一人多次访问计为一次)' },
{ name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' } { name: '累计订单数', key: 'totalOrderCount', tips: '累计订单总数(只记录已付款的订单)' }
], ],
optionList = [ optionList = [
{ confId: '1', confName: '转发次数' }, { confId: '1', confName: '转发次数' },
{ confId: '2', confName: '访客总数' }, { confId: '2', confName: '访客总数' },
...@@ -332,7 +269,7 @@ export default { ...@@ -332,7 +269,7 @@ export default {
{ {
label: '订单状态', label: '订单状态',
prop: 'orderStatus', prop: 'orderStatus',
// addHtml: 'orderStatus', addHtml: 'orderStatus',
width: 160 width: 160
} }
] ]
...@@ -374,7 +311,7 @@ export default { ...@@ -374,7 +311,7 @@ export default {
...result ...result
} }
}) })
.catch(err => { }) .catch(err => {})
}, },
getDataBoardApi() { getDataBoardApi() {
// { activityId } = this.$route.query, // { activityId } = this.$route.query,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!