讲师管理bug

This commit is contained in:
zhangsir
2024-12-16 11:13:34 +08:00
parent 6a32131c40
commit ca25e381db
13 changed files with 1152 additions and 1118 deletions

View File

@@ -2,7 +2,7 @@
<a-drawer <a-drawer
:visible="visible" :visible="visible"
:closable="false" :closable="false"
class="RouterFaceStus" class="largeDrawerStyle"
placement="right" placement="right"
width="70%" width="70%"
> >
@@ -301,14 +301,14 @@ const queryDrawer = () => {
<style lang="scss" scoped> <style lang="scss" scoped>
.RouterFaceStus { .largeDrawerStyle {
.drawerMains { .drawerMains {
min-width: 600px; min-width: 600px;
// margin: 0px 32px 0px 32px; // margin: 0px 32px 0px 32px;
overflow-x: auto; overflow-x: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding:24px;
.headers { .headers {
height: 73px; height: 73px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;

View File

@@ -2,7 +2,7 @@
<a-drawer <a-drawer
:visible="visible" :visible="visible"
:closable="false" :closable="false"
class="RouterFaceStus" class="largeDrawerStyle"
placement="right" placement="right"
width="64%" width="64%"
:zIndex="1001" :zIndex="1001"
@@ -533,14 +533,14 @@ const config = () => {
} }
} }
.RouterFaceStus { .largeDrawerStyle {
.drawerMains { .drawerMains {
min-width: 600px; min-width: 600px;
// margin: 0px 32px 0px 32px; // margin: 0px 32px 0px 32px;
overflow-x: auto; overflow-x: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding:24px;
.headers { .headers {
height: 73px; height: 73px;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;

View File

@@ -1,6 +1,6 @@
<template> <template>
<a-drawer :visible="visible" placement="right" :closable="false" :maskClosable="false" <a-drawer :visible="visible" class="largeDrawerStyle" placement="right" :closable="false" :maskClosable="false"
width="80%" :title="false"> width="80%" :title="false">
<!-- 外部讲师查看详情 --> <!-- 外部讲师查看详情 -->
<div class="LookExternalLecturer"> <div class="LookExternalLecturer">
@@ -332,6 +332,7 @@ export default{
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding:24px;
.header { .header {
padding: 0px 32px; padding: 0px 32px;
height: 73px; height: 73px;

View File

@@ -1,5 +1,5 @@
<template> <template>
<a-drawer :visible="visible" placement="right" :closable="false" :maskClosable="false" <a-drawer class="largeDrawerStyle" :visible="visible" placement="right" :closable="false" :maskClosable="false"
width="80%" :title="false"> width="80%" :title="false">
<!-- 内部讲师查看详情 --> <!-- 内部讲师查看详情 -->
<div class="LookInsideLecturer"> <div class="LookInsideLecturer">
@@ -462,6 +462,7 @@ const handleup = ()=>{
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.LookInsideLecturer { .LookInsideLecturer {
padding:24px;
.header { .header {
padding: 0px 32px; padding: 0px 32px;
height: 73px; height: 73px;

View File

@@ -63,156 +63,158 @@
</div> </div>
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
width="700px" :title="false"> width="700px" :title="false">
<div class="headers" style="margin-top:-24px;width: 110%;margin-left: -24px;"> <div style="padding:24px">
<div class="headerTitle">{{ teacherdialogtitle }}</div> <div class="headers" style="margin-top:-24px;width: 110%;margin-left: -24px;">
<img <div class="headerTitle">{{ teacherdialogtitle }}</div>
style="width: 29px; height: 29px; cursor: pointer;margin-right: 24px;" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer;margin-right: 24px;"
@click="cancelTeacherDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeacherDialog"
</div> />
<a-form style="padding-left:12px;padding-right: 46px;" :model="formParam" layout="vertical" ref="formRef" > </div>
<!-- 基本信息 --> <a-form style="padding-left:12px;padding-right: 46px;" :model="formParam" layout="vertical" ref="formRef" >
<a-row> <!-- 基本信息 -->
<a-col :span="24"> <a-row>
<span class="line"></span><span style="font-weight: 600;">基本信息</span> <a-col :span="24">
</a-col> <span class="line"></span><span style="font-weight: 600;">基本信息</span>
<!-- 头像 --> </a-col>
</a-row> <!-- 头像 -->
<a-row :gutter="16"> </a-row>
<a-col :span="24"> <a-row :gutter="16">
<div class="item_inp" style="background-color: #fff;"> <a-col :span="24">
<a-upload name="avatar" list-type="picture-card" class="avatar-uploader" :show-upload-list="false" <div class="item_inp" style="background-color: #fff;">
:headers="headers" :before-upload="beforeUpload"> <a-upload name="avatar" list-type="picture-card" class="avatar-uploader" :show-upload-list="false"
<img class="i_upload_img" v-if="formParam.photo" :src="formParam.photo" alt="avatar" title="更换头像" /> :headers="headers" :before-upload="beforeUpload">
<img class="i_upload_img" v-else src="../../assets/Avatarman.png" alt="avatar" title="更换头像" /> <img class="i_upload_img" v-if="formParam.photo" :src="formParam.photo" alt="avatar" title="更换头像" />
<!-- <div class="i_upload" v-else> <img class="i_upload_img" v-else src="../../assets/Avatarman.png" alt="avatar" title="更换头像" />
<div class="addimg"> <!-- <div class="i_upload" v-else>
<div class="heng"></div> <div class="addimg">
<div class="shu"></div> <div class="heng"></div>
</div> <div class="shu"></div>
</div> --> </div>
</a-upload> </div> -->
<div class="i_bottom"> </a-upload>
<div class="tip" style="margin-bottom: 10px;"> <div class="i_bottom">
<span style="color: #999999; margin-left: 8px">支持图片格式为jpg/jpeg/png </span> <div class="tip" style="margin-bottom: 10px;">
<span style="color: #999999; margin-left: 8px">支持图片格式为jpg/jpeg/png </span>
</div>
</div> </div>
</div> </div>
</div> </a-col>
</a-col> </a-row>
</a-row> <!-- 讲师名称 ,手机号码-->
<!-- 讲师名称 ,手机号码--> <a-row :gutter="16">
<a-row :gutter="16"> <a-col :span="24">
<a-form-item name="name">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
讲师姓名
</template>
<a-input v-model:value="formParam.name" class="draitem" :maxlength="20" showCount
@blur="sendName"
placeholder="请输入讲师姓名" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item name="supplier">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
供应商
</template>
<a-input v-model:value="formParam.supplier" class="draitem" :maxlength="30" showCount
placeholder="请输入供应商" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
</a-row>
<!-- 供应商 ,邮箱-->
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="手机号码" name="mobile" prop="mobile">
<a-input v-model:value.trim="formParam.mobile" class="draitem"
placeholder="请输入手机号码" allowClear showSearch :maxLength="11" @blur="sendPhone">
</a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="讲师邮箱" name="email" prop="email">
<a-input v-model:value="formParam.email" type="email" class="draitem"
placeholder="请输入讲师邮箱" allowClear showSearch @blur="sendEmail">
</a-input>
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item name="name"> <a-form-item label="初始授课时长" name="teaching">
<template v-slot:label> <a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px ; "
<img placeholder="0" allowClear showSearch suffix="分钟" @blur="clearNonNumber" @focus="focusTeaching">
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
讲师姓名
</template>
<a-input v-model:value="formParam.name" class="draitem" :maxlength="20" showCount
@blur="sendName"
placeholder="请输入讲师姓名" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item name="supplier">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
供应商
</template>
<a-input v-model:value="formParam.supplier" class="draitem" :maxlength="30" showCount
placeholder="请输入供应商" allowClear showSearch>
</a-input> </a-input>
</a-form-item> <!-- <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>
<!-- 其他信息 -->
<a-row>
<a-col :span="24" style="margin-bottom: 24px;margin-top: 12px;">
<span class="line"></span><span style="font-weight: 600;">其他信息</span>
</a-col> </a-col>
</a-row> </a-row>
<!-- 供应商 ,邮箱--> <!-- 讲师介绍 -->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24"> <a-col :span="24">
<a-form-item label="手机号码" name="mobile" prop="mobile"> <a-form-item label="讲师介绍">
<a-input v-model:value.trim="formParam.mobile" class="draitem" <Editor v-model:value="formParam.description "/>
placeholder="请输入手机号码" allowClear showSearch :maxLength="11" @blur="sendPhone"> <!-- <a-textarea placeholder="富文本"/> -->
</a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="讲师邮箱" name="email" prop="email">
<a-input v-model:value="formParam.email" type="email" class="draitem"
placeholder="请输入讲师邮箱" allowClear showSearch @blur="sendEmail">
</a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="初始授课时长" name="teaching">
<a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px ; "
placeholder="0" allowClear showSearch suffix="分钟" @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>
<!-- 其他信息 -->
<a-row>
<a-col :span="24" style="margin-bottom: 24px;margin-top: 12px;">
<span class="line"></span><span style="font-weight: 600;">其他信息</span>
</a-col>
</a-row>
<!-- 讲师介绍 -->
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="讲师介绍">
<Editor v-model:value="formParam.description "/>
<!-- <a-textarea placeholder="富文本"/> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 备注 --> <!-- 备注 -->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24"> <a-col :span="24">
<a-form-item label="备注" style="margin-bottom: 80px;"> <a-form-item label="备注" style="margin-bottom: 80px;">
<a-textarea <a-textarea
v-model:value="formParam.remark" v-model:value="formParam.remark"
showCount showCount
:maxlength="200" :maxlength="200"
@blur="sendRemark" @blur="sendRemark"
style="width: 100%; height: 100px; border-radius: 8px" style="width: 100%; height: 100px; border-radius: 8px"
placeholder="请输入"/> placeholder="请输入"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<!-- 交互按钮 --> <!-- 交互按钮 -->
<div <div
:style="{ :style="{
position: 'absolute', position: 'absolute',
right: 0, right: 0,
bottom: 0, bottom: 0,
width: '100%', width: '100%',
borderTop: '1px solid #e9e9e9', borderTop: '1px solid #e9e9e9',
padding: '10px 16px', padding: '10px 16px',
background: '#fff', background: '#fff',
textAlign: 'right', textAlign: 'right',
zIndex: 1, zIndex: 1,
} " } "
> >
<a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button> <a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button>
<a-button style="margin-right: 20px;" class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 <a-button style="margin-right: 20px;" class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
</a-button> </a-button>
</div> </div>
</div>
</a-drawer> </a-drawer>
<!-- 删除功能弹窗 --> <!-- 删除功能弹窗 -->
@@ -346,7 +348,7 @@ export default {
teacherType:'2', teacherType:'2',
photo:null, photo:null,
status:1, status:1,
teaching:'', teaching:0,
}, },
vf:true, vf:true,
searchParam: { searchParam: {
@@ -667,7 +669,7 @@ export default {
status:1, status:1,
teacherType:2, teacherType:2,
photo:null, photo:null,
teaching:null, teaching:0,
name: null, name: null,
mobile: null, mobile: null,
email: null, email: null,
@@ -682,20 +684,20 @@ export default {
const rules = { const rules = {
name: [{ required: true, message: '',log: '讲师不能为空' }], name: [{ required: true, message: '',log: '讲师不能为空' }],
supplier:[{ required: true, message: '',log:'供应商不能为空' }], supplier:[{ required: true, message: '',log:'供应商不能为空' }],
email:[ // email:[
{ // {
type: "email", // type: "email",
message: '',log: '请输入正确的邮箱地址', // message: '',log: '请输入正确的邮箱地址',
trigger: "blur" // trigger: "blur"
} // }
], // ],
mobile: [ // mobile: [
{ // {
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, // pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
message: '',log: "请输入正确的手机号码", // message: '',log: "请输入正确的手机号码",
trigger: "blur" // trigger: "blur"
} // }
] // ]
} }
const rule =()=>{ const rule =()=>{
if (state.formParam.name==null){ if (state.formParam.name==null){
@@ -755,6 +757,9 @@ export default {
} }
const sendEmail=()=>{ const sendEmail=()=>{
const reg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.\w{2,}$/; const reg = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.\w{2,}$/;
if(!state.formParam.email){
return
}
if (!reg.test(state.formParam.email)) { if (!reg.test(state.formParam.email)) {
message.warning( '邮箱格式不正确') message.warning( '邮箱格式不正确')
state.formParam.email='' state.formParam.email=''
@@ -762,11 +767,15 @@ export default {
} }
} }
const clearNonNumber = () => { const clearNonNumber = () => {
state.formParam.teaching = state.formParam.teaching.replace(/\D/g, ''); state.formParam.teaching = state.formParam.teaching?.replace(/\D/g, '');
state.formParam.teaching = state.formParam.teaching.slice(0,8) state.formParam.teaching = state.formParam.teaching?.slice(0,8)
!state.formParam.teaching && (state.formParam.teaching = 0)
}
const focusTeaching = () => {
state.formParam.teaching == 0 && (state.formParam.teaching = null)
} }
const sendRemark=()=>{ const sendRemark=()=>{
state.formParam.remark = state.formParam.remark.replace(/\s/g, ''); state.formParam.remark = state.formParam.remark?.replace(/\s/g, '');
} }
const repl = (val) => { const repl = (val) => {
if(val){ if(val){
@@ -804,6 +813,7 @@ export default {
...toRefs(state), ...toRefs(state),
lecturerAdmin, lecturerAdmin,
clearNonNumber, clearNonNumber,
focusTeaching,
enterPressHadlerSearch, enterPressHadlerSearch,
validateField, validateField,
rules, rules,

View File

@@ -131,230 +131,234 @@
</div> </div>
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" placement="right" :maskClosable="false" :closable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :maskClosable="false" :closable="false"
width="60%" :title="false"> width="60%" :title="false">
<div class="headers" style="margin-top:-24px;"> <div style="padding:24px;">
<div class="headerTitle">{{ teacherdialogtitle }}</div> <div class="headers" style="margin-top:-24px;">
<img <div class="headerTitle">{{ teacherdialogtitle }}</div>
style="width: 29px; height: 29px; cursor: pointer" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer"
@click="cancelTeacherDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeacherDialog"
</div> />
<a-form :model="formParam" layout="vertical" ref="formRef"> </div>
<!--讲师名称 teacherName 内容分类 coursetypeid --> <a-form :model="formParam" layout="vertical" ref="formRef">
<a-row :gutter="16"> <!--讲师名称 teacherName 内容分类 coursetypeid -->
<a-col :span="12"> <a-row :gutter="16">
<a-col :span="12">
<a-form-item name="teacherName"> <a-form-item name="teacherName">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
讲师名称 讲师名称
</template> </template>
<ProjectManagerOutTeacher v-model:value="formParam.name" <ProjectManagerOutTeacher v-model:value="formParam.name"
v-model:name="formParam.teacherName" v-model:name="formParam.teacherName"
placeholder="请输入工号/讲师姓名进行检索" placeholder="请输入工号/讲师姓名进行检索"
@onChange="managerChange"></ProjectManagerOutTeacher> @onChange="managerChange"></ProjectManagerOutTeacher>
<!-- <a-input v-model:value="formParam.teacherName" allowClear showSearch class="draitem" <!-- <a-input v-model:value="formParam.teacherName" allowClear showSearch class="draitem"
placeholder="请输入讲师姓名"></a-input> --> placeholder="请输入讲师姓名"></a-input> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item name="courseTypeId"> <a-form-item name="courseTypeId">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
内容分类 内容分类
</template> </template>
<a-tree-select :fieldNames="{ <a-tree-select :fieldNames="{
children: 'children', children: 'children',
label: 'name', label: 'name',
value: 'code', value: 'code',
}" allow-clear :getPopupContainer="triggerNode => triggerNode.parentNode || document.body" }" allow-clear :getPopupContainer="triggerNode => triggerNode.parentNode || document.body"
v-model:value="formParam.courseTypeId" show-search v-model:value="formParam.courseTypeId" show-search
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类" tree-default-expand-all :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类" tree-default-expand-all
:tree-data="sysTypeOptions" :tree-data="sysTypeOptions"
@change="treetype"> @change="treetype">
</a-tree-select> </a-tree-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 课程名称name 开课状态 courseStatus--> <!-- 课程名称name 开课状态 courseStatus-->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item name="courseName"> <a-form-item name="courseName">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
课程名称 课程名称
</template> </template>
<a-input class="draitem" v-model:value="formParam.courseName" :maxlength="20" showCount placeholder="请输入课程名称" @blur="sendName" allowClear showSearch> <a-input class="draitem" v-model:value="formParam.courseName" :maxlength="20" showCount placeholder="请输入课程名称" @blur="sendName" allowClear showSearch>
</a-input> </a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="开课状态"> <a-form-item label="开课状态">
<a-radio-group v-model:value="formParam.courseStatus" class="draitem"> <a-radio-group v-model:value="formParam.courseStatus" class="draitem">
<a-radio :value="0">未开课</a-radio> <a-radio :value="0">未开课</a-radio>
<a-radio :value="1">已开课</a-radio> <a-radio :value="1">已开课</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 授课日期 teachingDate 授课时长defaultTeachingTime--> <!-- 授课日期 teachingDate 授课时长defaultTeachingTime-->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item name="teachingDate"> <a-form-item name="teachingDate">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
授课/课程日期 : 授课/课程日期 :
</template> </template>
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }" <a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }"
placeholder="请选择课程日期" /> placeholder="请选择课程日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item name="teaching"> <a-form-item name="teaching">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
授课时长 授课时长
</template> </template>
<a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px; " <a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px; "
placeholder="请输入授课时长" allowClear showSearch suffix="分钟" placeholder="请输入授课时长" allowClear showSearch suffix="分钟"
:maxLength="8" @change="clearNonNumber"> :maxLength="8" @change="clearNonNumber">
</a-input> </a-input>
<!-- <span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{ (formParam.teaching / 60 <!-- <span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{ (formParam.teaching / 60
).toFixed(2) }}小时</span> ).toFixed(2) }}小时</span>
<span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span> --> <span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 参训人数 studys评分 score--> <!-- 参训人数 studys评分 score-->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item name="studys"> <a-form-item name="studys">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
参训人数 参训人数
</template> </template>
<a-input v-model:value="formParam.studys" class="draitem" placeholder="请输入参训人数" allowClear showSearch :maxLength="8" <a-input v-model:value="formParam.studys" class="draitem" placeholder="请输入参训人数" allowClear showSearch :maxLength="8"
@blur="clearstudysNumber"> @blur="clearstudysNumber">
</a-input> </a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item name="score"> <a-form-item name="score">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
评分 评分
</template> </template>
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch> <!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
</a-input> --> </a-input> -->
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100" <a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100"
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" /> style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 备注 remark --> <!-- 备注 remark -->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24"> <a-col :span="24">
<a-form-item label="备注"> <a-form-item label="备注">
<a-textarea v-model:value="formParam.remark" showCount :maxlength="200" <a-textarea v-model:value="formParam.remark" showCount :maxlength="200"
@blur="sendRemark" @blur="sendRemark"
style="width: 100%; height: 100px; border-radius: 8px" placeholder="请输入" /> style="width: 100%; height: 100px; border-radius: 8px" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<div :style="{ <div :style="{
position: 'absolute', position: 'absolute',
right: 0, right: 0,
bottom: 0, bottom: 0,
width: '100%', width: '100%',
borderTop: '1px solid #e9e9e9', borderTop: '1px solid #e9e9e9',
padding: '10px 16px', padding: '10px 16px',
background: '#fff', background: '#fff',
textAlign: 'right', textAlign: 'right',
zIndex: 1, zIndex: 1,
}"> }">
<a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button> <a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 <a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
</a-button> </a-button>
</div>
</div> </div>
</a-drawer> </a-drawer>
<!-- 查看授课记录 --> <!-- 查看授课记录 -->
<a-drawer v-model:visible="teachingdialog" placement="right" :maskClosable="false" :closable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" placement="right" :maskClosable="false" :closable="false"
width="60%" :title="false"> width="60%" :title="false">
<div class="headers" style="margin-top:-24px;"> <div style="padding:24px;">
<div class="headerTitle">查看讲师授课记录</div> <div class="headers" style="margin-top:-24px;">
<img <div class="headerTitle">查看讲师授课记录</div>
style="width: 29px; height: 29px; cursor: pointer" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer"
@click="cancelTeachingDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeachingDialog"
</div> />
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="{'width':'160px'}"> </div>
<a-descriptions-item label="讲师名称">{{ formParam.teacherName ||'-'}}</a-descriptions-item> <a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="{'width':'160px'}">
<a-descriptions-item label="手机号码">{{ formParam.mobile ||'-'}}</a-descriptions-item> <a-descriptions-item label="讲师名称">{{ formParam.teacherName ||'-'}}</a-descriptions-item>
<a-descriptions-item label="课程类型">{{ formParam.type == 0 ? '在线课' : formParam.type == 1 ? '面授课' : '-' <a-descriptions-item label="手机号码">{{ formParam.mobile ||'-'}}</a-descriptions-item>
}}</a-descriptions-item> <a-descriptions-item label="课程类型">{{ formParam.type == 0 ? '在线课' : formParam.type == 1 ? '面授课' : '-'
<a-descriptions-item label="课程名称">{{ formParam.courseName ||'-'}}</a-descriptions-item> }}</a-descriptions-item>
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1 <a-descriptions-item label="课程名称">{{ formParam.courseName ||'-'}}</a-descriptions-item>
? '已开课' : '-' }}</a-descriptions-item> <a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1
<a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName ||'-'}}</a-descriptions-item> ? '已开课' : '-' }}</a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate ||'-' }} <a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName ||'-'}}</a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate ||'-' }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="授课时长 "> <span > {{ formParam.teaching }} 分钟</span> <a-descriptions-item label="授课时长 "> <span > {{ formParam.teaching }} 分钟</span>
<span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60 <span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60
).toFixed(2) }}小时)</span> ).toFixed(2) }}小时)</span>
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="评分 ">{{ formParam.score ||'-'}}</a-descriptions-item> <a-descriptions-item label="评分 ">{{ formParam.score ||'-'}}</a-descriptions-item>
<a-descriptions-item label="参训人数 ">{{ formParam.studys ||'-'}}</a-descriptions-item> <a-descriptions-item label="参训人数 ">{{ formParam.studys ||'-'}}</a-descriptions-item>
<a-descriptions-item label="备注 " :span="2">{{ formParam.remark ||'-' }}</a-descriptions-item> <a-descriptions-item label="备注 " :span="2">{{ formParam.remark ||'-' }}</a-descriptions-item>
</a-descriptions> </a-descriptions>
<!-- <div :style="{ <!-- <div :style="{
position: 'absolute', position: 'absolute',
right: 0, right: 0,
bottom: 0, bottom: 0,
width: '100%', width: '100%',
borderTop: '1px solid #e9e9e9', borderTop: '1px solid #e9e9e9',
padding: '10px 16px', padding: '10px 16px',
background: '#fff', background: '#fff',
textAlign: 'right', textAlign: 'right',
zIndex: 1, zIndex: 1,
}"> }">
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button> <a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回 <a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
</a-button> </a-button>
</div> --> </div> -->
</div>
</a-drawer> </a-drawer>
<!-- 删除功能弹窗 --> <!-- 删除功能弹窗 -->
<div> <div>

View File

@@ -113,248 +113,250 @@
</div> </div>
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
width="700" :title="false"> width="700" :title="false">
<div class="headers" style="margin-top:-24px;margin-left: -25px;width: 110%;"> <div style="padding:24px">
<div class="headerTitle" style="margin-left: 14px;">{{ teacherdialogtitle }}</div> <div class="headers" style="margin-top:-24px;margin-left: -25px;width: 110%;">
<img <div class="headerTitle" style="margin-left: 14px;">{{ teacherdialogtitle }}</div>
style="width: 29px; height: 29px; cursor: pointer;margin-right: 24px;" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer;margin-right: 24px;"
@click="cancelTeacherDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeacherDialog"
</div> />
<div ref="drawerContent" style="padding-left: 15px;padding-right: 46px;"> </div>
<a-form :model="formParam" layout="vertical" ref="formRef"> <div ref="drawerContent" style="padding-left: 15px;padding-right: 46px;">
<a-row> <a-form :model="formParam" layout="vertical" ref="formRef">
<a-col :span="24"> <a-row>
<span class="line"></span><span style="color:#333333;font-weight: 600;font-size:16px;">基本信息</span> <a-col :span="24">
</a-col> <span class="line"></span><span style="color:#333333;font-weight: 600;font-size:16px;">基本信息</span>
</a-row> </a-col>
<a-row :gutter="16"> </a-row>
<a-col :span="24"> <a-row :gutter="16">
<div class="item_inp" style="background-color: #fff;"> <a-col :span="24">
<div style="width:120px;margin:0 auto;" @click="avatarChange"> <div class="item_inp" style="background-color: #fff;">
<a-upload :disabled="!formParam.name" name="avatar" list-type="picture-card" class="avatar-uploader" :show-upload-list="false" <div style="width:120px;margin:0 auto;" @click="avatarChange">
:headers="headers" :before-upload="beforeUpload"> <a-upload :disabled="!formParam.name" name="avatar" list-type="picture-card" class="avatar-uploader" :show-upload-list="false"
<img class="i_upload_img" v-if="formParam.photo" :src="formParam.photo" alt="avatar" title="更换头像" /> :headers="headers" :before-upload="beforeUpload">
<img class="i_upload_img" v-else-if="formParam.gender==1" src="../../assets/Avatarman.png" alt="avatar" title="更换头像" /> <img class="i_upload_img" v-if="formParam.photo" :src="formParam.photo" alt="avatar" title="更换头像" />
<img class="i_upload_img" v-else-if="formParam.gender==2" src="../../assets/Avatarwoman.png" alt="avatar" title="更换头像" /> <img class="i_upload_img" v-else-if="formParam.gender==1" src="../../assets/Avatarman.png" alt="avatar" title="更换头像" />
<img class="i_upload_img" v-else src="../../assets/Avatarman.png" alt="avatar" title="更换头像" /> <img class="i_upload_img" v-else-if="formParam.gender==2" src="../../assets/Avatarwoman.png" alt="avatar" title="更换头像" />
<!-- <div class="i_upload" v-else> <img class="i_upload_img" v-else src="../../assets/Avatarman.png" alt="avatar" title="更换头像" />
<div class="addimg"> <!-- <div class="i_upload" v-else>
<div class="heng"></div> <div class="addimg">
<div class="shu"></div> <div class="heng"></div>
</div> <div class="shu"></div>
</div> --> </div>
</a-upload> </div> -->
</div> </a-upload>
<div class="i_bottom"> </div>
<div class="tip" style="margin-bottom: 10px;"> <div class="i_bottom">
<span style="color: #999999; margin-left: 8px">支持图片格式为jpg/jpeg/png </span> <div class="tip" style="margin-bottom: 10px;">
<span style="color: #999999; margin-left: 8px">支持图片格式为jpg/jpeg/png </span>
</div>
</div> </div>
</div> </div>
</div> </a-col>
</a-col> </a-row>
</a-row> <a-row :gutter="16">
<a-row :gutter="16"> <a-col :span="24">
<a-col :span="24"> <a-form-item name="name">
<a-form-item name="name"> <template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
讲师姓名
</template>
<SearchTeacher @tlevel="teacherTlevel" :lecturer="true" :disabled="!!id" v-model:value="formParam.name" v-model:lable="formParam.orgNames" v-model:orgId="formParam.orgId" v-model:id="formParam.id"
v-model:system="tSystemNames" v-model:level="formParam.tlevelId"></SearchTeacher>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="讲师组织" name="orgName">
<!-- <a-popover>
<template #content>
{{ formParam.orgNames }}
</template> -->
<a-input :title="formParam.orgNames" disabled v-model:value="formParam.orgName" class="draitem"
placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch>
</a-input>
<!-- </a-popover> -->
</a-form-item>
</a-col>
</a-row>
<a-col :span="24">
<a-form-item name="tsystemName">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
讲师姓名 讲师体系
</template> </template>
<SearchTeacher @tlevel="teacherTlevel" :lecturer="true" :disabled="!!id" v-model:value="formParam.name" v-model:lable="formParam.orgNames" v-model:orgId="formParam.orgId" v-model:id="formParam.id" <!-- <a-select class="draitem" v-model:value="formParam.tsystemName" placeholder="请选择讲师体系" allowClear
v-model:system="tSystemNames" v-model:level="formParam.tlevelId"></SearchTeacher> @change="changetlevel" .:options="LecturerSystemList">
</a-form-item> </a-select> -->
</a-col> <a-input disabled v-model:value="tSystemNames.systemName" class="draitem"
<a-col :span="24"> placeholder="自动带出讲师的体系" allowClear showSearch>
<a-form-item label="讲师组织" name="orgName"> </a-input>
<!-- <a-popover> </a-form-item>
<template #content> </a-col>
{{ formParam.orgNames }} <a-col :span="24">
</template> --> <!-- <div @click="handleformlevel"> -->
<a-input :title="formParam.orgNames" disabled v-model:value="formParam.orgName" class="draitem" <a-form-item name="tlevelId">
placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch> <template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
讲师级别
</template>
<a-select class="draitem" v-model:value="formParam.tlevelId" placeholder="请选择讲师级别" allowClear disableda
:options="tSystemNames.levelVoList" @change="handleformlevel">
</a-select>
</a-form-item>
<!-- </div> -->
</a-col>
<a-row :gutter="16">
<a-col :span="24">
<a-form-item name="defaultTeachingTime">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
初始授课时长
</template>
<a-input v-model:value="formParam.defaultTeachingTime" style="width:100%; height: 40px; border-radius: 8px; "
:maxLength="8"
@change="clearNonNumber" @blur="blurNumber" @focus="focusNumber" placeholder="请输入初始授课时长" allowClear suffix="分钟">
</a-input> </a-input>
<!-- </a-popover> --> <!-- <span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span>
</a-form-item> <span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime != null">{{
</a-col> (formParam.defaultTeachingTime / 60).toFixed(2) }}小时</span> -->
</a-row> </a-form-item>
<a-col :span="24"> </a-col>
<a-form-item name="tsystemName"> <a-col :span="24">
<template v-slot:label> <a-form-item label="认证状态" name="certStatus" style="display:flex;">
<img <a-radio-group v-model:value="formParam.certStatus" class="draitem">
style="margin-right:4px;width: 7px;height: 7px" <a-radio :value="0">未认证</a-radio>
src="@/assets/images/coursewareManage/asterisk.png" <a-radio :value="1">已认证</a-radio>
alt="" <span>
/> <a-button type="text" class="moreidbtn" v-if="formParam.certStatus == 1"
讲师体系 @click="handleupdialog">{{formParam.certificationName?formParam.certificationName:'上传凭证'}}</a-button>
</template> </span>
<!-- <a-select class="draitem" v-model:value="formParam.tsystemName" placeholder="请选择讲师体系" allowClear </a-radio-group>
@change="changetlevel" .:options="LecturerSystemList"> </a-form-item>
</a-select> --> </a-col>
<a-input disabled v-model:value="tSystemNames.systemName" class="draitem" </a-row>
placeholder="自动带出讲师的体系" allowClear showSearch> <a-row>
</a-input> <a-col :span="24">
</a-form-item> <span class="line" style="margin-bottom:24px;"></span><span style="color:#333333;font-weight: 600;font-size:16px;">其他信息</span>
</a-col> </a-col>
<a-col :span="24"> </a-row>
<!-- <div @click="handleformlevel"> --> <a-row :gutter="16">
<a-form-item name="tlevelId"> <a-col :span="24">
<template v-slot:label> <a-form-item label="讲师介绍">
<img <Editor v-model:value="formParam.description" :isupload="isupload" />
style="margin-right:4px;width: 7px;height: 7px" </a-form-item>
src="@/assets/images/coursewareManage/asterisk.png" </a-col>
alt="" </a-row>
/> <a-row :gutter="16">
讲师级别 <a-col :span="24">
</template> <a-form-item label="工作经历">
<a-select class="draitem" v-model:value="formParam.tlevelId" placeholder="请选择讲师级别" allowClear disableda <Editor v-model:value="formParam.workExperience" :isupload="isupload" />
:options="tSystemNames.levelVoList" @change="handleformlevel"> </a-form-item>
</a-select> </a-col>
</a-form-item> </a-row>
<!-- </div> --> <a-row :gutter="16">
</a-col> <a-col :span="24">
<a-row :gutter="16"> <a-form-item label="擅长课程">
<a-col :span="24"> <Editor v-model:value="formParam.courses" :isupload="isupload"/>
<a-form-item name="defaultTeachingTime"> </a-form-item>
<template v-slot:label> </a-col>
<img </a-row>
style="margin-right:4px;width: 7px;height: 7px" <div style="margin-bottom: 6px;">教师专长</div>
src="@/assets/images/coursewareManage/asterisk.png" <a-row :gutter="50" style="margin-bottom: 50px;">
alt="" <!-- <a-col :span="4">
/> <a-tag color="blue" style="line-height: 40px; ">管理业务</a-tag>
初始授课时长 </a-col> -->
</template> <a-col :span="20">
<a-input v-model:value="formParam.defaultTeachingTime" style="width:100%; height: 40px; border-radius: 8px; " <!-- <div class="add_content" @click="addContentData">
:maxLength="8"
@change="clearNonNumber" @blur="blurNumber" @focus="focusNumber" 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">{{
(formParam.defaultTeachingTime / 60).toFixed(2) }}小时</span> -->
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="认证状态" name="certStatus" style="display:flex;">
<a-radio-group v-model:value="formParam.certStatus" class="draitem">
<a-radio :value="0">未认证</a-radio>
<a-radio :value="1">已认证</a-radio>
<span>
<a-button type="text" class="moreidbtn" v-if="formParam.certStatus == 1"
@click="handleupdialog">{{formParam.certificationName?formParam.certificationName:'上传凭证'}}</a-button>
</span>
</a-radio-group>
</a-form-item>
</a-col>
</a-row>
<a-row>
<a-col :span="24">
<span class="line" style="margin-bottom:24px;"></span><span style="color:#333333;font-weight: 600;font-size:16px;">其他信息</span>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="讲师介绍">
<Editor v-model:value="formParam.description" :isupload="isupload" />
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="工作经历">
<Editor v-model:value="formParam.workExperience" :isupload="isupload" />
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="24">
<a-form-item label="擅长课程">
<Editor v-model:value="formParam.courses" :isupload="isupload"/>
</a-form-item>
</a-col>
</a-row>
<div style="margin-bottom: 6px;">教师专长</div>
<a-row :gutter="50" style="margin-bottom: 50px;">
<!-- <a-col :span="4">
<a-tag color="blue" style="line-height: 40px; ">管理业务</a-tag>
</a-col> -->
<a-col :span="20">
<!-- <div class="add_content" @click="addContentData">
<div class="text">+</div>
</div> -->
<div class="add_list">
<div :title="item.name" class="add_item" v-for="(item,index) in formParam.orgLists">
{{item.name}}
</div>
<div class="add_content" @click="addContentData">
<div class="text">+</div> <div class="text">+</div>
</div> -->
<div class="add_list">
<div :title="item.name" class="add_item" v-for="(item,index) in formParam.orgLists">
{{item.name}}
</div>
<div class="add_content" @click="addContentData">
<div class="text">+</div>
</div>
</div> </div>
</div> </a-col>
</a-col> </a-row>
</a-row> </a-form>
</a-form> <div>
<div> <a-modal
<a-modal v-model:visible="updialog"
v-model:visible="updialog" :footer="null"
:footer="null" closable="false"
closable="false" style="margin-top: 400px"
style="margin-top: 400px" @cancel="cancelupdialog"
@cancel="cancelupdialog" :maskClosable="false"
:maskClosable="false" :destroyOnClose="true"
:destroyOnClose="true" >
> <div class="selectonlineface" style="width: 660px;" :style="{ display: updialog ? 'block' : 'none' }">
<div class="selectonlineface" style="width: 660px;" :style="{ display: updialog ? 'block' : 'none' }"> <div class="bg_headers"></div>
<div class="bg_headers"></div> <div class="bg_main">
<div class="bg_main"> <div class="bg_main_header">
<div class="bg_main_header"> <div class="bg_main_header_close" @click="cancelupdialog"></div>
<div class="bg_main_header_close" @click="cancelupdialog"></div> </div>
</div> <div class="bg_body">
<div class="bg_body"> <div>导入</div>
<div>导入</div> <a-form style="margin-top:30px ;">
<a-form style="margin-top:30px ;"> <a-form-item style="color: #999999;">注意 :文件支持PDFPNGJPG ,文件大小不可超过5MB</a-form-item>
<a-form-item style="color: #999999;">注意 :文件支持PDFPNGJPG ,文件大小不可超过5MB</a-form-item> <a-form-item label="上传文件">
<a-form-item label="上传文件"> <UploadDragger :size="5000000" ref="uploadRef" style="width:86%;height:148px;" @change="changeUpload" :accept="accept"
<UploadDragger :size="5000000" ref="uploadRef" style="width:86%;height:148px;" @change="changeUpload" :accept="accept" @removeList="removeList" :uploadUrl="uploadUrl" :params="folderId" :loadTrue="formParam.certificationName" />
@removeList="removeList" :uploadUrl="uploadUrl" :params="folderId" :loadTrue="formParam.certificationName" /> </a-form-item>
</a-form-item> </a-form>
</a-form> <div class="bg_footer" style="margin-left: 160px;margin-top: 30px">
<div class="bg_footer" style="margin-left: 160px;margin-top: 30px"> <div class="btn btn6" @click="cancelupdialog">
<div class="btn btn6" @click="cancelupdialog"> <div class="btnText">取消</div>
<div class="btnText">取消</div> </div>
<a-button
class="btn btn6"
@click="createupdialog"
>
确定
</a-button>
</div> </div>
<a-button
class="btn btn6"
@click="createupdialog"
>
确定
</a-button>
</div> </div>
</div> </div>
</div> </div>
</div> </a-modal>
</a-modal> </div>
</div> <div :style="{
<div :style="{ position: 'absolute',
position: 'absolute', right: 0,
right: 0, bottom: 0,
bottom: 0, width: '100%',
width: '100%', borderTop: '1px solid #e9e9e9',
borderTop: '1px solid #e9e9e9', padding: '10px 16px',
padding: '10px 16px', background: '#fff',
background: '#fff', textAlign: 'right',
textAlign: 'right', zIndex: 1,
zIndex: 1, display: 'flex',
display: 'flex', justifyContent: 'end',
justifyContent: 'end', }">
}"> <a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button>
<a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button> <a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
<a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 </a-button>
</a-button> </div>
</div> </div>
</div> </div>
</a-drawer> </a-drawer>

View File

@@ -140,321 +140,325 @@
</div> </div>
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" :closable="false" placement="right" :maskClosable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" :closable="false" placement="right" :maskClosable="false"
width="60%" :title="false"> width="60%" :title="false">
<div class="headers" style="margin-top:-24px;"> <div style="padding:24px;">
<div class="headerTitle">{{ teacherdialogtitle }}</div> <div class="headers" style="margin-top:-24px;">
<img <div class="headerTitle">{{ teacherdialogtitle }}</div>
style="width: 29px; height: 29px; cursor: pointer" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer"
@click="cancelTeacherDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeacherDialog"
</div> />
<a-form :model="formParam" layout="vertical" ref="formRef"> </div>
<!-- 讲师姓名 teacher 组织 orgName--> <a-form :model="formParam" layout="vertical" ref="formRef">
<a-row :gutter="16"> <!-- 讲师姓名 teacher 组织 orgName-->
<a-col :span="12"> <a-row :gutter="16">
<a-form-item name="name"> <a-col :span="12">
<template v-slot:label> <a-form-item name="name">
<img <template v-slot:label>
style="margin-right:4px;width: 7px;height: 7px" <img
src="@/assets/images/coursewareManage/asterisk.png" style="margin-right:4px;width: 7px;height: 7px"
alt="" src="@/assets/images/coursewareManage/asterisk.png"
/> alt=""
讲师名称 />
</template> 讲师名称
<SearchTeacher @tlevel="tlevelChange" v-model:value="formParam.name" v-model:lable="formParam.orgNames" </template>
v-model:id="formParam.teacherId" v-model:system="tSystemNames" v-model:level="formParam.tlevelId"> <SearchTeacher @tlevel="tlevelChange" v-model:value="formParam.name" v-model:lable="formParam.orgNames"
</SearchTeacher> v-model:id="formParam.teacherId" v-model:system="tSystemNames" v-model:level="formParam.tlevelId">
</a-form-item> </SearchTeacher>
</a-col> </a-form-item>
<a-col :span="12"> </a-col>
<a-form-item name="orgName"> <a-col :span="12">
<template v-slot:label> <a-form-item name="orgName">
<img <template v-slot:label>
style="margin-right:4px;width: 7px;height: 7px" <img
src="@/assets/images/coursewareManage/asterisk.png" style="margin-right:4px;width: 7px;height: 7px"
alt="" src="@/assets/images/coursewareManage/asterisk.png"
/> alt=""
讲师组织 />
</template> 讲师组织
<a-popover> </template>
<!-- <template #content> <a-popover>
{{ formParam.orgNames }} <!-- <template #content>
</template> --> {{ formParam.orgNames }}
</template> -->
<a-input :title="formParam.orgNames" disabled v-model:value="formParam.orgName" class="draitem" <a-input :title="formParam.orgNames" disabled v-model:value="formParam.orgName" class="draitem"
placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch> placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch>
</a-input>
</a-popover>
</a-form-item>
</a-col>
</a-row>
<!-- 讲师体系 tsystemName 级别 tlevelId -->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item name="tsystemName">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
讲师体系
</template>
<a-input disabled v-model:value="tSystemNames.systemName" class="draitem" placeholder="自动带出讲师的体系" allowClear
showSearch>
</a-input> </a-input>
</a-popover> </a-form-item>
</a-form-item> </a-col>
</a-col> <a-col :span="12">
</a-row> <a-form-item name="tlevelName">
<!-- 讲师体系 tsystemName 级别 tlevelId --> <template v-slot:label>
<a-row :gutter="16"> <img
<a-col :span="12"> style="margin-right:4px;width: 7px;height: 7px"
<a-form-item name="tsystemName"> src="@/assets/images/coursewareManage/asterisk.png"
<template v-slot:label> alt=""
<img />
style="margin-right:4px;width: 7px;height: 7px" 讲师级别
src="@/assets/images/coursewareManage/asterisk.png" </template>
alt="" <a-input disabled v-model:value="formParam.tlevelName" class="draitem" placeholder="自动带出讲师级别" allowClear
/> showSearch>
讲师体系 </a-input>
</template> </a-form-item>
<a-input disabled v-model:value="tSystemNames.systemName" class="draitem" placeholder="自动带出讲师的体系" allowClear </a-col>
showSearch> </a-row>
</a-input> <!-- 内容分类 courseTypeId 课程名称 name -->
</a-form-item> <a-row :gutter="16">
</a-col> <a-col :span="12">
<a-col :span="12"> <a-form-item name="courseTypeId">
<a-form-item name="tlevelName"> <template v-slot:label>
<template v-slot:label> <img
<img style="margin-right:4px;width: 7px;height: 7px"
style="margin-right:4px;width: 7px;height: 7px" src="@/assets/images/coursewareManage/asterisk.png"
src="@/assets/images/coursewareManage/asterisk.png" alt=""
alt="" />
/> 内容分类
讲师级别 </template>
</template> <a-tree-select :fieldNames="{
<a-input disabled v-model:value="formParam.tlevelName" class="draitem" placeholder="自动带出讲师级别" allowClear children: 'children',
showSearch> label: 'name',
</a-input> value: 'code',
</a-form-item> }" allow-clear :getPopupContainer="triggerNode => triggerNode.parentNode || document.body"
</a-col> v-model:value="formParam.courseTypeId" show-search
</a-row> :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类" tree-default-expand-all
<!-- 内容分类 courseTypeId 课程名称 name --> :tree-data="sysTypeOptions" @change="treetype">
<a-row :gutter="16"> </a-tree-select>
<a-col :span="12"> </a-form-item>
<a-form-item name="courseTypeId"> </a-col>
<template v-slot:label> <a-col :span="12">
<img <a-form-item name="courseName">
style="margin-right:4px;width: 7px;height: 7px" <template v-slot:label>
src="@/assets/images/coursewareManage/asterisk.png" <img
alt="" style="margin-right:4px;width: 7px;height: 7px"
/> src="@/assets/images/coursewareManage/asterisk.png"
内容分类 alt=""
</template> />
<a-tree-select :fieldNames="{ 课程名称
children: 'children', </template>
label: 'name', <a-input class="draitem" v-model:value="formParam.courseName" placeholder="请输入课程名称" allowClear showSearch
value: 'code', :maxlength="20" showCount @blur="sendName">
}" allow-clear :getPopupContainer="triggerNode => triggerNode.parentNode || document.body" </a-input>
v-model:value="formParam.courseTypeId" show-search </a-form-item>
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="请选择内容分类" tree-default-expand-all </a-col>
:tree-data="sysTypeOptions" @change="treetype"> </a-row>
</a-tree-select> <!-- 授课日期 teachingDate 开课状态 courseStatus -->
</a-form-item> <a-row :gutter="16">
</a-col> <a-col :span="12">
<a-col :span="12"> <a-form-item name="trainOrgId">
<a-form-item name="courseName"> <template v-slot:label>
<template v-slot:label> <img
<img style="margin-right:4px;width: 7px;height: 7px"
style="margin-right:4px;width: 7px;height: 7px" src="@/assets/images/coursewareManage/asterisk.png"
src="@/assets/images/coursewareManage/asterisk.png" alt=""
alt="" />
/> 培训发生组织
课程名称 </template>
</template> <a-select v-model:value="formParam.trainOrgId" placeholder="请选择培训发生组织" allowClear
<a-input class="draitem" v-model:value="formParam.courseName" placeholder="请输入课程名称" allowClear showSearch :options="orgList" @change="changeOrg">
:maxlength="20" showCount @blur="sendName"> </a-select>
</a-input> <!-- <OrgClass v-model:value="formParam.sourceBelongId" v-model:name="formParam.sourceBelongFullName"></OrgClass> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> <a-col :span="12">
<!-- 授课日期 teachingDate 开课状态 courseStatus --> <a-form-item name="teachingDate">
<a-row :gutter="16"> <template v-slot:label>
<a-col :span="12"> <img
<a-form-item name="trainOrgId"> style="margin-right:4px;width: 7px;height: 7px"
<template v-slot:label> src="@/assets/images/coursewareManage/asterisk.png"
<img alt=""
style="margin-right:4px;width: 7px;height: 7px" />
src="@/assets/images/coursewareManage/asterisk.png" 授课/课程日期 :
alt="" </template>
/> <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="请选择课程日期" />
</template> </a-form-item>
<a-select v-model:value="formParam.trainOrgId" placeholder="请选择培训发生组织" allowClear </a-col>
:options="orgList" @change="changeOrg">
</a-select>
<!-- <OrgClass v-model:value="formParam.sourceBelongId" v-model:name="formParam.sourceBelongFullName"></OrgClass> -->
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item name="teachingDate">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
授课/课程日期 :
</template>
<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> </a-row>
<!-- 授课时长 teaching 评分 score--> <!-- 授课时长 teaching 评分 score-->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item label="开课状态"> <a-form-item label="开课状态">
<a-radio-group v-model:value="formParam.courseStatus" class="draitem"> <a-radio-group v-model:value="formParam.courseStatus" class="draitem">
<a-radio :value="0">未开课</a-radio> <a-radio :value="0">未开课</a-radio>
<a-radio :value="1">已开课</a-radio> <a-radio :value="1">已开课</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item name="teaching"> <a-form-item name="teaching">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
授课时长 授课时长
</template> </template>
<a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px ; " <a-input v-model:value="formParam.teaching" style="width:100%; height: 40px; border-radius: 8px ; "
placeholder="请输入授课时长" allowClear showSearch suffix="分钟" :maxLength="8" @blur="clearNonNumber"> placeholder="请输入授课时长" allowClear showSearch suffix="分钟" :maxLength="8" @blur="clearNonNumber">
</a-input> </a-input>
<!-- <span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{ (formParam.teaching / 60 <!-- <span style="margin-left: 5px ;" v-if="formParam.teaching != null">{{ (formParam.teaching / 60
).toFixed(2) }}小时</span> ).toFixed(2) }}小时</span>
<span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span> --> <span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span> -->
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 参训人数 studys--> <!-- 参训人数 studys-->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="12"> <a-col :span="12">
<a-form-item name="score"> <a-form-item name="score">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
评分 评分
</template> </template>
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch> <!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
</a-input> --> </a-input> -->
<a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100" <a-input-number @blur="blurScore" @focus="focusScore" v-model:value="formParam.score" :precision="0" :min="1" :max="100"
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" /> style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item name="studys"> <a-form-item name="studys">
<template v-slot:label> <template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/coursewareManage/asterisk.png"
alt="" alt=""
/> />
参训人数 参训人数
</template> </template>
<a-input v-model:value="formParam.studys" class="draitem" placeholder="请输入参训人数" :maxLength="8" <a-input v-model:value="formParam.studys" class="draitem" placeholder="请输入参训人数" :maxLength="8"
@blur="clearstudysNumber" allowClear showSearch> @blur="clearstudysNumber" allowClear showSearch>
</a-input> </a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- 备注 remark --> <!-- 备注 remark -->
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="24"> <a-col :span="24">
<a-form-item label="备注"> <a-form-item label="备注">
<a-textarea v-model:value="formParam.remark" showCount :maxlength="200" @blur="sendRemark" <a-textarea v-model:value="formParam.remark" showCount :maxlength="200" @blur="sendRemark"
style="width: 100%; height: 100px; border-radius: 8px;margin-bottom:62px;" placeholder="请输入" /> style="width: 100%; height: 100px; border-radius: 8px;margin-bottom:62px;" placeholder="请输入" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<div :style="{ <div :style="{
position: 'absolute', position: 'absolute',
right: 0, right: 0,
bottom: 0, bottom: 0,
width: '100%', width: '100%',
borderTop: '1px solid #e9e9e9', borderTop: '1px solid #e9e9e9',
padding: '10px 16px', padding: '10px 16px',
background: '#fff', background: '#fff',
textAlign: 'right', textAlign: 'right',
zIndex: 1, zIndex: 1,
}"> }">
<a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button> <a-button class="drabtn" @click="cancelTeacherDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 <a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
</a-button> </a-button>
</div>
</div> </div>
</a-drawer> </a-drawer>
<!--查看授课详情 --> <!--查看授课详情 -->
<a-drawer v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="false" <a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="false"
width="60%" :title="false"> width="60%" :title="false">
<div class="headers" style="margin-top:-24px;"> <div style="padding:24px;">
<div class="headerTitle">查看讲师授课记录</div> <div class="headers" style="margin-top:-24px;">
<img <div class="headerTitle">查看讲师授课记录</div>
style="width: 29px; height: 29px; cursor: pointer" <img
src="@/assets/images/basicinfo/close.png" style="width: 29px; height: 29px; cursor: pointer"
@click="cancelTeachingDialog" src="@/assets/images/basicinfo/close.png"
/> @click="cancelTeachingDialog"
</div> />
<span class="line"></span>
<span style="font-weight:600;">讲师信息</span>
<a-descriptions style="margin-top:15px;" bordered :column="2" :contentStyle="{'maxWidth':'300px'}" :labelStyle="{'width':'160px'}">
<a-descriptions-item label="讲师名称">{{ formParam.teacherName ||'-'}}</a-descriptions-item>
<a-descriptions-item label="讲师工号">{{ formParam.userNo||'-' }}</a-descriptions-item>
<a-descriptions-item label="讲师组织">{{ formParam.orgName||'-' }}</a-descriptions-item>
<a-descriptions-item label="培训发生组织">{{ formParam.trainOrg||'-' }}</a-descriptions-item>
<a-descriptions-item label="讲师体系">{{ formParam.tsystemName||'-' }}</a-descriptions-item>
<a-descriptions-item label="讲师级别">{{ formParam.tlevelName||'-'
}}</a-descriptions-item>
<a-descriptions-item label="录入方式">
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '-' }}</a-descriptions-item>
<a-descriptions-item label="课程类型">{{ formParam.type == 0 ? '在线课' : formParam.type == 1 ? '面授课' : '-'
}}</a-descriptions-item>
<a-descriptions-item label="课程名称">{{ formParam.courseName||'-' }}</a-descriptions-item>
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1
? '已开课' : '-' }}</a-descriptions-item>
<a-descriptions-item label="授课时长 ">
<span> {{ formParam.teaching }} 分钟</span>
<span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60
).toFixed(2) }}小时)</span> </a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate||'-' }}</a-descriptions-item>
<a-descriptions-item label="参训人数 ">{{ formParam.studys||'-' }}</a-descriptions-item>
<a-descriptions-item label="评分 ">{{ formParam.score||'-' }}</a-descriptions-item>
<a-descriptions-item label="内容分类">{{ formParam.courseTypeName||'-' }}</a-descriptions-item>
<a-descriptions-item label="备注 ">{{ formParam.remark||'-' }}</a-descriptions-item>
</a-descriptions>
<div v-if="formParam.createFrom == '0'">
<div style="margin-top:20px ;line-height: 24px;margin-bottom: 15px;">
<span class="line"></span>
<span style="font-weight:600;">讲师费发放情况</span>
</div> </div>
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe;margin-bottom: 60px;" :columns="column" <span class="line"></span>
:data-source="tableDatas" :pagination="false"> <span style="font-weight:600;">讲师信息</span>
<template #bodyCell="{ record, column }"> <a-descriptions style="margin-top:15px;" bordered :column="2" :contentStyle="{'maxWidth':'300px'}" :labelStyle="{'width':'160px'}">
<template v-if="column.key === 'operation'"> <a-descriptions-item label="讲师名称">{{ formParam.teacherName ||'-'}}</a-descriptions-item>
<a-space> <a-descriptions-item label="讲师工号">{{ formParam.userNo||'-' }}</a-descriptions-item>
<!-- <a-button type="link" @click="() => handleLooka(record, String(record.courseform))">查看</a-button> --> <a-descriptions-item label="讲师组织">{{ formParam.orgName||'-' }}</a-descriptions-item>
</a-space> <a-descriptions-item label="培训发生组织">{{ formParam.trainOrg||'-' }}</a-descriptions-item>
<a-descriptions-item label="讲师体系">{{ formParam.tsystemName||'-' }}</a-descriptions-item>
<a-descriptions-item label="讲师级别">{{ formParam.tlevelName||'-'
}}</a-descriptions-item>
<a-descriptions-item label="录入方式">
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '-' }}</a-descriptions-item>
<a-descriptions-item label="课程类型">{{ formParam.type == 0 ? '在线课' : formParam.type == 1 ? '面授课' : '-'
}}</a-descriptions-item>
<a-descriptions-item label="课程名称">{{ formParam.courseName||'-' }}</a-descriptions-item>
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1
? '已开课' : '-' }}</a-descriptions-item>
<a-descriptions-item label="授课时长 ">
<span> {{ formParam.teaching }} 分钟</span>
<span style="margin-left: 10px ;" v-if="formParam.teaching != '0'">({{ (formParam.teaching / 60
).toFixed(2) }}小时)</span> </a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate||'-' }}</a-descriptions-item>
<a-descriptions-item label="参训人数 ">{{ formParam.studys||'-' }}</a-descriptions-item>
<a-descriptions-item label="评分 ">{{ formParam.score||'-' }}</a-descriptions-item>
<a-descriptions-item label="内容分类">{{ formParam.courseTypeName||'-' }}</a-descriptions-item>
<a-descriptions-item label="备注 ">{{ formParam.remark||'-' }}</a-descriptions-item>
</a-descriptions>
<div v-if="formParam.createFrom == '0'">
<div style="margin-top:20px ;line-height: 24px;margin-bottom: 15px;">
<span class="line"></span>
<span style="font-weight:600;">讲师费发放情况</span>
</div>
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe;margin-bottom: 60px;" :columns="column"
:data-source="tableDatas" :pagination="false">
<template #bodyCell="{ record, column }">
<template v-if="column.key === 'operation'">
<a-space>
<!-- <a-button type="link" @click="() => handleLooka(record, String(record.courseform))">查看</a-button> -->
</a-space>
</template>
</template> </template>
</template> </a-table>
</a-table> </div>
<!-- <div :style="{
position: 'absolute',
right: 0,
bottom: 0,
width: '100%',
borderTop: '1px solid #e9e9e9',
padding: '10px 16px',
background: '#fff',
textAlign: 'right',
zIndex: 1,
}">
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
</a-button>
</div> -->
</div> </div>
<!-- <div :style="{
position: 'absolute',
right: 0,
bottom: 0,
width: '100%',
borderTop: '1px solid #e9e9e9',
padding: '10px 16px',
background: '#fff',
textAlign: 'right',
zIndex: 1,
}">
<a-button class="drabtn" @click="cancelTeachingDialog">取消</a-button>
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
</a-button>
</div> -->
</a-drawer> </a-drawer>
<!-- 删除功能弹窗 --> <!-- 删除功能弹窗 -->
<div> <div>

