diff --git a/.env.development b/.env.development
index 889821b0..7151581c 100644
--- a/.env.development
+++ b/.env.development
@@ -35,3 +35,6 @@ VUE_APP_PUBLIC_PATH='/pc'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
+
+# scorm课件的播放url地址
+VUE_APP_SCORM_URL = 'http://localhost:9083/scorm-player'
diff --git a/.env.preview b/.env.preview
index a1b96aec..61261405 100644
--- a/.env.preview
+++ b/.env.preview
@@ -32,3 +32,6 @@ VUE_APP_PUBLIC_PATH='/pc-release'
# 登录地址
VUE_APP_LOGIN_URL='https://u.boe.com/web-release/'
+
+# scorm课件的播放url地址
+VUE_APP_SCORM_URL = 'http://localhost:9083/scorm-player'
diff --git a/.env.production b/.env.production
index b18fe5a4..25388f13 100644
--- a/.env.production
+++ b/.env.production
@@ -32,3 +32,6 @@ VUE_APP_PUBLIC_PATH='/pc'
# 登录地址
VUE_APP_LOGIN_URL='https://u.boe.com/web/'
+
+# scorm课件的播放url地址
+VUE_APP_SCORM_URL = 'http://localhost:9083/scorm-player'
diff --git a/.env.testing b/.env.testing
index a0aa5726..910d20c6 100644
--- a/.env.testing
+++ b/.env.testing
@@ -32,3 +32,6 @@ VUE_APP_PUBLIC_PATH='/pc'
# 登录地址
VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/'
+
+# scorm课件的播放url地址
+VUE_APP_SCORM_URL = 'http://localhost:9083/scorm-player'
diff --git a/src/api/boe/boeAjax.js b/src/api/boe/boeAjax.js
index 728435d2..c575e8e7 100644
--- a/src/api/boe/boeAjax.js
+++ b/src/api/boe/boeAjax.js
@@ -47,7 +47,7 @@ const formRequest=axios.create({
Promise.reject(error)
});
formRequest.interceptors.response.use(res => {
- console.log(res);
+ //console.log(res);
const code = res.data.status || 200;
if(code===200){
return res.data
diff --git a/src/api/modules/paper.js b/src/api/modules/paper.js
index 8dc08937..5ed38974 100644
--- a/src/api/modules/paper.js
+++ b/src/api/modules/paper.js
@@ -32,8 +32,8 @@ const update = function(data) {
}
/* 编辑详情 */
const detail = function(id) {
- return ajax.get('/xboe/m/exam/paper/query?id=' + id);
- }
+ return ajax.get('/xboe/m/exam/paper/query?id=' + id);
+}
/* 试卷批量导入计算
* num 数目
diff --git a/src/api/modules/popup.js b/src/api/modules/popup.js
new file mode 100644
index 00000000..6047d17a
--- /dev/null
+++ b/src/api/modules/popup.js
@@ -0,0 +1,10 @@
+
+import ajax from '@/utils/xajax.js'
+
+const userList=function (){
+ return ajax.get('/xboe/m/popup/user');
+}
+
+export default {
+ userList
+}
diff --git a/src/api/modules/teacher.js b/src/api/modules/teacher.js
index 376f4785..7939917d 100644
--- a/src/api/modules/teacher.js
+++ b/src/api/modules/teacher.js
@@ -9,6 +9,11 @@ const findByName = function(name) {
return ajax.get('/xboe/teacher/name?name=' + name);
}
+
+const updateTeacher=function(data){
+ return ajax.postJson('/xboe/teacher/update-teacher',data);
+}
+
/**
* 根据id得到教师的显示信息,只是几个基本的显示字段
* @param {Object} id
@@ -21,6 +26,7 @@ const detailTeacher=function (id){
return ajax.get('/xboe/teacher/detail-teacher?id='+id);
}
+
/**
* 分页查询
* @param {
@@ -218,5 +224,6 @@ export default {
end,
exports,
syncUpdate,
- detailTeacher
+ detailTeacher,
+ updateTeacher
}
diff --git a/src/api/modules/test.js b/src/api/modules/test.js
index 068039fc..332efa52 100644
--- a/src/api/modules/test.js
+++ b/src/api/modules/test.js
@@ -54,6 +54,16 @@ const exports=function (query){
return ajax.post('/xboe/m/exam/alone/answer/export',query,{responseType: 'blob'});
}
+/**
+ * @param{
+ * id 考试id
+ * enabled true 上架 false 下架
+ * }
+ * */
+const enabled=function(query){
+ return ajax.post('/xboe/m/exam/test/enabled',query);
+}
+
export default {
detail,
update,
@@ -61,5 +71,6 @@ export default {
save,
querylist,
pulish,
- exports
+ exports,
+ enabled
}
diff --git a/src/api/system/whiteuser.js b/src/api/system/whiteuser.js
new file mode 100644
index 00000000..79e7eff3
--- /dev/null
+++ b/src/api/system/whiteuser.js
@@ -0,0 +1,18 @@
+import ajax from '@/utils/xajax.js'
+
+
+/**
+ * 查询白名单
+ * @param {
+ * env:'开发环境'
+ * } data
+ * @returns
+ */
+const getList =function(env) {
+ return ajax.post('/xboe/sys/whiteuser/codes',env);
+}
+
+
+export default{
+ getList
+}
diff --git a/src/components/AlertPopup.vue b/src/components/AlertPopup.vue
index c3bfb8de..f4ea360e 100644
--- a/src/components/AlertPopup.vue
+++ b/src/components/AlertPopup.vue
@@ -1,21 +1,23 @@