Commit 3a087e12 authored by miaojiale's avatar miaojiale

修改不符合筛查条件

parent 33a90636
<template> <template>
<el-row :gutter="options.gutter" class="form-content"> <el-row
<template :gutter="options.gutter"
v-for="(item, columnIndex) in columns.column || columns.children.column" class="form-content"
> >
<template v-for="(item, columnIndex) in columns.column || columns.children.column">
<div <div
v-if="item.type === 'dynamic'" v-if="item.type === 'dynamic'"
v-show="item.display" v-show="item.display"
...@@ -95,7 +96,10 @@ ...@@ -95,7 +96,10 @@
:md="item.md || 24" :md="item.md || 24"
:lg="item.span || 12" :lg="item.span || 12"
> >
<div class="form_title" :style="item.styles"> <div
class="form_title"
:style="item.styles"
>
<span>{{ item.value }}</span> <span>{{ item.value }}</span>
</div> </div>
</el-col> </el-col>
...@@ -167,47 +171,47 @@ export default { ...@@ -167,47 +171,47 @@ export default {
default: false, default: false,
}, },
}, },
data() { data () {
return {} return {}
}, },
computed: { computed: {
isShowIm() { isShowIm () {
return function (val) { return function (val) {
return !this.isShowImportant ? true : val return !this.isShowImportant ? true : val
} }
}, },
paddingLeft() { paddingLeft () {
const columns = this.columns const columns = this.columns
return columns.labelWidth ? `${columns.labelWidth}px` : "" return columns.labelWidth ? `${columns.labelWidth}px` : ""
}, },
}, },
methods: { methods: {
clearAge() { clearAge () {
for (let i = 0; i < this.$refs.formSelf.length; i++) { for (let i = 0; i < this.$refs.formSelf.length; i++) {
this.$refs.formSelf[i].age = "" this.$refs.formSelf[i].age = ""
} }
}, },
validateForm() { validateForm () {
this.$emit("validateForm") this.$emit("validateForm")
}, },
validUpload(prop) { validUpload (prop) {
this.$emit("validUpload", prop) this.$emit("validUpload", prop)
}, },
handleChange(key, val) { handleChange (key, val) {
if (this.form.hasOwnProperty(key)) this.form[key] = val if (this.form.hasOwnProperty(key)) this.form[key] = val
}, },
// 切换不符合筛查条件的显示 // 切换不符合筛查条件的显示
formChange() { formChange () {
// 入选,排除标准,一个填写是就不符合筛查条件 // 入选,排除标准,一个填写是就不符合筛查条件
let arr = [ let arr = [
"is_one_year", "is_one_year",
"is_subtotal_history", "is_subtotal_history",
"is_ppi", "is_ppi",
"is_symptom", "is_symptom",
"is_subtotal_history",
"is_disease", "is_disease",
"is_tumour", "is_tumour",
"is_Incomplete"
] ]
let flag = 0 let flag = 0
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment