From 14a65df3fffef7695952b98e359e6d7dc590c1d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Mon, 8 Jul 2019 10:48:35 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/exercise/Testpapersettinghomepage.js | 8 ++++----
.../src/modules/courses/shixunHomework/Listofworks.js | 2 +-
.../courses/shixunHomework/ShixunStudentWork.js | 2 +-
.../modules/courses/shixunHomework/ShixunWorkReport.js | 2 +-
.../courses/shixunHomework/Trainingjobsetting.js | 10 +++++++++-
.../courses/shixunHomework/Workquestionandanswer.js | 2 +-
6 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
index 1928bd85b..62ec3ff2f 100644
--- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
+++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
@@ -130,7 +130,7 @@ class Testpapersettinghomepage extends Component{
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
@@ -290,9 +290,9 @@ class Testpapersettinghomepage extends Component{
{isAdmin === true?
导出
:""}
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 50faef559..46fb859af 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1359,7 +1359,7 @@ class Listofworks extends Component {
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
index 2d2babb09..652170726 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
@@ -479,7 +479,7 @@ class ShixunStudentWork extends Component {
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
index 4dce1b5f2..646bd5f02 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
@@ -52,7 +52,7 @@ class ShixunWorkReport extends Component {
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index 1ff1c1170..e483484e7 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -959,6 +959,14 @@ class Trainingjobsetting extends Component {
this.setState({
latedeductiontwo: value,
})
+ //均分比例
+ if(this.state.proportion==="均分比例"){
+ this.Equalproportion();
+
+ }else if(this.state.proportion==="经验值比例"){
+ this.Empiricalvalueratio();
+
+ }
}
@@ -1630,7 +1638,7 @@ class Trainingjobsetting extends Component {
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index a02ec50e7..3666ad7f2 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -333,7 +333,7 @@ class Workquestionandanswer extends Component {
})
}
}else {
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)