Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cert-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
cert-show-h5
Commits
eb22c685
提交
eb22c685
authored
7月 28, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 优化代码
上级
66a4e929
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
57 行删除
+22
-57
form.vue
src/pages/shms/score/components/form.vue
+0
-1
info.vue
src/pages/shms/score/components/info.vue
+3
-18
profile.vue
src/pages/shms/status/components/profile.vue
+19
-38
没有找到文件。
src/pages/shms/score/components/form.vue
浏览文件 @
eb22c685
...
@@ -86,7 +86,6 @@ export default {
...
@@ -86,7 +86,6 @@ export default {
.
getCondition
()
.
getCondition
()
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
allOption
=
response
.
data
.
get_score
this
.
allOption
=
response
.
data
.
get_score
console
.
log
(
this
.
allOption
)
})
})
.
finally
(()
=>
{})
.
finally
(()
=>
{})
}
}
...
...
src/pages/shms/score/components/info.vue
浏览文件 @
eb22c685
...
@@ -56,27 +56,14 @@ export default {
...
@@ -56,27 +56,14 @@ export default {
infoItem
:
[]
infoItem
:
[]
}
}
},
},
mounted
()
{},
computed
:
{},
methods
:
{
methods
:
{
setDate
(
date
)
{
setDate
(
date
)
{
const
substringDate
=
date
.
substring
(
0
,
date
.
indexOf
(
' '
))
const
substringDate
=
date
.
substring
(
0
,
date
.
indexOf
(
' '
))
const
splitDate
=
substringDate
.
split
(
'-'
)
const
splitDate
=
substringDate
.
split
(
'-'
)
const
enMonth
=
{
const
enMonth
=
{
'01'
:
'Jan'
,
1
:
'Jan'
,
2
:
'Feb'
,
3
:
'Mar'
,
4
:
'Apr'
,
5
:
'May'
,
6
:
'Jun'
,
7
:
'Jul'
,
8
:
'Aug'
,
9
:
'Sept'
,
10
:
'Oct'
,
11
:
'Nov'
,
12
:
'Dec'
'02'
:
'Feb'
,
'03'
:
'Mar'
,
'04'
:
'Apr'
,
'05'
:
'May'
,
'06'
:
'Jun'
,
'07'
:
'Jul'
,
'08'
:
'Aug'
,
'09'
:
'Sept'
,
10
:
'Oct'
,
11
:
'Nov'
,
12
:
'Dec'
}
}
return
`
${
enMonth
[
splitDate
[
1
]
]}
${
splitDate
[
2
]}
.
${
splitDate
[
0
]}
`
return
`
${
enMonth
[
parseInt
(
splitDate
[
1
])
]}
${
splitDate
[
2
]}
.
${
splitDate
[
0
]}
`
}
}
},
},
watch
:
{
watch
:
{
...
@@ -107,9 +94,7 @@ export default {
...
@@ -107,9 +94,7 @@ export default {
},
},
{
{
name
:
this
.
$t
(
'shmsLang.score.date'
),
name
:
this
.
$t
(
'shmsLang.score.date'
),
value
:
this
.
data
.
student_info
.
pubdate
value
:
this
.
data
.
student_info
.
pubdate
?
this
.
setDate
(
this
.
data
.
student_info
.
pubdate
)
:
''
?
this
.
setDate
(
this
.
data
.
student_info
.
pubdate
)
:
''
}
}
]
]
]
]
...
...
src/pages/shms/status/components/profile.vue
浏览文件 @
eb22c685
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
</div>
</div>
<div
class=
"info-temp m-t17"
>
<div
class=
"info-temp m-t17"
>
<div
class=
"name w140"
>
<div
class=
"name w140"
>
<div>
{{
$t
(
'shmsLang.status.graduated'
)
}}
</div></div>
<div>
{{
$t
(
'shmsLang.status.graduated'
)
}}
</div>
</div>
<div
class=
"value"
v-if=
"info.graduation_time"
>
<div
class=
"value"
v-if=
"info.graduation_time"
>
{{
setDate
(
info
.
graduation_time
)
}}
{{
setDate
(
info
.
graduation_time
)
}}
</div>
</div>
...
@@ -72,34 +73,25 @@ export default {
...
@@ -72,34 +73,25 @@ export default {
dialogVisible
:
false
dialogVisible
:
false
}
}
},
},
computed
:
{
computed
:
{},
setSex
()
{
return
n
=>
{
const
sex
=
{
1
:
this
.
$t
(
'shmsLang.status.sexMan'
),
0
:
this
.
$t
(
'shmsLang.status.sexWoMan'
),
2
:
this
.
$t
(
'shmsLang.status.sexUnknown'
)
}
return
sex
[
n
]
}
},
setStatus
()
{
return
n
=>
{
const
status
=
{
1
:
this
.
$t
(
'shmsLang.status.enrolled'
),
2
:
this
.
$t
(
'shmsLang.status.graduate'
),
3
:
this
.
$t
(
'shmsLang.status.Lose'
),
4
:
this
.
$t
(
'shmsLang.status.gap'
),
5
:
this
.
$t
(
'shmsLang.status.withdraw'
)
}
return
status
[
n
]
}
}
},
mounted
()
{
mounted
()
{
this
.
emailValue
=
this
.
info
.
email
this
.
emailValue
=
this
.
info
.
email
},
},
methods
:
{
methods
:
{
setSex
(
n
)
{
const
sex
=
{
0
:
this
.
$t
(
'shmsLang.status.sexWoMan'
),
1
:
this
.
$t
(
'shmsLang.status.sexMan'
),
2
:
this
.
$t
(
'shmsLang.status.sexUnknown'
)
}
return
sex
[
n
]
},
setStatus
(
n
)
{
const
status
=
{
1
:
this
.
$t
(
'shmsLang.status.enrolled'
),
2
:
this
.
$t
(
'shmsLang.status.graduate'
),
3
:
this
.
$t
(
'shmsLang.status.Lose'
),
4
:
this
.
$t
(
'shmsLang.status.gap'
),
5
:
this
.
$t
(
'shmsLang.status.withdraw'
)
}
return
status
[
n
]
},
updateInfo
()
{
updateInfo
()
{
const
reg
=
/^
([
a-zA-Z
]
|
[
0-9
])(\w
|-
)
+@
[
a-zA-Z0-9
]
+
\.([
a-zA-Z
]{2,4})
$/
const
reg
=
/^
([
a-zA-Z
]
|
[
0-9
])(\w
|-
)
+@
[
a-zA-Z0-9
]
+
\.([
a-zA-Z
]{2,4})
$/
if
(
!
reg
.
test
(
this
.
emailValue
))
{
if
(
!
reg
.
test
(
this
.
emailValue
))
{
...
@@ -124,20 +116,9 @@ export default {
...
@@ -124,20 +116,9 @@ export default {
const
substringDate
=
date
.
substring
(
0
,
date
.
indexOf
(
' '
))
const
substringDate
=
date
.
substring
(
0
,
date
.
indexOf
(
' '
))
const
splitDate
=
substringDate
.
split
(
'-'
)
const
splitDate
=
substringDate
.
split
(
'-'
)
const
enMonth
=
{
const
enMonth
=
{
'01'
:
'Jan'
,
1
:
'Jan'
,
2
:
'Feb'
,
3
:
'Mar'
,
4
:
'Apr'
,
5
:
'May'
,
6
:
'Jun'
,
7
:
'Jul'
,
8
:
'Aug'
,
9
:
'Sept'
,
10
:
'Oct'
,
11
:
'Nov'
,
12
:
'Dec'
'02'
:
'Feb'
,
'03'
:
'Mar'
,
'04'
:
'Apr'
,
'05'
:
'May'
,
'06'
:
'Jun'
,
'07'
:
'Jul'
,
'08'
:
'Aug'
,
'09'
:
'Sept'
,
10
:
'Oct'
,
11
:
'Nov'
,
12
:
'Dec'
}
}
return
`
${
enMonth
[
splitDate
[
1
]
]}
${
splitDate
[
2
]}
.
${
splitDate
[
0
]}
`
return
`
${
enMonth
[
parseInt
(
splitDate
[
1
])
]}
${
splitDate
[
2
]}
.
${
splitDate
[
0
]}
`
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论