diff --git a/package.json b/package.json
index 9ac8a1d..f3599c1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "aix-win-ws",
- "version": "2.5.10",
+ "version": "2.5.11",
"description": "",
"main": "./out/main/index.js",
"author": "上海交大重庆人工智能研究院",
diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue
index fe4154b..506637a 100644
--- a/src/renderer/src/App.vue
+++ b/src/renderer/src/App.vue
@@ -15,7 +15,7 @@ const size = ref('default')
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
- text-align: center;
+ /* text-align: center; */
color: #2c3e50;
width: 100%;
}
diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue
index c57f831..50526fb 100644
--- a/src/renderer/src/components/choose-textbook/index.vue
+++ b/src/renderer/src/components/choose-textbook/index.vue
@@ -7,11 +7,20 @@
diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue
index 7342773..1bf797f 100644
--- a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue
+++ b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue
@@ -50,7 +50,7 @@
{
// 更新表单[知识点]回显
- if (initKonwPointFlagByUpdateForm.value) {
- // 避免重复调用
- initKonwPointFlagByUpdateForm.value = false;
+ // if (initKonwPointFlagByUpdateForm.value) {
+ // // 避免重复调用
+ // initKonwPointFlagByUpdateForm.value = false;
- lessionid.value = props.bookobj.levelSecondId? props.bookobj.levelSecondId : props.bookobj.levelFirstId;
- console.log('lessionid', lessionid.value);
- // 拿到当前章节下得所有知识点
- if( props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语' ){
- const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 });
- const id = res.rows[0]?.id;
- if (id) {
- const res = await listKnowlegepointFormat({evalId: id, pageNum: 1, pageSize: 5000,});
- curKnowledgePointList.value = updateKnowledgePoint(res.rows);
- //console.log('updateKnowledgePoint->', res.rows);
- }
- } else {
- const res = await getBindlist({ eid: lessionid.value })
- if (!res.data || res.data.length < 1) {
- ElMessage.warning('当前章节下未绑定知识点,暂不更新该试题知识点!');
- curKnowledgePointList.value = [];
- }
- else {
- curKnowledgePointList.value = res.data;
- }
- }
- }
+ // lessionid.value = props.bookobj.levelSecondId? props.bookobj.levelSecondId : props.bookobj.levelFirstId;
+ // console.log('lessionid', lessionid.value);
+ // // 拿到当前章节下得所有知识点
+ // if( props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语' ){
+ // const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 });
+ // const id = res.rows[0]?.id;
+ // if (id) {
+ // const res = await listKnowlegepointFormat({evalId: id, pageNum: 1, pageSize: 5000,});
+ // curKnowledgePointList.value = formatKnowledgePoint(res.rows);
+ // console.log('updateKnowledgePoint->', curKnowledgePointList.value);
+ // }
+ // } else {
+ // const res = await getBindlist({ eid: lessionid.value })
+ // if (!res.data || res.data.length < 1) {
+ // ElMessage.warning('当前章节下未绑定知识点,暂不更新该试题知识点!');
+ // curKnowledgePointList.value = [];
+ // }
+ // else {
+ // curKnowledgePointList.value = res.data;
+ // }
+ // }
+ // }
//item.evalnodeid = '3772b,374112,374233';
let knowledgePointIdArr = [];
const pointArr = item.evalnodeid.split(',');
- if (curKnowledgePointList.value.length > 0 && pointArr.length > 0) {
+ if (entpCourseWorkPointList.length > 0 && pointArr.length > 0) {
pointArr.forEach(element => {
element = element.trim();
let point = [];
- if (getCurKnowledgePointToForm(point, element, curKnowledgePointList.value)) {
+ if (getCurKnowledgePointToForm(point, element, entpCourseWorkPointList)) {
point = point.reverse();
knowledgePointIdArr.push(point);
}
@@ -1747,33 +1748,33 @@ watch([
// props.bookobj.levelSecondId? props.bookobj.levelSecondId : props.bookobj.levelFirstId
lessionid.value = props.bookobj.levelSecondId!='' ? props.bookobj.levelSecondId : props.bookobj.levelFirstId;
- /**
- * 格式化知识点: 分两种情况
- * 1. 语文/英语: 获取学科下的所有知识点(该学科对应无章节与知识点绑定, 故只获取全知识点)
- * 2. 其他: 获取当前章节下的所有知识点
- */
- let id = lessionid.value;
- if( props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语'){
- id = props.bookobj.node.rootid;
- const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 });
- id = res.rows[0]?.id;
- if (id) {
- listKnowlegepointFormat({evalId: id, pageNum: 1, pageSize: 5000,}).then(res => {
- //console.log('listKnowlegepointFormat->', res.rows);
- curKnowledgePointList.value = formatKnowledgePoint(res.rows);
- });
- }
- }else{
- getBindlist({ eid: id }).then(res => {
- if (!res.data || res.data.length < 1) {
- ElMessage.warning('当前章节下未绑定知识点,暂不更新该试题知识点!');
- curKnowledgePointList.value = [];
- }
- else {
- curKnowledgePointList.value = res.data;
- }
- })
- }
+ // /**
+ // * 格式化知识点: 分两种情况
+ // * 1. 语文/英语: 获取学科下的所有知识点(该学科对应无章节与知识点绑定, 故只获取全知识点)
+ // * 2. 其他: 获取当前章节下的所有知识点
+ // */
+ // let id = lessionid.value;
+ // if( props.bookobj.node.edusubject == '语文' || props.bookobj.node.edusubject == '英语'){
+ // id = props.bookobj.node.rootid;
+ // const res = await listEvaluation({ edusubject: props.bookobj.node.edusubject, edustage: props.bookobj.node.edustage, itemkey: "subject", pageSize: 10 });
+ // id = res.rows[0]?.id;
+ // if (id) {
+ // listKnowlegepointFormat({evalId: id, pageNum: 1, pageSize: 5000,}).then(res => {
+ // //console.log('listKnowlegepointFormat->', res.rows);
+ // curKnowledgePointList.value = formatKnowledgePoint(res.rows);
+ // });
+ // }
+ // }else{
+ // getBindlist({ eid: id }).then(res => {
+ // if (!res.data || res.data.length < 1) {
+ // ElMessage.warning('当前章节下未绑定知识点,暂不更新该试题知识点!');
+ // curKnowledgePointList.value = [];
+ // }
+ // else {
+ // curKnowledgePointList.value = res.data;
+ // }
+ // })
+ // }
})
diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/searchQuestion/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/searchQuestion/index.vue
index a8d6f8d..d9b4e4a 100644
--- a/src/renderer/src/views/classTask/newClassTaskAssign/searchQuestion/index.vue
+++ b/src/renderer/src/views/classTask/newClassTaskAssign/searchQuestion/index.vue
@@ -18,9 +18,9 @@
-
+
@@ -132,7 +132,8 @@ const userStore = useUserStore().user
const {
entpCourseWorkTypeList,
entpCourseWorkGroupList,
- entpCourseWorkYearList
+ entpCourseWorkYearList,
+ entpCourseWorkPointList
} = useClassTaskStore();
const props = defineProps({
@@ -146,12 +147,11 @@ const props = defineProps({
},
})
-const entpCourseWorkPointList = ref([
- {label: '不限', value: []},
-]); // 习题查询条件 - 知识点
-const knowledgePointProps = ref({value: 'thirdId', label: 'title'});
-//const knowledgePointProps = ref({value: 'thirdId', label: 'knowTitle'});
-
+// const entpCourseWorkPointList = ref([
+// {label: '不限', value: []},
+// ]); // 习题查询条件 - 知识点
+const knowledgePointProps = reactive({value: 'thirdId', label: 'knowTitle'});
+//const knowledgePointProps = ref({value: 'thirdId', label: 'title'});
// 习题查询参数条件
const entpCourseWorkQueryParams = reactive({
@@ -193,7 +193,7 @@ const workResource = reactive({
onMounted(() => {
console.log('entpCourseWorkTypeList', entpCourseWorkTypeList);
// 知识点 (仅用更新一次)
- getEntpCourseWorkPointList();
+ //getEntpCourseWorkPointList();
debounceQueryData(); // 查询习题列表
})
@@ -258,7 +258,7 @@ const t = function(name, time) {
// 年份
yearStr: entpCourseWorkQueryParams.yearStr !== '-1' ? entpCourseWorkQueryParams.yearStr:'',
// 知识点
- thirdId: entpCourseWorkQueryParams.point&&entpCourseWorkQueryParams.point.length > 0 ? entpCourseWorkQueryParams.point[0]:'',
+ thirdId: entpCourseWorkQueryParams.point&&entpCourseWorkQueryParams.point.length > 0 ? entpCourseWorkQueryParams.point[entpCourseWorkQueryParams.point.length-1]:'',
// 关键字
keyword: entpCourseWorkQueryParams.keyWord && entpCourseWorkQueryParams.keyWord !== '' ? entpCourseWorkQueryParams.keyWord:'',
@@ -351,6 +351,7 @@ const handleQueryFromEntpCourseWork= async (queryType) => {
}
/**
+ * 注意: 该方法已不再使用, 具体知识点初始化方法查看 useClassTaskStore - 241230
* 3、知识点
*/
const getEntpCourseWorkPointList = async () => {
diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue
index 7eb9039..df93528 100644
--- a/src/renderer/src/views/model/index.vue
+++ b/src/renderer/src/views/model/index.vue
@@ -1,7 +1,7 @@
-
+