diff --git a/src/views/lecturer/ExternalLecturer.vue b/src/views/lecturer/ExternalLecturer.vue index 21d6b5cc..f0a1a64e 100644 --- a/src/views/lecturer/ExternalLecturer.vue +++ b/src/views/lecturer/ExternalLecturer.vue @@ -87,7 +87,7 @@ - avatar + avatar
@@ -97,7 +97,7 @@
- 支持图片格式为jpg/jpeg/png 图片最大为2MB + 支持图片格式为jpg/jpeg/png 图片最大为500KB
@@ -107,16 +107,13 @@ - + + placeholder="请输入手机号码" allowClear showSearch @blur="sendPhone"> @@ -133,7 +130,7 @@ + placeholder="请输入讲师邮箱" allowClear showSearch @blur="sendEmail"> @@ -226,8 +223,8 @@ 提示
- 您确定要启用此讲师状态吗 - 您确定要停用此讲师状态吗 + 确定要将该讲师启用吗
启用后讲师可以登录教师端
+ 确定要将该讲师停用吗
停用后讲师不可登录教师端
@@ -259,11 +256,13 @@ import { } from '@ant-design/icons-vue'; import ProjectManager from "@/components/project/ProjectManagerNew"; import { getOutTeacherList, getOuterTeacherById, fileUp, deleteInTeacher, updateInTeacher, updateTeacherState, insertTeacherOutSide, updateOutTeacher } from "../../api/Lecturer"; -import {getCookieForName} from "@/api/method"; +import {getCookieForName} from "@/api/method" +import SearchTeacher from "@/components/project/SearchTeacher";; export default { name: "ExternalLecturer", components: { // AddTeacher, + SearchTeacher, ProjectManager, Editor, FolderAddOutlined,//图标--新增 @@ -274,6 +273,7 @@ export default { const state = reactive({ currentPage1: 1, pageSize1: 10, + close:false, promotionrecordsLoading: false, //晋级记录遮罩层 tableLoading: false, tagsshow: "1", @@ -294,6 +294,7 @@ export default { formParam: { description:"", teacherType:'1', + photo: 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' }, vf:true, searchParam: { @@ -331,7 +332,7 @@ export default { fileUp(formDatas).then((res) => { if (res.data.code === 200) { console.log(res.data.data, 45); - imageUrl.value = process.env.VUE_APP_FILE_PATH + res.data.data; + state.formParam.photo= process.env.VUE_APP_FILE_PATH + res.data.data; // state.hasImgName = file.name; // emit("src", { id: '', src: res.data.data }); @@ -473,6 +474,7 @@ export default { state.teacherdialog = true; state.teacherdialogtitle = '新增讲师' state.vf = true + state.formParam.photo = state.formParam.photo === null ? 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' : state.formParam.photo } //修改讲师信息弹窗 @@ -481,7 +483,7 @@ export default { state.teacherdialogtitle = '修改信息' state.id = record.id state.vf = false - TeacherSystem(record) + TeacherSystem() } //保存 const createTeacherDialog = () => { @@ -578,17 +580,22 @@ export default { name: [{ required: true, message: '讲师不能为空' }], supplier:[{ required: true, message: '供应商不能为空' }], } + // const sendEmail= ()=>{ + // let regEmail= + // /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-A-Za-z0-9_-]+(\.[a-a-A-Za-z0-9_-]+)+$/ + // } //表格内查看数据操作 const handleLook = (record) => { let id = record.id router.push({ path: '/LookExternalLecturer', query: { id } }) } //外部讲师详情 - const TeacherSystem = (record) => { + const TeacherSystem = () => { getOuterTeacherById(state.id).then((res) => { console.log("外部讲师详情", res.data); state.formParam = res.data.data state.formParam.description = state.formParam.description === null ? '' : state.formParam.description + state.formParam.photo = state.formParam.photo === null ? 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' : state.formParam.photo }) .catch((err) => { console.log("外部讲师详情", err); diff --git a/src/views/lecturer/InsideLecturer.vue b/src/views/lecturer/InsideLecturer.vue index 557d25f9..bd21d11c 100644 --- a/src/views/lecturer/InsideLecturer.vue +++ b/src/views/lecturer/InsideLecturer.vue @@ -130,7 +130,7 @@
- 支持图片格式为jpg/jpeg/png 图片最大为2MB + 支持图片格式为jpg/jpeg/png 图片最大为500KB
@@ -461,7 +461,7 @@
- +
@@ -487,8 +487,15 @@
-
- +
+
@@ -497,8 +504,8 @@ 提示
- 您确定要启用此讲师状态吗 - 您确定要停用此讲师状态吗 + 确定要将该讲师启用吗
启用后讲师可以登录教师端
+ 确定要将该讲师停用吗
停用后讲师不可登录教师端
@@ -510,7 +517,7 @@
-
+
@@ -552,6 +559,7 @@ export default { const state = reactive({ Addtitle: '选择教师专长', showContent: false, + closableQR:false, updialog: false, moreid: 1, byPid: null, @@ -578,7 +586,7 @@ export default { vf: false, formParam: { teachenType:'0', - userNo: null, + name: null, certStatus: 0,//认证状态 defaultteachingTime: '0', photo: 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' @@ -989,10 +997,6 @@ export default { }; // 新增讲师 const addTeacher = () => { - // let a = ['1-1-1-1','1-2-3-4','1-2-3-5'] - // let a = '1/2/3/4/5' - // let b = a.split('/') - // console.log(b[b.length-1]) cancel() state.teacherdialog = true; state.teacherdialogtitle = '新增讲师' @@ -1104,6 +1108,7 @@ export default { //清空数据 const cancel = () => { state.formParam = { + name:null, status:null, teacherType:'0', photo: null, @@ -1159,12 +1164,12 @@ export default { console.log("内部讲师详情", err); }); } - function managerChange(e, l, d, t, orgName) { - console.log(e, l); - state.searchParam.userNo = d; - state.searchParam.name = t; - // state.searchParam.trainorgName=orgName - } + // function managerChange(e, l, d, t, orgName) { + // console.log(e, l); + // state.searchParam.userNo = d; + // state.searchParam.name = t; + // // state.searchParam.trainorgName=orgName + // } //导出功能 const handleExport = () => { window.open( @@ -1185,7 +1190,7 @@ export default { ...toRefs(state), rules, clearNonNumber, - managerChange, + // managerChange, headers, beforeUpload, handlemoreid, @@ -1548,4 +1553,7 @@ export default { .item_inp .i_upload[data-v-6b882d01] { border-radius: 50% !important; } +::v-deep .ant-modal-close{ + display: none; +} \ No newline at end of file diff --git a/src/views/lecturer/LookInsideLecturer.vue b/src/views/lecturer/LookInsideLecturer.vue index 6c9facd2..6139731e 100644 --- a/src/views/lecturer/LookInsideLecturer.vue +++ b/src/views/lecturer/LookInsideLecturer.vue @@ -93,7 +93,7 @@ -