View File

@@ -1,5 +1,5 @@
<template> <template>
<a-drawer :visible="visible" placement="right" :closable="false" :maskClosable="false" <a-drawer class="largeDrawerStyle" :visible="visible" placement="right" :closable="false" :maskClosable="false"
width="60%" :title="false"> width="60%" :title="false">
<div class="appedit"> <div class="appedit">
<div class="header" style="margin-top: -24px;"> <div class="header" style="margin-top: -24px;">
@@ -74,8 +74,9 @@
<button class="btn2" @click="paramsDrawer">提交</button> <button class="btn2" @click="paramsDrawer">提交</button>
</div> </div>
</div> </div>
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
width="60%" :title="false"> width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;"> <div class="headers" style="margin-top:-24px;">
<div class="headerTitle">编辑讲师费</div> <div class="headerTitle">编辑讲师费</div>
<img <img
@@ -388,6 +389,7 @@
<a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 <a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
</a-button> </a-button>
</div> </div>
</div>
</a-drawer> </a-drawer>
<a-modal <a-modal
:visible="modalVisible" :visible="modalVisible"
@@ -1197,7 +1199,7 @@ export default {
overflow-x: auto; overflow-x: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding:24px;
.header { .header {
padding: 0px 15px; padding: 0px 15px;
height: 68px; height: 68px;

View File

@@ -120,8 +120,9 @@
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<!--查看讲师费详情 --> <!--查看讲师费详情 -->
<a-drawer :closable="false" v-model:visible="teachingdialog" placement="right" <a-drawer class="largeDrawerStyle" :closable="false" v-model:visible="teachingdialog" placement="right"
@closa="cancelTeachingDialog" width="60%" :title="false"> @closa="cancelTeachingDialog" width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;"> <div class="headers" style="margin-top:-24px;">
<div class="headerTitle">汇总讲师费详情</div> <div class="headerTitle">汇总讲师费详情</div>
<img <img
@@ -188,6 +189,7 @@
</a-button> </a-button>
<!-- <a-button class="drabtn" @click="cancelTeachingDialog" type="primary" danger>拒绝</a-button> --> <!-- <a-button class="drabtn" @click="cancelTeachingDialog" type="primary" danger>拒绝</a-button> -->
</div> </div>
</div>
</a-drawer> </a-drawer>
<!-- 修改状态功能弹窗 --> <!-- 修改状态功能弹窗 -->
<div> <div>

View File

@@ -156,8 +156,9 @@
</div> </div>
</div> </div>
<!-- 弹窗组件 --> <!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer" <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
width="60%" :title="false"> width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;"> <div class="headers" style="margin-top:-24px;">
<div class="headerTitle">{{ teacherdialogtitle }}</div> <div class="headerTitle">{{ teacherdialogtitle }}</div>
<img <img
@@ -470,6 +471,7 @@
<a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存 <a-button class="drabtn" type="primary" @click="createTeacherDialog" :loading="buttonLoading">保存
</a-button> </a-button>
</div> </div>
</div>
</a-drawer> </a-drawer>
<!-- 修改状态功能弹窗 --> <!-- 修改状态功能弹窗 -->
<div> <div>
@@ -499,8 +501,9 @@
</a-modal> </a-modal>
</div> </div>
<!-- <div> <Upload/> </div> --> <!-- <div> <Upload/> </div> -->
<a-drawer v-model:visible="teachingdialog" placement="right" <a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" placement="right"
:closable="false" width="60%" :title="false"> :closable="false" width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;"> <div class="headers" style="margin-top:-24px;">
<div class="headerTitle">查看讲师费用</div> <div class="headerTitle">查看讲师费用</div>
<img <img
@@ -556,6 +559,7 @@
<a-button class="drabtn" @click="cancelTeachingDialog(false)" :loading="buttonLoading">取消 <a-button class="drabtn" @click="cancelTeachingDialog(false)" :loading="buttonLoading">取消
</a-button> </a-button>
</div> --> </div> -->
</div>
</a-drawer> </a-drawer>
<ImportWork v-model:showWork="showWork" :template="'讲师费导入模板'" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork> <ImportWork v-model:showWork="showWork" :template="'讲师费导入模板'" :url="'/admin/export/importTeacherExpense'" :fileName="uploadFile" :title="title"></ImportWork>
</div> </div>

View File

@@ -99,8 +99,9 @@
</div> </div>
</div> </div>
<!-- 抽屉 --> <!-- 抽屉 -->
<a-drawer v-model:visible="opendrawer" placement="right" <a-drawer class="largeDrawerStyle" v-model:visible="opendrawer" placement="right"
@closa="cancelTeachingDialog" :maskClosable="true" width="60%" title="查看详情"> @closa="cancelTeachingDialog" :maskClosable="true" width="60%" title="查看详情">
<div style="padding:24px;">
<a-form layout="inline"> <a-form layout="inline">
<a-form-item class="select"> <a-form-item class="select">
<a-input v-model:value="drawer.name" style="width: 260px; height: 40px; border-radius: 8px" <a-input v-model:value="drawer.name" style="width: 260px; height: 40px; border-radius: 8px"
@@ -137,6 +138,7 @@
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回 <a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
</a-button> </a-button>
</div> </div>
</div>
</a-drawer> </a-drawer>
</div> </div>
</template> </template>

View File

@@ -88,202 +88,204 @@
</a-modal> </a-modal>
</div> </div>
<!-- 抽屉 --> <!-- 抽屉 -->
<a-drawer v-model:visible="teacherdialog" :closable="false" :title="false" placement="right" width="60%" :maskClosable="false" > <a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" :closable="false" :title="false" placement="right" width="60%" :maskClosable="false" >
<div class="headers" style="margin-top: -24px"> <div style="padding:24px;">
<div class="headerTitle">{{ teacherdialogtitle }}</div> <div class="headers" style="margin-top: -24px">
<img <div class="headerTitle">{{ teacherdialogtitle }}</div>
style="width: 29px; height: 29px; cursor: pointer"
src="@/assets/images/basicinfo/close.png"
@click="cancelTeacherDialog"
/>
</div>
<a-form :model="formParam" layout="vertical" ref="formRef">
<a-row :gutter="16">
<a-col :span="24">
<!-- <span class="line"></span><span>讲师体系基本信息</span> -->
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item name="affiliationCode">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
培训发生组织编号
</template>
<a-input disabled v-model:value="formParam.affiliationCode" class="draitem"
placeholder="请输入讲师体系编号" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item name="affiliationName">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
培训发生组织名称
</template>
<a-input :maxlength="30" show-count v-model:value="formParam.affiliationName" class="draitem"
placeholder="请输入培训发生组织名称" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item name="code">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
是否为根节点
</template>
<div style="display: flex;align-items: center;">
<a-radio-group style="min-width:126px;" @change="selectRadio" v-model:value="formParam.isParent" name="radioGroup">
<a-radio :value="1"></a-radio>
<a-radio :value="0"></a-radio>
</a-radio-group>
<a-select v-model:value="formParam.code" :placeholder="!formParam.isParent?'请选择审批层级':'请选择根节点'"
:options="!formParam.isParent?PlaceOfPayList:PlaceOfPayListTwo" allowClear showSearch/>
</div>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item name="actValue">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
组织担当
</template>
<!-- <a-select v-model:value="formParam.zzfzr" placeholder="请选择组织负责人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="0" v-model:value="formParam.actValue" :placeholder="'请选择担当'" v-model:arrayList="formParam.actArray" ></ProjectManager> -->
<AddApprover :title="'组织担当'" v-model:arrayList="formParam.actArray" @valueChange="valueChange" :type="0">
<a-select style="width:100%" v-model:value="formParam.actValue" :open="false" :placeholder="'请选择担当'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16" v-if="formParam.isParent">
<a-col :span="12">
<a-form-item name="leveOneValue">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
一级审批人
</template>
<!-- <a-select v-model:value="formParam.yjspr" placeholder="请选择一级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" v-model:value="formParam.leveOneValue" :placeholder="'请选择一级审批人'" v-model:arrayList="formParam.leveOneArray" ></ProjectManager> -->
<AddApprover :title="'一级审批人'" v-model:arrayList="formParam.leveOneArray" @valueChange="valueChange" :type="1">
<a-select style="width:100%" v-model:value="formParam.leveOneValue" :open="false" :placeholder="'请选择一级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="二级审批人">
<!-- <a-select v-model:value="formParam.zzfzr" placeholder="请选择二级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" :placeholder="'请选择二级审批人'" v-model:arrayList="formParam.leveTwoArray" ></ProjectManager> -->
<AddApprover :title="'二级审批人'" v-model:arrayList="formParam.leveTwoArray" @valueChange="valueChange" :type="2">
<a-select style="width:100%" v-model:value="formParam.leveTwoValue" :open="false" :placeholder="'请选择二级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12" v-if="formParam.isParent">
<a-form-item label="三级审批人" >
<!-- <a-select v-model:value="formParam.sjspr" placeholder="请选择三级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" :placeholder="'请选择三级审批人'" v-model:arrayList="formParam.leveThreeArray" ></ProjectManager> -->
<AddApprover :title="'三级审批人'" v-model:arrayList="formParam.leveThreeArray" @valueChange="valueChange" :type="3">
<a-select style="width:100%" v-model:value="formParam.leveThreeValue" :open="false" :placeholder="'请选择三级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
<a-col :span="12" v-if="formParam.isParent==0">
<a-form-item name="isContains">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
审批流程是否加该担当
</template>
<a-select v-model:value="formParam.isContains" placeholder="请选择审批流程是否加担当"
:options="isConSelect" allowClear showSearch/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="备注" >
<a-input v-model:value="formParam.remark" showCount :maxlength="200"
style="width: 100%; height: 40px; border-radius: 8px" placeholder="请输入" />
</a-form-item>
</a-col>
</a-row>
<a-form-item name="orglistName">
<template v-slot:label>
<img <img
style="margin-right:4px;width: 7px;height: 7px" style="width: 29px; height: 29px; cursor: pointer"
src="@/assets/images/coursewareManage/asterisk.png" src="@/assets/images/basicinfo/close.png"
alt="" @click="cancelTeacherDialog"
/> />
选择管理组织 </div>
</template> <a-form :model="formParam" layout="vertical" ref="formRef">
<a-row :gutter="50" style="margin-bottom: 10px;"> <a-row :gutter="16">
<a-col :span="2"> <a-col :span="24">
<!-- <a-tag color="blue" style="line-height: 40px; ">管理业务</a-tag> --> <!-- <span class="line"></span><span>讲师体系基本信息</span> -->
<a-button type="primary" @click="addContentData" style="width: 100px; height: 40px;border-radius: 8px">添加组织</a-button>
</a-col>
<!-- <a-col :span="20">
<div class="add_content" @click="addContentData" >+</div>
</a-col> -->
</a-row>
</a-form-item>
<!-- 备注 remark -->
<a-row :gutter="16" style="padding-bottom: 60px;">
<a-col :span="24">
<a-form-item label="">
<!-- <a-textarea v-model:value="formParam.remark" showCount :maxlength="200"
style="width: 100%; height: 100px; border-radius: 8px" placeholder="请输入" /> -->
<a-table :dataSource="formParam?.affiliationOrgList" :scroll="{ x: '600' }" :columns="orgColumns"/>
</a-form-item>
</a-col> </a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item name="affiliationCode">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
培训发生组织编号
</template>
<a-input disabled v-model:value="formParam.affiliationCode" class="draitem"
placeholder="请输入讲师体系编号" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item name="affiliationName">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
培训发生组织名称
</template>
<a-input :maxlength="30" show-count v-model:value="formParam.affiliationName" class="draitem"
placeholder="请输入培训发生组织名称" allowClear showSearch>
</a-input>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12">
<a-form-item name="code">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
是否为根节点
</template>
<div style="display: flex;align-items: center;">
<a-radio-group style="min-width:126px;" @change="selectRadio" v-model:value="formParam.isParent" name="radioGroup">
<a-radio :value="1"></a-radio>
<a-radio :value="0"></a-radio>
</a-radio-group>
<a-select v-model:value="formParam.code" :placeholder="!formParam.isParent?'请选择审批层级':'请选择根节点'"
:options="!formParam.isParent?PlaceOfPayList:PlaceOfPayListTwo" allowClear showSearch/>
</div>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item name="actValue">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
组织担当
</template>
<!-- <a-select v-model:value="formParam.zzfzr" placeholder="请选择组织负责人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="0" v-model:value="formParam.actValue" :placeholder="'请选择担当'" v-model:arrayList="formParam.actArray" ></ProjectManager> -->
<AddApprover :title="'组织担当'" v-model:arrayList="formParam.actArray" @valueChange="valueChange" :type="0">
<a-select style="width:100%" v-model:value="formParam.actValue" :open="false" :placeholder="'请选择担当'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16" v-if="formParam.isParent">
<a-col :span="12">
<a-form-item name="leveOneValue">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
一级审批人
</template>
<!-- <a-select v-model:value="formParam.yjspr" placeholder="请选择一级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" v-model:value="formParam.leveOneValue" :placeholder="'请选择一级审批人'" v-model:arrayList="formParam.leveOneArray" ></ProjectManager> -->
<AddApprover :title="'一级审批人'" v-model:arrayList="formParam.leveOneArray" @valueChange="valueChange" :type="1">
<a-select style="width:100%" v-model:value="formParam.leveOneValue" :open="false" :placeholder="'请选择一级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="二级审批人">
<!-- <a-select v-model:value="formParam.zzfzr" placeholder="请选择二级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" :placeholder="'请选择二级审批人'" v-model:arrayList="formParam.leveTwoArray" ></ProjectManager> -->
<AddApprover :title="'二级审批人'" v-model:arrayList="formParam.leveTwoArray" @valueChange="valueChange" :type="2">
<a-select style="width:100%" v-model:value="formParam.leveTwoValue" :open="false" :placeholder="'请选择二级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
</a-row>
<a-row :gutter="16">
<a-col :span="12" v-if="formParam.isParent">
<a-form-item label="三级审批人" >
<!-- <a-select v-model:value="formParam.sjspr" placeholder="请选择三级审批人"
:options="PlaceOfPayList" allowClear showSearch/> -->
<!-- <ProjectManager :type="1" :placeholder="'请选择三级审批人'" v-model:arrayList="formParam.leveThreeArray" ></ProjectManager> -->
<AddApprover :title="'三级审批人'" v-model:arrayList="formParam.leveThreeArray" @valueChange="valueChange" :type="3">
<a-select style="width:100%" v-model:value="formParam.leveThreeValue" :open="false" :placeholder="'请选择三级审批人'"></a-select>
</AddApprover>
</a-form-item>
</a-col>
<a-col :span="12" v-if="formParam.isParent==0">
<a-form-item name="isContains">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
审批流程是否加该担当
</template>
<a-select v-model:value="formParam.isContains" placeholder="请选择审批流程是否加担当"
:options="isConSelect" allowClear showSearch/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="备注" >
<a-input v-model:value="formParam.remark" showCount :maxlength="200"
style="width: 100%; height: 40px; border-radius: 8px" placeholder="请输入" />
</a-form-item>
</a-col>
</a-row>
<a-form-item name="orglistName">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
选择管理组织
</template>
<a-row :gutter="50" style="margin-bottom: 10px;">
<a-col :span="2">
<!-- <a-tag color="blue" style="line-height: 40px; ">管理业务</a-tag> -->
<a-button type="primary" @click="addContentData" style="width: 100px; height: 40px;border-radius: 8px">添加组织</a-button>
</a-col>
<!-- <a-col :span="20">
<div class="add_content" @click="addContentData" >+</div>
</a-col> -->
</a-row> </a-row>
</a-form> </a-form-item>
<!-- 交互按钮 --> <!-- 备注 remark -->
<div <a-row :gutter="16" style="padding-bottom: 60px;">
:style="{ <a-col :span="24">
position: 'absolute', <a-form-item label="">
right: 0, <!-- <a-textarea v-model:value="formParam.remark" showCount :maxlength="200"
bottom: 0, style="width: 100%; height: 100px; border-radius: 8px" placeholder="请输入" /> -->
width: '100%', <a-table :dataSource="formParam?.affiliationOrgList" :scroll="{ x: '600' }" :columns="orgColumns"/>
borderTop: '1px solid #e9e9e9', </a-form-item>
padding: '10px 16px', </a-col>
background: '#fff', </a-row>
textAlign: 'right', </a-form>
zIndex: 1, <!-- 交互按钮 -->
} " <div
> :style="{
<a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button> position: 'absolute',
<a-button class="drabtn" type="primary" @click="createTeacherDialog(0)" :loading="buttonLoading">保存</a-button> right: 0,
<a-button v-if="editParams||editIndex>1" class="drabtn" type="primary" @click="createTeacherDialog(1)" :loading="buttonLoading">提交</a-button> bottom: 0,
width: '100%',
borderTop: '1px solid #e9e9e9',
padding: '10px 16px',
background: '#fff',
textAlign: 'right',
zIndex: 1,
} "
>
<a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button>
<a-button class="drabtn" type="primary" @click="createTeacherDialog(0)" :loading="buttonLoading">保存</a-button>
<a-button v-if="editParams||editIndex>1" class="drabtn" type="primary" @click="createTeacherDialog(1)" :loading="buttonLoading">提交</a-button>
</div>
</div> </div>
</a-drawer> </a-drawer>
<AddOrgContent :Addtitle="'选择组织'" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" /> <AddOrgContent :Addtitle="'选择组织'" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" />