Commit ae59fa05 authored by zhengke's avatar zhengke

修改

parent c7b07312
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<div class="q-mt-md"> <div class="q-mt-md">
<q-table :pagination="pageInfo" no-data-label="暂无相关数据" flat <q-table :pagination="pageInfo" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-header-table sticky-right-column-table no-bottom-table" separator="none" class="sticky-header-table sticky-right-column-table no-bottom-table" separator="none"
:data="chosenCourses" :columns="columns" row-key="name"> :data="chosenCourses" :columns="columns" row-key="name">
<template v-slot:body-cell-DiscountRemark="props"> <template v-slot:body-cell-DiscountRemark="props">
<q-td :props="props" class="text-negative"> <q-td :props="props" class="text-negative">
...@@ -65,32 +65,33 @@ ...@@ -65,32 +65,33 @@
</template> </template>
<!--设置课程--> <!--设置课程-->
<template v-slot:body-cell-ClassId="props"> <template v-slot:body-cell-ClassId="props">
<span> <q-td>
<template v-if="props.row.ClassId>0"> <template v-if="props.row.ClassId>0">
{{props.row.ClassName}} {{props.row.ClassName}}
</template> </template>
<template v-else> <template v-else>
选择班级 选择班级
</template> </template>
</span>&nbsp; &nbsp;
<i class="iconfont icon-edit" @click.stop="setClass(props.row)" title="选择班级"> <i class="iconfont icon-edit" @click.stop="setClass(props.row)" title="选择班级">
<q-popup-proxy> <q-popup-proxy>
<q-banner v-if="isShowClass"> <q-banner v-if="isShowClass">
<div class="calenderDialog"> <div class="calenderDialog">
<div style="margin:10px 0 15px 0;">选择班级</div> <div style="margin:10px 0 15px 0;">选择班级</div>
<q-select standout="bg-primary text-white" option-value="ClassId" option-label="ClassName" <q-select standout="bg-primary text-white" option-value="ClassId" option-label="ClassName"
v-model="props.row.ClassId" :options="props.row.ClassList" emit-value map-options label="班级" v-model="props.row.ClassId" :options="props.row.ClassList" emit-value map-options label="班级"
@input="changeClass(props.row)" /> @input="changeClass(props.row)" />
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowClass=true" <q-btn label="取消" flat color="grey-10" @click="isShowClass=false"
style="font-weight:400 !important" /> style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" <q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important"
@click="isShowClass=false" /> @click="isShowClass=false" />
</q-card-actions> </q-card-actions>
</div> </div>
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</i> </i>
</q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<div>&nbsp;</div> <div>&nbsp;</div>
......
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