Commit da67d706 authored by 黄奎's avatar 黄奎

学员学习调整

parent 44365e3c
...@@ -5,16 +5,17 @@ ...@@ -5,16 +5,17 @@
<template v-if="saveObj==2"> <template v-if="saveObj==2">
<div class="row q-col-gutter-md"> <div class="row q-col-gutter-md">
<q-input class="col-6" filled v-model="SaveMsg.StudyValue" dense label="时间"></q-input> <q-input class="col-6" filled v-model="SaveMsg.StudyValue" dense label="时间"></q-input>
<q-input class="col-6" filled v-model="SaveMsg.Words" type="number" dense label="单词背诵"></q-input> <q-input class="col-6" filled v-model="SaveMsg.Words" maxlength="180" dense label="单词背诵"></q-input>
</div> </div>
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
<q-input class="col-6" filled v-model="SaveMsg.Practice" type="number" dense label="练习题"></q-input> <q-input class="col-6" filled v-model="SaveMsg.Practice" maxlength="180" dense label="练习题"></q-input>
<q-input class="col-6" filled v-model="SaveMsg.ReadingAloud" type="number" dense label="朗读/背诵"></q-input> <q-input class="col-6" filled v-model="SaveMsg.ReadingAloud" maxlength="180" dense label="朗读/背诵"></q-input>
</div> </div>
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
<p>其他 <i class="el-icon-plus text-blue cursor-pointer" @click="SetStudentStudyOther"></i></p> <q-input class="col-6" filled v-model="SaveMsg.Other" maxlength="180" dense label="其他"></q-input>
<!-- <p>其他 <i class="el-icon-plus text-blue cursor-pointer" @click="SetStudentStudyOther"></i></p> -->
</div> </div>
<template v-if='SaveMsg.Other&& SaveMsg.Other.length>0'> <!-- <template v-if='SaveMsg.Other&& SaveMsg.Other.length>0'>
<div class="q-mt-xs row q-col-gutter-md" v-for=" ( itemOther, indexOther ) in SaveMsg.Other " <div class="q-mt-xs row q-col-gutter-md" v-for=" ( itemOther, indexOther ) in SaveMsg.Other "
:key="indexOther"> :key="indexOther">
<q-input class="col-6" placeholder="请输入项目名称" filled v-model="itemOther.Name" autofocus :dense="true" /> <q-input class="col-6" placeholder="请输入项目名称" filled v-model="itemOther.Name" autofocus :dense="true" />
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
<i class="el-icon-delete text-blue cursor-pointer col-2" @click="DelStudentStudyOther(indexOther)" <i class="el-icon-delete text-blue cursor-pointer col-2" @click="DelStudentStudyOther(indexOther)"
style="margin-top:11px;"></i> style="margin-top:11px;"></i>
</div> </div>
</template> </template> -->
</template> </template>
<template v-if="saveObj==3"> <template v-if="saveObj==3">
<div class="q-mt-xs row q-col-gutter-md"> <div class="q-mt-xs row q-col-gutter-md">
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
Words: '', Words: '',
Practice: '', Practice: '',
ReadingAloud: '', ReadingAloud: '',
Other: [], Other: '',
ChapterId: 0, ChapterId: 0,
StudyType: 0, StudyType: 0,
Remarks: '到勤情况:\n课堂表现:\n作业情况:\n评价建议:', Remarks: '到勤情况:\n课堂表现:\n作业情况:\n评价建议:',
...@@ -104,15 +105,13 @@ ...@@ -104,15 +105,13 @@
this.SaveMsg.GuestId = this.BaseInfo.GuestId; this.SaveMsg.GuestId = this.BaseInfo.GuestId;
this.SaveMsg.OrderId = this.BaseInfo.OrderId; this.SaveMsg.OrderId = this.BaseInfo.OrderId;
if (this.saveObj == 3) { if (this.saveObj == 3) {
this.SaveMsg.Words = 0; this.SaveMsg.Words = '';
this.SaveMsg.Practice = 0; this.SaveMsg.Practice = '';
this.SaveMsg.ReadingAloud = 0; this.SaveMsg.ReadingAloud = '';
this.SaveMsg.ChapterId = 0; this.SaveMsg.ChapterId = 0;
this.SaveMsg.Other = ''; this.SaveMsg.Other = '';
} } else {
else this.SaveMsg.Remarks = '';
{
this.SaveMsg.Remarks='';
} }
this.SaveMsg.StudyType = this.saveObj; this.SaveMsg.StudyType = this.saveObj;
SetStuStudyInfo(this.SaveMsg).then(res => { SetStuStudyInfo(this.SaveMsg).then(res => {
...@@ -143,10 +142,10 @@ ...@@ -143,10 +142,10 @@
this.SaveMsg.ClassScrollType = 0; this.SaveMsg.ClassScrollType = 0;
this.SaveMsg.OrderId = 0; this.SaveMsg.OrderId = 0;
this.SaveMsg.StudyID = 0; this.SaveMsg.StudyID = 0;
this.SaveMsg.Words = 0; this.SaveMsg.Words = '';
this.SaveMsg.Practice = 0; this.SaveMsg.Practice = '';
this.SaveMsg.ReadingAloud = 0; this.SaveMsg.ReadingAloud = '';
this.SaveMsg.Other = []; this.SaveMsg.Other = '';
this.SaveMsg.ChapterId = 0; this.SaveMsg.ChapterId = 0;
this.SaveMsg.StudyType = 0; this.SaveMsg.StudyType = 0;
this.SaveMsg.Remarks = '到勤情况:\n课堂表现:\n作业情况:\n评价建议:'; this.SaveMsg.Remarks = '到勤情况:\n课堂表现:\n作业情况:\n评价建议:';
......
...@@ -242,9 +242,9 @@ ...@@ -242,9 +242,9 @@
this.SaveMsg.GuestId = this.BaseInfo.GuestId; this.SaveMsg.GuestId = this.BaseInfo.GuestId;
this.SaveMsg.OrderId = this.BaseInfo.OrderId; this.SaveMsg.OrderId = this.BaseInfo.OrderId;
this.SaveMsg.StudyID = obj.StudyID; this.SaveMsg.StudyID = obj.StudyID;
this.SaveMsg.Practice = 0; this.SaveMsg.Practice = "";
this.SaveMsg.ReadingAloud = 0; this.SaveMsg.ReadingAloud = "";
this.SaveMsg.Words = 0; this.SaveMsg.Words = "";
this.SaveMsg.Other = ''; this.SaveMsg.Other = '';
this.SaveMsg.Remarks = obj.Remarks; this.SaveMsg.Remarks = obj.Remarks;
this.SaveMsg.StudyValue = obj.ClassDate; this.SaveMsg.StudyValue = obj.ClassDate;
...@@ -284,10 +284,10 @@ ...@@ -284,10 +284,10 @@
this.SaveMsg.ClassScrollType = 0; this.SaveMsg.ClassScrollType = 0;
this.SaveMsg.OrderId = 0; this.SaveMsg.OrderId = 0;
this.SaveMsg.StudyID = 0; this.SaveMsg.StudyID = 0;
this.SaveMsg.Words = 0; this.SaveMsg.Words = "";
this.SaveMsg.Practice = 0; this.SaveMsg.Practice = "";
this.SaveMsg.ReadingAloud = 0; this.SaveMsg.ReadingAloud = "";
this.SaveMsg.Other = []; this.SaveMsg.Other = "";
this.SaveMsg.ChapterId = 0; this.SaveMsg.ChapterId = 0;
this.SaveMsg.StudyType = 0; this.SaveMsg.StudyType = 0;
this.SaveMsg.Remarks = ''; this.SaveMsg.Remarks = '';
......
...@@ -94,42 +94,24 @@ ...@@ -94,42 +94,24 @@
<span v-else> {{ item.ClassDate }}</span> <span v-else> {{ item.ClassDate }}</span>
</td> </td>
<td> <td>
<q-input v-if="Edit.index==index" placeholder="请输入单词分数" type="number" v-model="item.Words" <q-input v-if="Edit.index==index" placeholder="请输入单词分数" maxlength="180" v-model="item.Words"
:dense="true" /> :dense="true" />
<span v-else> {{ item.Words }}</span> <span v-else> {{ item.Words }}</span>
</td> </td>
<td> <td>
<q-input v-if="Edit.index==index" placeholder="请输入练习题分数" type="number" v-model="item.Practice" <q-input v-if="Edit.index==index" placeholder="请输入练习题分数" maxlength="180" v-model="item.Practice"
:dense="true" /> :dense="true" />
<span v-else> {{ item.Practice }}</span> <span v-else> {{ item.Practice }}</span>
</td> </td>
<td> <td>
<q-input v-if="Edit.index==index" placeholder="请输入朗读/背诵分数" type="number" v-model="item.ReadingAloud" <q-input v-if="Edit.index==index" placeholder="请输入朗读/背诵分数" maxlength="180" v-model="item.ReadingAloud"
:dense="true" /> :dense="true" />
<span v-else> {{ item.ReadingAloud }}</span> <span v-else> {{ item.ReadingAloud }}</span>
</td> </td>
<td> <td>
<div> <q-input v-if="Edit.index==index" placeholder="请输入其他内容" maxlength="180" v-model="item.Other"
<i v-if="Edit.index==index" class="el-icon-plus text-blue cursor-pointer" style="margin-bottom:5px;" :dense="true" />
@click="SetStudentStudyOther(index)"></i> <span v-else> {{ item.Other }}</span>
<template v-if='item.Other&& item.Other.length>0'>
<div v-for=" ( itemOther, indexOther ) in item.Other " :key="indexOther">
<template v-if="Edit.index==index">
<div class="row ">
<q-input class="col-6" style="width:100px;" placeholder="请输入项目名称" v-model="itemOther.Name"
:dense="true" />&nbsp;
<q-input class="col-4" style="width:80px;" placeholder="请输入项目分数" v-model="itemOther.Score"
type="number" :dense="true" />
<i class="el-icon-delete text-blue cursor-pointer col-2"
@click="DelStudentStudyOther(item,index,indexOther)" style="margin-top:11px;"></i>
</div>
</template>
<p v-else>
{{itemOther.Name}}:{{itemOther.Score}}
</p>
</div>
</template>
</div>
</td> </td>
<td> <td>
<div class="text-blue cursor-pointer"> <div class="text-blue cursor-pointer">
...@@ -222,10 +204,10 @@ ...@@ -222,10 +204,10 @@
ClassScrollType: 0, ClassScrollType: 0,
OrderId: 0, OrderId: 0,
StudyID: 0, StudyID: 0,
Words: 0, Words: "",
Practice: 0, Practice: "",
ReadingAloud: 0, ReadingAloud: "",
Other: [], Other: "",
ChapterId: 0, ChapterId: 0,
StudyType: 0, StudyType: 0,
Remarks: '', Remarks: '',
...@@ -334,10 +316,10 @@ ...@@ -334,10 +316,10 @@
this.SaveMsg.ClassScrollType = 0, this.SaveMsg.ClassScrollType = 0,
this.SaveMsg.OrderId = 0, this.SaveMsg.OrderId = 0,
this.SaveMsg.StudyID = 0, this.SaveMsg.StudyID = 0,
this.SaveMsg.Words = 0, this.SaveMsg.Words = "",
this.SaveMsg.Practice = 0, this.SaveMsg.Practice = "",
this.SaveMsg.ReadingAloud = 0, this.SaveMsg.ReadingAloud = "",
this.SaveMsg.Other = [], this.SaveMsg.Other = "",
this.SaveMsg.ChapterId = 0, this.SaveMsg.ChapterId = 0,
this.SaveMsg.StudyType = 0, this.SaveMsg.StudyType = 0,
this.SaveMsg.Remarks = '', this.SaveMsg.Remarks = '',
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<th width="80">金额</th> <th width="80">金额</th>
<th style="min-width:250px;">基本情况</th> <th style="min-width:250px;">基本情况</th>
<th width="200">续费课程</th> <th width="200">续费课程</th>
<th width="80">续费级别</th> <!-- <th width="80">续费级别</th> -->
<th width="80">续费金额</th> <th width="80">续费金额</th>
<th width="80">最新进度</th> <th width="80">最新进度</th>
<th width="90">负责人</th> <th width="90">负责人</th>
...@@ -153,12 +153,12 @@ ...@@ -153,12 +153,12 @@
<span>{{sItem.CourseName}}</span> <span>{{sItem.CourseName}}</span>
</div> </div>
</td> </td>
<td> <!-- <td>
<div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;" <div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;"
:key="sIndex+40000"> :key="sIndex+40000">
<span>{{ sItem.CourseRateName?sItem.CourseRateName:'-' }}</span> <span>{{ sItem.CourseRateName?sItem.CourseRateName:'-' }}</span>
</div> </div>
</td> </td> -->
<td> <td>
<div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;" <div v-for="(sItem,sIndex) in item.RenewOrderList" style="border-bottom:1px dashed #d1d1d1;"
:key="sIndex+50000"> :key="sIndex+50000">
......
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