|
@@ -85,11 +85,13 @@
|
|
<div class="chooseItem" style="background: #A583F3;" @click="showDataType = 0;">各省排名</div>
|
|
<div class="chooseItem" style="background: #A583F3;" @click="showDataType = 0;">各省排名</div>
|
|
<div class="chooseItem" style="background: #24A8E8;" @click="showDataType = 2">城市排名</div>
|
|
<div class="chooseItem" style="background: #24A8E8;" @click="showDataType = 2">城市排名</div>
|
|
<div class="chooseItem" style="background: #617FF1;" @click="showDataType = 1">代理公司排名</div>
|
|
<div class="chooseItem" style="background: #617FF1;" @click="showDataType = 1">代理公司排名</div>
|
|
|
|
+ <div class="chooseItem" style="background: #617FF1;" @click="showDataType = 4">销售经理排名</div>
|
|
|
|
+ <div class="chooseItem" style="background: #617FF1;" @click="showDataType = 8">销售主管排名</div>
|
|
<div class="chooseItem" style="background: #25C1CA;" @click="showDataType = 3">政委战区排名</div>
|
|
<div class="chooseItem" style="background: #25C1CA;" @click="showDataType = 3">政委战区排名</div>
|
|
- <div class="chooseItem" style="background: #617FF1;" @click="showDataType = 4">销售排名</div>
|
|
|
|
<div class="chooseItem" style="background: #25C1CA;" @click="showDataType = 5">数据分析</div>
|
|
<div class="chooseItem" style="background: #25C1CA;" @click="showDataType = 5">数据分析</div>
|
|
<div class="chooseItem" style="background: #A583F3;" @click="showDataType = 6">往期对比</div>
|
|
<div class="chooseItem" style="background: #A583F3;" @click="showDataType = 6">往期对比</div>
|
|
<div class="chooseItem" style="background: #24A8E8;" @click="showDataType = 7">报名数据</div>
|
|
<div class="chooseItem" style="background: #24A8E8;" @click="showDataType = 7">报名数据</div>
|
|
|
|
+ <div class="chooseItem" style="background: #24A8E8;" @click="showDataType = 9">挑战管理</div>
|
|
</div>
|
|
</div>
|
|
<div v-show="showDataType === 0" class="header">
|
|
<div v-show="showDataType === 0" class="header">
|
|
<span>各省销售情况</span>
|
|
<span>各省销售情况</span>
|
|
@@ -136,13 +138,22 @@
|
|
<span>代理公司排名</span>
|
|
<span>代理公司排名</span>
|
|
</div>
|
|
</div>
|
|
<div v-show="showDataType === 1" class="table-wrapper table-wrapper-rank">
|
|
<div v-show="showDataType === 1" class="table-wrapper table-wrapper-rank">
|
|
- <el-table :data="rank" style="width: 100%" border>
|
|
|
|
|
|
+ <!-- <el-table :data="soldRank" style="width: 100%" border>
|
|
<el-table-column label="排名" type="index" align="center" :index="index => index + 1" />
|
|
<el-table-column label="排名" type="index" align="center" :index="index => index + 1" />
|
|
<el-table-column label="代理公司" prop="nickname" align="center" />
|
|
<el-table-column label="代理公司" prop="nickname" align="center" />
|
|
<el-table-column label="销售数量" prop="value" align="center" />
|
|
<el-table-column label="销售数量" prop="value" align="center" />
|
|
<el-table-column label="销售金额" prop="money" align="center" />
|
|
<el-table-column label="销售金额" prop="money" align="center" />
|
|
</el-table>
|
|
</el-table>
|
|
- <el-button id="more" plain style="width: 100%;" @click="more">{{ rank.length >= data.list5.length ? '没有更多了' : '查看更多' }}</el-button>
|
|
|
|
|
|
+ <el-button id="more" plain style="width: 100%;" @click="more">{{ rank.length >= data.list5.length ? '没有更多了' : '查看更多' }}</el-button> -->
|
|
|
|
+ <el-table :data="soldRank" border>
|
|
|
|
+ <el-table-column label="排名" type="index" align="center" :index="index => index + 1" />
|
|
|
|
+ <el-table-column label="昵称" prop="nickname" align="center" />
|
|
|
|
+ <el-table-column label="精装版" prop="hard" align="center" />
|
|
|
|
+ <el-table-column label="简约版" prop="simple" align="center" />
|
|
|
|
+ <el-table-column label="老人版" prop="old" align="center" />
|
|
|
|
+ <el-table-column label="合计数量" prop="num" align="center" />
|
|
|
|
+ <el-table-column label="合计金额" prop="money" align="center" />
|
|
|
|
+ </el-table>
|
|
</div>
|
|
</div>
|
|
<div v-show="showDataType === 2" class="header">
|
|
<div v-show="showDataType === 2" class="header">
|
|
<span>各级别城市销售情况</span>
|
|
<span>各级别城市销售情况</span>
|
|
@@ -191,7 +202,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<div v-show="showDataType === 4" class="header">
|
|
<div v-show="showDataType === 4" class="header">
|
|
- <span>销售排名</span>
|
|
|
|
|
|
+ <span>销售经理排名</span>
|
|
</div>
|
|
</div>
|
|
<div v-show="showDataType === 4" class="table-wrapper">
|
|
<div v-show="showDataType === 4" class="table-wrapper">
|
|
<el-table :data="soldRank" border>
|
|
<el-table :data="soldRank" border>
|
|
@@ -204,6 +215,20 @@
|
|
<el-table-column label="合计金额" prop="money" align="center" />
|
|
<el-table-column label="合计金额" prop="money" align="center" />
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-show="showDataType === 8" class="header">
|
|
|
|
+ <span>销售主管排名</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showDataType === 8" class="table-wrapper">
|
|
|
|
+ <el-table :data="soldRank" border>
|
|
|
|
+ <el-table-column label="排名" type="index" align="center" :index="index => index + 1" />
|
|
|
|
+ <el-table-column label="昵称" prop="nickname" align="center" />
|
|
|
|
+ <el-table-column label="精装版" prop="hard" align="center" />
|
|
|
|
+ <el-table-column label="简约版" prop="simple" align="center" />
|
|
|
|
+ <el-table-column label="老人版" prop="old" align="center" />
|
|
|
|
+ <el-table-column label="合计数量" prop="num" align="center" />
|
|
|
|
+ <el-table-column label="合计金额" prop="money" align="center" />
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
<div v-show="showDataType === 5" class="header">
|
|
<div v-show="showDataType === 5" class="header">
|
|
<span>数据分析</span>
|
|
<span>数据分析</span>
|
|
</div>
|
|
</div>
|
|
@@ -220,6 +245,7 @@
|
|
<div class="merge-item-item item">总人数</div>
|
|
<div class="merge-item-item item">总人数</div>
|
|
<div class="merge-item-item item">销售主管人数</div>
|
|
<div class="merge-item-item item">销售主管人数</div>
|
|
<div class="merge-item-item item">销售经理人数</div>
|
|
<div class="merge-item-item item">销售经理人数</div>
|
|
|
|
+ <div class="merge-item-item item">代理公司人数</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="scope.$index === 2" class="merge-item">
|
|
<div v-if="scope.$index === 2" class="merge-item">
|
|
<div class="merge-item-item item">销售数量</div>
|
|
<div class="merge-item-item item">销售数量</div>
|
|
@@ -228,13 +254,16 @@
|
|
<div v-if="scope.$index === 3" class="merge-item">
|
|
<div v-if="scope.$index === 3" class="merge-item">
|
|
<div class="merge-item-item item">销售主管</div>
|
|
<div class="merge-item-item item">销售主管</div>
|
|
<div class="merge-item-item item">销售经理</div>
|
|
<div class="merge-item-item item">销售经理</div>
|
|
|
|
+ <div class="merge-item-item item">代理公司</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="scope.$index === 4" class="merge-item">
|
|
<div v-if="scope.$index === 4" class="merge-item">
|
|
<div class="merge-item-item item">总人数</div>
|
|
<div class="merge-item-item item">总人数</div>
|
|
<div class="merge-item-item item">销售主管/报名人数</div>
|
|
<div class="merge-item-item item">销售主管/报名人数</div>
|
|
<div class="merge-item-item item">销售经理/报名人数</div>
|
|
<div class="merge-item-item item">销售经理/报名人数</div>
|
|
|
|
+ <div class="merge-item-item item">代理公司/报名人数</div>
|
|
<div class="merge-item-item item">销售主管/总人数</div>
|
|
<div class="merge-item-item item">销售主管/总人数</div>
|
|
<div class="merge-item-item item">销售经理/总人数</div>
|
|
<div class="merge-item-item item">销售经理/总人数</div>
|
|
|
|
+ <div class="merge-item-item item">代理公司/总人数</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -248,6 +277,7 @@
|
|
<div class="merge-item-item item">{{ scope.row.data.total }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.total }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.tj }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.tj }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.top }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.top }}</div>
|
|
|
|
+ <div class="merge-item-item item">{{ scope.row.data.crown }}</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="scope.$index === 2" class="merge-item">
|
|
<div v-if="scope.$index === 2" class="merge-item">
|
|
<div class="merge-item-item item">{{ scope.row.data.num }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.num }}</div>
|
|
@@ -256,13 +286,16 @@
|
|
<div v-if="scope.$index === 3" class="merge-item">
|
|
<div v-if="scope.$index === 3" class="merge-item">
|
|
<div class="merge-item-item item">{{ scope.row.data.tj }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.tj }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.top }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.top }}</div>
|
|
|
|
+ <div class="merge-item-item item">{{ scope.row.data.crown }}</div>
|
|
</div>
|
|
</div>
|
|
<div v-if="scope.$index === 4" class="merge-item">
|
|
<div v-if="scope.$index === 4" class="merge-item">
|
|
<div class="merge-item-item item">{{ scope.row.data.p1 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p1 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p2 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p2 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p3 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p3 }}</div>
|
|
|
|
+ <div class="merge-item-item item">{{ scope.row.data.p6 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p4 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p4 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p5 }}</div>
|
|
<div class="merge-item-item item">{{ scope.row.data.p5 }}</div>
|
|
|
|
+ <div class="merge-item-item item">{{ scope.row.data.p7 }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -284,6 +317,128 @@
|
|
<span>全国销售情况</span>
|
|
<span>全国销售情况</span>
|
|
</div>
|
|
</div>
|
|
<sold-line-chart v-if="lineChartData.old" :chart-data="lineChartData" /> -->
|
|
<sold-line-chart v-if="lineChartData.old" :chart-data="lineChartData" /> -->
|
|
|
|
+ <div v-show="showDataType === 9" class="header">
|
|
|
|
+ <span>挑战信息</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-show="showDataType === 9" class="table-wrapper table-wrapper5">
|
|
|
|
+ <el-table :data="challengeList" border>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="u_name"
|
|
|
|
+ label="挑战人昵称"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="u_phone"
|
|
|
|
+ label="挑战人手机号"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="challenge_total"
|
|
|
|
+ label="挑战人成绩"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="uu_name"
|
|
|
|
+ label="应战人昵称"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="uu_phone"
|
|
|
|
+ label="应战人手机号"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="accept_total"
|
|
|
|
+ label="应战人成绩"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="challenge_inte"
|
|
|
|
+ label="挑战获胜学分"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="是否结算"
|
|
|
|
+ align="center"
|
|
|
|
+ width="90"
|
|
|
|
+ >
|
|
|
|
+ <span slot-scope="{ row: { is_pay } }"> {{ +is_pay === 0 ? '未结算' : '已结算' }}</span>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="状态"
|
|
|
|
+ align="center"
|
|
|
|
+ width="90"
|
|
|
|
+ >
|
|
|
|
+ <span slot-scope="{ row: { challenge_status } }">{{ challengeType(challenge_status) }}</span>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="challenge_time"
|
|
|
|
+ label="挑战时间"
|
|
|
|
+ align="center"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="获胜方"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ <span slot-scope="{ row }">
|
|
|
|
+ {{ isWinner(row) }}
|
|
|
|
+ </span>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="查看详情"
|
|
|
|
+ align="center"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
+ <el-button :disabled="row.challenge_status === 0 || row.challenge_status === 3" type="primary" @click="handleInfo(row)">竞猜详情</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-pagination
|
|
|
|
+ style="margin: 20px 0"
|
|
|
|
+ background
|
|
|
|
+ :total="challengeTotal"
|
|
|
|
+ :page-size="challengeParams.page_size"
|
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ />
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="竞猜详情"
|
|
|
|
+ :visible.sync="challengeInfoShow"
|
|
|
|
+ :before-close="resetInfo"
|
|
|
|
+ >
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :span="12" class="info-header">
|
|
|
|
+ <span>挑战人: {{ challengeInfo.challenge_name }}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" class="info-header">
|
|
|
|
+ <span>应战人: {{ challengeInfo.accept_name }}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <p>支持人数: {{ challengeInfo.challenge_num }}</p>
|
|
|
|
+ <p>学分: {{ challengeInfo.challenge_total }}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <p>支持人数: {{ challengeInfo.accept_num }}</p>
|
|
|
|
+ <p>学分: {{ challengeInfo.accept_total }}</p>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <p>竞猜人: </p>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <p v-for="item in challengeInfo.challenge" :key="item.id">
|
|
|
|
+ {{ item.nickname }}
|
|
|
|
+ </p>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <p v-for="item in challengeInfo.accept" :key="item.id">
|
|
|
|
+ {{ item.nickname }}
|
|
|
|
+ </p>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -294,7 +449,7 @@ import DataScreen1 from '@/views/DataScreen1'
|
|
import SoldLineChart from '@/components/Charts/SoldLineChart'
|
|
import SoldLineChart from '@/components/Charts/SoldLineChart'
|
|
import ColumnarSoldChart from '@/components/Charts/ColumnarSoldChart'
|
|
import ColumnarSoldChart from '@/components/Charts/ColumnarSoldChart'
|
|
import Contrast from './Contrast/index'
|
|
import Contrast from './Contrast/index'
|
|
-import { dataSoldMap, dataSoldProvince, dataSoldProvinceChart, dataSoldCity, dataSoldRank, dataDataAna, dataWarRank } from '@/api/data'
|
|
|
|
|
|
+import { getChallenge, getChallengeInfo, dataSoldMap, dataSoldProvince, dataSoldProvinceChart, dataSoldCity, dataSoldRank, dataDataAna, dataWarRank } from '@/api/data'
|
|
export default {
|
|
export default {
|
|
name: 'DataScreen3',
|
|
name: 'DataScreen3',
|
|
components: { SoldLineChart, ColumnarSoldChart, DataScreen1, Contrast },
|
|
components: { SoldLineChart, ColumnarSoldChart, DataScreen1, Contrast },
|
|
@@ -317,7 +472,18 @@ export default {
|
|
{ name: '老人版销售量排名', value: 3 }
|
|
{ name: '老人版销售量排名', value: 3 }
|
|
],
|
|
],
|
|
dataAna: [],
|
|
dataAna: [],
|
|
- warRank: []
|
|
|
|
|
|
+ warRank: [],
|
|
|
|
+ challengeParams: {
|
|
|
|
+ page_index: 1,
|
|
|
|
+ page_size: 15,
|
|
|
|
+ challenge_name: '',
|
|
|
|
+ accept_name: '',
|
|
|
|
+ season: ''
|
|
|
|
+ },
|
|
|
|
+ challengeList: [],
|
|
|
|
+ challengeTotal: 0,
|
|
|
|
+ challengeInfo: {},
|
|
|
|
+ challengeInfoShow: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -363,9 +529,23 @@ export default {
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- } else if (n === 4 && this.soldRank.length === 0) {
|
|
|
|
|
|
+ } else if (n === 4 || n === 1 || n === 8) {
|
|
this._loading = this.$loading()
|
|
this._loading = this.$loading()
|
|
- dataSoldRank().then(({ data: { list }}) => {
|
|
|
|
|
|
+ let name
|
|
|
|
+ switch (+n) {
|
|
|
|
+ case 8:
|
|
|
|
+ name = '销售主管'
|
|
|
|
+ break
|
|
|
|
+ case 4:
|
|
|
|
+ name = '销售经理'
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ name = '代理公司'
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ dataSoldRank({
|
|
|
|
+ level_name: name
|
|
|
|
+ }).then(({ data: { list }}) => {
|
|
this._loading.close()
|
|
this._loading.close()
|
|
this.soldRank = list
|
|
this.soldRank = list
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -381,6 +561,18 @@ export default {
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ } else if (n === 9) {
|
|
|
|
+ this._loading = this.$loading()
|
|
|
|
+ getChallenge(this.challengeParams).then(res => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.challengeList = res.data.list
|
|
|
|
+ this.challengeTotal = res.data.total
|
|
|
|
+ }
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ this.$message.error('获取数据失败')
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
window.scrollTo(0, document.getElementsByClassName('chooseBar')[0].offsetTop)
|
|
@@ -401,6 +593,69 @@ export default {
|
|
clearInterval(this.timer)
|
|
clearInterval(this.timer)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ resetInfo() {
|
|
|
|
+ this.challengeInfoShow = false
|
|
|
|
+ this.challengeInfo = {}
|
|
|
|
+ },
|
|
|
|
+ async handleInfo(row) {
|
|
|
|
+ this._loading = this.$loading()
|
|
|
|
+ await getChallengeInfo({ id: row.id }).then(res => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.challengeInfo = res.data
|
|
|
|
+ this.challengeInfoShow = true
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.data)
|
|
|
|
+ }
|
|
|
|
+ }).catch(e => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ isWinner(row) {
|
|
|
|
+ if (!row.challenge_success_id && row.challenge_success_id !== 0) return '暂无'
|
|
|
|
+ if (row.challenge_success_id === 0) {
|
|
|
|
+ return '平局'
|
|
|
|
+ } else {
|
|
|
|
+ if (row.challenge_success_id === row.challenge_id) {
|
|
|
|
+ return row.u_name
|
|
|
|
+ } else {
|
|
|
|
+ return row.uu_name
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ challengeType(status) {
|
|
|
|
+ let out
|
|
|
|
+ switch (+status) {
|
|
|
|
+ case 0:
|
|
|
|
+ out = '未接受'
|
|
|
|
+ break
|
|
|
|
+ case 1:
|
|
|
|
+ out = '已接受'
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ out = '已结束'
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ out = '已拒绝'
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ return out
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange(page) { // 换页
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.challengeParams.page_index = page
|
|
|
|
+ this._loading = this.$loading()
|
|
|
|
+ getChallenge(this.challengeParams).then(res => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.challengeList = res.data.list
|
|
|
|
+ this.challengeTotal = res.data.total
|
|
|
|
+ }
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this._loading.close()
|
|
|
|
+ this.$message.error('获取数据失败')
|
|
|
|
+ })
|
|
|
|
+ },
|
|
more() {
|
|
more() {
|
|
const top = document.getElementById('more').offsetTop
|
|
const top = document.getElementById('more').offsetTop
|
|
this.rankIndex++
|
|
this.rankIndex++
|
|
@@ -471,9 +726,9 @@ export default {
|
|
省份:${params.name} <br />
|
|
省份:${params.name} <br />
|
|
排名:${params.dataIndex + 1} <br />
|
|
排名:${params.dataIndex + 1} <br />
|
|
总套数:${params.value} <br />
|
|
总套数:${params.value} <br />
|
|
- 精装版套数:${this.mapChartData[params.dataIndex].old} <br />
|
|
|
|
|
|
+ 精装版套数:${this.mapChartData[params.dataIndex].hard} <br />
|
|
简约版套数:${this.mapChartData[params.dataIndex].simple} <br />
|
|
简约版套数:${this.mapChartData[params.dataIndex].simple} <br />
|
|
- 老人版套数:${this.mapChartData[params.dataIndex].hard} <br />
|
|
|
|
|
|
+ 老人版套数:${this.mapChartData[params.dataIndex].old} <br />
|
|
`
|
|
`
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -742,4 +997,14 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .info-header {
|
|
|
|
+ padding: 10px 0;
|
|
|
|
+ background: #409EFF;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+
|
|
|
|
+ &:nth-last-of-type(1) {
|
|
|
|
+ // margin-left: 20px;
|
|
|
|
+ background: #67C23A;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|