mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
讲师管理bug
This commit is contained in:
@@ -228,7 +228,7 @@ const searchMember = (keyword) => {
|
||||
level: item.name+'('+item.userNo+')'+item.sLevelName,
|
||||
key: item.id,
|
||||
orgName: item.orgName,
|
||||
orgId: item.departId,
|
||||
orgId: item.orgId,
|
||||
tSystemName:item.tsystemName,
|
||||
sLevelName:item.sLevelName,
|
||||
payrollPlaceCode: item.salaryId,
|
||||
|
||||
@@ -112,8 +112,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 弹窗组件 -->
|
||||
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true"
|
||||
width="40%" :title="teacherdialogtitle">
|
||||
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
|
||||
width="40%" :title="false">
|
||||
<div class="headers">
|
||||
<div class="headerTitle">{{ teacherdialogtitle }}</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="@/assets/images/basicinfo/close.png"
|
||||
@click="cancelTeacherDialog"
|
||||
/>
|
||||
</div>
|
||||
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
@@ -1328,6 +1336,24 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.headers {
|
||||
height: 73px;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: red;
|
||||
margin-bottom: 20px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
}
|
||||
}
|
||||
.selectonlineface{
|
||||
z-index: 999;
|
||||
width: 679px;
|
||||
|
||||
@@ -155,8 +155,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 弹窗组件 -->
|
||||
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true" dropdown-style="drawaer"
|
||||
width="60%" :title="teacherdialogtitle">
|
||||
<a-drawer v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
|
||||
width="60%" :title="false">
|
||||
<div class="headers">
|
||||
<div class="headerTitle">{{ teacherdialogtitle }}</div>
|
||||
<img
|
||||
style="width: 29px; height: 29px; cursor: pointer"
|
||||
src="@/assets/images/basicinfo/close.png"
|
||||
@click="cancelTeacherDialog"
|
||||
/>
|
||||
</div>
|
||||
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef" >
|
||||
<!-- 讲师姓名 name 讲师工号 userNo-->
|
||||
<a-row :gutter="16">
|
||||
@@ -164,7 +172,7 @@
|
||||
<a-form-item label="讲师名称" name="name">
|
||||
<SearchTeacher :disabled="!!id" @tlevel="tlevelChange" v-model:id="formParam.teacherId" v-model:value="formParam.name" v-model:orgId="formParam.orgId" v-model:lable="formParam.orgNames" v-model:user="formParam.userNo"
|
||||
v-model:system="tSystemNames" v-model:payrollPlaceCode="formParam.payrollPlaceId"
|
||||
v-model:payrollPlaceName="formParam.payrollPlace" v-model:level="formParam.tlevelId" ></SearchTeacher>
|
||||
v-model:payrollPlaceName="formParam.payrollPlace" ></SearchTeacher>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@@ -984,6 +992,7 @@ getAllLevelList().then((res) => {
|
||||
//保存
|
||||
const createTeacherDialog = async () => {
|
||||
console.log(state.formParam,'formParam')
|
||||
state.formParam.expense = String(state.formParam.expense)
|
||||
state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
|
||||
state.formParam.tsystemName = state.tSystemNames.systemName
|
||||
state.formParam.tsystemId = state.tSystemNames.systemId
|
||||
@@ -994,7 +1003,6 @@ getAllLevelList().then((res) => {
|
||||
return message.error(rules[formItemNames[i]][0].log)
|
||||
}
|
||||
}
|
||||
state.formParam.expense = String(state.formParam.expense)
|
||||
state.formParam.orgName = state.formParam.orgNames
|
||||
state.formParam = {...state.formParam,...state.tSystemNames}
|
||||
state.formParam.name = state.formParam?.name?.split('/')[0]
|
||||
@@ -1006,6 +1014,7 @@ getAllLevelList().then((res) => {
|
||||
getTableDate();
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
state.teacherdialog = false;
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
@@ -1018,6 +1027,7 @@ getAllLevelList().then((res) => {
|
||||
getTableDate();
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
state.teacherdialog = false;
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
@@ -1217,7 +1227,7 @@ getAllLevelList().then((res) => {
|
||||
state.formParam.teachingTime = state.formParam.teachingTime?.replace(/\D/g, '');
|
||||
state.formParam.teachingTime = state.formParam.teachingTime?.slice(0,8);
|
||||
state.formParam.teachingTime == 0 && (state.formParam.teachingTime = null);
|
||||
state.formParam.teachingTime && state.formParam.levelPay && (state.formParam.expense = state.formParam.levelPay*state.formParam.teachingTime);
|
||||
state.formParam.teachingTime && state.formParam.levelPay && (state.formParam.expense = state.formParam.levelPay*(state.formParam.teachingTime/60).toFixed(2));
|
||||
}
|
||||
const clearstudysNumber = () => {
|
||||
state.formParam.studys = state.formParam.studys.replace(/\D/g, '');
|
||||
@@ -1225,7 +1235,7 @@ getAllLevelList().then((res) => {
|
||||
const clearscoreNumber= () => {
|
||||
state.formParam.score = state.formParam.score?.replace(/\D/g, '');
|
||||
state.formParam.score == 0 && (state.formParam.score = null);
|
||||
state.formParam.score > 10 && (state.formParam.score = 10);
|
||||
state.formParam.score > 10 && (state.formParam.score = '10');
|
||||
}
|
||||
const payExpense = () => {
|
||||
state.formParam.payableExpense = state.formParam.payableExpense?.replace(/\D/g, '');
|
||||
@@ -1236,7 +1246,7 @@ getAllLevelList().then((res) => {
|
||||
state.formParam.levelPay = state.formParam.levelPay?.replace(/\D/g, '');
|
||||
state.formParam.levelPay = state.formParam.levelPay?.slice(0,8);
|
||||
state.formParam.levelPay == 0 && (state.formParam.levelPay = null);
|
||||
state.formParam.levelPay&&state.formParam.teachingTime && (state.formParam.expense = state.formParam.levelPay*state.formParam.teachingTime)
|
||||
state.formParam.levelPay&&state.formParam.teachingTime && (state.formParam.expense = state.formParam.levelPay*(state.formParam.teachingTime/60).toFixed(2))
|
||||
}
|
||||
const rules = {
|
||||
name: [{ required: true, message:'',log: '讲师不能为空' }],
|
||||
@@ -1443,6 +1453,7 @@ const column = ref([
|
||||
|
||||
])
|
||||
const tlevelChange = (e) => {
|
||||
console.log(e,'eeeee')
|
||||
state.formParam.tlevelName = e?.tlevelName
|
||||
state.formParam.tlevelId = e?.tlevelId
|
||||
// state.formParam.payrollPlace = e?.salaryName
|
||||
|
||||
Reference in New Issue
Block a user