@@ -398,16 +398,22 @@ export default {
.catch(error => {
console.log(error, '请求个人信息失败');
});
- getCompanyList().then(resp => {
- this.companyList = resp.data;
- }).catch((error) => {
- console.log(error, '获取公司列表信息失败');
- });
+ // getCompanyList().then(resp => {
+ // this.companyList = resp.data;
+ // }).catch((error) => {
+ // console.log(error, '获取公司列表信息失败');
+ // });
},
doClose() {
this.visible = false;
this.binding = false;
this.bindSuccess = false;
+ this.nameShow = true;
+ this.nickNameShow = true;
+ this.mobileShow = true;
+ this.emailShow = true;
+ this.passwordShow = true;
+ this.companyShow = true;
},
switcherName() {
this.editInfo.name = this.userInfo.name;
@@ -458,15 +464,15 @@ export default {
}
}
},
- handleCompany(companyId) {
- let name = '';
- this.companyList.forEach(item => {
- if (item.id == companyId) {
- name = item.name;
- }
- });
- return name;
- },
+ // handleCompany(companyId) {
+ // let name = '';
+ // this.companyList.forEach(item => {
+ // if (item.id == companyId) {
+ // name = item.name;
+ // }
+ // });
+ // return name;
+ // },
switcherMobile() {
// this.editInfo.mobile = this.userInfo.mobile;
this.mobileShow = !this.mobileShow;
diff --git a/src/router/index_Common.js b/src/router/index_Common.js
index 84464aed4..a7c0507d4 100644
--- a/src/router/index_Common.js
+++ b/src/router/index_Common.js
@@ -766,7 +766,7 @@ export const asyncRouter = [
{
// 单位管理
path: 'companyManage',
- hidden: true,
+ // hidden: true,
component: CompanyManage,
meta: {
i18n: 'router.companyManage'
diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js
index 8ccb9b347..832693c12 100644
--- a/src/scripts/cmdPlugin/Handler.js
+++ b/src/scripts/cmdPlugin/Handler.js
@@ -33,17 +33,27 @@ class Handler {
}
afterValid(operation, valid) {
- const basicInfo = store.getters['training/basicInfo'];
- if (basicInfo.id && valid) {
- const group = router.currentRoute.query.group;
- sendTrainingNextStepNew({ trainingId: basicInfo.id, operation: operation }, group);
- }
-
- if (!valid) {
- this.pop();
- } else if (operation.cancel === true) {
- this.clear();
- }
+ return new Promise((resolve, reject) => {
+ const basicInfo = store.getters['training/basicInfo'];
+ if (basicInfo.id && valid) {
+ const group = router.currentRoute.query.group;
+ sendTrainingNextStepNew({ trainingId: basicInfo.id, operation: operation }, group).then(res=>{
+ if (!valid) {
+ this.pop();
+ } else if (operation.cancel === true) {
+ this.clear();
+ }
+ resolve();
+ }).catch(error => {
+ if (!valid) {
+ this.pop();
+ } else if (operation.cancel === true) {
+ this.clear();
+ }
+ reject(error);
+ });
+ }
+ });
}
getWholeParam() {
@@ -94,24 +104,25 @@ class Handler {
this.storeOperation(operation);
const rtn = { valid: false, response: null };
const valid = ValidateHandler.vaildate(this.getTrainingMode(), operation);
- this.afterValid(operation, valid);
- rtn.valid = valid;
- if (operation.cmdType && valid) {
- const command = this.getCommand(operation);
- if (command) {
- CommandHandler.execute(command.id, command.get()).then(response => {
- rtn.response = response;
- resolve(rtn);
- }).catch(error => {
- reject(error);
- });
+ this.afterValid(operation, valid).then(()=>{
+ rtn.valid = valid;
+ if (operation.cmdType && valid) {
+ const command = this.getCommand(operation);
+ if (command) {
+ CommandHandler.execute(command.id, command.get()).then(response => {
+ rtn.response = response;
+ resolve(rtn);
+ }).catch(error => {
+ reject(error);
+ });
+ } else {
+ rtn.response = '获取指令失败,暂无指令或参数传值不正确,请检查指令字典';
+ reject(rtn);
+ }
} else {
- rtn.response = '获取指令失败,暂无指令或参数传值不正确,请检查指令字典';
- reject(rtn);
+ resolve(rtn);
}
- } else {
- resolve(rtn);
- }
+ });
});
}
diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js
index 798608c73..c0569ef83 100644
--- a/src/utils/baseUrl.js
+++ b/src/utils/baseUrl.js
@@ -2,11 +2,11 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
- // BASE_API = 'https://test.joylink.club/jlcloud';
+ BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.129:9000'; // 旭强
// BASE_API = 'http://192.168.8.119:9000'; // 张赛
- BASE_API = 'http://192.168.8.110:9000'; // 杜康
+ // BASE_API = 'http://192.168.8.110:9000'; // 杜康
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛
diff --git a/src/views/designPlatform/demonList.vue b/src/views/designPlatform/demonList.vue
index d6064243a..cbf1f8f18 100644
--- a/src/views/designPlatform/demonList.vue
+++ b/src/views/designPlatform/demonList.vue
@@ -1,19 +1,21 @@
-
-
{{ $t('map.publishedMapList') }}
+
+
+ {{ $t('map.publishedMapList') }}
+
+
+
+
+
-
-
-
-
-
-
- {{ tnode.label }}
-
-
-
+
+
+
+ {{ tnode.label }}
+
+
@@ -231,45 +233,28 @@ export default {
};
diff --git a/src/views/newMap/jointTrainingNew/menuDemon.vue b/src/views/newMap/jointTrainingNew/menuDemon.vue
index 2be8c0333..b918a9e85 100644
--- a/src/views/newMap/jointTrainingNew/menuDemon.vue
+++ b/src/views/newMap/jointTrainingNew/menuDemon.vue
@@ -23,6 +23,7 @@
设备管理
教学系统
考试系统
+
留言板
@@ -430,6 +431,16 @@ export default {
this.btnWidth = 0;
}
},
+ messageBoardShow() {
+ const routeData = this.$router.resolve({
+ path:'/messageBoard',
+ query:{
+ project: this.project,
+ noPreLogout: true
+ }
+ });
+ window.open(routeData.href, '_blank', 'noopener noreferrer');
+ },
handleTeach() {
getPublishLessonListByMapId({mapId: this.mapId}).then(resp => {
const lesson = resp.data.find(item => {
diff --git a/src/views/studentManage/index.vue b/src/views/studentManage/index.vue
index 16727f3e5..309b50c5b 100644
--- a/src/views/studentManage/index.vue
+++ b/src/views/studentManage/index.vue
@@ -105,7 +105,7 @@
查询
-
+
{
that.classList = [];
getProjectClassList(ProjectCode[that.project]).then(respon => {
that.classList = respon.data;
+ that.loadingStudentInfo = false;
}).catch(() =>{
that.$message.error('获取班级数据失败!');
+ that.loadingStudentInfo = false;
});
that.$message.success('学生信息导入成功!');
}).catch(() => {
that.$message.error('学生信息导入失败!');
+ that.loadingStudentInfo = false;
});
} catch (error) {
that.$message.warning(`解析成绩单失败:${error}`);
diff --git a/src/views/system/companyManage/index.vue b/src/views/system/companyManage/index.vue
index 47e87bc6f..09d9c8d18 100644
--- a/src/views/system/companyManage/index.vue
+++ b/src/views/system/companyManage/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -50,7 +50,10 @@ export default {
},
{
title: '单位管理人员',
- prop: ''
+ prop: 'managerNames',
+ type: 'tagMore',
+ columnValue: (row) => { return row.managerNames; },
+ tagType: (row) => { return 'success'; }
},
{
type: 'button',
diff --git a/src/views/system/companyManage/manager.vue b/src/views/system/companyManage/manager.vue
index d10cd935d..a93d8c6bc 100644
--- a/src/views/system/companyManage/manager.vue
+++ b/src/views/system/companyManage/manager.vue
@@ -98,6 +98,9 @@ export default {
doShow(companyId) {
this.dialogVisible = true;
this.companyId = companyId;
+ this.$nextTick(() => {
+ this.reloadTable();
+ });
},
handleClose() {
this.dialogVisible = false;
@@ -107,7 +110,7 @@ export default {
return this.companyMap[companyId];
},
reloadTable() {
- this.queryList.reload();
+ this.queryList.queryReload();
},
addParams(params) {
params.companyId = this.companyId;
@@ -122,6 +125,8 @@ export default {
});
setCompanyManager(this.companyId, userIds).then(resp => {
this.$message.success('绑定单位管理员成功!');
+ this.dialogVisible = false;
+ this.$emit('reloadTable');
}).catch(error => {
this.$message.error('绑定单位管理员失败!');
console.error(error);
diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue
index 3f2918a4e..338a88a59 100644
--- a/src/views/trainingPlatform/demonList.vue
+++ b/src/views/trainingPlatform/demonList.vue
@@ -1,37 +1,39 @@
-
-
{{ $t('global.mapList') }}
+
+
+ {{ $t('global.mapList') }}
+
+
+
+
+
-
-
-
-
-
-
- {{ node.data.name+ $t('global.simulationSystem') }}
- {{ node.data.name+ $t('global.lessonSystem') }}
- {{ node.data.name+ $t('global.examSystem') }}
- {{ node.data.name+ $t('global.runPlanSystem') }}
- {{ node.data.name }}
-
-
-
+
+
+
+ {{ node.data.name+ $t('global.simulationSystem') }}
+ {{ node.data.name+ $t('global.lessonSystem') }}
+ {{ node.data.name+ $t('global.examSystem') }}
+ {{ node.data.name+ $t('global.runPlanSystem') }}
+ {{ node.data.name }}
+
+
@@ -65,9 +67,9 @@ export default {
project() {
return getSessionStorage('project');
},
- getMapByCode() {
- const project = getSessionStorage('project');
- return GetMapListByProjectList.includes(project);
+ IsProject() {
+ // 实训平台 是否为通过项目code获取地图列表的项目
+ return GetMapListByProjectList.includes(this.project);
}
},
watch: {
@@ -76,7 +78,7 @@ export default {
}
},
mounted() {
- if (this.getMapByCode) {
+ if (this.IsProject) {
this.refresh();
}
},
@@ -148,7 +150,7 @@ export default {
this.filterSelect = filterSelect;
try {
let res = {};
- if (this.getMapByCode) {
+ if (this.IsProject) {
res = await getSubSystemByProjectCode();
} else {
res = await getTrainingSystemList(filterSelect);
@@ -210,37 +212,26 @@ export default {
};