mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
讲师管理bug
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
@click="cancelTeacherDialog"
|
||||
/>
|
||||
</div>
|
||||
<div ref="drawerContent" id="drawerScorll" style="padding-left: 40px;padding-right: 158px;">
|
||||
<div ref="drawerContent" style="padding-left: 15px;padding-right: 158px;">
|
||||
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
@@ -200,7 +200,7 @@
|
||||
<a-form-item label="初始授课时长" name="defaultTeachingTime">
|
||||
<a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; "
|
||||
:maxLength="8"
|
||||
@change="clearNonNumber" placeholder="0" allowClear suffix="分钟">
|
||||
@change="clearNonNumber" placeholder="请输入初始授课时长" allowClear suffix="分钟">
|
||||
</a-input>
|
||||
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span>
|
||||
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime != null">{{
|
||||
@@ -1580,8 +1580,8 @@ export default {
|
||||
height: 112px;
|
||||
}
|
||||
::v-deep .ant-upload.ant-upload-select-picture-card{
|
||||
width: 200px;
|
||||
height: 112px;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
.i_upload {
|
||||
width: 200px;
|
||||
@@ -1742,6 +1742,8 @@ export default {
|
||||
}
|
||||
::v-deep .ant-upload.ant-upload-select-picture-card {
|
||||
border-radius: 50% !important;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.add_content {
|
||||
@@ -1764,6 +1766,7 @@ export default {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
// overflow: auto;
|
||||
.add_item{
|
||||
padding: 0 10px;
|
||||
@@ -2064,8 +2067,8 @@ export default {
|
||||
text-align: center;
|
||||
|
||||
.i_upload_img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,23 +27,23 @@
|
||||
</div>
|
||||
</a-form-item>
|
||||
<!-- <div style="width:100%"></div> -->
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-select style="width: 235px ;margin-bottom:20px" v-model:value="searchParam.createFrom" placeholder="录入类型"
|
||||
:options="entryTypeList" allowClear v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-select style="width: 235px" v-model:value="searchParam.courseStatus" placeholder="开课状态"
|
||||
:options="AuthenticationStatusList" a llowClear showSearch v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-select style="width: 235px" placeholder="请选择讲师体系" v-model:value="searchParam.tSystemId"
|
||||
:options="LecturerSystemList" allowClear showSearch @change="changetlevel"
|
||||
v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<!-- <a-select style="width: 235px" placeholder="请选择所属组织" v-model:value="searchParam.sourceBelongId"
|
||||
:options="getOrganizationList" allowClear showSearch v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select> -->
|
||||
@@ -51,9 +51,7 @@
|
||||
style="width: 235px"
|
||||
></OrgClass>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
|
||||
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-tree-select style="width: 235px" :fieldNames="{
|
||||
children: 'children',
|
||||
label: 'name',
|
||||
@@ -65,13 +63,13 @@
|
||||
</a-tree-select>
|
||||
</a-form-item>
|
||||
<!-- <div style="width: 100%;"></div> -->
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-select style="min-width: 235px ; height: auto ;margin-bottom:20px" v-model:value="score" placeholder="请选择评分"
|
||||
:options="scoreList" allowClear showSearch mode="multiple" @change="scoreChange"
|
||||
v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
<a-form-item class="select">
|
||||
<a-form-item class="select" v-if="moreid == 2">
|
||||
<a-select style="width: 235px" v-model:value="searchParam.studys" placeholder="授课人数" :options="studysList"
|
||||
allowClear showSearch v-on:keydown.enter="enterPressHadlerSearch">
|
||||
</a-select>
|
||||
@@ -81,21 +79,17 @@
|
||||
</a-form-item>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
<a-button @click="searchSubmit()" type="primary" class="resetbtn">查询 </a-button>
|
||||
<!-- <div class="btn btn1" @click="searchReset" style="background:rgba(64, 158, 255, 0);" > -->
|
||||
<!-- <div class="search"></div> -->
|
||||
<a-button class="resetbtn " @click="searchReset">重置</a-button>
|
||||
|
||||
<!-- 更多筛选-->
|
||||
<!-- <div v-if="moreid == 1">
|
||||
<a-button @click="handlemoreid()" class="moreidbtn" type="text"> 展开
|
||||
<RightOutlined />
|
||||
<div v-if="moreid == 1">
|
||||
<a-button style="line-height:32px;" @click="handlemoreid()" class="moreidbtn" type="text"> 展开
|
||||
<DownOutlined />
|
||||
</a-button>
|
||||
</div>
|
||||
<div v-if="moreid == 2">
|
||||
<a-button @click="handlemoreid()" class="moreidbtn"> 返回
|
||||
<a-button style="line-height:32px;" @click="handlemoreid()" class="moreidbtn"> 收起
|
||||
<UpOutlined />
|
||||
</a-button>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</a-form>
|
||||
<div style="width: 100%;"></div>
|
||||
@@ -222,20 +216,17 @@
|
||||
</a-row>
|
||||
<!-- 授课日期 teachingDate 开课状态 courseStatus -->
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<!-- <a-col :span="12">
|
||||
<a-form-item label="课程归属组织" name="sourceBelongId">
|
||||
<OrgClass v-model:value="formParam.sourceBelongId" v-model:name="formParam.sourceBelongFullName"></OrgClass>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
<a-col :span="12">
|
||||
<a-form-item label="授课/课程日期 :" name="teachingDate">
|
||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm"
|
||||
:show-time="{ format: 'HH:mm' }" type="datetime" placeholder="请选择课程日期" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- 授课时长 teaching 评分 score-->
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="开课状态">
|
||||
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
|
||||
@@ -244,30 +235,35 @@
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- 授课时长 teaching 评分 score-->
|
||||
<a-row :gutter="16">
|
||||
|
||||
<a-col :span="12">
|
||||
<a-form-item label="授课时长" name="teaching">
|
||||
<a-input v-model:value="formParam.teaching" style="width:80%; height: 40px; border-radius: 8px ; "
|
||||
placeholder="0" allowClear showSearch suffix="分钟" :maxLength="8" @blur="clearNonNumber">
|
||||
placeholder="请输入授课时长" allowClear showSearch suffix="分钟" :maxLength="8" @blur="clearNonNumber">
|
||||
</a-input>
|
||||
<span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{ (formParam.teaching / 60
|
||||
).toFixed(2) }}小时</span>
|
||||
<span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- 参训人数 studys-->
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="评分" name="score">
|
||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||
</a-input> -->
|
||||
<a-input-number v-model:value="formParam.score" :precision="2" :min="0" :max="10"
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " />
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- 参训人数 studys-->
|
||||
<a-row :gutter="16">
|
||||
|
||||
<a-col :span="12">
|
||||
<a-form-item label="参训人数" name="studys">
|
||||
<a-input v-model:value="formParam.studys" class="draitem" placeholder="0 " :maxLength="8"
|
||||
<a-input v-model:value="formParam.studys" class="draitem" placeholder="请输入参训人数" :maxLength="8"
|
||||
@blur="clearstudysNumber" allowClear showSearch>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -403,7 +399,7 @@ import { reactive, toRefs, ref, computed, watch, onMounted } from "vue";
|
||||
import moment, { Moment } from 'moment';
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import {
|
||||
RightOutlined,
|
||||
DownOutlined,
|
||||
UpOutlined,
|
||||
UploadOutlined,
|
||||
FolderAddOutlined,
|
||||
@@ -433,7 +429,7 @@ export default {
|
||||
// Editor,
|
||||
// ImageUpload
|
||||
ProjectManager,
|
||||
RightOutlined, //图标--展开
|
||||
DownOutlined, //图标--展开
|
||||
UpOutlined,//图标--收起
|
||||
UploadOutlined,//图标--导出
|
||||
DownloadOutlined,//图标-导入
|
||||
@@ -489,7 +485,7 @@ export default {
|
||||
name: null,
|
||||
teacherName: null,
|
||||
teachingDate: null,
|
||||
sourceBelongId: null,
|
||||
// sourceBelongId: null,
|
||||
sourceBelongFullName: null,
|
||||
},
|
||||
startTime: null,
|
||||
@@ -822,7 +818,7 @@ export default {
|
||||
tsystemName: [{ required: true, message: '', log: '讲师体系不能为空' }],
|
||||
courseTypeId: [{ required: true, message: '', log: '内容分类不能为空' }],
|
||||
courseName: [{ required: true, message: '', log: '课程名称不能为空' }],
|
||||
sourceBelongId: [{ required: true, message: '', log: '课程归属组织不能为空' }],
|
||||
// sourceBelongId: [{ required: true, message: '', log: '课程归属组织不能为空' }],
|
||||
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
||||
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
|
||||
courseStatus: [{ required: true, message: '', log: '开课状态不能为空' }],
|
||||
@@ -1056,7 +1052,7 @@ export default {
|
||||
score: null,
|
||||
type: null,
|
||||
remark: null,
|
||||
sourceBelongId: null,
|
||||
// sourceBelongId: null,
|
||||
sourceBelongFullName: null,
|
||||
offcourseId: null,
|
||||
createFrom: null,
|
||||
|
||||
Reference in New Issue
Block a user