| | |
| | | align-center |
| | | v-model="visibleView" |
| | | destroy-on-close |
| | | width="900" |
| | | width="1200" |
| | | > |
| | | <template #header> |
| | | <div class="viewTitle">已选题目</div> |
| | |
| | | align-center |
| | | v-model="visibleLook" |
| | | destroy-on-close |
| | | width="900" |
| | | width="1200" |
| | | > |
| | | <template #header> |
| | | <div class="viewTitle">预览作业</div> |
| | |
| | | if (questionKey != null) { |
| | | for (let fieldKey of questionKey) { |
| | | if (item.datas[fieldKey]) { |
| | | const values = JSON.parse(item.datas[fieldKey]) |
| | | if (values.length > 0) { |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | item[fieldKey] = values[0].Value |
| | | } else if (values[0].Data) { |
| | | item[fieldKey] = values[0].Data.Value |
| | | } else if (!values[0].Value && values[0].FileList?.length > 0) { |
| | | item[fieldKey] = values[0].FileList |
| | | } else { |
| | | item[fieldKey] = '-' |
| | | try { |
| | | const values = JSON.parse(item.datas[fieldKey]) |
| | | if (values.length > 0) { |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | item[fieldKey] = values[0].Value |
| | | } else if (values[0].Data) { |
| | | item[fieldKey] = values[0].Data.Value |
| | | } else if (!values[0].Value && values[0].FileList?.length > 0) { |
| | | item[fieldKey] = values[0].FileList |
| | | } else { |
| | | item[fieldKey] = '-' |
| | | } |
| | | } |
| | | } catch (error) { |
| | | console.log(error, item.datas[fieldKey], item) |
| | | } |
| | | } |
| | | } |
| | |
| | | path: defaultCmsPath.value, |
| | | queryType: '*', |
| | | productId: String(classInfo?.bookId), |
| | | storeInfo: defaultCmsPath.value, |
| | | cmsPath: item.productLinkPath, |
| | | } |
| | | MG.store |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | padding: 20px 0; |
| | | span { |
| | | min-width: 80px; |
| | | } |
| | | } |
| | | } |
| | | } |