|
|
|
@ -167,9 +167,11 @@ |
|
|
|
|
<el-button class="btn" @click="() => router.back()"> |
|
|
|
|
{{ isDisable ? '返回' : isEdit ? '取消修改' : '取消报名' }} |
|
|
|
|
</el-button> |
|
|
|
|
<el-button class="btn cyan" :loading="subLoading" @click="submit" v-if="!isDisable"> |
|
|
|
|
<el-button class="btn temp" @click="submit(2)">暂存修改</el-button> |
|
|
|
|
<el-button class="btn cyan" :loading="subLoading" @click="submit(1)" v-if="!isDisable"> |
|
|
|
|
{{ isEdit ? '确认修改' : '确认报名' }} |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-dialog v-model="dialogVisible" title="上传作品" width="500" :before-close="handleClose" v-if="dialogVisible" |
|
|
|
@ -258,7 +260,7 @@ const handleClose = () => { |
|
|
|
|
} |
|
|
|
|
const WorkName = ref<string>('') |
|
|
|
|
// const fileUrl = ref<string>('') |
|
|
|
|
const fileUrl = ref<string[]>([]); |
|
|
|
|
const fileUrl = ref<string[]>([]); |
|
|
|
|
const submitWork = async () => { |
|
|
|
|
if (!raceName.value) return ElMessage.warning('请输入作品名称') |
|
|
|
|
if (!fileList.value.length) return ElMessage.warning('请上传作品') |
|
|
|
@ -297,7 +299,7 @@ const ndbs = ref<any>({}) |
|
|
|
|
const ndbsXm = ref<any>({}) |
|
|
|
|
|
|
|
|
|
const subLoading = ref(false) |
|
|
|
|
async function submit() { |
|
|
|
|
async function submit(substa:number) { |
|
|
|
|
console.log(ruleForm, 'ruleForm') |
|
|
|
|
if (!ruleForm.topicid) return ElMessage.warning('请选择题目') |
|
|
|
|
upData.value.teamManagementList[0].realname = info.value.realname |
|
|
|
@ -306,6 +308,7 @@ async function submit() { |
|
|
|
|
upData.value.topicid = ruleForm.topicid |
|
|
|
|
upData.value.workName = WorkName.value |
|
|
|
|
upData.value.files = fileUrl.value |
|
|
|
|
upData.value.substa = substa |
|
|
|
|
// if (!upData.value.teamName) { |
|
|
|
|
// ElMessage({ |
|
|
|
|
// message: '队伍名称不能为空', |
|
|
|
@ -360,6 +363,7 @@ if (route.query.edit) { |
|
|
|
|
ruleForm.topicid = res.result.topicObj ? res.result.topicObj.id : '' |
|
|
|
|
ruleForm.objName = res.result.annualCompPointName |
|
|
|
|
ruleForm.requireUploadWorks = res.result.requireUploadWorks |
|
|
|
|
WorkName.value = res.result.uploadFile.topicName |
|
|
|
|
options.value = res.result.topicList.map((item) => { |
|
|
|
|
return { |
|
|
|
|
value: item.id, |
|
|
|
@ -737,6 +741,11 @@ getTopicListApi() |
|
|
|
|
--color1: #00d0d0; |
|
|
|
|
--color2: #42d9ac; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.temp { |
|
|
|
|
// --color1: #b9e63f; |
|
|
|
|
--color2: #FFA500; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|