Commit 278c0635 authored by 黄奎's avatar 黄奎

页面修改

parent bcaac4ce
......@@ -28,6 +28,9 @@
<q-input filled stack-label :dense="false" v-model="objOption.Remark" style="margin-top: 20px" type="textarea"
class="col-12" label="备注" maxlength="300" />
</div>
<div class="row wrap" style="margin-top:5px;color:red;">
必须上传供应商合同才能上架.
</div>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white">
......
......@@ -18,7 +18,7 @@
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="CourseId"
option-label="CourseName" v-model="msg.CouseId" :options="ClassList" emit-value map-options label="学习课程" />
</div>
<div class="col-3">
<!-- <div class="col-3">
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
......@@ -29,6 +29,30 @@
</template>
</q-field>
</div>
</div> -->
<div class="col-3">
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="msg.StartTime" type="date" placeholder="开学日期" size="small" style="width:160px;border:none;" @change="resetSearch">
</el-date-picker>-
<el-date-picker v-model="msg.EndTime" type="date" placeholder="结束日期" size="small" style="width:160px;border:none;" @change="resetSearch">
</el-date-picker>
</template>
</q-field>
</div>
</div>
<div class="col-3">
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="msg.JoinStartTime" type="date" placeholder="报名截止日期" size="small" style="width:160px;border:none;" @change="resetSearch">
</el-date-picker>-
<el-date-picker v-model="msg.JoinEndTime" type="date" placeholder="报名截止日期" size="small" style="width:160px;border:none;" @change="resetSearch">
</el-date-picker>
</template>
</q-field>
</div>
</div>
</div>
</div>
......@@ -46,15 +70,24 @@
<div class="dline">
<div class="d1">
<div class="di-title">{{item.ClassName}}</div>
<div class="di-c" style="margin-top: 25px;"><img src="../../assets/images/administration/kezname.png"
alt="" style="width: 14px;height: 14px;margin-right: 5px;">{{item.CourseName}}</div>
<div class="di-c" style="margin-top: 25px;">
<img src="../../assets/images/administration/kezname.png" alt=""
style="width: 14px;height: 14px;margin-right: 5px;">{{item.CourseName}}</div>
<div class="di-c"><img src="../../assets/images/administration/period.png" alt=""
style="width: 14px;height: 14px;margin-right: 5px;">{{item.ClassHours?item.ClassHours:'0'}}课时</div>
</div>
<div class="d2">
<div class="row" style="align-items: center"> <span class="d2-n">带课老师</span><img :src="item.TeacherHead"
alt=""
style="width: 26px;height: 26px;border-radius: 4px;margin-right: 5px;color: #2961FE">{{item.TeacherName}}
<div class="row" style="align-items: center">
<span class="d2-n">带课老师</span>
<q-avatar rounded size="sm" v-if="item.TeacherHead&&item.TeacherHead!=''">
<img :src="item.TeacherHead" />
</q-avatar>
<q-avatar v-else rounded size="sm" color="teal-10" text-color="white" style="margin:0;padding:0;">
<template v-if="item.TeacherName&&item.TeacherName!=''">
{{item.TeacherName.substr(0,1)}}
</template>
</q-avatar>
{{item.TeacherName}}
</div>
<div><span class="d2-n">上课教室</span>{{item.RoomName}}</div>
<div><span class="d2-n">上课时间</span><span
......@@ -162,7 +195,7 @@
style="color:var(--q-color-negative);font-weight: bold">{{item.SurplusNum}}人</span></div>
</div>
<div class="d7">
<q-btn color="primary" label="立即下单" v-if="item.IsCanApply==1" style="display:none;" @click="placeAnorder(item)" />
<q-btn color="primary" label="立即下单" v-if="item.IsCanApply==1" @click="placeAnorder(item)" />
<div v-if="item.IsCanApply==0">
<img src="../../assets/images/administration/bmym.png" alt=""
style="width: 64px;height: 62px;margin-right: 15px" v-if="item.SurplusNum==0">
......@@ -172,7 +205,8 @@
</div>
</div>
<div class="d6 row">
<p style="color:var(--q-color-negative);font-weight: bold"><span style="color:#2D2D2D;">OP备注:</span>{{item.OutRemark}}</p>
<p style="color:var(--q-color-negative);font-weight: bold"><span
style="color:#2D2D2D;">OP备注:</span>{{item.OutRemark}}</p>
<div class="progress">
<q-linear-progress size="5px" color="#3FC4FF" :value="(item.OrderStudentCount/item.ClassPersion)"
rounded />
......@@ -254,6 +288,8 @@
CouseId: 0, //课程id
Teacher_Id: 0, //教师id
Q_CanApply: "0", //是否可以报名 1是
JoinStartTime: '', //报名截止日期开始
JoinEndTime: "", //报名截止日期结束
},
enrollMsg: {
ClassId: 0,
......@@ -286,7 +322,9 @@
var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
this.dateList[0] = year + '-' + month + '-' + day;
var currentDay=year + '-' + month + '-' + day;
//this.dateList[0] = currentDay;
this.msg.StartTime=currentDay
this.getList();
},
methods: {
......@@ -360,13 +398,14 @@
},
//获取菜单分页列表
getList() {
if (this.dateList && this.dateList.length > 0) {
this.msg.StartTime = this.dateList[0];
this.msg.EndTime = this.dateList[1];
} else {
this.msg.StartTime = '';
this.msg.EndTime = '';
}
// if (this.dateList && this.dateList.length > 0) {
// this.msg.StartTime = this.dateList[0];
// this.msg.EndTime = this.dateList[1];
// } else {
// this.msg.StartTime = '';
// this.msg.EndTime = '';
// }
this.loading = true;
getClassPruductList(this.msg).then(res => {
this.loading = 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