暂存按钮

GST002
Ly 3 months ago
parent e2cb53ea4b
commit 4b08a6e4f7
  1. 15
      src/views/registrationPersonage/index.vue
  2. 13
      src/views/userInfo/components/reacList.vue

@ -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;
}
}
}
}

@ -4,7 +4,7 @@
<template #header>
<div style="font-size: 16px; font-weight: 600">我的比赛</div>
</template>
<el-table :data="list" v-loading="isLoading">
<el-table :data="list" v-loading="isLoading" >
<el-table-column
label="年度比赛名称"
prop="compName"
@ -53,6 +53,7 @@
</el-table-column>
<el-table-column label="操作" prop="fileName">
<template #default="{ row }">
<div class="action-buttons">
<el-button
link
type="primary"
@ -89,6 +90,7 @@
>
取消
</el-button>
</div>
</template>
</el-table-column>
</el-table>
@ -322,6 +324,11 @@ const cancelEvent = async (id: any) => {
</script>
<style scoped lang="scss">
.action-buttons {
display: flex;
justify-content: space-between; /* 平均分布间距 */
align-items: center;
}
.container {
margin-top: 25px;
.page {
@ -333,4 +340,8 @@ const cancelEvent = async (id: any) => {
:deep(.el-table__row) {
height: 50px;
}
:deep(.el-button){
margin-left: 0px !important;
}
</style>

Loading…
Cancel
Save