Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
epidemic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
史锦峰
epidemic
Commits
bc984288
Commit
bc984288
authored
Feb 15, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
3ed39da6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
50 deletions
+96
-50
fillIn.vue
pages/fillIn/fillIn.vue
+14
-41
index.vue
pages/index/index.vue
+1
-1
security.vue
pages/security/security.vue
+81
-8
No files found.
pages/fillIn/fillIn.vue
View file @
bc984288
...
...
@@ -19,7 +19,6 @@
</radio-group>
</view>
</view>
<template
v-else-if=
"item.type == 'picker'"
>
<view
class=
"cu-form-group margin-top padding-rl"
v-show=
"!item.hidden"
:key=
"item.value"
>
<view
:class=
"item.titleClass"
><span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
v-if=
"item.required"
>
*
</span>
{{
index
+
1
}}
、
{{
item
.
label
}}
</view>
...
...
@@ -30,7 +29,6 @@
</picker>
</view>
</
template
>
<
template
v-else-if=
"item.type == 'date'"
>
<view
class=
"cu-form-group margin-top padding-rl"
v-show=
"!item.hidden"
:key=
"item.value"
>
<view
:class=
"item.titleClass"
><span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
v-if=
"item.required"
>
*
</span>
{{
index
+
1
}}
、
{{
item
.
label
}}
</view>
...
...
@@ -41,33 +39,6 @@
</picker>
</view>
</
template
>
<!-- <view v-else-if="item.type == 'radio'" :key="index">
<view class="margin-top sict-label">
<uni-collapse>
<uni-collapse-item :title="index+1 +'、' + item.label" :open="true" :required="item.required">
<view class="padding-lr">
<view class="uni-list">
<checkbox-group>
<label class="uni-list-cell uni-list-cell-pd" v-for="(itemCheck,indexCheck) in item.opts" :key="itemCheck.value"
@click="radioChange2(indexCheck,item.opts,itemCheck.value)">
<view class="list-item">
<view class="fl">
<checkbox :value="itemCheck.value" :checked="itemCheck.checked" />
</view>
<view style="padding-left:60upx">{{itemCheck.label}}</view>
</view>
</label>
</checkbox-group>
</view>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
</view> -->
<
template
v-else-if=
"item.type == 'input'"
>
<view
class=
"cu-form-group margin-top padding-rl"
:key=
"item.value"
>
<view
:class=
"item.titleClass"
>
...
...
@@ -76,7 +47,6 @@
<input
class=
"text-right"
:placeholder=
"item.placeholder"
:type=
"item.controType"
:value=
"form[item.value]"
name=
"input"
@
input=
"updateInputVal($event,item.value)"
></input>
</view>
</
template
>
<view
class=
"margin-top-xs"
v-show=
"item.child && childItem.show"
v-for=
"(childItem,childIndex) in item.child"
:key=
"childItem.value"
>
<view
class=
"margin-top-sm padding-rl sict-label cu-form-group"
>
<view>
...
...
@@ -90,18 +60,13 @@
{{form[childItem.value]>-1?childItem.opts[form[childItem.value]].label:'请选择'}}
</view>
</picker>
<input
class=
"text-right"
v-else-if=
"childItem.type == 'input'"
:type=
"childItem.controType"
:placeholder=
"childItem.placeholder"
:value=
"form[childItem.value]"
name=
"input"
@
input=
"updateInputVal($event,childItem.value)"
></input>
</view>
</view>
</template>
<view
class=
"padding"
>
<button
form-type=
"submit"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
提 交
</button>
</view>
</form>
</view>
</template>
...
...
@@ -278,7 +243,6 @@
opts
:[{
value
:
'
a
'
,
label
:
'
已经确诊
'
},{
value
:
'
b
'
,
label
:
'
疑似诊断
'
},{
value
:
'
b
'
,
label
:
'
亲密接触者
'
},{
value
:
'
b
'
,
label
:
'
正在接受集中医学观察
'
},{
value
:
'
b
'
,
label
:
'
居家观察
'
},{
value
:
'
b
'
,
label
:
'
已解除集中医学观察
'
},{
value
:
'
b
'
,
label
:
'
无上述情况
'
}]
}
],
list
:[
{
label
:
'
单位名称
'
,
...
...
@@ -286,7 +250,7 @@
value
:
'
orgId
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:[
{
value
:
'
a
'
,
label
:
'
一位
'
},{
value
:
'
b
'
,
label
:
'
多位
'
}
]
opts
:[]
},
{
label
:
'
所在部门
'
,
...
...
@@ -370,13 +334,14 @@
}
],
form
:{
orgId
:
''
,