QYF-GitLab1
5 小时以前 49a435043b0b1a289a24606e35253365d7ab3956
src/views/classManage/jobManage.vue
@@ -389,7 +389,7 @@
        align-center
        v-model="visibleView"
        destroy-on-close
        width="900"
        width="1200"
      >
        <template #header>
          <div class="viewTitle">已选题目</div>
@@ -445,7 +445,7 @@
        align-center
        v-model="visibleLook"
        destroy-on-close
        width="900"
        width="1200"
      >
        <template #header>
          <div class="viewTitle">预览作业</div>
@@ -914,18 +914,22 @@
        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)
              }
            }
          }
@@ -1380,7 +1384,6 @@
      path: defaultCmsPath.value,
      queryType: '*',
      productId: String(classInfo?.bookId),
      storeInfo: defaultCmsPath.value,
      cmsPath: item.productLinkPath,
    }
    MG.store
@@ -1886,6 +1889,9 @@
      justify-content: center;
      align-items: center;
      padding: 20px 0;
      span {
        min-width: 80px;
      }
    }
  }
}