diff --git a/src/api/index.js b/src/api/index.js
index e8a524a..d696bee 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -42,8 +42,8 @@ export default {
getStaff: `management/staff/getStaff`,
queryStaff: `management/staff/enterpriseList`,
updateStaff: `management/staff/updateStaff`,
- exportFailureStaff: `management/staff/exportFailure`,
- uploadFileStaff: `management/staff/uploadFile`,
+ exportFailureStaff: `${Setting.apiBaseURL}/management/staff/exportFailure`,
+ uploadFileStaff: `${Setting.apiBaseURL}/management/staff/uploadFile`,
downloadStaffTemp: `http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658763812.xlsx`,
// 角色管理
@@ -70,8 +70,8 @@ export default {
deleteUser: `cjEnterprise/user/deleteUser`,
queryUser: `cjEnterprise/user/list`,
updateUser: `cjEnterprise/user/updateUser`,
- uploadFileUser: `cjEnterprise/user/uploadFile`,
- exportFailureUser: `cjEnterprise/user/exportFailure`,
+ uploadFileUser: `${Setting.apiBaseURL}/cjEnterprise/user/uploadFile`,
+ exportFailureUser: `${Setting.apiBaseURL}/cjEnterprise/user/exportFailure`,
downloadUserTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658619702.xlsx',
// 题库分类
@@ -92,7 +92,7 @@ export default {
pageByCondition:`cjEnterprise/questions/pageByCondition`,
updateQuestions:`cjEnterprise/questions/update`,
getExcel:`cjEnterprise/questions/getExcel`,
- impExcel:`cjEnterprise/questions/impExcel`,
+ impExcel:`${Setting.apiBaseURL}/cjEnterprise/questions/impExcel`,
// 共享相关
batchSave:`cjEnterprise/questionSharing/batchSave`,
diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue
index 66ae7a1..33aafd3 100644
--- a/src/pages/account/login/index.vue
+++ b/src/pages/account/login/index.vue
@@ -92,7 +92,7 @@ export default {
password: this.loginForm.password
}
this.login(data).then(() => {
- let redirect = decodeURIComponent(this.$route.query.redirect || '/')
+ let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index'
this.$router.replace(redirect)
}).catch(() => {})
}
diff --git a/src/pages/client/add/index.vue b/src/pages/client/add/index.vue
index c407ea4..488a4a5 100644
--- a/src/pages/client/add/index.vue
+++ b/src/pages/client/add/index.vue
@@ -1,70 +1,65 @@
-
-
-
-
-
+
+
+
-
-
-
基本信息
+
+
+
基本信息
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/pages/client/list/index.vue b/src/pages/client/list/index.vue
index b014c55..22b0820 100644
--- a/src/pages/client/list/index.vue
+++ b/src/pages/client/list/index.vue
@@ -1,95 +1,89 @@
-
-
-
-
-
筛选
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
筛选
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
客户列表
-
-
- 新增客户
- 批量删除
-
-
-
-
-
-
- {{scope.$index + (pageNo - 1) * pageSize + 1}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
- 编辑
- 删除
-
-
-
-
-
-
-
-
+
+
+
客户列表
+
+
+ 新增客户
+ 批量删除
+
+
+
+
+
+
+ {{scope.$index + (pageNo - 1) * pageSize + 1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 编辑
+ 删除
+
+
+
+
+
+
diff --git a/src/pages/exception/error/403/index.vue b/src/pages/exception/error/403/index.vue
index 45adc1d..e6576d2 100644
--- a/src/pages/exception/error/403/index.vue
+++ b/src/pages/exception/error/403/index.vue
@@ -1,23 +1,26 @@
-
-
403
-
啊哦~ 你没有权限访问该页面哦
-
-
- 返回首页
-
- 返回上一页
-
-
+
+
403
+
啊哦~ 你没有权限访问该页面哦
+
+
+ 返回首页
+
+ 返回上一页
+
+
diff --git a/src/pages/exception/error/404/index.vue b/src/pages/exception/error/404/index.vue
index 02b30ba..bbb8580 100644
--- a/src/pages/exception/error/404/index.vue
+++ b/src/pages/exception/error/404/index.vue
@@ -1,23 +1,26 @@
-
-
404
-
啊哦~ 你所访问的页面不存在
-
-
- 返回首页
-
- 返回上一页
-
-
+
+
404
+
啊哦~ 你所访问的页面不存在
+
+
+ 返回首页
+
+ 返回上一页
+
+
diff --git a/src/pages/quesBank/list/globalQuesBank.vue b/src/pages/quesBank/list/globalQuesBank.vue
index 6224a53..9b1f2a3 100644
--- a/src/pages/quesBank/list/globalQuesBank.vue
+++ b/src/pages/quesBank/list/globalQuesBank.vue
@@ -23,7 +23,7 @@
-
+
diff --git a/src/pages/quesBank/list/myQuesBank.vue b/src/pages/quesBank/list/myQuesBank.vue
index a73171e..df6ebd5 100644
--- a/src/pages/quesBank/list/myQuesBank.vue
+++ b/src/pages/quesBank/list/myQuesBank.vue
@@ -1,120 +1,114 @@
-
-
-
- 测评题库
-
-
-
-
+
+ 测评题库
+
+
+
-
-
-
-
题目列表
-
-
- 单题上传
- 批量上传
- 批量共享
-
- 批量删除
-
-
+
+
+
题目列表
+
+
+ 单题上传
+ 批量上传
+ 批量共享
+
+ 批量删除
+
+
-
-
-
- {{scope.$index + (page - 1) * pageSize + 1}}
-
-
-
-
-
-
-
-
-
-
- 查看
- 修改
- 删除
- 共享
- 取消共享
-
-
-
-
-
-
-
+
+
+
+ {{scope.$index + (page - 1) * pageSize + 1}}
+
+
+
+
+
+
+
+
+
+
+ 查看
+ 修改
+ 删除
+ 共享
+ 取消共享
+
+
+
+
+
@@ -343,7 +337,6 @@ export default {
}
},
downLoad() {
- // location.href = 'http://192.168.31.152:8001/cjEnterprise/questions/getExcel'
location.href = 'http://39.108.250.202/cjEnterprise/题库导入模板.xlsx'
},
showimportVisible() {
diff --git a/src/pages/quesBank/list/quesDialog.vue b/src/pages/quesBank/list/quesDialog.vue
index 32ad098..0eadbd6 100644
--- a/src/pages/quesBank/list/quesDialog.vue
+++ b/src/pages/quesBank/list/quesDialog.vue
@@ -241,9 +241,18 @@ export default {
.catch(err => {})
},
getQuesBank() {
- this.$get(this.api.getTypeByOneLever)
+ let data = {
+ pageNum: 1,
+ pageSize: 10000
+ }
+ this.$post(this.api.listByPage,data)
.then(res => {
- this.quesBankList = res.data.list
+ let list = res.data.list.list
+ let result = list
+ list.map((n,i) => {
+ result = result.concat(n.secondColumn)
+ })
+ this.quesBankList = result
})
.catch(err => {})
},
diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue
index 93e55ff..742e507 100644
--- a/src/pages/user/list/index.vue
+++ b/src/pages/user/list/index.vue
@@ -270,7 +270,7 @@ export default {
let data = {
userInfo: {
id: form.id,
- isPort: 1,
+ isPort: 2,
userId: form.userId,
account: form.account,
clientId: form.clientId,
@@ -282,7 +282,7 @@ export default {
},
userManagement: {
id: form.id,
- isPort: 1,
+ isPort: 2,
userId: form.userId,
account: form.account,
clientId: form.clientId,
diff --git a/src/plugins/requests/index.js b/src/plugins/requests/index.js
index 9e8cde3..569a94a 100644
--- a/src/plugins/requests/index.js
+++ b/src/plugins/requests/index.js
@@ -6,7 +6,7 @@ import Setting from '@/setting'
const service = axios.create({
baseURL: Setting.apiBaseURL,
- timeout: 5000
+ timeout: 50000
})
// post请求头
diff --git a/src/router/permission.js b/src/router/permission.js
index 17c5bca..34a30c0 100644
--- a/src/router/permission.js
+++ b/src/router/permission.js
@@ -8,10 +8,14 @@ router.beforeEach((to, from, next) => {
document.title = to.meta.title ? `${to.meta.title} | ${Setting.titleSuffix}` : Setting.titleSuffix;
const role = util.session.get(Setting.usernameKey);
if (!role && to.path !== '/login') {
- next({
- path: '/login',
- query: {redirect: to.fullPath}
- })
+ if(to.fullPath == '/'){
+ next('/login')
+ }else{
+ next({
+ path: '/login',
+ query: {redirect: to.fullPath}
+ })
+ }
} else if(role && to.path == '/login') {
next('/index')
} else {