讲师管理bug

This commit is contained in:
zhangsir
2024-12-24 16:14:18 +08:00
parent bccb4913be
commit b9419dc7e3
9 changed files with 45 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ export const recovery = (id) => http.post(`/admin/affiliation/recovery?id=${id}`
//删除培训发生组织
export const affiliationDelById = (id)=>http.post(`/admin/affiliation/delById?id=${id}`)
//停用启用培训发生组织
export const isEnable = (obj) => http.post(`/admin/affiliation/isEnable?id=${obj.id}&status=${obj.status}`)
export const isEnable = (obj) => http.post(`/admin/affiliation/isEnable`,obj)
//撤回培训发生组织
export const affiliatIsConfirm = (id) => http.post(`/admin/affiliation/isConfirm?id=${id}`)
//讲师费统计详情

View File

@@ -520,6 +520,10 @@ export default {
label:item
}
})
supperList.value.unshift({
value: '',
label: '全部'
})
}
})
}

View File

@@ -674,6 +674,10 @@ export default {
array.push(obj);
});
LecturerSystemList.value = array;
LecturerSystemList.value.unshift({
value: "",
label: "全部"
})
}
})
}
@@ -706,6 +710,10 @@ export default {
array.push(obj);
});
getLevelList.value = array;
getLevelList.value.unshift({
value: "",
label: "全部"
})
}
})
}

View File

@@ -64,7 +64,7 @@
</a-form-item>
<!-- <div style="width: 100%;"></div> -->
<a-form-item class="select" v-if="moreid == 2">
<a-select style="min-width: 200px ; height: auto ;margin-bottom:20px" v-model:value="score" placeholder="请选择评分"
<a-select style="min-width: 200px ; height: auto ;margin-bottom:20px" v-model:value="score" placeholder="请选择评分" showArrow
:options="scoreList" allowClear showSearch mode="multiple" @change="scoreChange"
v-on:keydown.enter="enterPressHadlerSearch">
</a-select>
@@ -659,6 +659,10 @@ export default {
array.push(obj);
});
LecturerSystemList.value = array;
LecturerSystemList.value.unshift({
value: '',
label: '全部'
})
}
console.log("获取讲师", LecturerSystemList);
})
@@ -687,7 +691,7 @@ export default {
{ value: '1', label: "手动录入" },
])
const scoreList = ref([
// { value: '', label: "全部" },
{ value: '', label: "全部" },
{ value: '90-100', label: "90-100" },
{ value: '80-90', label: "80-90" },
{ value: '70-80', label: "70-80" },
@@ -699,6 +703,7 @@ export default {
{ value: '10~20', label: "10~20" },
])
const studysList = ref([
{ value: '', label: "全部" },
{ value: '0-30', label: "0~30" },
{ value: '0-50', label: "0~50" },
{ value: '0-70', label: "0~70" },

View File

@@ -387,6 +387,10 @@
array.push(obj);
});
trainOrglist.value = array;
trainOrglist.value.unshift({
value: '',
label: "全部"
})
}
})
}
@@ -400,7 +404,7 @@
])
//认证状态0待确认 1待提交 2审核中 3审核通过 4.审核拒绝
const AuthenticationStatusList = ref([
// { value: 0, label: "待确认" },
{ value: '', label: "全部" },
{ value: 1, label: "待提交" },
{ value: 2, label: "审核中" },
{ value: 4, label: "审核拒绝" },

View File

@@ -699,6 +699,9 @@
value: item.id
}
})
state.orgList.unshift({
label: '全部', value: ''
})
})
}
//费用类型
@@ -721,6 +724,7 @@
])
//认证状态
const AuthenticationStatusList = ref([
{ value: '', label: "全部" },
{ value: '0', label: "待确认" },
{ value: '1', label: "待提交" },
{ value: '2', label: "审核中" },
@@ -748,6 +752,10 @@
array.push(obj);
});
lecturerSystemList.value = array;
lecturerSystemList.value.unshift({
value: '',
label: '全部'
})
}
})
}
@@ -768,6 +776,10 @@ getAllLevelList().then((res) => {
array.push(obj);
});
getLevelList.value = array;
getLevelList.value.unshift({
value: "",
label: "全部"
})
}
})
}

View File

@@ -378,6 +378,10 @@ export default {
array.push(obj);
});
TrainOrglist.value = array;
TrainOrglist.value.unshift({
value: '',
label: "全部"
})
}
console.log("获取发薪地",TrainOrglist);
})

View File

@@ -305,8 +305,8 @@ export default {
},
{
title: '开发课程时长 ',
dataIndex: 'expense',
key: 'expense',
dataIndex: 'teachingDevelop',
key: 'teachingDevelop',
ellipsis: true,
align: "center",
width: 160,

View File

@@ -41,8 +41,8 @@
<a-button v-if="record.status!=2" type="link" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
<a-button v-if="record.status==2&&false" type="link" @click="() => updateModal(record)">撤回</a-button>
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
<a-button @click="isEnablePost(record,0)" type="link" >启用</a-button>
<a-button @click="isEnablePost(record,1)" type="link" >停用</a-button>
<a-button @click="isEnablePost(record,0)" v-if="record.enable" type="link" >启用</a-button>
<a-button @click="isEnablePost(record,1)" v-if="!record.enable" type="link" >停用</a-button>
</a-space>
</template>
</template>