Commit 20fc2cfa authored by zhengke's avatar zhengke

修改

parent df524dfb
...@@ -25,12 +25,45 @@ ...@@ -25,12 +25,45 @@
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-DetailsList="props">
<q-td auto-width :props="props">
<template v-if="props.row.DetailsList">
<template v-if="props.row.DetailsList.length==1">
{{props.row.DetailsList[0].TargetName}}
</template>
<template v-if="props.row.DetailsList.length>1">
{{props.row.DetailsList[0].TargetName}}
<span class="otherTask">
{{props.row.DetailsList.length}}
<q-popup-proxy>
<q-banner>
<table class="saleTaskTable" style="border-collapse:collapse;">
<tr>
<th>课程名称</th>
</tr>
<tr v-for="(sItem,sIndex) in props.row.DetailsList" :key="sIndex"
style="border-bottom:1px dashed #d1d1d1;">
<td>{{sItem.TargetName}}</td>
</tr>
</table>
</q-banner>
</q-popup-proxy>
</span>
</template>
<template v-if="props.row.DetailsList.length==0">
</template>
</template>
</q-td>
</template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td> <q-td>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditTask(props.row)" /> @click="EditTask(props.row)" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
label="删除" @click="RemoveTask(props.row.Id)" /> @click="RemoveTask(props.row.Id)" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -81,6 +114,12 @@ ...@@ -81,6 +114,12 @@
field: 'TaskStartTimeStr', field: 'TaskStartTimeStr',
align: 'left', align: 'left',
}, },
{
name: 'DetailsList',
label: '关联其他课程',
field: 'DetailsList',
align: 'left',
},
{ {
name: 'CreateByName', name: 'CreateByName',
label: '创建人', label: '创建人',
...@@ -186,6 +225,30 @@ ...@@ -186,6 +225,30 @@
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
<style lang="scss">
.otherTask {
display: inline-block;
width: 25px;
height: 25px;
text-align: center;
line-height: 25px;
border: 1px solid #2961FE;
border-radius: 50%;
cursor: pointer;
color: #2961FE;
}
.saleTaskTable {
width: 400px;
text-align: center;
}
.saleTaskTable tr td {
height: 40px;
}
.saleTaskTable tr th {
height: 40px;
background-color: rgb(238, 238, 239);
}
</style> </style>
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