Commit bc65bbc3 authored by 黄奎's avatar 黄奎
parents 1b4df366 67c9c961
<style></style> <style></style>
<template> <template>
<div> <div>
<el-collapse <el-collapse v-if="dayData && dayData.SubList && dayData.SubList.length > 0">
v-if="dayData && dayData.SubList && dayData.SubList.length > 0" <el-collapse-item v-for="(subItem, subIndex) in dayData.SubList" :key="subIndex" :name="subIndex">
>
<el-collapse-item
v-for="(subItem, subIndex) in dayData.SubList"
:key="subIndex"
:name="subIndex"
>
<template slot="title"> <template slot="title">
<div class="plan_Tdiv"> <div class="plan_Tdiv">
<span <span v-if="subItem.TimeStr === '早上'" class="commonTimeStr greenTime">{{ subItem.TimeStr }}</span>
v-if="subItem.TimeStr === '早上'" <span v-if="subItem.TimeStr === '下午'" class="commonTimeStr blueTime">{{ subItem.TimeStr }}</span>
class="commonTimeStr greenTime" <span v-if="subItem.TimeStr === '晚上'" class="commonTimeStr orangeTime">{{ subItem.TimeStr }}</span>
>{{ subItem.TimeStr }}</span <q-badge rounded color="orange" label="试听课" v-if="subItem.ClassType == 2"
> style="margin-left:5px;font-size:10px" />
<span <q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType == 3"
v-if="subItem.TimeStr === '下午'" style="margin-left:5px;font-size:10px" />
class="commonTimeStr blueTime"
>{{ subItem.TimeStr }}</span
>
<span
v-if="subItem.TimeStr === '晚上'"
class="commonTimeStr orangeTime"
>{{ subItem.TimeStr }}</span
>
<q-badge
rounded
color="orange"
label="试听课"
v-if="subItem.ClassType == 2"
style="margin-left:5px;font-size:10px"
/>
<q-badge
rounded
color="cyan-7"
label="预约课"
v-if="subItem.ClassType == 3"
style="margin-left:5px;font-size:10px"
/>
<span style="color:red;margin:0 5px;">{{ <span style="color:red;margin:0 5px;">{{
subItem.TeacherName subItem.TeacherName
}}</span> }}</span>
<span>[{{ subItem.RoomName }}]</span> <span>[{{ subItem.RoomName }}]</span>
<template <template v-if="
v-if="
subItem.ClassType == 3 && subItem.ClassType == 3 &&
subItem.AppointState == 1 && subItem.AppointState == 1 &&
isShowTag(subItem.GuestList, subItem.ScrollMinNum) isShowTag(subItem.GuestList, subItem.ScrollMinNum)
" ">
>
<q-badge color="red" rounded style="margin-left:5px;"> <q-badge color="red" rounded style="margin-left:5px;">
</q-badge> </q-badge>
...@@ -63,10 +33,7 @@ ...@@ -63,10 +33,7 @@
{{ subItem.StartTime }}-{{ subItem.EndTime }} {{ subItem.StartTime }}-{{ subItem.EndTime }}
</div> </div>
</div> </div>
<div <div class="plan_Inner" v-if="subItem.ClassName && subItem.ClassType !== 3">
class="plan_Inner"
v-if="subItem.ClassName && subItem.ClassType !== 3"
>
<div class="plan_LeftTitle">班级:</div> <div class="plan_LeftTitle">班级:</div>
<div class="plan_RightInner">{{ subItem.ClassName }}</div> <div class="plan_RightInner">{{ subItem.ClassName }}</div>
</div> </div>
...@@ -74,17 +41,11 @@ ...@@ -74,17 +41,11 @@
<div class="plan_LeftTitle">课程名称:</div> <div class="plan_LeftTitle">课程名称:</div>
<div class="plan_RightInner">{{ subItem.CourseName }}</div> <div class="plan_RightInner">{{ subItem.CourseName }}</div>
</div> </div>
<div <div class="plan_Inner" v-if="subItem.GuestList && subItem.GuestList.length > 0">
class="plan_Inner"
v-if="subItem.GuestList && subItem.GuestList.length > 0"
>
<div class="plan_LeftTitle">学生名称:</div> <div class="plan_LeftTitle">学生名称:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
<span <span style="margin-right:10px;" v-for="(tItem, tIndex) in subItem.GuestList"
style="margin-right:10px;" :key="tIndex">{{ tItem.GuestName }}
v-for="(tItem, tIndex) in subItem.GuestList"
:key="tIndex"
>{{ tItem.GuestName }}
<span v-if="tItem.AppointType == 2">(补)</span> <span v-if="tItem.AppointType == 2">(补)</span>
<span v-if="tItem.AppointType == 3">(重)</span> <span v-if="tItem.AppointType == 3">(重)</span>
</span> </span>
...@@ -99,11 +60,7 @@ ...@@ -99,11 +60,7 @@
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div <div class="plan_Inner" style="align-items:center;" v-if="subItem.CompleteProgress >= 0">
class="plan_Inner"
style="align-items:center;"
v-if="subItem.CompleteProgress >= 0"
>
<div class="plan_LeftTitle">课程进度:</div> <div class="plan_LeftTitle">课程进度:</div>
<div class="plan_RightInner"> <div class="plan_RightInner">
<el-progress :percentage="subItem.CompleteProgress"></el-progress> <el-progress :percentage="subItem.CompleteProgress"></el-progress>
...@@ -113,18 +70,10 @@ ...@@ -113,18 +70,10 @@
<template v-if="subItem.ClassType == 3"> <template v-if="subItem.ClassType == 3">
<div class="plan_Inner"> <div class="plan_Inner">
<div class="plan_LeftTitle">课程状态:</div> <div class="plan_LeftTitle">课程状态:</div>
<div <div class="plan_RightInner" style="color: rgb(239, 83, 80);" v-if="subItem.AppointState == 1">
class="plan_RightInner"
style="color: rgb(239, 83, 80);"
v-if="subItem.AppointState == 1"
>
待确认 待确认
</div> </div>
<div <div class="plan_RightInner" style="color: rgb(33, 186, 69);" v-if="subItem.AppointState == 2">
class="plan_RightInner"
style="color: rgb(33, 186, 69);"
v-if="subItem.AppointState == 2"
>
已确认 已确认
</div> </div>
</div> </div>
...@@ -133,8 +82,7 @@ ...@@ -133,8 +82,7 @@
<div class="plan_RightInner"> <div class="plan_RightInner">
<span style="color: rgb(33, 186, 69);">{{ <span style="color: rgb(33, 186, 69);">{{
subItem.ScrollMinNum subItem.ScrollMinNum
}}</span }}</span>
>
</div> </div>
</div> </div>
</template> </template>
...@@ -143,33 +91,34 @@ ...@@ -143,33 +91,34 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
dayData: { dayData: {
type: Object, type: Object,
default: null default: null
} }
}, },
components: {}, components: {},
data() { data() {
return {}; return {};
}, },
created() {}, created() {},
mounted() {}, mounted() {},
methods: { methods: {
isShowTag(arr, min) { isShowTag(arr, min) {
let n = 0; let n = 0;
arr.map(e => { arr.map(e => {
if (e.AppointType !== 3) { if (e.AppointType !== 3) {
n += 1; n += 1;
}
});
if (n < min) {
return true;
} else {
return false;
} }
});
if (n < min) {
return true;
} else {
return false;
} }
} }
} };
};
</script> </script>
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<!-- <div class="tab" :class="{'active-tab':tab==2}" @click="checkTab(2)">年度 <!-- <div class="tab" :class="{'active-tab':tab==2}" @click="checkTab(2)">年度
<div class='dot' v-show="tab==2"></div> <div class='dot' v-show="tab==2"></div>
</div> --> </div> -->
</div> </div>
<div> <div>
<el-date-picker v-model="msg.Month" value-format="yyyy-MM" size="small" :type="elDateType" style="width:110px" <el-date-picker v-model="msg.Month" value-format="yyyy-MM" size="small" :type="elDateType" style="width:110px"
...@@ -240,7 +239,7 @@ ...@@ -240,7 +239,7 @@
style: 'color: #A4A5B7', style: 'color: #A4A5B7',
}, { }, {
name: 'Rate', name: 'Rate',
label: '比例', label: '发放比例',
align: 'center', align: 'center',
field: "Rate", field: "Rate",
headerStyle: 'color: #A4A5B7;width: 100px', headerStyle: 'color: #A4A5B7;width: 100px',
......
This diff is collapsed.
...@@ -14,6 +14,15 @@ ...@@ -14,6 +14,15 @@
<q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType==3" style="margin-left:5px;font-size:10px"/> <q-badge rounded color="cyan-7" label="预约课" v-if="subItem.ClassType==3" style="margin-left:5px;font-size:10px"/>
<span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span> <span style="color:red;margin:0 5px;">{{subItem.TeacherName}}</span>
<span>[{{subItem.RoomName}}]</span> <span>[{{subItem.RoomName}}]</span>
<template v-if="
subItem.ClassType == 3 &&
subItem.AppointState == 1 &&
isShowTag(subItem.GuestList, subItem.ScrollMinNum)
">
<q-badge color="red" rounded style="margin-left:5px;">
</q-badge>
</template>
</div> </div>
</template> </template>
<div @click="goUrl(subItem)" style="cursor:pointer;"> <div @click="goUrl(subItem)" style="cursor:pointer;">
...@@ -73,6 +82,19 @@ ...@@ -73,6 +82,19 @@
id: item.Id id: item.Id
}); });
} }
},
isShowTag(arr, min) {
let n = 0;
arr.map(e => {
if (e.AppointType !== 3) {
n += 1;
}
});
if (n < min) {
return true;
} else {
return false;
}
} }
} }
} }
......
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