|
@@ -56,7 +56,7 @@
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="可报名单位类型" prop="conditions.typeCheck">
|
|
<el-form-item label="可报名单位类型" prop="conditions.typeCheck">
|
|
|
<el-checkbox-group v-model="checkedVipLevels" @change="handleCheckedChange">
|
|
<el-checkbox-group v-model="checkedVipLevels" @change="handleCheckedChange">
|
|
|
- <el-checkbox v-for="city in form.conditions.typeCheck" :key="city" :label="city" :value="city">
|
|
|
|
|
|
|
+ <el-checkbox v-for="city in form?.conditions?.typeCheck" :key="city" :label="city" :value="city">
|
|
|
{{ selectDictLabels(lm_check_join_type, city.vipLevel, ',') }}
|
|
{{ selectDictLabels(lm_check_join_type, city.vipLevel, ',') }}
|
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
@@ -76,7 +76,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="form.conditions.totalCheck == '1'">
|
|
|
|
|
|
|
+ <el-col :span="12" v-if="form?.conditions?.totalCheck == '1'">
|
|
|
<el-form-item prop="restrictiveConditions">
|
|
<el-form-item prop="restrictiveConditions">
|
|
|
<template #label>
|
|
<template #label>
|
|
|
<span>限制条件</span>
|
|
<span>限制条件</span>
|
|
@@ -562,11 +562,12 @@ const getMeetingDetail = async () => {
|
|
|
if (!res || res.code !== 200) return;
|
|
if (!res || res.code !== 200) return;
|
|
|
form.value = {
|
|
form.value = {
|
|
|
...res.data,
|
|
...res.data,
|
|
|
- trainingTime: res.data.trainingStart && res.data.trainingEnd ? [res.data.trainingStart, res.data.trainingEnd] : undefined,
|
|
|
|
|
- signupsTime: res.data.signupStart && res.data.signupEnd ? [res.data.signupStart, res.data.signupEnd] : undefined
|
|
|
|
|
|
|
+ trainingTime: res.data?.trainingStart && res.data?.trainingEnd ? [res.data.trainingStart, res.data.trainingEnd] : undefined,
|
|
|
|
|
+ signupsTime: res.data?.signupStart && res.data?.signupEnd ? [res.data.signupStart, res.data.signupEnd] : undefined,
|
|
|
|
|
+ conditions: (res.data?.conditions?.typeCheck == null) ? form.value.conditions : (res.data?.conditions || form.value.conditions)
|
|
|
};
|
|
};
|
|
|
fields.value = res.data.questions
|
|
fields.value = res.data.questions
|
|
|
- form.value.conditions.typeCheck.forEach((i) => {
|
|
|
|
|
|
|
+ form?.value?.conditions?.typeCheck?.forEach((i) => {
|
|
|
if (i.check == '1') {
|
|
if (i.check == '1') {
|
|
|
checkedVipLevels.value.push(i)
|
|
checkedVipLevels.value.push(i)
|
|
|
}
|
|
}
|