Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
12fd196c
Commit
12fd196c
authored
Dec 17, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通用随访校验修改
parent
a3aa8cb6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Mp3.vue
src/doctor/components/mediaPlay/Mp3.vue
+1
-2
GuideTextVideo.vue
src/doctor/followUp/generalFU/form/GuideTextVideo.vue
+7
-1
No files found.
src/doctor/components/mediaPlay/Mp3.vue
View file @
12fd196c
...
@@ -92,8 +92,7 @@ export default {
...
@@ -92,8 +92,7 @@ export default {
if
(
!
value
)
{
if
(
!
value
)
{
return
'00:00'
return
'00:00'
}
}
// value = value + ''
let
date
=
Math
.
ceil
(
parseFloat
(
value
))
let
date
=
Math
.
ceil
(
value
)
let
minutes
=
Math
.
floor
(
date
/
60
)
let
minutes
=
Math
.
floor
(
date
/
60
)
let
seconds
=
date
%
60
let
seconds
=
date
%
60
let
format
=
`
${
minutes
>=
10
?
minutes
:
'0'
+
minutes
.
toString
()}
:
${
seconds
>=
10
?
seconds
:
'0'
+
seconds
.
toString
()}
`
let
format
=
`
${
minutes
>=
10
?
minutes
:
'0'
+
minutes
.
toString
()}
:
${
seconds
>=
10
?
seconds
:
'0'
+
seconds
.
toString
()}
`
...
...
src/doctor/followUp/generalFU/form/GuideTextVideo.vue
View file @
12fd196c
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
type=
'textarea'
type=
'textarea'
placeholder=
'请输入'
placeholder=
'请输入'
:name=
'item.templateContent'
:name=
'item.templateContent'
:rules=
'rules.templateContent'
:rules=
"[{ required: true, message: '请输入' }]"
class=
'input-back mt-2 form-input'
class=
'input-back mt-2 form-input'
/>
/>
</div>
</div>
...
@@ -489,6 +489,12 @@ export default {
...
@@ -489,6 +489,12 @@ export default {
},
},
submit
()
{
submit
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
console
.
log
(
this
.
form
)
if
(
this
.
form
.
contentList
&&
this
.
form
.
contentList
.
length
>
1
)
{
this
.
rules
.
templateContent
[
0
].
required
=
false
}
else
{
this
.
rules
.
templateContent
[
0
].
required
=
true
}
this
.
$refs
.
form
.
validate
().
then
(
valid
=>
{
this
.
$refs
.
form
.
validate
().
then
(
valid
=>
{
/* if (this.form.fileType.includes(3) && !this.form._video.length) {
/* if (this.form.fileType.includes(3) && !this.form._video.length) {
this.$message.info('请上传视频')
this.$message.info('请上传视频')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment