Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShanghaiGongwei
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
ShanghaiGongwei
Commits
cb08fd08
Commit
cb08fd08
authored
May 05, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加吸烟有关的几个字段
parent
d8815275
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
209 additions
and
5 deletions
+209
-5
src/components/index.vue
+9
-1
src/components/page6.vue
+197
-1
vue.config.js
+3
-3
No files found.
src/components/index.vue
View file @
cb08fd08
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-0
4-21 11:02:35
* @LastEditTime: 2022-0
5-05 17:41:42
* @Description:
-->
<
template
>
...
...
@@ -232,6 +232,14 @@ export default {
"yesOrNoCt"
,
"ChestCT"
,
//有无CT
"ChestCTDate"
,
//CT拍照时间
"whetherSmoking"
,
//是否吸烟
"smokingTypes"
,
//烟草类型
"smokingYears"
,
//吸烟年数
"smokingCount"
,
//每天吸烟支数
"whetherNoSmoking"
,
//是否戒烟
"noSmokingYears"
,
//戒烟年数
"whetherPassivitySmoking"
,
//是否被动吸烟
"passivitySmokingYears"
,
//是否被动吸烟年数
])
.
then
(()
=>
{
this
.
$store
.
dispatch
(
"user/setpage"
,
7
);
...
...
src/components/page6.vue
View file @
cb08fd08
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-0
4-21 10:55:31
* @LastEditTime: 2022-0
5-05 17:44:28
* @Description:
-->
<
template
>
...
...
@@ -236,8 +236,180 @@
label=
"既往史发生时间"
placeholder=
"点击选择既往史发生时间"
@
click=
"showPicker = true"
v-model=
"tuberculosisDate1"
/>
<van-field
colon
clearable
name=
"whetherSmoking"
label=
"是否吸烟"
label-width=
"125px"
>
<
template
#
input
>
<van-radio-group
@
change=
"
() =>
{
setLocalStorge('whetherSmoking');
if (whetherSmoking == '否') {
smokingTypes = []; //烟草类型
smokingYears = ''; //吸烟年数
smokingCount = ''; //吸烟支数
whetherNoSmoking = ''; //是否戒烟
setValue('smokingTypes', '');
setValue('smokingYears', '');
setValue('smokingCount', '');
setValue('whetherNoSmoking', '');
}
}
"
v-model="whetherSmoking"
direction="horizontal"
>
<van-radio
name=
"是"
>
是
</van-radio>
<van-radio
name=
"否"
>
否
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
colon
clearable
label-width=
"125px"
name=
"smokingTypes"
label=
"烟草类型"
v-if=
"whetherSmoking == '是'"
>
<
template
#
input
>
<van-checkbox-group
@
change=
"setLocalStorge('smokingTypes')"
v-model=
"smokingTypes"
direction=
"horizontal"
class=
"smokingTypes"
>
<template
v-for=
"(item, index) in smokingTypesList"
>
<van-checkbox
:key=
"index"
:name=
"item.element"
shape=
"square"
>
{{
item
.
element
}}
</van-checkbox>
</
template
>
</van-checkbox-group>
</template>
</van-field>
<van-field
v-if=
"whetherSmoking == '是'"
colon
clearable
label-width=
"125px"
v-model=
"smokingYears"
name=
"smokingYears"
label=
"吸烟年数"
placeholder=
"吸烟年数"
type=
"digit"
@
blur=
"setLocalStorge('smokingYears')"
:rules=
"[{ required: false, message: '请填写吸烟年数' }]"
>
<
template
#
extra
>
年
</
template
>
</van-field>
<van-field
v-if=
"whetherSmoking == '是'"
label-width=
"125px"
colon
clearable
v-model=
"smokingCount"
name=
"smokingCount"
label=
"每天吸烟支数"
placeholder=
"每天吸烟支数"
type=
"digit"
@
blur=
"setLocalStorge('smokingCount')"
:rules=
"[{ required: false, message: '请填写每天吸烟支数' }]"
>
<
template
#
extra
>
支
</
template
>
</van-field>
<van-field
colon
clearable
label-width=
"125px"
name=
"whetherNoSmoking"
label=
"是否戒烟"
v-if=
"whetherSmoking == '是'"
>
<
template
#
input
>
<van-radio-group
@
change=
"
() =>
{
setLocalStorge('whetherNoSmoking');
if (whetherNoSmoking == '否') {
noSmokingYears = ''; //戒烟年数
setValue('noSmokingYears', '');
}
}
"
v-model="whetherNoSmoking"
direction="horizontal"
>
<van-radio
name=
"是"
>
是
</van-radio>
<van-radio
name=
"否"
>
否
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
v-if=
"whetherNoSmoking == '是'"
colon
label-width=
"125px"
clearable
v-model=
"noSmokingYears"
name=
"noSmokingYears"
label=
"戒烟年数"
placeholder=
"戒烟年数"
type=
"digit"
@
blur=
"setLocalStorge('noSmokingYears')"
:rules=
"[{ required: false, message: '请填写戒烟年数' }]"
>
<
template
#
extra
>
年
</
template
>
</van-field>
<van-field
colon
clearable
name=
"whetherPassivitySmoking"
label=
"是否被动吸烟"
label-width=
"125px"
>
<
template
#
input
>
<van-radio-group
@
change=
"
() =>
{
setLocalStorge('whetherPassivitySmoking');
if (whetherPassivitySmoking == '否') {
passivitySmokingYears = ''; //被动吸烟年数
setValue('passivitySmokingYears', '');
}
}
"
v-model="whetherPassivitySmoking"
direction="horizontal"
>
<van-radio
name=
"是"
>
是
</van-radio>
<van-radio
name=
"否"
>
否
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
v-if=
"whetherPassivitySmoking == '是'"
colon
label-width=
"125px"
clearable
v-model=
"passivitySmokingYears"
name=
"passivitySmokingYears"
label=
"被动吸烟年数"
placeholder=
"被动吸烟年数"
type=
"digit"
@
blur=
"setLocalStorge('passivitySmokingYears')"
>
<
template
#
extra
>
年
</
template
>
</van-field>
<van-popup
v-model=
"showPicker"
position=
"bottom"
>
<van-datetime-picker
:min-date=
"minDate"
...
...
@@ -360,6 +532,15 @@ export default {
yesOrNoCt
:
"无"
,
ChestCT
:
"无"
,
//有无CT
ChestCTDate
:
""
,
//CT拍照时间
whetherSmoking
:
""
,
//是否吸烟
smokingTypes
:
[],
//烟草类型
smokingYears
:
""
,
//吸烟年数
smokingCount
:
""
,
//每天吸烟支数
whetherNoSmoking
:
""
,
//是否戒烟
noSmokingYears
:
""
,
//戒烟年数
whetherPassivitySmoking
:
""
,
//是否被动吸烟
passivitySmokingYears
:
""
,
//是否被动吸烟年数
smokingTypesList
:
[],
previousHistoryList
:
[],
showPicker
:
false
,
...
...
@@ -369,6 +550,7 @@ export default {
maxDate
:
new
Date
(),
ChestCTDate1
:
new
Date
(),
tuberculosisDate1
:
new
Date
(),
};
},
mounted
()
{
...
...
@@ -394,6 +576,14 @@ export default {
"yesOrNoCt"
,
"ChestCT"
,
//有无CT
"ChestCTDate"
,
//CT拍照时间
"whetherSmoking"
,
//是否吸烟
"smokingTypes"
,
//烟草类型
"smokingYears"
,
//吸烟年数
"smokingCount"
,
//每天吸烟支数
"whetherNoSmoking"
,
//是否戒烟
"noSmokingYears"
,
//戒烟年数
"whetherPassivitySmoking"
,
//是否被动吸烟
"passivitySmokingYears"
,
//是否被动吸烟年数
];
arr
.
map
((
item
)
=>
{
...
...
@@ -413,6 +603,9 @@ export default {
if
(
this
.
getLocalStorge
(
"previousHistory"
))
{
this
.
previousHistory
=
this
.
getLocalStorge
(
"previousHistory"
).
split
(
","
);
}
if
(
this
.
smokingTypes
.
length
>
0
)
{
this
.
smokingTypes
=
this
.
getLocalStorge
(
"smokingTypes"
).
split
(
","
);
}
},
...
...
@@ -438,6 +631,9 @@ export default {
this
.
previousHistoryList
=
data
.
filter
((
item
)
=>
{
return
item
.
category
==
"既往史"
;
});
this
.
smokingTypesList
=
data
.
filter
((
item
)
=>
{
return
item
.
category
==
"烟草类型"
;
});
this
.
setLoading
(
false
);
});
},
...
...
vue.config.js
View file @
cb08fd08
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: wsq
* @LastEditTime: 2022-04-
19 16:08:25
* @LastEditTime: 2022-04-
28 18:31:18
* @Description:
*/
const
path
=
require
(
'path'
);
...
...
@@ -63,8 +63,8 @@ module.exports = {
//target: 'http://flowtone.suvalue.com/',
//target: 'http://flowtone2.suvalue.com/',
target
:
'http://flowtone6.suvalue.com/'
,
//
target:'http://192.168.18.166:8048/',//测试
//
target: 'http://flowtone6.suvalue.com/',
target
:
'http://192.168.18.166:8048/'
,
//测试
ws
:
true
,
//如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
...
...
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