Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
55ace172
提交
55ace172
编写于
4月 20, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
799e4dcc
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
24 行增加
和
5 行删除
+24
-5
stroke.vue
src/views/followup/record-manage/patient-scale/stroke.vue
+24
-5
未找到文件。
src/views/followup/record-manage/patient-scale/stroke.vue
浏览文件 @
55ace172
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
domain
:
''
,
//通过接口获取白名单域名
needRule
:
true
,
//是否动态开启验证
needRule
:
true
,
//是否动态开启验证
showModule
:
true
,
//是否隐藏表单模块
showModule
:
true
,
//是否隐藏表单模块
canRender
:
true
,
canRender
:
true
,
...
@@ -145,14 +146,32 @@
...
@@ -145,14 +146,32 @@
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
this
.
planPatientsTimesId
=
this
.
$route
.
query
.
planPatientsTimesId
this
.
scaleNo
=
this
.
$route
.
query
.
scaleNo
this
.
scaleNo
=
this
.
$route
.
query
.
scaleNo
this
.
doctorId
=
this
.
$route
.
query
.
doctorId
this
.
doctorId
=
this
.
$route
.
query
.
doctorId
this
.
planTimesId
=
this
.
$route
.
query
.
planTimesId
this
.
planTimesId
=
this
.
$route
.
query
.
planTimesId
;
this
.
getFormModules
();
this
.
getWhiteDomain
();
this
.
getFormDetail
();
localStorage
.
setItem
(
'needRule'
,
this
.
needRule
);
localStorage
.
setItem
(
'needRule'
,
this
.
needRule
);
},
},
methods
:
{
methods
:
{
getWhiteDomain
(){
// config.headers['token'] = '876B1ECF42DE4D49942E18D9CA72F2B5'
// config.headers['token'] = localStorage.getItem('storageToken')
axios
({
method
:
'get'
,
url
:
getFollowUpSC
(
`/followup/route/domain?type=1`
),
headers
:
{
token
:
'7B74969E396C4041A4DFCAC75711AA71'
,
// token: localStorage.getItem('storageToken')
},
data
:
{},
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
'000000'
){
this
.
domain
=
res
.
data
.
data
this
.
getFormModules
();
this
.
getFormDetail
();
}
})
},
// 动态开启验证开关
// 动态开启验证开关
setRuleToTrue
(
index
){
setRuleToTrue
(
index
){
this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
k
)
=>
{
this
.
addComponents
[
index
].
dataSource
.
forEach
((
item
,
k
)
=>
{
...
@@ -169,7 +188,7 @@
...
@@ -169,7 +188,7 @@
getFormModules
(){
getFormModules
(){
axios
({
axios
({
method
:
'get'
,
method
:
'get'
,
url
:
getFollowUpSC
(
`/scale/
${
this
.
scaleNo
}
/models`
)
,
url
:
`
${
this
.
domain
}
/scale/
${
this
.
scaleNo
}
/models`
,
data
:
{},
data
:
{},
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
'000000'
){
if
(
res
.
data
.
code
==
'000000'
){
...
@@ -193,7 +212,7 @@
...
@@ -193,7 +212,7 @@
getFormDetail
(){
getFormDetail
(){
axios
({
axios
({
method
:
'get'
,
method
:
'get'
,
url
:
getFollowUpSC
(
`/scale/
${
this
.
planPatientsTimesId
}
/
${
this
.
scaleNo
}
/info?type=2&isLine=2`
)
,
url
:
`
${
this
.
domain
}
/scale/
${
this
.
planPatientsTimesId
}
/
${
this
.
scaleNo
}
/info?type=2&isLine=2`
,
data
:
JSON
.
stringify
(
this
.
formData
),
data
:
JSON
.
stringify
(
this
.
formData
),
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
formData
=
res
.
data
.
data
this
.
formData
=
res
.
data
.
data
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录