diff --git a/src/renderer/src/components/template-study/container/adjust-dialog.vue b/src/renderer/src/components/template-study/container/adjust-dialog.vue index 0258471..ef4d910 100644 --- a/src/renderer/src/components/template-study/container/adjust-dialog.vue +++ b/src/renderer/src/components/template-study/container/adjust-dialog.vue @@ -102,7 +102,7 @@ const getCompletion = async (val) => { type: 'robot', msg: answer, }) - + } finally { loaded.value = false } @@ -117,11 +117,11 @@ const saveAdjust = (item) =>{ onMounted(() => { let data = sessionStore.get('subject.curNode') Object.assign(curNode, data); - let text = props.modeType == 1 ? '课标': props.modeType == 2 ? '教材' : '考试' - + let text = props.modeType == 1||props.modeType == 2 ? '课标' : '考试' let jsonKey = `${text}-${data.edustage}-${data.edusubject}` + console.log(jsonKey) params.dataset_id = dataSetJson[jsonKey] - + }) @@ -152,7 +152,7 @@ onMounted(() => { width: 100%; justify-content: flex-start; flex-direction: column; - + } .chart-item { border-radius: 5px; @@ -257,4 +257,4 @@ onMounted(() => { transform: scale(0.01); } } - \ No newline at end of file + diff --git a/src/renderer/src/components/template-study/container/result.vue b/src/renderer/src/components/template-study/container/result.vue index bead413..834df43 100644 --- a/src/renderer/src/components/template-study/container/result.vue +++ b/src/renderer/src/components/template-study/container/result.vue @@ -257,7 +257,7 @@ const removeItem = async (item) => { isAdd.value = false Object.assign(keywordItem, item) isEditKeyWord.value = true - + } // const { msg } = await removeChildTemp(item.id) @@ -269,7 +269,7 @@ const removeItem = async (item) => { onMounted(() => { let data = sessionStore.get('subject.curNode') Object.assign(curNode, data); - let text = props.modeType == 1 ? '课标' : props.modeType == 2 ? '教材' : '考试' + let text = props.modeType == 1 || props.modeType == 2 ? '课标' : '考试' let jsonKey = `${text}-${data.edustage}-${data.edusubject}` params.dataset_id = dataSetJson[jsonKey] diff --git a/src/renderer/src/views/examination-analysis/container/adjust-dialog.vue b/src/renderer/src/views/examination-analysis/container/adjust-dialog.vue index 3b23962..3b6151c 100644 --- a/src/renderer/src/views/examination-analysis/container/adjust-dialog.vue +++ b/src/renderer/src/views/examination-analysis/container/adjust-dialog.vue @@ -119,7 +119,7 @@ const getCompletion = async (val) => { type: 'robot', msg: answer, }) - + } finally { loaded.value = false } @@ -154,8 +154,8 @@ const changeFile = (val) =>{ onMounted(() => { let data = sessionStore.get('subject.curNode') Object.assign(curNode, data); - let text = props.modeType == 1 ? '课标': props.modeType == 2 ? '教材' : '考试' - + let text = props.modeType == 1 ||props.modeType == 2 ? '课标' : '考试' + let jsonKey = `${text}-${data.edustage}-${data.edusubject}` params.dataset_id = dataSetJson[jsonKey] dataset_id.value = dataSetJson[jsonKey] @@ -190,7 +190,7 @@ onMounted(() => { width: 100%; justify-content: flex-start; flex-direction: column; - + } .chart-item { border-radius: 5px; @@ -300,4 +300,4 @@ onMounted(() => { display: flex; margin-bottom: 10px; } - \ No newline at end of file + diff --git a/src/renderer/src/views/examination-analysis/container/result.vue b/src/renderer/src/views/examination-analysis/container/result.vue index e1cfa1b..bf5d145 100644 --- a/src/renderer/src/views/examination-analysis/container/result.vue +++ b/src/renderer/src/views/examination-analysis/container/result.vue @@ -257,7 +257,7 @@ const removeItem = async (item) => { isAdd.value = false Object.assign(keywordItem, item) isEditKeyWord.value = true - + } // const { msg } = await removeChildTemp(item.id) @@ -269,7 +269,7 @@ const removeItem = async (item) => { onMounted(() => { let data = sessionStore.get('subject.curNode') Object.assign(curNode, data); - let text = props.modeType == 1 ? '课标' : props.modeType == 2 ? '教材' : '考试' + let text = props.modeType == 1 || props.modeType == 2? '课标' : '考试' let jsonKey = `${text}-${data.edustage}-${data.edusubject}` params.dataset_id = dataSetJson[jsonKey]