取消重复名称

This commit is contained in:
zhangsir
2024-02-26 16:14:56 +08:00
parent d9d0a644c8
commit 4c69f9b248
3 changed files with 45 additions and 41 deletions

View File

@@ -196,6 +196,7 @@
<span style="margin-top: 10px;width: 34px;">权重</span>
<div style="display: flex;">
<a-button v-if="index===0" shape="circle" class="btn-circle btn-add" @click="inputAdd">+</a-button>
<a-button v-else shape="circle" class="btn-circle btn-add" @click="inputAdd"></a-button>
<a-button shape="circle" class="btn-circle" @click="inputRemove(index)" :disabled="formData.offteachers.length == 1"><template #icon><delete-outlined class="custom-icon"/></template></a-button>
</div>
</div>
@@ -738,7 +739,8 @@ const projectInfo = ref({});
const emit = defineEmits(['call-parent-method']);
const confirm = async()=>{
closeDrawer();
await api.getDraftTask({projectId: route.query.projectId}).then((res) => {
if(route.query.projectId){
await api.getDraftTask({projectId: route.query.projectId}).then((res) => {
projectInfo.value = res.data.data
});
request(PROJECT_DETAIL_MODIFY, { ...projectInfo.value });
@@ -746,6 +748,8 @@ const confirm = async()=>{
request(PROJECT_RELEASE, {projectId: route.query.projectId})
}
emit('call-parent-method');
}
}
const createNewCourse = () => {
@@ -861,14 +865,17 @@ async function coursePlanConfirm() {
formData.value.beginTime = dateTime.value[0]
formData.value.endTime = dateTime.value[1]
await request(COURSE_PLAN_EDIT, { ...formData.value });
await api.getDraftTask({projectId: route.query.projectId}).then((res) => {
projectInfo.value = res.data.data
});
request(PROJECT_DETAIL_MODIFY, { ...projectInfo.value });
if(projectInfo.value.projectInfo.status==3){
request(PROJECT_RELEASE, {projectId: route.query.projectId})
if(route.query.projectId){
await api.getDraftTask({projectId: route.query.projectId}).then((res) => {
projectInfo.value = res.data.data
});
request(PROJECT_DETAIL_MODIFY, { ...projectInfo.value });
if(projectInfo.value.projectInfo.status==3){
request(PROJECT_RELEASE, {projectId: route.query.projectId})
}
emit('call-parent-method');
}
emit('call-parent-method');
handleCancelStu();
tableRef.value.fetch();
}