mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
删除打印
This commit is contained in:
@@ -130,7 +130,6 @@ watch(()=>props.value,(val)=>{
|
||||
}
|
||||
},{immediate:true})
|
||||
onMounted(()=>{
|
||||
console.log('hahhahahahahhaha')
|
||||
})
|
||||
const teacherName = ref('')
|
||||
const selectName = ref(null)
|
||||
@@ -158,7 +157,7 @@ const handleChange = (e,l) => {
|
||||
// systemName.value = l.systemName
|
||||
levelName.value = l.levelName
|
||||
teacherId.value = l.key
|
||||
byUserId(teacherId.value)
|
||||
byUserId(teacherId.value,l)
|
||||
orgId.value = l.orgId
|
||||
payrollPlaceCode.value = l.payrollPlaceCode
|
||||
payrollPlaceName.value = l.payrollPlaceName
|
||||
@@ -241,7 +240,6 @@ const searchMember = (keyword) => {
|
||||
status: 1,
|
||||
}
|
||||
!props.lecturer && getTeacherList(params).then(res=>{
|
||||
console.log(res,'ressss')
|
||||
if(res.data.code == 200){
|
||||
loading.value = false
|
||||
options.value = res.data.data.records.map((item) => {
|
||||
@@ -254,6 +252,7 @@ const searchMember = (keyword) => {
|
||||
orgName: item.orgName,
|
||||
orgId: item.orgId,
|
||||
tSystemName:item.tsystemName,
|
||||
tSystemId:item.tsystemId,
|
||||
sLevelName:item.sLevelName,
|
||||
payrollPlaceCode: item.salaryId,
|
||||
payrollPlaceName:item.salaryName,
|
||||
@@ -380,8 +379,8 @@ const notChange = () => {
|
||||
payrollPlaceName.value = ''
|
||||
}
|
||||
const loadingChange = ref(false)
|
||||
const byUserId = (val)=>{
|
||||
if(val){
|
||||
const byUserId = (val,list)=>{
|
||||
if(val&&props.lecturer){
|
||||
loadingChange.value = true
|
||||
getSystemInfoByUserId(teacherId.value).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
@@ -403,9 +402,17 @@ const byUserId = (val)=>{
|
||||
loadingChange.value = false
|
||||
// emit('update:system',systemName.value)
|
||||
}).catch(err=>{
|
||||
message.error('讲师体系获取失败,请重新选择')
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
loadingChange.value = false
|
||||
})
|
||||
}else{
|
||||
systemName.value = {
|
||||
systemName:list.tSystemName,
|
||||
systemId:list.tSystemId
|
||||
}
|
||||
emit('update:system',systemName.value)
|
||||
emit('byUserIdData',list.levelPay)
|
||||
}
|
||||
}
|
||||
const changeOut = () => {
|
||||
|
||||
@@ -385,7 +385,6 @@ export default {
|
||||
return false;
|
||||
}
|
||||
let isLt1M = file.size < 500000;
|
||||
console.log(file.size, isLt1M)
|
||||
if (!isLt1M) {
|
||||
message.error("图片不能超过500KB! 请重新上传");
|
||||
return false;
|
||||
@@ -393,10 +392,8 @@ export default {
|
||||
|
||||
const formDatas = new FormData();
|
||||
formDatas.append("file", file);
|
||||
console.log("file", file)
|
||||
fileUp(formDatas).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
console.log(res.data.data, 45);
|
||||
state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data;
|
||||
|
||||
// state.hasImgName = file.name;
|
||||
@@ -662,7 +659,6 @@ export default {
|
||||
id: state.editTeacherid,
|
||||
status: state.newStatus
|
||||
}
|
||||
console.log(ids)
|
||||
updateTeacherState(ids).then((res) => {
|
||||
// message.success("操作成功");
|
||||
state.editTeacher = false
|
||||
@@ -707,7 +703,6 @@ export default {
|
||||
id:null,
|
||||
supplier:null,
|
||||
}
|
||||
console.log(state.formParam);
|
||||
}
|
||||
const rules = {
|
||||
name: [{ required: true, message: '',log: '讲师不能为空' }],
|
||||
@@ -753,7 +748,6 @@ export default {
|
||||
//外部讲师详情
|
||||
const TeacherSystem = () => {
|
||||
getTeacherById({id:state.id}).then((res) => {
|
||||
console.log("外部讲师详情", res.data);
|
||||
state.formParam = res.data.data
|
||||
state.formParam.defaultTeachingTime = state.formParam.defaultTeachingTime == null ? 0 : state.formParam.defaultTeachingTime
|
||||
state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description
|
||||
@@ -762,7 +756,6 @@ export default {
|
||||
.catch((err) => {
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
console.log("外部讲师详情", err);
|
||||
});
|
||||
}
|
||||
const sendName=()=>{
|
||||
@@ -776,7 +769,6 @@ export default {
|
||||
}
|
||||
const sendPhone=()=>{
|
||||
state.phoneEmil = 0
|
||||
console.log(state.formParam.mobile)
|
||||
const reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
|
||||
if (!state.formParam.mobile) {
|
||||
} else if (!reg.test(state.formParam.mobile)) {
|
||||
@@ -836,7 +828,6 @@ export default {
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
@@ -783,7 +783,6 @@ export default {
|
||||
tableData.value = res.data.data.records
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
state.tableLoading = false
|
||||
console.log("获取tableData", tableData);
|
||||
})
|
||||
.catch(err => {
|
||||
state.tableLoading = false
|
||||
@@ -830,7 +829,6 @@ export default {
|
||||
//保存
|
||||
const createTeacherDialog = async () => {
|
||||
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
|
||||
console.log(state.formParam)
|
||||
if(state.formParam.studys==0){
|
||||
state.formParam.studys = null
|
||||
}
|
||||
@@ -952,7 +950,6 @@ export default {
|
||||
state.formParam.name=state.formParam.teacherName
|
||||
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
|
||||
state.formParam.courseStatus = String(state.formParam.courseStatus)
|
||||
console.log(state.formParam.teachingDate)
|
||||
})
|
||||
.catch((err) => {
|
||||
});
|
||||
@@ -961,7 +958,6 @@ export default {
|
||||
// console.log(e, l, d, t, orgName,'e, l, d, t, orgName');
|
||||
state.formParam.mobile=e?l.mobile:''
|
||||
state.formParam.teacherId=e?l.id:''
|
||||
console.log(state.formParam)
|
||||
// state.searchParam.userNo = d;
|
||||
// state.searchParam.name = t;
|
||||
// state.searchParam.trainorgName=orgName
|
||||
@@ -987,7 +983,6 @@ export default {
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
@@ -577,7 +577,6 @@ export default {
|
||||
return false;
|
||||
}
|
||||
let isLt1M = file.size < 500000;
|
||||
console.log(file.size, isLt1M)
|
||||
if (!isLt1M) {
|
||||
message.error("图片不能超过500KB! 请重新上传");
|
||||
return false;
|
||||
@@ -585,10 +584,8 @@ export default {
|
||||
|
||||
const formDatas = new FormData();
|
||||
formDatas.append("file", file);
|
||||
console.log("file", file)
|
||||
fileUp(formDatas).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
console.log(res.data.data, 45);
|
||||
state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data;
|
||||
|
||||
// state.hasImgName = file.name;
|
||||
@@ -623,12 +620,10 @@ export default {
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
console.log(file);
|
||||
teacherUpload(formData).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
// state.formParam.filesList = [res.data.data];
|
||||
state.formParam.filesList = file.name
|
||||
console.log(state.formParam.filesList);
|
||||
// state.hasImgName = res.data.data;
|
||||
}
|
||||
});
|
||||
@@ -966,7 +961,6 @@ export default {
|
||||
getTeacherList(objA)
|
||||
.then((res) => {
|
||||
// tableData.value = res.data.data.records
|
||||
console.log(tableData.value,'tableData.value')
|
||||
let objA = res.data.data.records
|
||||
objA.map((item) => {
|
||||
if (item.orgName !== null) {
|
||||
@@ -1020,7 +1014,6 @@ export default {
|
||||
});
|
||||
}
|
||||
const teacherTlevel = (val) => {
|
||||
console.log(val,'vallll')
|
||||
if(val?.avatar){
|
||||
val.avatar = val.avatar.includes('upload') ? val.avatar : '/upload' + val.avatar
|
||||
state.formParam.photo = val.avatar
|
||||
@@ -1173,7 +1166,6 @@ export default {
|
||||
id: state.editTeacherid,
|
||||
status: state.newStatus
|
||||
}
|
||||
console.log(ids)
|
||||
updateTeacherState(ids).then((res) => {
|
||||
message.success("操作成功");
|
||||
state.editTeacher = false
|
||||
@@ -1293,7 +1285,6 @@ export default {
|
||||
}
|
||||
//内部讲师详情
|
||||
const TeacherSystem = () => {
|
||||
console.log(state.id)
|
||||
getTeacherById({id:state.id}).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
// let objA= res.data.data[0]
|
||||
@@ -1336,7 +1327,6 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
console.log("内部讲师详情", state.formParam);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("内部讲师详情", err);
|
||||
|
||||
@@ -681,7 +681,6 @@ export default {
|
||||
label: '全部'
|
||||
})
|
||||
}
|
||||
console.log("获取讲师", LecturerSystemList);
|
||||
})
|
||||
}
|
||||
LecturerSystemLista()
|
||||
@@ -689,7 +688,6 @@ export default {
|
||||
const store = useStore();
|
||||
const sysTypeOptions = computed(() => store.state.content_type);
|
||||
const treetype = (val, lab) => {
|
||||
console.log(lab)
|
||||
state.formParam.courseTypeName = lab.toString()
|
||||
}
|
||||
const OnTheJobStatusList = ref([
|
||||
@@ -965,7 +963,6 @@ export default {
|
||||
pageSize:50
|
||||
}
|
||||
queryTrainOrgPor(obj).then((res) => {
|
||||
console.log(res,'rssssss')
|
||||
state.orgList = res.data.data?.map(item=>{
|
||||
return{
|
||||
label: item.affiliationName,
|
||||
@@ -984,7 +981,6 @@ export default {
|
||||
})
|
||||
}
|
||||
const changeOrg = (e,l) => {
|
||||
console.log(e,'eeeee',l)
|
||||
state.formParam.trainOrgName = l?.label
|
||||
}
|
||||
const rules = {
|
||||
@@ -1143,7 +1139,6 @@ export default {
|
||||
state.formParam.tlevelId = e?.tlevelId
|
||||
}
|
||||
watch(() => state.formParam.orgNames, (val) => {
|
||||
console.log(val, 'orgName')
|
||||
if (val) {
|
||||
const parts = val.split('/');
|
||||
const reversedParts = parts.reverse();
|
||||
@@ -1177,7 +1172,6 @@ export default {
|
||||
}
|
||||
state.formParam.orgName = state.formParam.orgNames
|
||||
state.formParam = { ...state.formParam, ...state.tSystemNames }
|
||||
console.log(state.formParam)
|
||||
if (state.vf == false) {
|
||||
updateInTeacherCourse(state.formParam).then(response => {
|
||||
message.success("编辑成功");
|
||||
@@ -1331,7 +1325,6 @@ export default {
|
||||
state.formParam.orgNames = state.formParam.orgName
|
||||
state.formParam.teachingDate = res.data.data.teachingDate ? dayjs(res.data.data.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "-"
|
||||
state.formParam.courseStatus = String(state.formParam.courseStatus)
|
||||
console.log(state.formParam);
|
||||
})
|
||||
.catch((err) => {
|
||||
});
|
||||
@@ -1354,7 +1347,6 @@ export default {
|
||||
// remark: record.remark,
|
||||
// createFrom: record.createFrom
|
||||
// }
|
||||
console.log(state.formParam)
|
||||
}
|
||||
const column = ref([{
|
||||
title: '基准课酬 ',
|
||||
@@ -1417,7 +1409,6 @@ export default {
|
||||
const gettableDatas = (record) => {
|
||||
getExpenseByCourseId({ courseId: record.courseId,teacherId:record.teacherId })
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
tableDatas.value = res.data.data
|
||||
// state.tableDataTotal = Number(res.data.data.total);
|
||||
}).catch(err => {
|
||||
@@ -1437,13 +1428,11 @@ export default {
|
||||
window.open(
|
||||
`${process.env.VUE_APP_BASE_API}/admin/export/exportInTeacherRecord?recordType=1&name=${state.searchParam.name || ''}&courseName=${state.searchParam.courseName || ''}&type=${state.searchParam.type || ''}&courseStatus=${state.searchParam.courseStatus || ''}&createdFee=${state.searchParam.createdFee || ''}&beginTime=${state.searchParam.beginTime || ''}&endTime=${state.searchParam.endTime || ''}&trainOrgId=${state.searchParam.trainOrgId || ''}&score=${state.searchParam.score || ''}&studys=${state.searchParam.studys || ''}
|
||||
`)
|
||||
console.log(state.searchParam.name, state.searchParam, '参数')
|
||||
}
|
||||
const handleImport = () => {
|
||||
state.showWork = true
|
||||
}
|
||||
const beforeUpload2 = (file) => {
|
||||
console.log(file);
|
||||
const fileType = [
|
||||
"xls",
|
||||
"xlsx",
|
||||
@@ -1458,7 +1447,6 @@ export default {
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
console.log(file);
|
||||
fileUp(formData).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
state.imgList.push({
|
||||
@@ -1466,7 +1454,6 @@ export default {
|
||||
name: file.name,
|
||||
size: file.size,
|
||||
});
|
||||
console.log(state.imgList);
|
||||
// state.hasImgName = res.data.data;
|
||||
}
|
||||
});
|
||||
@@ -1490,7 +1477,6 @@ export default {
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e", e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
@@ -659,7 +659,6 @@ export default {
|
||||
pageSize:50
|
||||
}
|
||||
queryTrainOrgPor(obj).then((res) => {
|
||||
console.log(res,'rssssss')
|
||||
state.orgList = res.data.data?.map(item=>{
|
||||
return{
|
||||
label: item.affiliationName,
|
||||
@@ -669,11 +668,9 @@ export default {
|
||||
})
|
||||
}
|
||||
const changeOrg = (e,l) => {
|
||||
console.log(e,'eeeee',l)
|
||||
state.formParam.trainOrgName = l?.label
|
||||
}
|
||||
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
|
||||
@@ -818,7 +815,6 @@ export default {
|
||||
}
|
||||
})
|
||||
const edit = (record) => {
|
||||
console.log(record,'record')
|
||||
if(record.id == 2){
|
||||
state.modalVisible = true;
|
||||
state.copyName = record.name
|
||||
@@ -845,7 +841,6 @@ export default {
|
||||
});
|
||||
}
|
||||
const recome = (record) => {
|
||||
console.log(record,'record')
|
||||
dialog({
|
||||
content: '确定要移除此条数据吗?',
|
||||
ok: () => {
|
||||
|
||||
@@ -615,7 +615,6 @@
|
||||
const cancelTeachingDialog = (val) => {
|
||||
if(state.teachingdialog = true )
|
||||
{
|
||||
console.log(val,'valllllll')
|
||||
if(val == 1){
|
||||
submit(state.formParam)
|
||||
return
|
||||
@@ -713,7 +712,6 @@
|
||||
})
|
||||
}
|
||||
const submit = (record) => {
|
||||
console.log(record,'record')
|
||||
dialog({
|
||||
content: '请仔细核对讲师费信息,确认无误后,将自动进入(BPM系统)审批流程',
|
||||
ok: () => {
|
||||
@@ -743,7 +741,6 @@
|
||||
state.example = val
|
||||
}
|
||||
const withdraw = (record) => {
|
||||
console.log(record,'record')
|
||||
dialog({
|
||||
content: '确定要撤回此条数据吗?',
|
||||
ok: () => {
|
||||
@@ -769,7 +766,6 @@
|
||||
queryById({id : state.id}).then((res) => {
|
||||
// state.formParam=Object.assign({} ,res.data.data)
|
||||
state.formParam=res.data.data
|
||||
console.log( state.formParam)
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("详情", err);
|
||||
@@ -1060,7 +1056,6 @@
|
||||
},
|
||||
])
|
||||
function managerChange(e, l, d, t, orgName) {
|
||||
console.log(e, l);
|
||||
state.searchParam.teacherNo = d;
|
||||
state.searchParam.teacherName = t;
|
||||
// state.searchParam.trainorgName=orgName
|
||||
@@ -1076,7 +1071,6 @@
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
@@ -703,7 +703,6 @@
|
||||
pageSize:50
|
||||
}
|
||||
queryTrainOrgPor(obj).then((res) => {
|
||||
console.log(res,'rssssss')
|
||||
state.orgList = res.data.data?.map(item=>{
|
||||
return{
|
||||
label: item.affiliationName,
|
||||
@@ -781,7 +780,6 @@
|
||||
])
|
||||
const changetlevel = () => {
|
||||
getAllLevelList().then((res) => {
|
||||
console.log(res,'rssssss')
|
||||
if (res.data.code === 200) {
|
||||
let arr = res.data.data;
|
||||
let array = [];
|
||||
@@ -1166,7 +1164,6 @@ getAllLevelList().then((res) => {
|
||||
tableData.value = res.data.data.records
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
state.tableLoading=false
|
||||
console.log("获取讲师tableData", tableData);
|
||||
}).catch(err=>{
|
||||
state.tableLoading=false
|
||||
message.destroy()
|
||||
@@ -1213,7 +1210,6 @@ getAllLevelList().then((res) => {
|
||||
});
|
||||
}
|
||||
watch(() => state.formParam.orgNames, (val) => {
|
||||
console.log(val, 'orgName')
|
||||
if(val){
|
||||
const parts = val.split('/');
|
||||
const reversedParts = parts.reverse();
|
||||
@@ -1221,12 +1217,10 @@ getAllLevelList().then((res) => {
|
||||
}
|
||||
})
|
||||
const changeOrg = (e,l) => {
|
||||
console.log(e,'eeeee',l)
|
||||
state.formParam.trainOrgName = l?.label
|
||||
}
|
||||
//保存
|
||||
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
|
||||
@@ -1347,7 +1341,6 @@ getAllLevelList().then((res) => {
|
||||
let ids ={
|
||||
id : state.id
|
||||
}
|
||||
console.log(state.handleOperate1)
|
||||
if ( state.handleOperate1 === 'A10'){
|
||||
updateStatusSubmit(ids).then((res) => {
|
||||
message.success("提交成功");
|
||||
@@ -1429,7 +1422,6 @@ getAllLevelList().then((res) => {
|
||||
const getListData = () => {
|
||||
state.SeeLoading = true
|
||||
getListByTeacherExpenseId(state.id).then(res=>{
|
||||
console.log(res,'ressssss')
|
||||
if(res.data.code == 200){
|
||||
state.tableDataSee = res.data.data
|
||||
}
|
||||
@@ -1515,7 +1507,6 @@ getAllLevelList().then((res) => {
|
||||
content: '是否确认讲师费信息无误?提交后按“培训发生组织”汇总至审批中心,等待验证后“提交”进入审批流程。',
|
||||
ok: () => {
|
||||
submitApproval({ids:state.formParam.id}).then(res=>{
|
||||
console.log(res,'resssss')
|
||||
if(res.data.code == 200){
|
||||
message.success('提交成功')
|
||||
state.teachingdialog = false
|
||||
@@ -1818,12 +1809,13 @@ const column = ref([
|
||||
// state.formParam.levelPay = e?.levelPay
|
||||
}
|
||||
const byUserIdData = (e) => {
|
||||
e?.levelVoList.some(item=>{
|
||||
if(item.id == e?.levelId){
|
||||
state.formParam.levelPay = item.levelPay
|
||||
return true
|
||||
}
|
||||
})
|
||||
// e?.levelVoList.some(item=>{
|
||||
// if(item.id == e?.levelId){
|
||||
// state.formParam.levelPay = item.levelPay
|
||||
// return true
|
||||
// }
|
||||
// })
|
||||
state.formParam.levelPay = e
|
||||
}
|
||||
//导出功能
|
||||
const handleExport = ()=>{
|
||||
@@ -1836,7 +1828,6 @@ const column = ref([
|
||||
// }, `project_${new Date().getTime()}.xlsx` )
|
||||
}
|
||||
const beforeUpload2 = (file) => {
|
||||
console.log(file);
|
||||
const fileType = [
|
||||
"xls",
|
||||
"xlsx",
|
||||
@@ -1851,7 +1842,6 @@ const column = ref([
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append("file", file);
|
||||
console.log(file);
|
||||
fileUp(formData).then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
state.imgList.push({
|
||||
@@ -1859,7 +1849,6 @@ const column = ref([
|
||||
name: file.name,
|
||||
size: file.size,
|
||||
});
|
||||
console.log(state.imgList);
|
||||
// state.hasImgName = res.data.data;
|
||||
}
|
||||
});
|
||||
@@ -1867,7 +1856,6 @@ const column = ref([
|
||||
};
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
@@ -520,7 +520,6 @@ const getTableDate = (obj) => {
|
||||
let objA = { ...state.searchParam };
|
||||
queryTrainOrg(objA)
|
||||
.then((res) => {
|
||||
console.log(res,'res')
|
||||
tableData.value = res.data.data.records
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
state.tableLoading = false
|
||||
@@ -556,11 +555,9 @@ const getTableDate = (obj) => {
|
||||
content: '是否确认撤回 ?',
|
||||
ok: () => {
|
||||
lecturer.affiliatIsConfirm(record.id).then(res=>{
|
||||
console.log(res,'res')
|
||||
message.success("撤回成功")
|
||||
getTableDate();
|
||||
}).catch(err=>{
|
||||
console.log(err,'errr')
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
@@ -664,7 +661,6 @@ const getTableDate = (obj) => {
|
||||
//修改信息弹窗
|
||||
const handleModify = (record) => {
|
||||
lecturer.getAffiliationById(record.id).then(res=>{
|
||||
console.log(res,'resssss')
|
||||
res.data.data.status==3 && (state.editParams = false)
|
||||
state.formParam = res.data.data
|
||||
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
|
||||
@@ -796,7 +792,6 @@ const getTableDate = (obj) => {
|
||||
}
|
||||
//保存
|
||||
const createTeacherDialog = async (val) => {
|
||||
console.log(state.formParam,'state.formParam')
|
||||
state.formParam.affiliationName = state.formParam.affiliationName?.trim()
|
||||
state.formParam.affiliationUserList = [...state.formParam?.actArray,...state.formParam?.leveOneArray,...state.formParam?.leveTwoArray,...state.formParam?.leveThreeArray]
|
||||
state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.id).join(',')
|
||||
@@ -874,7 +869,6 @@ const getTableDate = (obj) => {
|
||||
}
|
||||
//回车
|
||||
const enterPressHadlerSearch = e => {
|
||||
console.log("e",e);
|
||||
if (e.keyCode === 13) {
|
||||
searchSubmit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user