Commit ef622ec5 authored by 黄奎's avatar 黄奎

页面修改

parent 7543f8a8
......@@ -129,7 +129,7 @@
<div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
separator="none" :data="data" :columns="columns" row-key="name">
<template v-slot:top="props">
<template v-slot:top>
<div class="col-2 q-table__title">课程报价表</div>
<q-space />
<div class="page-option">
......@@ -143,13 +143,13 @@
:icon="props.row.expand ? 'remove' : 'add'" />
</q-td>
<template v-for="col in props.cols">
<q-td v-if="col.name == 'CoverImg'">
<q-td v-if="col.name == 'CoverImg'" :key="col.name">
<q-img :src="col.value" spinner-color="white" style="height: 54px; max-width: 100px"
class="rounded-borders">
</q-img>
</q-td>
<q-td v-else-if="col.name == 'PreferentialList'" style="padding-right:0px">
<div v-for="x in col.value">
<q-td v-else-if="col.name == 'PreferentialList'" style="padding-right:0px" :key="col.name">
<div v-for="(x,index) in col.value" :key="index">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }}
</div>
......@@ -185,8 +185,8 @@
<div class="remark-font">暂无优惠政策</div>
</div>
</q-td>
<q-td v-else-if="col.name == 'PreferentialListSellCommission'" style="padding-right:0px;padding-left:0px">
<div v-for="x in col.value">
<q-td v-else-if="col.name == 'PreferentialListSellCommission'" style="padding-right:0px;padding-left:0px" :key="col.name">
<div v-for="(x,index) in col.value" :key="index">
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px"
:class="{'text-red':x.SaleCommissionType==1}" v-if="x.PriceDiscountType!=0">
{{x.SaleCommissionType==1?'¥':''}}{{x.SaleCommissionMoney}}{{x.SaleCommissionType==0?'%':''}}</div>
......@@ -198,8 +198,8 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name == 'PreferentialListB2BCommission'" style="padding-left:0px">
<div v-for="x in col.value">
<q-td v-else-if="col.name == 'PreferentialListB2BCommission'" style="padding-left:0px" :key="col.name">
<div v-for="(x,index) in col.value" :key="index">
<div class="border-bottom" style="padding-left: 16px" :class="{'text-red':x.B2BCommissionType==1}"
v-if="x.PriceDiscountType!=0">
{{x.B2BCommissionType==1?'¥':''}}{{x.B2BCommissionMoney}}{{x.B2BCommissionType==0?'%':''}}</div>
......@@ -212,8 +212,8 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name == 'TeacherList'">
<div v-for="x in col.value">
<q-td v-else-if="col.name == 'TeacherList'" :key="col.name">
<div v-for="(x,index) in col.value" :key="index">
<q-chip>
<q-avatar color="green-1" text-color="green">
<img :src="x.TeacherHead" v-if="x.TeacherHead" />
......@@ -223,7 +223,7 @@
</q-chip>
</div>
</q-td>
<q-td v-else-if="col.name=='CourseIntro'">
<q-td v-else-if="col.name=='CourseIntro'" :key="col.name">
<q-btn flat color="primary" label="查看详情" @click="showContentDialog(col.value)" />
</q-td>
<q-td v-else-if="col.name != 'CourseFeature'" :key="col.name" :props="props">
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment