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">
......
......@@ -18,7 +18,7 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name" :visible-columns="visibleColumns">
<template v-slot:top="props">
<template v-slot:top>
<div class="col-2 q-table__title">就业信息</div>
<q-space />
<div class="page-option">
......@@ -31,15 +31,14 @@
<q-btn size="sm" color="accent" round dense @click="props.row.expand = !props.row.expand"
:icon="props.row.expand ? 'remove' : 'add'" />
</q-td>
<template v-for="col in props.cols">
<q-td v-if="col.name == 'ProductTypeName'" style="width:100px;">
{{col.value}}
<q-td key="ProductTypeName" :props="props" style="width:100px;">
{{props.row.ProductTypeName}}
</q-td>
<q-td v-if="col.name == 'Name'" style="width:200px;">
{{col.value}}
<q-td key="Name" :props="props" style="width:100px;">
{{props.row.Name}}
</q-td>
<q-td v-else-if="col.name == 'SupplierName'">
<div>{{col.value}}</div>
<q-td key="SupplierName" :props="props">
<div>{{props.row.SupplierName}}</div>
<div>
<a :href="props.row.SupplierContract" style="color:#2961FE;text-decoration:none;"
v-if="props.row.SupplierContract && isHaveViewContractAction" target="_blank">
......@@ -47,20 +46,20 @@
</a>
</div>
</q-td>
<q-td v-if="col.name=='StudyCountryName'">
{{col.value}}
<q-td key="StudyCountryName" :props="props">
{{props.row.StudyCountryName}}
</q-td>
<q-td v-if="col.name=='SchoolName'">
{{col.value}}
<q-td key="SchoolName" :props="props">
{{props.row.SchoolName}}
</q-td>
<q-td v-if="col.name=='SuggestPrice'">
{{col.value}}
<q-td key="SuggestPrice" :props="props">
{{props.row.SuggestPrice}}
</q-td>
<q-td v-if="col.name=='SellPrice'">
{{col.value}}
<q-td key="SellPrice" :props="props">
{{props.row.SellPrice}}
</q-td>
<q-td v-if="col.name == 'PreferentialList'" style="padding-right:0px">
<div v-for="x in col.value">
<q-td key="PreferentialList" style="padding-right:0px">
<div v-for="(x,index) in props.row.PreferentialList" :key="index">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }}
</div>
......@@ -93,12 +92,12 @@
暂无优惠政策
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div v-if="! props.row.PreferentialList || props.row.PreferentialList.length == 0">
<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 key="PreferentialListSellCommission" style="padding-right:0px;padding-left:0px">
<div v-for="(x,index) in props.row.PreferentialListSellCommission" :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 ? "¥" : ""
......@@ -109,14 +108,15 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div
v-if="!props.row.PreferentialListSellCommission || props.row.PreferentialListSellCommission.length == 0">
<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">
<div class="border-bottom" style="padding-left: 16px"
:class="{ 'text-red': x.B2BCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
<q-td key="PreferentialListB2BCommission" style="padding-left:0px">
<div v-for="(x,index) in props.row.PreferentialListB2BCommission" :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 ? "%" : "" }}
......@@ -125,14 +125,15 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div
v-if="!props.row.PreferentialListB2BCommission || props.row.PreferentialListB2BCommission.length == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name=='EducationCommission'" style="padding-left:0px">
<div v-for="x in col.value">
<div class="border-bottom" style="padding-left: 16px"
:class="{ 'text-red': x.EduCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
<q-td key="EducationCommission" style="padding-left:0px">
<div v-for="(x,index) in props.row.EducationCommission" :key="index">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.EduCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{ x.EduCommissionType == 1 ? "¥" : ""
}}{{ x.EduCommissionMoney
}}{{ x.EduCommissionType == 0 ? "%" : "" }}
......@@ -141,19 +142,20 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div v-if="!props.row.EducationCommission || props.row.EducationCommission.length == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name=='SaleStateName'">
<q-td key="SaleStateName">
<template v-if="props.row.SaleState==1">
{{col.value}}
{{props.row.SaleStateName}}
</template>
<template v-if="props.row.SaleState!=1">
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息"> {{col.value}}</a>
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息">
{{props.row.SaleStateName}}</a>
</template>
</q-td>
<q-td v-else-if="col.name == 'Id'" style="width:200px;">
<q-td key="Id" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditStudy(props.row)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
......@@ -198,7 +200,6 @@
</q-list>
</q-btn-dropdown>
</q-td>
</template>
</q-tr>
<q-tr v-show="props.row.expand" :props="props">
<q-td colspan="100%" class="bg-grey-2">
......
......@@ -18,7 +18,7 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name" :visible-columns="visibleColumns">
<template v-slot:top="props">
<template v-slot:top>
<div class="col-2 q-table__title">留学信息</div>
<q-space />
<div class="page-option">
......@@ -31,36 +31,35 @@
<q-btn size="sm" color="accent" round dense @click="props.row.expand = !props.row.expand"
:icon="props.row.expand ? 'remove' : 'add'" />
</q-td>
<template v-for="col in props.cols">
<q-td v-if="col.name == 'ProductTypeName'" style="width:100px;">
{{col.value}}
<q-td key="ProductTypeName" :props="props" style="width:100px;">
{{props.row.ProductTypeName}}
</q-td>
<q-td v-if="col.name == 'Name'" style="width:200px;">
{{col.value}}
<q-td key="Name" :props="props" style="width:100px;">
{{props.row.Name}}
</q-td>
<q-td v-else-if="col.name == 'SupplierName' ">
<div>{{col.value}}</div>
<q-td key="SupplierName" :props="props">
<div>{{props.row.SupplierName}}</div>
<div>
<a :href="props.row.SupplierContract" style="color:#2961FE;text-decoration:none;"
v-if="props.row.SupplierContract&& isHaveViewContractAction" target="_blank">
v-if="props.row.SupplierContract && isHaveViewContractAction" target="_blank">
查看合同
</a>
</div>
</q-td>
<q-td v-if="col.name=='StudyCountryName'">
{{col.value}}
<q-td key="StudyCountryName" :props="props">
{{props.row.StudyCountryName}}
</q-td>
<q-td v-if="col.name=='SchoolName'">
{{col.value}}
<q-td key="SchoolName" :props="props">
{{props.row.SchoolName}}
</q-td>
<q-td v-if="col.name=='SuggestPrice'">
{{col.value}}
<q-td key="SuggestPrice" :props="props">
{{props.row.SuggestPrice}}
</q-td>
<q-td v-if="col.name=='SellPrice'">
{{col.value}}
<q-td key="SellPrice" :props="props">
{{props.row.SellPrice}}
</q-td>
<q-td v-if="col.name == 'PreferentialList'" style="padding-right:0px">
<div v-for="x in col.value">
<q-td key="PreferentialList" style="padding-right:0px">
<div v-for="(x,index) in props.row.PreferentialList" :key="index">
<div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }}
</div>
......@@ -93,12 +92,12 @@
暂无优惠政策
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div v-if="! props.row.PreferentialList || props.row.PreferentialList.length == 0">
<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 key="PreferentialListSellCommission" style="padding-right:0px;padding-left:0px">
<div v-for="(x,index) in props.row.PreferentialListSellCommission" :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 ? "¥" : ""
......@@ -109,14 +108,15 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div
v-if="!props.row.PreferentialListSellCommission || props.row.PreferentialListSellCommission.length == 0">
<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">
<div class="border-bottom" style="padding-left: 16px"
:class="{ 'text-red': x.B2BCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
<q-td key="PreferentialListB2BCommission" style="padding-left:0px">
<div v-for="(x,index) in props.row.PreferentialListB2BCommission" :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 ? "%" : "" }}
......@@ -125,14 +125,15 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div
v-if="!props.row.PreferentialListB2BCommission || props.row.PreferentialListB2BCommission.length == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name=='EducationCommission'" style="padding-left:0px">
<div v-for="x in col.value">
<div class="border-bottom" style="padding-left: 16px"
:class="{ 'text-red': x.EduCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
<q-td key="EducationCommission" style="padding-left:0px">
<div v-for="(x,index) in props.row.EducationCommission" :key="index">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.EduCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{ x.EduCommissionType == 1 ? "¥" : ""
}}{{ x.EduCommissionMoney
}}{{ x.EduCommissionType == 0 ? "%" : "" }}
......@@ -141,19 +142,20 @@
<div class="remark-font">暂无佣金信息</div>
</div>
</div>
<div v-if="!col.value || col.value.length == 0">
<div v-if="!props.row.EducationCommission || props.row.EducationCommission.length == 0">
<div class="remark-font">暂无佣金信息</div>
</div>
</q-td>
<q-td v-else-if="col.name=='SaleStateName'">
<q-td key="SaleStateName">
<template v-if="props.row.SaleState==1">
{{col.value}}
{{props.row.SaleStateName}}
</template>
<template v-if="props.row.SaleState!=1">
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息"> {{col.value}}</a>
<a style="cursor:pointer;color:blue;" @click="ShowInfo(props.row)" title="点击查看审核信息">
{{props.row.SaleStateName}}</a>
</template>
</q-td>
<q-td v-else-if="col.name == 'Id'" style="width:200px;">
<q-td key="Id" style="width:200px;">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditStudy(props.row)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
......@@ -198,7 +200,6 @@
</q-list>
</q-btn-dropdown>
</q-td>
</template>
</q-tr>
<q-tr v-show="props.row.expand" :props="props">
<q-td colspan="100%" class="bg-grey-2">
......
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