no message
Showing
1 changed file
with
37 additions
and
7 deletions
| ... | @@ -86,22 +86,52 @@ | ... | @@ -86,22 +86,52 @@ |
| 86 | <el-checkbox-group v-model="showForm.form.type"> | 86 | <el-checkbox-group v-model="showForm.form.type"> |
| 87 | <div style="display: flex;align-items: center;"> | 87 | <div style="display: flex;align-items: center;"> |
| 88 | <el-checkbox label="2D" value="2D" /> | 88 | <el-checkbox label="2D" value="2D" /> |
| 89 | <el-select | ||
| 90 | v-model="showForm.form.twoDimensionalType" | ||
| 91 | placeholder="请选择上传方式" | ||
| 92 | size="small" | ||
| 93 | style="width: 240px;margin-left: 16px;" | ||
| 94 | > | ||
| 95 | <el-option | ||
| 96 | v-for="item in dimensional_type" | ||
| 97 | :key="item.value" | ||
| 98 | :label="item.label" | ||
| 99 | :value="item.value" | ||
| 100 | /> | ||
| 101 | </el-select> | ||
| 102 | </div> | ||
| 103 | <div style="display: flex;align-items: center;"> | ||
| 89 | <el-checkbox label="3D" value="3D" /> | 104 | <el-checkbox label="3D" value="3D" /> |
| 105 | <el-select | ||
| 106 | v-model="showForm.form.threeDimensionalType" | ||
| 107 | placeholder="请选择上传方式" | ||
| 108 | size="small" | ||
| 109 | style="width: 240px;margin-left: 16px;" | ||
| 110 | > | ||
| 111 | <el-option | ||
| 112 | v-for="item in dimensional_type" | ||
| 113 | :key="item.value" | ||
| 114 | :label="item.label" | ||
| 115 | :value="item.value" | ||
| 116 | /> | ||
| 117 | </el-select> | ||
| 90 | </div> | 118 | </div> |
| 91 | </el-checkbox-group> | 119 | </el-checkbox-group> |
| 92 | </el-form-item> | 120 | </el-form-item> |
| 93 | <el-form-item v-if="determineStatus('2D')" :label="$t('course.dialogTwoD')" label-width="80"> | 121 | <el-form-item v-if="determineStatus('2D')" :label="$t('course.dialogTwoD')" label-width="80"> |
| 94 | <template> | 122 | <template v-if="showForm.form.twoDimensionalType == 0"> |
| 95 | <imageUpload v-model="showForm.form.twoDimensionalOssId" :limit='10' :fileType='["png", "jpg", "jpeg", "ico"]'/> | 123 | <imageUpload v-model="showForm.form.twoDimensionalOssId" :limit='10' :fileType='["png", "jpg", "jpeg", "ico"]'/> |
| 96 | <fileUpload v-model="showForm.form.twoDimensionalUrl" :fileType='["ldr"]'/> | 124 | </template> |
| 97 | <fileUpload v-model="showForm.form.twoDimensionalType" :fileType='["json"]'/> | 125 | <template v-else> |
| 126 | <el-input v-model="showForm.form.twoDimensionalUrl" placeholder="请输入链接URL" /> | ||
| 98 | </template> | 127 | </template> |
| 99 | </el-form-item> | 128 | </el-form-item> |
| 100 | <el-form-item v-if="determineStatus('3D')" :label="$t('course.dialogThreeD')" label-width="80"> | 129 | <el-form-item v-if="determineStatus('3D')" :label="$t('course.dialogThreeD')" label-width="80"> |
| 101 | <template> | 130 | <template v-if="showForm.form.threeDimensionalType == 0"> |
| 102 | <imageUpload v-model="showForm.form.threeDimensionalOssId" :limit='10' :fileType='["png", "jpg", "jpeg", "ico"]'/> | 131 | <imageUpload v-model="showForm.form.threeDimensionalOssId" :limit='10' :fileType='["png", "jpg", "jpeg", "ico"]'/> |
| 103 | <fileUpload v-model="showForm.form.threeDimensionalUrl" :fileType='["ldr"]'/> | 132 | </template> |
| 104 | <fileUpload v-model="showForm.form.threeDimensionalType" :fileType='["json"]'/> | 133 | <template v-else> |
| 134 | <el-input v-model="showForm.form.threeDimensionalUrl" placeholder="请输入链接URL" /> | ||
| 105 | </template> | 135 | </template> |
| 106 | </el-form-item> | 136 | </el-form-item> |
| 107 | <el-form-item :label="$t('course.dialogCase')" prop="caseOssId" label-width="80"> | 137 | <el-form-item :label="$t('course.dialogCase')" prop="caseOssId" label-width="80"> |
| ... | @@ -186,7 +216,7 @@ function determineStatus(val) { | ... | @@ -186,7 +216,7 @@ function determineStatus(val) { |
| 186 | 216 | ||
| 187 | const findIndex = (showForm.value?.form?.type || []).findIndex(i => i == val) | 217 | const findIndex = (showForm.value?.form?.type || []).findIndex(i => i == val) |
| 188 | console.log(findIndex); | 218 | console.log(findIndex); |
| 189 | return true; | 219 | return findIndex > -1 |
| 190 | } | 220 | } |
| 191 | 221 | ||
| 192 | 222 | ... | ... |
-
Please register or sign in to post a comment