Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
6d58eb4e
提交
6d58eb4e
编写于
7月 23, 2020
作者:
guofeng.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加学科页面和职称考页面
上级
edb5358d
变更
11
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
1116 行增加
和
5165 行删除
+1116
-5165
package.json
package.json
+0
-1
router.js
src/router/router.js
+12
-0
utils.js
src/utils-o/utils.js
+3
-2
fetch.js
src/utils/fetch.js
+2
-2
utils.js
src/utils/utils.js
+7
-2
edit-professional-exam.vue
src/views/education/edit-professional-exam.vue
+82
-59
edit-subject.vue
src/views/education/edit-subject.vue
+385
-0
item-manager.vue
src/views/education/item-manager.vue
+16
-1
pica-professional-exam.vue
src/views/education/pica-professional-exam.vue
+0
-5094
subject-manager.vue
src/views/education/subject-manager.vue
+598
-0
slidebar.vue
src/views/layout/slidebar.vue
+11
-4
未找到文件。
package.json
浏览文件 @
6d58eb4e
...
...
@@ -29,7 +29,6 @@
"
jsencrypt
"
:
"
^3.0.0-rc.1
"
,
"
jspdf
"
:
"
^1.5.3
"
,
"
node-sass
"
:
"
^4.9.2
"
,
"
jspdf
"
:
"
^1.5.3
"
,
"
pdfh5
"
:
"
^1.3.9
"
,
"
qrcode
"
:
"
^1.3.3
"
,
"
showdown
"
:
"
^1.6.4
"
,
...
...
src/router/router.js
浏览文件 @
6d58eb4e
...
...
@@ -13,6 +13,9 @@ const editManager = r => require.ensure([], () => r(require('../views/education/
const
itemRole
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/system/item-role.vue'
)),
'item-role'
)
const
msgPush
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/msgpush/msg-push.vue'
)),
'msg-push'
)
const
editCme
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/edit-cme.vue'
)),
'edit-cme'
)
const
editProfessionalExam
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/edit-professional-exam.vue'
)),
'edit-professional-exam'
)
const
subjectManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/subject-manager.vue'
)),
'subject-manager'
)
const
editSubject
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/edit-subject.vue'
)),
'edit-subject'
)
import
patientsRouters
from
'./patients'
import
followRouters
from
'./follow'
...
...
@@ -91,6 +94,15 @@ export default [{
},{
path
:
'/edit-cme'
,
component
:
editCme
},{
path
:
'/edit-professional-exam'
,
component
:
editProfessionalExam
},{
path
:
'/subject-manager'
,
component
:
subjectManager
},{
path
:
'/edit-subject'
,
component
:
editSubject
},{
path
:
'/item-component'
,
component
:
itemComponent
...
...
src/utils-o/utils.js
浏览文件 @
6d58eb4e
...
...
@@ -5,7 +5,7 @@ export const containObject = function(...obj1) {
return
obj
}
// 获取页面自适应高度
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'slidebar-container'
,
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'slidebar-container'
,
containerHeightId
=
'screenSet'
){
let
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
...
...
@@ -305,7 +305,8 @@ const GetLocalIPAddress = () => {
// // check();
// });
// $.getScript('http://pv.sohu.com/cityjson?ie=utf-8', function () {
return
returnCitySN
[
"cip"
];
// return returnCitySN["cip"];
return
''
;
// });
// return ip;
};
...
...
src/utils/fetch.js
浏览文件 @
6d58eb4e
...
...
@@ -54,9 +54,9 @@ service.interceptors.request.use(config => {
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境qgit
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config
.
headers
[
'token'
]
=
'28731437A7EF482ABC5DF4D4DB13B3ED'
;
//
config.headers['token'] = '28731437A7EF482ABC5DF4D4DB13B3ED';
//
config.headers['token'] = localStorage.getItem('storageToken')
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
...
...
src/utils/utils.js
浏览文件 @
6d58eb4e
...
...
@@ -7,7 +7,7 @@ import axios from 'axios';
// }
// 获取页面自适应高度
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'slidebar-container'
,
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'slidebar-container'
,
containerHeightId
=
'screenSet'
){
let
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
...
...
@@ -307,7 +307,8 @@ const GetLocalIPAddress = () => {
// // check();
// });
// $.getScript('http://pv.sohu.com/cityjson?ie=utf-8', function () {
return
returnCitySN
[
"cip"
];
// return returnCitySN["cip"];
return
''
;
// });
// return ip;
};
...
...
@@ -803,3 +804,7 @@ export const setOptionLabel = (self,selfModel,selfEId,selfEName,list,listEId,lis
}
return
;
};
export
function
deepCopy
(
obj
)
{
return
obj
?
JSON
.
parse
(
JSON
.
stringify
(
obj
))
:
obj
;
}
src/views/education/edit-
cme copy
.vue
→
src/views/education/edit-
professional-exam
.vue
浏览文件 @
6d58eb4e
此差异已折叠。
点击以展开。
src/views/education/edit-subject.vue
0 → 100644
浏览文件 @
6d58eb4e
此差异已折叠。
点击以展开。
src/views/education/item-manager.vue
浏览文件 @
6d58eb4e
...
...
@@ -223,6 +223,7 @@
<el-radio
:label=
"1"
>
普通项目
</el-radio>
<el-radio
:label=
"2"
>
CME项目
</el-radio>
<el-radio
:label=
"3"
>
开放模板
</el-radio>
<el-radio
:label=
"5"
>
职称考试
</el-radio>
</el-radio-group>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"centerDialogVisible = false"
>
取 消
</el-button>
...
...
@@ -465,6 +466,9 @@ export default {
toTemplatePage
(
isPreview
=
0
)
{
this
.
$router
.
push
(
"template-open?projectType=3&isPreview="
+
isPreview
);
},
toProfessionalExamPage
(
isPreview
=
0
)
{
this
.
$router
.
push
(
"edit-professional-exam?projectType=5&isPreview="
+
isPreview
);
},
toEditCustomPage
(
isPreview
=
0
)
{
this
.
setKind
(
0
);
this
.
$router
.
push
(
"edit-custom?projectType=4&isPreview="
+
isPreview
);
...
...
@@ -478,12 +482,14 @@ export default {
},
handleCreateProject
()
{
if
(
this
.
newProjectType
==
1
)
{
// 1 普通项目 2 CME项目
// 1 普通项目 2 CME项目
5 职称考试
this
.
toPage
();
}
else
if
(
this
.
newProjectType
==
2
)
{
this
.
toCmePage
();
}
else
if
(
this
.
newProjectType
==
3
)
{
this
.
toTemplatePage
();
}
else
if
(
this
.
newProjectType
==
5
)
{
this
.
toProfessionalExamPage
();
}
},
...
...
@@ -716,6 +722,15 @@ export default {
projectId
+
"&level="
+
level
+
"&pageNum="
+
this
.
formInline
.
pageNo
+
"&projectStatus="
+
row
.
projectStatus
);
}
else
if
(
row
.
projectType
===
5
)
{
this
.
$router
.
push
(
"edit-professional-exam?projectType=5&projectId="
+
projectId
+
"&level="
+
level
+
"&pageNum="
+
this
.
formInline
.
pageNo
);
}
}
else
if
(
type
===
7
)
{
//提醒审核
...
...
src/views/education/pica-professional-exam.vue
已删除
100644 → 0
浏览文件 @
edb5358d
此差异已折叠。
点击以展开。
src/views/education/subject-manager.vue
0 → 100644
浏览文件 @
6d58eb4e
此差异已折叠。
点击以展开。
src/views/layout/slidebar.vue
浏览文件 @
6d58eb4e
...
...
@@ -191,7 +191,7 @@
// index: 'credit-send-manage'
// },
// ]
// },
// },
],
outsideItems
:
[
// 外部用户 路由
{
...
...
@@ -361,7 +361,7 @@
}
]
}
const
message
=
{
title
:
'消息推送'
,
icon
:
'el-icon-message'
,
...
...
@@ -410,6 +410,12 @@
index
:
'advert-simple-manage'
};
const
subjectManager
=
{
title
:
'学科管理'
,
icon
:
'el-icon-setting'
,
index
:
'subject-manager'
};
const
eduRole
=
{
title
:
'角色权限'
,
icon
:
'el-icon-menu'
,
...
...
@@ -441,7 +447,7 @@
title
:
'学分发放管理'
,
icon
:
'el-icon-document'
,
index
:
'credit-send-manage'
},
},
// {
// title: '外部资源管理',
// icon: 'el-icon-document',
...
...
@@ -469,7 +475,8 @@
]
};
vm
.
items
[
1
].
subs
.
push
(
subjectManager
);
vm
.
items
[
1
].
subs
.
push
(
itemComponent
);
vm
.
items
[
1
].
subs
.
push
(
templateManager
);
vm
.
items
[
1
].
subs
.
push
(
followSider
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录