Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
contraceptives_app
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
ynby
contraceptives_app
Commits
412ef2a5
Commit
412ef2a5
authored
Oct 27, 2020
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载动画
parent
1c3cc396
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
2 deletions
+15
-2
choiceContraceptives.vue
src/views/choiceContraceptives.vue
+6
-2
collectRecords.vue
src/views/collectRecords.vue
+3
-0
returnVisit.vue
src/views/returnVisit.vue
+3
-0
siteDetails.vue
src/views/siteDetails.vue
+3
-0
No files found.
src/views/choiceContraceptives.vue
View file @
412ef2a5
...
@@ -57,6 +57,8 @@
...
@@ -57,6 +57,8 @@
import
{
callMobile
}
from
"../utils/common"
;
import
{
callMobile
}
from
"../utils/common"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
receiveWay
}
from
"../utils/dictionaries"
;
import
{
receiveWay
}
from
"../utils/dictionaries"
;
import
{
Indicator
}
from
'mint-ui'
;
export
default
{
export
default
{
name
:
"choiceContraceptives"
,
name
:
"choiceContraceptives"
,
data
(){
data
(){
...
@@ -115,7 +117,8 @@
...
@@ -115,7 +117,8 @@
message
:
'请先选择药具!'
,
message
:
'请先选择药具!'
,
duration
:
2000
duration
:
2000
});
});
}
}
else
{
Indicator
.
open
();
let
pars
=
JSON
.
parse
(
this
.
checkedMedical
)
let
pars
=
JSON
.
parse
(
this
.
checkedMedical
)
let
info
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'mobileTokenIno'
))
let
info
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'mobileTokenIno'
))
const
{
phone
=
''
,
userId
=
''
}
=
info
const
{
phone
=
''
,
userId
=
''
}
=
info
...
@@ -129,6 +132,7 @@
...
@@ -129,6 +132,7 @@
...
other
...
other
}
}
addMedicalRecord
(
par
).
then
(({
data
})
=>
{
addMedicalRecord
(
par
).
then
(({
data
})
=>
{
Indicator
.
close
();
if
(
data
.
code
==
'SUCCESS'
)
{
if
(
data
.
code
==
'SUCCESS'
)
{
this
.
$router
.
push
(
"/receiveSuccess"
);
this
.
$router
.
push
(
"/receiveSuccess"
);
}
else
{
}
else
{
...
@@ -138,7 +142,7 @@
...
@@ -138,7 +142,7 @@
});
});
}
}
})
})
}
}
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
...
src/views/collectRecords.vue
View file @
412ef2a5
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
import
{
getUserCollectRecord
}
from
'../utils/api'
;
import
{
getUserCollectRecord
}
from
'../utils/api'
;
import
NoData
from
"./component/noData"
;
import
NoData
from
"./component/noData"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
export
default
{
export
default
{
name
:
"collectRecords"
,
name
:
"collectRecords"
,
...
@@ -73,6 +74,7 @@
...
@@ -73,6 +74,7 @@
},
},
methods
:
{
methods
:
{
getRecordInfo
(
callBack
)
{
getRecordInfo
(
callBack
)
{
Indicator
.
open
();
getUserCollectRecord
(
this
.
param
).
then
(({
data
=
{}})
=>
{
getUserCollectRecord
(
this
.
param
).
then
(({
data
=
{}})
=>
{
const
{
dataList
=
[]}
=
data
.
data
const
{
dataList
=
[]}
=
data
.
data
this
.
detailInfo
=
this
.
detailInfo
.
concat
(
dataList
)
this
.
detailInfo
=
this
.
detailInfo
.
concat
(
dataList
)
...
@@ -86,6 +88,7 @@
...
@@ -86,6 +88,7 @@
}
else
{
}
else
{
this
.
loading
=
false
this
.
loading
=
false
}
}
Indicator
.
close
();
callBack
&&
callBack
()
callBack
&&
callBack
()
}).
catch
(
res
=>
{
}).
catch
(
res
=>
{
Toast
({
Toast
({
...
...
src/views/returnVisit.vue
View file @
412ef2a5
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
<
script
>
<
script
>
import
{
addVisitRecord
}
from
"../utils/api"
;
import
{
addVisitRecord
}
from
"../utils/api"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
export
default
{
export
default
{
name
:
"returnVisit"
,
name
:
"returnVisit"
,
...
@@ -121,6 +122,7 @@
...
@@ -121,6 +122,7 @@
}
}
/*验证完毕*/
/*验证完毕*/
if
(
flag
){
if
(
flag
){
Indicator
.
open
()
let
badInfo
=
this
.
formData
.
badReaction
.
join
()
let
badInfo
=
this
.
formData
.
badReaction
.
join
()
let
info
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'mobileTokenIno'
))
let
info
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'mobileTokenIno'
))
const
{
phone
=
''
,
userId
=
''
}
=
info
const
{
phone
=
''
,
userId
=
''
}
=
info
...
@@ -134,6 +136,7 @@
...
@@ -134,6 +136,7 @@
badOther
:
this
.
formData
.
otherBadReaction
badOther
:
this
.
formData
.
otherBadReaction
}
}
addVisitRecord
(
par
).
then
(({
data
})
=>
{
addVisitRecord
(
par
).
then
(({
data
})
=>
{
Indicator
.
close
()
if
(
data
.
code
==
'SUCCESS'
)
{
if
(
data
.
code
==
'SUCCESS'
)
{
Toast
({
Toast
({
message
:
'填写成功!'
,
message
:
'填写成功!'
,
...
...
src/views/siteDetails.vue
View file @
412ef2a5
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
import
{
getStockInfo
}
from
"../utils/api"
;
import
{
getStockInfo
}
from
"../utils/api"
;
import
NoData
from
"./component/noData"
;
import
NoData
from
"./component/noData"
;
import
{
MessageBox
}
from
'mint-ui'
;
import
{
MessageBox
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
export
default
{
export
default
{
name
:
"siteDetails"
,
name
:
"siteDetails"
,
...
@@ -91,6 +92,7 @@
...
@@ -91,6 +92,7 @@
this
.
getMedicalInfoList
()
this
.
getMedicalInfoList
()
},
},
getMedicalInfoList
(
callBack
)
{
getMedicalInfoList
(
callBack
)
{
Indicator
.
open
();
let
par
=
{
let
par
=
{
relationId
:
this
.
relationId
,
relationId
:
this
.
relationId
,
...
this
.
param
...
this
.
param
...
@@ -108,6 +110,7 @@
...
@@ -108,6 +110,7 @@
}
else
{
}
else
{
this
.
loading
=
false
this
.
loading
=
false
}
}
Indicator
.
close
();
callBack
&&
callBack
()
callBack
&&
callBack
()
}).
finally
(()
=>
{
}).
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
...
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