diff --git a/public/react/package.json b/public/react/package.json
index 19b8286d9..5aebf0d41 100644
--- a/public/react/package.json
+++ b/public/react/package.json
@@ -3,10 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
- "@novnc/novnc": "^1.1.0",
-
"@flatten/array": "^1.1.7",
"@icedesign/base": "^0.2.5",
+ "@novnc/novnc": "^1.1.0",
"antd": "^3.6.5",
"array-flatten": "^2.1.2",
"autoprefixer": "7.1.6",
@@ -41,6 +40,7 @@
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.29.0",
"immutability-helper": "^2.6.6",
+ "install": "^0.12.2",
"jest": "20.0.4",
"js-file-download": "^0.4.7",
"lodash": "^4.17.5",
diff --git a/public/react/src/common/UrlTool.js b/public/react/src/common/UrlTool.js
index 2c307d13e..c0402b325 100644
--- a/public/react/src/common/UrlTool.js
+++ b/public/react/src/common/UrlTool.js
@@ -10,6 +10,17 @@ export function getImageUrl(path) {
return `/${path}`;
}
+export function setImagesUrl(path){
+ const local = 'http://47.96.87.25:48080'
+ let firstStr=path.substr(0,1);
+ console.log(firstStr);
+ if(firstStr=="/"){
+ return isDev?`${local}${path}`:`${path}`;
+ }else{
+ return isDev?`${local}/${path}`:`/${path}`;
+ }
+}
+
export function getUrl(path, goTest) {
// https://www.educoder.net
// https://testbdweb.trustie.net
diff --git a/public/react/src/common/educoder.js b/public/react/src/common/educoder.js
index c4fd1544f..2088918da 100644
--- a/public/react/src/common/educoder.js
+++ b/public/react/src/common/educoder.js
@@ -2,7 +2,7 @@ import { from } from '_array-flatten@2.1.2@array-flatten';
// export { default as OrderStateUtil } from '../routes/Order/components/OrderStateUtil';
-export { getImageUrl as getImageUrl, getUrl as getUrl, getUploadActionUrl as getUploadActionUrl } from './UrlTool';
+export { getImageUrl as getImageUrl, getUrl as getUrl,setImagesUrl as setImagesUrl, getUploadActionUrl as getUploadActionUrl } from './UrlTool';
export { default as queryString } from './UrlTool2';
export { SnackbarHOC as SnackbarHOC } from './SnackbarHOC';
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
index 181a34b1b..4a30990ef 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
@@ -545,8 +545,8 @@ class CommonWorkSetting extends Component{
let temp_publish_time
let temp_end_time
if (unified_setting) {
- let temp_publish_time = publish_time
- let temp_end_time = end_time
+ temp_publish_time = publish_time
+ temp_end_time = end_time
if (!temp_publish_time) {
const publish_time_moment = getNextHalfHourOfMoment(moment());
temp_publish_time = publish_time_moment.format(dateFormat);
diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
index f085687ff..818c882e7 100644
--- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
+++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
@@ -278,7 +278,8 @@ class Testpapersettinghomepage extends Component{
className={"btn fr color-blue font-16 mt20 mr20"}
checkBoxValues={[parseInt(this.props.match.params.Id)]}
Exercisetype={"exercise"}
- action={this.Commonheadofthetestpaper}
+ action={this.Commonheadofthetestpaper}
+ single={true}
>:"":""}
{isAdmin === true?Commonheadofthetestpaper!==undefined&&Commonheadofthetestpaper.user_permission.exercise_unpublish_count>0?
-
-
+
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index 0d932cc40..e75a08b3a 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -1360,11 +1360,11 @@ class GraduationTaskssettinglist extends Component{
-
-
-
+
diff --git a/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js b/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js index 98d80d042..28864521c 100644 --- a/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js +++ b/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js @@ -36,7 +36,7 @@ class Graduationtaskitem extends Component{ {item.time} {/* 分数 */} - {item.score}分 + {item.score && {item.score}分} { !item.is_invalid && item.delete &&