mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
取消重复名称
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user