diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js
index bd3bb68fa..9ebc54de8 100644
--- a/public/react/src/AppConfig.js
+++ b/public/react/src/AppConfig.js
@@ -30,6 +30,7 @@ export function initAxiosInterceptors(props) {
// proxy = "http://testbdweb.trustie.net"
// proxy = "http://testbdweb.educoder.net"
proxy = "https://testeduplus2.educoder.net"
+ proxy = "http://47.96.87.25:48080"
// 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求;
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 285c9eac2..c77d42908 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/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 5907674b5..6574bd627 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -1363,11 +1363,11 @@ class GraduationTaskssettinglist extends Component{
-
-
-
+
diff --git a/public/react/src/modules/courses/members/modal/AddStudentModal.js b/public/react/src/modules/courses/members/modal/AddStudentModal.js index c9fb36134..0b747171d 100644 --- a/public/react/src/modules/courses/members/modal/AddStudentModal.js +++ b/public/react/src/modules/courses/members/modal/AddStudentModal.js @@ -19,7 +19,8 @@ class AddStudentModal extends Component{ hasMore: true, loading: false, courseGroup: '', - page: 1 + page: 1, + isSpin:false } } fetchMemberList = (arg_page) => { @@ -92,6 +93,9 @@ class AddStudentModal extends Component{ } onSendOk = () => { + this.setState({ + isSpin:true + }) if(!this.state.checkBoxValues || this.state.checkBoxValues.length == 0) { this.props.showNotification('请从列表中先选择用户。') return; @@ -111,6 +115,9 @@ class AddStudentModal extends Component{ this.setVisible(false) this.props.showNotification('添加成功') this.props.addStudentSuccess && this.props.addStudentSuccess(params) + this.setState({ + isSpin:false + }) } }) .catch(function (error) { @@ -142,7 +149,7 @@ class AddStudentModal extends Component{ } render(){ const { users, checkBoxValues, loading, hasMore, name, school_name - , courseGroup, course_groups, } = this.state + , courseGroup, course_groups,isSpin } = this.state const { moduleName } = this.props return(