Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
755e5f43
提交
755e5f43
编写于
12月 31, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加cme的编辑页面
上级
8a2e9733
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
4626 行增加
和
8 行删除
+4626
-8
router.js
src/router/router.js
+4
-0
fetch.js
src/utils/fetch.js
+1
-1
operation.js
src/utils/operation.js
+32
-0
edit-cme.vue
src/views/education/edit-cme.vue
+4575
-0
item-manager.vue
src/views/education/item-manager.vue
+14
-7
未找到文件。
src/router/router.js
浏览文件 @
755e5f43
...
@@ -12,6 +12,7 @@ const addManager = r => require.ensure([], () => r(require('../views/education/a
...
@@ -12,6 +12,7 @@ const addManager = r => require.ensure([], () => r(require('../views/education/a
const
editManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/edit-manager.vue'
)),
'edit-manager'
)
const
editManager
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/education/edit-manager.vue'
)),
'edit-manager'
)
const
itemRole
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/system/item-role.vue'
)),
'item-role'
)
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
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'
)
import
patientsRouters
from
'./patients'
import
patientsRouters
from
'./patients'
import
followRouters
from
'./follow'
import
followRouters
from
'./follow'
...
@@ -68,6 +69,9 @@ export default [{
...
@@ -68,6 +69,9 @@ export default [{
},{
},{
path
:
'/edit-manager'
,
path
:
'/edit-manager'
,
component
:
editManager
component
:
editManager
},{
path
:
'/edit-cme'
,
component
:
editCme
},{
},{
path
:
'/item-component'
,
path
:
'/item-component'
,
component
:
itemComponent
component
:
itemComponent
...
...
src/utils/fetch.js
浏览文件 @
755e5f43
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config
.
headers
[
'token'
]
=
'
79F1EE431B084D4EAD261B60EDD1AF8B
'
;
config
.
headers
[
'token'
]
=
'
006EAC5D201B4547A27C842505F0E368
'
;
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
}
...
...
src/utils/operation.js
浏览文件 @
755e5f43
...
@@ -752,4 +752,36 @@ export function learnTimeValue(value) {
...
@@ -752,4 +752,36 @@ export function learnTimeValue(value) {
result
=
""
+
parseInt
(
h
)
+
"小时"
+
result
;
result
=
""
+
parseInt
(
h
)
+
"小时"
+
result
;
}
}
return
result
;
return
result
;
}
export
function
getProjectLevelList
(
data
)
{
let
list
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
obj
=
{
value
:
data
[
i
].
id
,
label
:
data
[
i
].
text
,
}
list
.
push
(
obj
);
}
return
list
;
}
export
function
getProjectLeaderList
(
data
)
{
let
list
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
obj
=
{
value
:
data
[
i
].
id
,
label
:
data
[
i
].
name
,
}
list
.
push
(
obj
);
}
return
list
;
}
export
function
getCreditList
(
data
)
{
let
list
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
obj
=
data
[
i
];
obj
.
value
=
data
[
i
].
id
;
obj
.
label
=
data
[
i
].
name
;
list
.
push
(
obj
);
}
return
list
;
}
}
\ No newline at end of file
src/views/education/edit-cme.vue
0 → 100644
浏览文件 @
755e5f43
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
src/views/education/item-manager.vue
浏览文件 @
755e5f43
...
@@ -78,14 +78,16 @@
...
@@ -78,14 +78,16 @@
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"ID编号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectName"
label=
"项目名称"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdName"
label=
"创建人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectLeader"
label=
"项目负责人"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectTypeValue"
label=
"项目类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdTime"
label=
"创建时间"
width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createdTime"
label=
"创建时间"
width=
"100"
align=
"center"
></el-table-column>
<el-table-column
<
!--
<
el-table-column
prop=
"projectIntro"
prop=
"projectIntro"
label=
"项目简介"
label=
"项目简介"
align=
"center"
align=
"center"
min-width=
"100"
min-width=
"100"
show-overflow-tooltip
show-overflow-tooltip
></el-table-column>
></el-table-column>
-->
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectBegintime"
label=
"项目开始时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectEndtime"
label=
"项目结束时间"
min-width=
"90"
align=
"center"
></el-table-column>
<el-table-column
prop=
"projectStatus"
label=
"状态"
align=
"center"
>
<el-table-column
prop=
"projectStatus"
label=
"状态"
align=
"center"
>
...
@@ -93,7 +95,7 @@
...
@@ -93,7 +95,7 @@
<span>
{{
[
scope
.
row
.
projectStatus
,
idType
]
|
statusProject
}}
</span>
<span>
{{
[
scope
.
row
.
projectStatus
,
idType
]
|
statusProject
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"3
0
0"
align=
"center"
>
<el-table-column
fixed=
"right"
label=
"操作"
min-width=
"3
6
0"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
@
click=
"changeStatus(scope.row,0)"
@
click=
"changeStatus(scope.row,0)"
...
@@ -118,7 +120,7 @@
...
@@ -118,7 +120,7 @@
v-show=
"showButton(scope.row,3)"
v-show=
"showButton(scope.row,3)"
type=
"primary"
type=
"primary"
size=
"small"
size=
"small"
>
上架
</el-button>
>
发布
</el-button>
<el-button
<el-button
@
click=
"changeStatus(scope.row,4)"
@
click=
"changeStatus(scope.row,4)"
v-show=
"showButton(scope.row,4)"
v-show=
"showButton(scope.row,4)"
...
@@ -435,7 +437,8 @@ export default {
...
@@ -435,7 +437,8 @@ export default {
this
.
$router
.
push
(
"edit-manager"
);
this
.
$router
.
push
(
"edit-manager"
);
},
},
toCmePage
()
{
toCmePage
()
{
console
.
log
(
'跳转至 cme 新建项目'
)
console
.
log
(
'跳转至 cme 新建项目'
);
this
.
$router
.
push
(
"edit-cme"
);
},
},
toShield
(
row
)
{
toShield
(
row
)
{
this
.
$router
.
push
(
"item-shield?projectId="
+
row
.
id
);
this
.
$router
.
push
(
"item-shield?projectId="
+
row
.
id
);
...
@@ -461,7 +464,7 @@ export default {
...
@@ -461,7 +464,7 @@ export default {
}
else
if
(
status
==
9
||
status
==
10
)
{
// 按钮显示 复审
}
else
if
(
status
==
9
||
status
==
10
)
{
// 按钮显示 复审
this
.
secondCheckVisible
=
true
;
this
.
secondCheckVisible
=
true
;
}
else
if
(
status
==
11
)
{
// 按钮显示 发布
}
else
if
(
status
==
11
)
{
// 按钮显示 发布
this
.
changeStatus
(
row
,
3
)
}
}
},
},
handleCheckLeft
()
{
// 左边通过
handleCheckLeft
()
{
// 左边通过
...
@@ -576,7 +579,11 @@ export default {
...
@@ -576,7 +579,11 @@ export default {
if
(
type
===
0
)
{
if
(
type
===
0
)
{
this
.
updateItemManager
(
this
.
formInline
)
this
.
updateItemManager
(
this
.
formInline
)
//编辑
//编辑
this
.
$router
.
push
(
"edit-manager?projectId="
+
projectId
+
"&level="
+
level
+
'&pageNum='
+
this
.
formInline
.
pageNo
);
if
(
row
.
projectType
===
1
)
{
this
.
$router
.
push
(
"edit-manager?projectId="
+
projectId
+
"&level="
+
level
+
'&pageNum='
+
this
.
formInline
.
pageNo
);
}
else
if
(
row
.
projectType
===
2
)
{
this
.
$router
.
push
(
"edit-cme?projectId="
+
projectId
+
"&level="
+
level
+
'&pageNum='
+
this
.
formInline
.
pageNo
);
}
}
else
if
(
type
===
7
)
{
}
else
if
(
type
===
7
)
{
//提醒审核
//提醒审核
let
req
=
{
let
req
=
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录