修改上传作品状态控制

GST002_old
JayChou 4 months ago
parent 09be7b0592
commit 8cfec1d425
  1. 6
      src/views/userInfo/components/reacList.vue

@ -41,12 +41,12 @@
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button
link link
type="primary" :type="row.enrollStatic == '2' ? 'primary': 'warning' "
size="small" size="small"
@click="uploadZp(row.annualCompid, row.enrollStatic)" @click="uploadZp(row.annualCompid, row.enrollStatic)"
v-if="row.uploadWorkFlag != 'yes'" v-if="row.uploadWorkFlag != 'yes'"
> >
上传作品 {{row.enrollStatic == '2' ? '上传作品' : '未审核'}}
</el-button> </el-button>
<el-tag v-else>已上传作品</el-tag> <el-tag v-else>已上传作品</el-tag>
</template> </template>
@ -172,7 +172,7 @@ const raceName = ref<any>('')
const dialogVisible = ref(false) const dialogVisible = ref(false)
const annualCompid = ref('') const annualCompid = ref('')
const uploadZp = (id: any, staus: any) => { const uploadZp = (id: any, staus: any) => {
if (staus == 1) return ElMessage.warning('审核后方可上传作品') if (staus != 2) return ElMessage.warning('审核后方可上传作品')
console.log(id) console.log(id)
annualCompid.value = id annualCompid.value = id
dialogVisible.value = true dialogVisible.value = true

Loading…
Cancel
Save