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
提交
089cd721
提交
089cd721
编写于
6月 24, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
协议问题等
上级
be234e33
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
22 行增加
和
46 行删除
+22
-46
edit-course-dialog.vue
...mponents/education/custom-resource/edit-course-dialog.vue
+9
-37
preview-protocol.vue
...components/education/custom-resource/preview-protocol.vue
+1
-1
course-list.vue
src/components/education/custom/course-list.vue
+1
-1
fetch.js
src/utils/fetch.js
+1
-1
audit-custom-course copy.vue
src/views/education/audit-custom-course copy.vue
+2
-2
audit-custom-course.vue
src/views/education/audit-custom-course.vue
+2
-2
external-resource-manage.vue
src/views/education/external-resource-manage.vue
+6
-2
未找到文件。
src/components/education/custom-resource/edit-course-dialog.vue
浏览文件 @
089cd721
...
@@ -161,12 +161,12 @@
...
@@ -161,12 +161,12 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jpeg格式
</div>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jp
g、jp
eg格式
</div>
<!--
<div
style=
"color:red;position:absolute;top:104px;"
class=
"error"
>
<!--
<div
style=
"color:red;position:absolute;top:104px;"
class=
"error"
>
课程难度课程难度
课程难度课程难度
</div>
-->
</div>
-->
<div
style=
"color:red;position:absolute;top:102px;"
v-show=
"needShowAuditMsg && formData.courseCustomDoctorModels[0].course
DoctorAvatarUrl
Check"
class=
"error"
>
<div
style=
"color:red;position:absolute;top:102px;"
v-show=
"needShowAuditMsg && formData.courseCustomDoctorModels[0].course
IntroImage
Check"
class=
"error"
>
<span>
{{
formData
.
courseCustomDoctorModels
[
0
].
course
DoctorAvatarUrl
Check
}}
</span>
<span>
{{
formData
.
courseCustomDoctorModels
[
0
].
course
IntroImage
Check
}}
</span>
</div>
</div>
</el-form-item>
</el-form-item>
<!--
<p
class=
"upload-message"
v-if=
"uploadImgMessage"
>
请选择列表图片
</p>
-->
<!--
<p
class=
"upload-message"
v-if=
"uploadImgMessage"
>
请选择列表图片
</p>
-->
...
@@ -194,9 +194,9 @@
...
@@ -194,9 +194,9 @@
<span
<span
class=
"word-num"
class=
"word-num"
>
{{
(
formData
.
courseCustomDoctorModels
[
0
]
&&
formData
.
courseCustomDoctorModels
[
0
].
courseDoctorName
||
''
).
replace
(
/
\s
+/g
,
""
).
length
}}
/25
</span>
>
{{
(
formData
.
courseCustomDoctorModels
[
0
]
&&
formData
.
courseCustomDoctorModels
[
0
].
courseDoctorName
||
''
).
replace
(
/
\s
+/g
,
""
).
length
}}
/25
</span>
<div
v-show=
"needShowAuditMsg && formData.courseCustomDoctorModels[0].courseDoctor
Hospital
Check"
class=
"error"
>
<div
v-show=
"needShowAuditMsg && formData.courseCustomDoctorModels[0].courseDoctor
Name
Check"
class=
"error"
>
<span>
{{
formData
.
courseCustomDoctorModels
[
0
].
courseDoctor
Hospital
Check
}}
</span>
<span>
{{
formData
.
courseCustomDoctorModels
[
0
].
courseDoctor
Name
Check
}}
</span>
<span
v-show=
"formData.checkStatus == 0"
class=
"cancle"
@
click=
"cancleAudit(formData.courseCustomDoctorModels[0], 'courseDoctor
Hospital
Check')"
>
X
</span>
<span
v-show=
"formData.checkStatus == 0"
class=
"cancle"
@
click=
"cancleAudit(formData.courseCustomDoctorModels[0], 'courseDoctor
Name
Check')"
>
X
</span>
</div>
</div>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
...
@@ -226,7 +226,7 @@
...
@@ -226,7 +226,7 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
style=
"top: 76px;"
>
尺寸:88*88,只支持jpeg格式
</div>
<div
class=
"limit-text"
style=
"top: 76px;"
>
尺寸:88*88,只支持jp
g、jp
eg格式
</div>
<!--
<div
class=
"error"
style=
"position:absolute;top: 94px;"
>
<!--
<div
class=
"error"
style=
"position:absolute;top: 94px;"
>
所属机构所属机构:所属机构:
所属机构所属机构:所属机构:
</div>
-->
</div>
-->
...
@@ -326,23 +326,7 @@ import { ossUpload, getFilePathForOSS } from "@/utils/oss/ossUtil";
...
@@ -326,23 +326,7 @@ import { ossUpload, getFilePathForOSS } from "@/utils/oss/ossUtil";
let
vm
=
null
;
let
vm
=
null
;
export
default
{
export
default
{
data
()
{
data
()
{
let
checkCourseName
=
(
rule
,
value
,
callback
)
=>
{
// 如果有审核的信息,则直接报错
if
(
!
value
&&
this
.
needCheckField
)
{
callback
(
new
Error
(
"请输入课程名称"
));
}
else
{
callback
();
}
};
return
{
return
{
state1
:
''
,
showCropper
:
false
,
cropOption
:
{
offset_x
:
10
,
offset_y
:
10
,
width
:
750
,
height
:
420
},
step
:
1
,
step
:
1
,
needCheckField
:
false
,
needCheckField
:
false
,
needShowAuditMsg
:
false
,
// TODO
needShowAuditMsg
:
false
,
// TODO
...
@@ -414,18 +398,6 @@ export default {
...
@@ -414,18 +398,6 @@ export default {
},
},
// uploadImgMessage: false,
// uploadImgMessage: false,
imgMouseOver
:
false
,
imgMouseOver
:
false
,
// rules: {
// courseName: [
// { required: true, message: " " },
// { validator: checkCourseName }
// ],
// subjectIdList: [
// { required: true, message: "请输入课程名称" }
// ],
// shareType: [
// { required: true, message: "请选择开放范围" }
// ]
// },
labelOptions
:
[],
labelOptions
:
[],
isShowOtherContent
:
false
,
isShowOtherContent
:
false
,
fileList
:
[
fileList
:
[
...
@@ -826,7 +798,7 @@ export default {
...
@@ -826,7 +798,7 @@ export default {
beforeUploadForCourse
(
file
)
{
beforeUploadForCourse
(
file
)
{
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isJPG
=
file
.
type
===
'image/jpeg'
if
(
!
isJPG
)
{
if
(
!
isJPG
)
{
this
.
$message
.
error
(
'只支持jpeg格式'
)
this
.
$message
.
error
(
'只支持jp
g、jp
eg格式'
)
return
;
return
;
}
}
...
@@ -851,7 +823,7 @@ export default {
...
@@ -851,7 +823,7 @@ export default {
// const isLt50kb = file.size / 1024
<
50
;
// const isLt50kb = file.size / 1024
<
50
;
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isJPG
=
file
.
type
===
'image/jpeg'
if
(
!
isJPG
)
{
if
(
!
isJPG
)
{
this
.
$message
.
error
(
'只支持jpeg格式'
)
this
.
$message
.
error
(
'只支持jp
g、jp
eg格式'
)
return
;
return
;
}
}
var
_img
=
new
FileReader
()
var
_img
=
new
FileReader
()
...
...
src/components/education/custom-resource/preview-protocol.vue
浏览文件 @
089cd721
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</div>
</div>
<div
v-html=
"protocolContent"
></div>
<div
v-html=
"protocolContent"
></div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"close"
>
不同意
</el-button>
<el-button
@
click=
"close
(false)
"
>
不同意
</el-button>
<el-button
type=
"primary"
@
click=
"signProtocol"
>
同意
</el-button>
<el-button
type=
"primary"
@
click=
"signProtocol"
>
同意
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/components/education/custom/course-list.vue
浏览文件 @
089cd721
...
@@ -466,7 +466,7 @@ export default {
...
@@ -466,7 +466,7 @@ export default {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
// padding: 30px 200px;
// padding: 30px 200px;
width: 100
0px
;
width: 100
%
;
text-align: center;
text-align: center;
margin-bottom: 100px;
margin-bottom: 100px;
align-items: center;
align-items: center;
...
...
src/utils/fetch.js
浏览文件 @
089cd721
...
@@ -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'
]
=
'
D516F5CA9A304FC9929F09BF9F07024C
'
;
config
.
headers
[
'token'
]
=
'
FB40194EE277496093448BF696A3D0E4
'
;
// config.headers['token'] = localStorage.getItem('storageToken')
// config.headers['token'] = localStorage.getItem('storageToken')
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
...
...
src/views/education/audit-custom-course copy.vue
浏览文件 @
089cd721
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jpeg格式
</div>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jp
g、jp
eg格式
</div>
<span
class=
"word-num"
>
<span
class=
"word-num"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData, 'courseIntroImageCheck')"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData, 'courseIntroImageCheck')"
>
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
>
尺寸:88*88,只支持jpeg格式
</div>
<div
class=
"limit-text"
>
尺寸:88*88,只支持jp
g、jp
eg格式
</div>
<span
class=
"word-num"
>
<span
class=
"word-num"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData.courseCustomDoctorModels[0], 'courseDoctorAvatarUrlCheck')"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData.courseCustomDoctorModels[0], 'courseDoctorAvatarUrlCheck')"
>
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
...
...
src/views/education/audit-custom-course.vue
浏览文件 @
089cd721
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jpeg格式
</div>
<div
class=
"limit-text"
>
尺寸:750*420,只支持jp
g、jp
eg格式
</div>
<span
class=
"word-num"
>
<span
class=
"word-num"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData, 'courseIntroImageCheck')"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData, 'courseIntroImageCheck')"
>
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
/>
/>
</div>
</div>
</el-upload>
</el-upload>
<div
class=
"limit-text"
>
尺寸:88*88,只支持jpeg格式
</div>
<div
class=
"limit-text"
>
尺寸:88*88,只支持jp
g、jp
eg格式
</div>
<span
class=
"word-num"
>
<span
class=
"word-num"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData.courseCustomDoctorModels[0], 'courseDoctorAvatarUrlCheck')"
>
<span
v-show=
"formData.checkStatus == 0"
class=
"edit-wrapper"
@
click=
"auditField(formData.courseCustomDoctorModels[0], 'courseDoctorAvatarUrlCheck')"
>
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
<img
class=
"edit-img"
src=
"../../assets/image/phrase3/icon-pz.png"
/>
拒绝原因
...
...
src/views/education/external-resource-manage.vue
浏览文件 @
089cd721
...
@@ -48,7 +48,11 @@
...
@@ -48,7 +48,11 @@
<el-table-column
align=
"center"
prop=
"subjectName"
label=
"课程分类"
></el-table-column>
<el-table-column
align=
"center"
prop=
"subjectName"
label=
"课程分类"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdDoctorName"
label=
"创建人"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdDoctorName"
label=
"创建人"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdHospitalName"
label=
"所属机构"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdHospitalName"
label=
"所属机构"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"创建日期"
></el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"创建日期"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
createdTime
&&
new
Date
(
scope
.
row
.
createdTime
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"checkStatus"
label=
"审核状态"
>
<el-table-column
align=
"center"
prop=
"checkStatus"
label=
"审核状态"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-html=
"getHtmlCheckStatus(scope.row.checkStatus)"
></span>
<span
v-html=
"getHtmlCheckStatus(scope.row.checkStatus)"
></span>
...
@@ -195,7 +199,7 @@
...
@@ -195,7 +199,7 @@
let
searchForm
=
Object
.
assign
({},
this
.
searchForm
);
let
searchForm
=
Object
.
assign
({},
this
.
searchForm
);
let
createdTime
=
searchForm
.
createdTime
;
let
createdTime
=
searchForm
.
createdTime
;
if
(
createdTime
)
{
if
(
createdTime
)
{
searchForm
.
createdTime
=
new
Date
(
searchForm
.
createdTime
).
getTime
();
searchForm
.
createdTime
=
new
Date
(
searchForm
.
createdTime
+
' 00:00:00'
).
getTime
();
}
else
{
}
else
{
searchForm
.
createdTime
=
''
;
searchForm
.
createdTime
=
''
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录