Commit 8f89bc89 authored by 刘予佳's avatar 刘予佳

Merge remote-tracking branch 'remotes/origin/dev_Miaojiale' into dev_lyj

parents fb634537 6c1b6427
import request from "@/utils/request"
/* 数据库管理 */
export function addMedicalunion(data = {}) {
return request({
url: "/cloud-upms/sys/union/addOrUpdate",
method: "post",
data,
})
}
export function medicalunionList(params = {}) {
return request({
url: "/cloud-upms/sys/union/list",
method: "get",
params,
})
}
<template> <template>
<el-row :gutter="options.gutter" class="form-content"> <el-row :gutter="options.gutter" class="form-content">
<template v-for="(item, columnIndex) in columns.column || columns.children.column"> <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"
...@@ -8,7 +10,11 @@ ...@@ -8,7 +10,11 @@
style="width: 100%" style="width: 100%"
class="dynamic-form-container" class="dynamic-form-container"
> >
<el-form-item :prop="item.prop" :label-width="'0px'" style="display: none"></el-form-item> <el-form-item
:prop="item.prop"
:label-width="'0px'"
style="display: none"
></el-form-item>
<div class="dynamic-form-container_lable">{{ item.label }}</div> <div class="dynamic-form-container_lable">{{ item.label }}</div>
<form-dynamic <form-dynamic
v-model="form[item.prop]" v-model="form[item.prop]"
...@@ -25,7 +31,11 @@ ...@@ -25,7 +31,11 @@
style="width: 100%" style="width: 100%"
> >
<el-collapse :value="item.collapse ? item.prop : ''"> <el-collapse :value="item.collapse ? item.prop : ''">
<el-collapse-item :title="item.label" :name="item.prop" :disabled="!item.arrow"> <el-collapse-item
:title="item.label"
:name="item.prop"
:disabled="!item.arrow"
>
<form-content <form-content
ref="form-content" ref="form-content"
:form="form" :form="form"
...@@ -43,7 +53,11 @@ ...@@ -43,7 +53,11 @@
:key="columnIndex" :key="columnIndex"
style="width: 100%" style="width: 100%"
> >
<el-form-item :prop="item.prop" :label-width="'0px'" style="display: none"></el-form-item> <el-form-item
:prop="item.prop"
:label-width="'0px'"
style="display: none"
></el-form-item>
<dental-tab-form <dental-tab-form
ref="dental" ref="dental"
v-model="form[item.prop]" v-model="form[item.prop]"
...@@ -59,7 +73,11 @@ ...@@ -59,7 +73,11 @@
:key="columnIndex" :key="columnIndex"
style="width: 100%" style="width: 100%"
> >
<el-form-item :prop="item.prop" :label-width="'0px'" style="display: none"></el-form-item> <el-form-item
:prop="item.prop"
:label-width="'0px'"
style="display: none"
></el-form-item>
<dental-tab-tj-form <dental-tab-tj-form
ref="dental" ref="dental"
v-model="form[item.prop]" v-model="form[item.prop]"
...@@ -168,7 +186,7 @@ export default { ...@@ -168,7 +186,7 @@ export default {
}, },
// 切换不符合筛查条件的显示 // 切换不符合筛查条件的显示
formChange() { formChange() {
// 入选,排除标准 // 入选,排除标准,一个填写是就不符合筛查条件
console.log(this.form) console.log(this.form)
let arr = [ let arr = [
"is_one_year", "is_one_year",
...@@ -181,7 +199,7 @@ export default { ...@@ -181,7 +199,7 @@ export default {
] ]
let flag = 0 let flag = 0
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
if (this.form[arr[i]] && this.form[arr[i]] == 0) { if (this.form[arr[i]] && this.form[arr[i]] == 1) {
flag++ flag++
} }
} }
......
...@@ -2,13 +2,35 @@ ...@@ -2,13 +2,35 @@
<div class="form-item-text"> <div class="form-item-text">
<template v-if="form[item.prop]"> <template v-if="form[item.prop]">
<span v-if="item.prepend">{{ item.prepend }}</span> <span v-if="item.prepend">{{ item.prepend }}</span>
<span style="margin: 0 5px">{{ <span>
<span
v-if="item.prop == 'risk_rank'"
:style="{
color:
form[item.prop] == '中危'
? '#FF9F33'
: form[item.prop] == '低危'
? 'green'
: '',
}"
>
{{ form[item.prop] }}
</span>
<span
v-else-if="item.prop == 'screening_advise'"
style="color: #4e68ff"
>
{{ form[item.prop] }}
</span>
<span v-else style="margin: 0 5px">{{
form[item.prop] | getItemText(item.dicData, item.type) form[item.prop] | getItemText(item.dicData, item.type)
}}</span> }}</span>
</span>
<span v-if="item.append && !item.toothBit" class="append">{{ <span v-if="item.append && !item.toothBit" class="append">{{
item.append item.append
}}</span> }}</span>
</template> </template>
<template v-else> -- </template>
</div> </div>
</template> </template>
......
...@@ -50,9 +50,7 @@ ...@@ -50,9 +50,7 @@
<template slot="title"> <template slot="title">
{{ g.label }} {{ g.label }}
<span v-if="g.label == '二、排除标准'" class="noCol"> <span v-if="g.label == '二、排除标准'" class="noCol">
{{ {{ errorText }}
errorText
}}
</span> </span>
</template> </template>
<form-content <form-content
...@@ -68,7 +66,7 @@ ...@@ -68,7 +66,7 @@
</template> </template>
</el-collapse> </el-collapse>
</template> </template>
<div class="form-footer"> <div v-if="!options.closeBtn" class="form-footer">
<template v-if="options.menuBtn"> <template v-if="options.menuBtn">
<template v-if="options.prevBtn"> <template v-if="options.prevBtn">
<el-button <el-button
...@@ -77,7 +75,8 @@ ...@@ -77,7 +75,8 @@
size="large" size="large"
:disabled="disabled" :disabled="disabled"
@click="onPrev" @click="onPrev"
>上一步</el-button> >上一步</el-button
>
</template> </template>
<template v-if="options.submitBtn"> <template v-if="options.submitBtn">
<el-button <el-button
...@@ -87,7 +86,8 @@ ...@@ -87,7 +86,8 @@
size="large" size="large"
:disabled="disabled" :disabled="disabled"
@click="handleConfirm" @click="handleConfirm"
>{{ options.submitText || "提交" }}</el-button> >{{ options.submitText || "提交" }}</el-button
>
</template> </template>
<template v-if="options.emptyBtn"> <template v-if="options.emptyBtn">
<el-button <el-button
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
icon="el-icon-delete " icon="el-icon-delete "
size="large" size="large"
@click="resetForm(true)" @click="resetForm(true)"
>{{ options.emptyText || "清空" }}</el-button> >{{ options.emptyText || "清空" }}</el-button
>
</template> </template>
</template> </template>
<template v-if="nextTabBtnShow"> <template v-if="nextTabBtnShow">
...@@ -105,7 +106,8 @@ ...@@ -105,7 +106,8 @@
icon="el-icon-caret-right" icon="el-icon-caret-right"
size="large" size="large"
@click="nextTab" @click="nextTab"
>{{ options.nextTabText || "下一页" }}</el-button> >{{ options.nextTabText || "下一页" }}</el-button
>
</el-form> </el-form>
</template> </template>
</div> </div>
...@@ -377,6 +379,7 @@ export default { ...@@ -377,6 +379,7 @@ export default {
padding-bottom: 0px; padding-bottom: 0px;
} }
.el-collapse-item__header { .el-collapse-item__header {
border-radius: 4px;
background: #fafafa; background: #fafafa;
padding-left: 20px; padding-left: 20px;
border: 1px solid #cccccc; border: 1px solid #cccccc;
......
...@@ -30,4 +30,9 @@ export default { ...@@ -30,4 +30,9 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
::v-deep .el-dialog__body {
border-top: none;
text-align: center;
}
</style>
<template> <template>
<div> <div>
<el-container> <el-container v-loading="fromLoading">
<el-main v-loading="pageLoading" class="transition-box"> <el-main class="transition-box">
<el-empty v-if="!isEmpty" description="暂无数据"></el-empty> <el-empty v-if="!isEmpty" description="暂无数据"></el-empty>
<template v-if="isEmpty"> <template v-if="isEmpty">
<div ref="my-form" class="my-form"> <div ref="my-form" class="my-form">
<custom-form <custom-form
ref="customForm" ref="customForm"
class="mb-20"
:options="jsonList[1]" :options="jsonList[1]"
:form-edit="form" :form-edit="form"
></custom-form> ></custom-form>
<!-- <custom-form ref="form" :options="jsonList[1]"></custom-form> <custom-form
<custom-form ref="form" :options="jsonList[2]"></custom-form> ref="form"
<custom-form ref="form" :options="jsonList[3]"></custom-form> :options="jsonList[2]"
<custom-form ref="form" :options="jsonList[4]"></custom-form> --> class="mb-20"
:form-edit="form"
></custom-form>
<custom-form
ref="form"
:options="jsonList[3]"
class="mb-20"
:form-edit="form"
></custom-form>
<custom-form
ref="form"
class="mb-20"
:options="jsonList[4]"
:form-edit="form"
></custom-form>
</div> </div>
</template> </template>
</el-main> </el-main>
...@@ -22,7 +37,15 @@ ...@@ -22,7 +37,15 @@
class="transition-box" class="transition-box"
:class="{ hidden: !asideShow }" :class="{ hidden: !asideShow }"
> >
<div class="side-content"></div> <div class="side-content">
<ul class="list">
<li v-for="(item, index) in screenList" :key="index">
<div class="time">{{ item.time }}</div>
<div class="time">{{ item.code }}</div>
<div class="time">{{ item.name }}</div>
</li>
</ul>
</div>
</el-aside> </el-aside>
</el-container> </el-container>
</div> </div>
...@@ -36,16 +59,29 @@ export default { ...@@ -36,16 +59,29 @@ export default {
components: { CustomForm }, components: { CustomForm },
data() { data() {
return { return {
fromLoading: false, fromLoading: true,
formTabs: [], formTabs: [],
formTabsList: [], formTabsList: [],
jsonList: [], jsonList: [],
form: { form: {
name: "123", name: "123",
phone: "18712412341", phone: "18712412341",
min_age: "18", age: "18",
is_continue_follow: "1",
}, },
asideShow: true, asideShow: true,
screenList: [
{
time: "2020-12-12 11:11:11",
code: "UK102",
name: "修改第一次随访计划",
},
],
}
},
provide() {
return {
showIndex: true,
} }
}, },
computed: { computed: {
...@@ -58,9 +94,6 @@ export default { ...@@ -58,9 +94,6 @@ export default {
sideWidth() { sideWidth() {
return this.asideShow ? "200px" : "0px" return this.asideShow ? "200px" : "0px"
}, },
pageLoading() {
return this.loading || this.formloading
},
}, },
watch: {}, watch: {},
created() { created() {
...@@ -116,11 +149,12 @@ export default { ...@@ -116,11 +149,12 @@ export default {
const formJson = res.data.formJson const formJson = res.data.formJson
const obj = eval("(" + formJson + ")") const obj = eval("(" + formJson + ")")
obj.disabled = true obj.disabled = true
obj.closeBtn = true
obj.detail = true obj.detail = true
this.jsonList.push(obj) this.jsonList.push(obj)
if (i == 4) { if (i == 4) {
console.log(this.jsonList) console.log(this.jsonList)
this.formloading = false this.fromLoading = false
} }
} }
}) })
...@@ -134,4 +168,33 @@ export default { ...@@ -134,4 +168,33 @@ export default {
}, },
} }
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.md-20 {
margin-bottom: 20px;
}
.el-aside {
padding: 20px 0 38.5px;
.side-content {
width: 100%;
height: 100%;
border: 1px solid #ccc;
border-radius: 4px;
.list {
li {
padding: 20px 30px;
border-bottom: 1px solid #ccc;
cursor: pointer;
.time {
font-size: 14px;
margin-bottom: 8px;
font-family: AlibabaPuHuiTiR;
text-align: left;
&:first-child {
color: #4e68ff;
}
}
}
}
}
}
</style>
<template> <template>
<div id="audit-detail"> <div id="audit-detail">
<div class="top">
<div class="audit-detail_header p-24"> <div class="audit-detail_header p-24">
<div class="left"> <div class="left">
<span>当前审核</span> <span>当前审核</span>
...@@ -24,6 +25,7 @@ ...@@ -24,6 +25,7 @@
<span v-if="editStatus" class="op">驳回修改建议:胃镜图片不合规</span> <span v-if="editStatus" class="op">驳回修改建议:胃镜图片不合规</span>
</div> </div>
</div> </div>
</div>
<div class="table-content p-24"> <div class="table-content p-24">
<component :is="curComponent"></component> <component :is="curComponent"></component>
</div> </div>
...@@ -212,12 +214,8 @@ export default { ...@@ -212,12 +214,8 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-dialog__body { .tips {
border-top: none;
text-align: center;
.tips {
font-size: 16px; font-size: 16px;
}
} }
.p-24 { .p-24 {
padding: 0 24px; padding: 0 24px;
...@@ -228,6 +226,8 @@ export default { ...@@ -228,6 +226,8 @@ export default {
} }
#audit-detail { #audit-detail {
display: flex;
flex-direction: column;
// padding: 22px 24px; // padding: 22px 24px;
.audit-detail_header { .audit-detail_header {
height: 65px; height: 65px;
...@@ -301,6 +301,8 @@ export default { ...@@ -301,6 +301,8 @@ export default {
margin-left: 20px; margin-left: 20px;
} }
.table-content { .table-content {
height: calc(100vh - 260px);
overflow: auto;
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
} }
......
<template> <template>
<div id="publicContent" :class="activeName == 'index0' && formClass ? formClass : ''"> <div
id="publicContent"
:class="activeName == 'index0' && formClass ? formClass : ''"
>
<div v-if="formTabs && formTabs.length > 0"> <div v-if="formTabs && formTabs.length > 0">
<el-button class="draftButton"> <el-button
{{ class="draftButton"
formType == 1 ? "临时保存" : "返回" @click="onSubmit(formType)"
}} :loading="loading"
>
{{ formType == 1 ? "临时保存" : "返回" }}
</el-button> </el-button>
<el-tabs <el-tabs
v-model="activeName" v-model="activeName"
...@@ -41,14 +46,59 @@ ...@@ -41,14 +46,59 @@
</el-tabs> </el-tabs>
</div> </div>
<el-empty v-else description="暂无数据"></el-empty> <el-empty v-else description="暂无数据"></el-empty>
<public-dialog
ref="showDialog"
@onSubmit="dialogSubmit"
@onCancel="dialogCancel"
>
<!-- 保存草稿 -->
<template v-if="dialogType == 'draft'" slot="content">
<div class="title center">已保存至草稿箱!</div>
<div class="content center">
<div class="img">
<img src="~@/assets/img/DataCenter/draft.png" alt="" />
</div>
<div class="showTips">您可以在【草稿箱】页面找到该数据</div>
</div>
<div class="btn">
<el-button type="primary" :loading="loading" @click="continueSubmit"
>继续添加</el-button
>
</div>
</template>
<!-- 保存提交 -->
<template v-if="dialogType == 'submit'" slot="content">
<div class="title center">提交成功!</div>
<div class="content center">
<div class="img">
<img src="~@/assets/img/DataCenter/submit.png" alt="" />
</div>
<div class="showTips">您可以在【筛查查询】页面查询到该数据</div>
</div>
<div class="btn">
<el-button
type="primary"
:loading="loading"
@click="view"
class="textBtn"
>查看</el-button
>
<el-button type="primary" :loading="loading" @click="continueSubmit"
>继续添加</el-button
>
</div>
</template>
</public-dialog>
</div> </div>
</template> </template>
<script> <script>
import mixin from "./mixin" import mixin from "./mixin"
import CustomForm from "@/components/FormComponents/CustomForm/index" import CustomForm from "@/components/FormComponents/CustomForm/index"
import publicDialog from "../../audit-detail/components/publicDialog.vue"
export default { export default {
components: { publicDialog },
name: "ConfigForms", name: "ConfigForms",
mixins: [mixin], mixins: [mixin],
props: { props: {
...@@ -61,15 +111,33 @@ export default { ...@@ -61,15 +111,33 @@ export default {
return { return {
// showIndex:false, // showIndex:false,
// survivalFlag:false // survivalFlag:false
dialogType: "",
loading: false,
} }
}, },
methods: { methods: {
view() {},
handleConfirm(data, done, cb) { handleConfirm(data, done, cb) {
this.addPatient(data, done, cb) this.addPatient(data, done, cb)
}, },
onPrev(done) { onPrev(done) {
this.prevTab(done) this.prevTab(done)
}, },
onSubmit(type) {
this.loading = true
if (type == 1) {
// 临时保存草稿
this.dialogType = "draft"
this.$refs.showDialog.dialogVisible = true
this.loading = false
} else {
// 返回
}
},
dialogSubmit() {},
dialogCancel() {},
continueSubmit() {},
}, },
created() { created() {
// 字典formType 1 筛查表单 // 字典formType 1 筛查表单
...@@ -126,6 +194,32 @@ export default { ...@@ -126,6 +194,32 @@ export default {
border: 1px solid #4e68ff; border: 1px solid #4e68ff;
color: #4e68ff; color: #4e68ff;
} }
.content {
img {
width: 248px;
height: 180px;
}
}
}
::v-deep .el-dialog__body {
.title {
font-size: 22px;
font-family: AlibabaPuHuiTiM;
color: rgba(0, 0, 0, 0.8);
margin-bottom: 20px;
}
.showTips {
font-size: 16px;
font-family: AlibabaPuHuiTiR;
color: rgba(0, 0, 0, 0.8);
margin-bottom: 20px;
}
.btn {
.el-button {
width: 100px;
height: 32px;
}
}
} }
.publicTab { .publicTab {
// width: calc(100%); // width: calc(100%);
...@@ -198,4 +292,11 @@ export default { ...@@ -198,4 +292,11 @@ export default {
} }
} }
} }
.textBtn {
width: 100px;
height: 32px;
background: #ffffff;
border: 1px solid #4e68ff;
color: #4e68ff;
}
</style> </style>
This diff is collapsed.
...@@ -41,11 +41,13 @@ export default { ...@@ -41,11 +41,13 @@ export default {
}, },
handleTabClick({ index, name }) { handleTabClick({ index, name }) {
const { formId, id, silent } = this.formTabs[index] const { formId, id, silent } = this.formTabs[index]
console.log('表单项', this.formTabs) console.log("表单项", this.formTabs[index])
if (formId && silent) { if (formId && silent) {
this.formTabs[index]["silent"] = false //控制是否获取接口数据 this.formTabs[index]["silent"] = false //控制是否获取接口数据
return return
} }
if (this.formTabs[index].formName == "风险评估") {
}
this.formTabs.splice(index, 1, { this.formTabs.splice(index, 1, {
...this.formTabsList.find((_) => _.id === id), ...this.formTabsList.find((_) => _.id === id),
}) })
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
}, },
}, },
created() { created() {
this.handleFormSearch() // this.handleFormSearch()
}, },
} }
</script> </script>
......
...@@ -18,9 +18,15 @@ ...@@ -18,9 +18,15 @@
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
/> />
</div> </div>
<el-dialog :visible.sync="addVisible" width="520px" :show-close="true"> <el-dialog
:visible.sync="addVisible"
width="520px"
:show-close="true"
@closed="clearForm"
>
<div class="title">添加医联体</div> <div class="title">添加医联体</div>
<el-form <el-form
ref="form"
:model="form" :model="form"
:label-position="'right'" :label-position="'right'"
label-width="110px" label-width="110px"
...@@ -30,6 +36,8 @@ ...@@ -30,6 +36,8 @@
v-for="(item, index) in formList" v-for="(item, index) in formList"
:key="index" :key="index"
:label="item.label" :label="item.label"
:rules="[{ required: true, message: item.label + '不能为空' }]"
:prop="item.prop"
> >
<el-input <el-input
v-if="item.type == 'input'" v-if="item.type == 'input'"
...@@ -52,7 +60,7 @@ ...@@ -52,7 +60,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="addVisible = false">保存</el-button> <el-button type="primary" @click="submit()">保存</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -60,6 +68,11 @@ ...@@ -60,6 +68,11 @@
<script> <script>
import CustomsTable from "@/components/CustomsTable" import CustomsTable from "@/components/CustomsTable"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
import {
addMedicalunion,
medicalunionList,
} from "@/api/medicalunion-management"
export default { export default {
components: { components: {
CustomsTable, CustomsTable,
...@@ -73,23 +86,23 @@ export default { ...@@ -73,23 +86,23 @@ export default {
{ {
label: "医联体名称", label: "医联体名称",
minWidth: 120, minWidth: 120,
value: "groupName", value: "unionName",
}, },
{ {
label: "医联体编号", label: "医联体编号",
minWidth: 120, minWidth: 120,
value: "name", value: "unionNo",
}, },
{ {
label: "", label: "",
minWidth: 120, minWidth: 120,
value: "sex", value: "province",
}, },
{ {
label: "", label: "",
minWidth: 120, minWidth: 120,
value: "idCard", value: "city",
}, },
{ {
label: "操作", label: "操作",
...@@ -123,19 +136,20 @@ export default { ...@@ -123,19 +136,20 @@ export default {
], ],
tableData: [ tableData: [
{ {
groupName: "第一个", unionName: "第一个",
id: 123,
}, },
], ],
formList: [ formList: [
{ {
type: "input", type: "input",
label: "医联体名称", label: "医联体名称",
prop: "medicalName", prop: "unionName",
}, },
{ {
type: "input", type: "input",
label: "医联体编号", label: "医联体编号",
prop: "medicalId", prop: "unionNo",
}, },
{ {
type: "select", type: "select",
...@@ -154,8 +168,17 @@ export default { ...@@ -154,8 +168,17 @@ export default {
} }
}, },
watch: {}, watch: {},
mounted() {}, mounted() {
this.getMedicalunionList()
},
methods: { methods: {
// 获取list
getMedicalunionList() {
medicalunionList({
size: this.pageSize,
current: this.pageIndex,
}).then((res) => {})
},
// 添加医联体 // 添加医联体
addMedical() { addMedical() {
this.addVisible = true this.addVisible = true
...@@ -163,14 +186,28 @@ export default { ...@@ -163,14 +186,28 @@ export default {
// 编辑医联体 // 编辑医联体
editMedical(data) { editMedical(data) {
console.log(data) console.log(data)
this.form = { this.form = data
medicalName: "黑乎乎",
medicalId: "123",
province: "001",
city: "001",
}
this.addVisible = true this.addVisible = true
}, },
submit() {
this.$refs["form"].validate((valid) => {
if (valid) {
addMedicalunion(this.form).then((res) => {
if (res.code == 1) {
this.$message.success("添加成功")
this.addVisible = false
}
})
} else {
console.log("error submit!!")
return false
}
})
},
clearForm() {
this.form = {}
this.$refs["form"].resetFields()
},
}, },
} }
</script> </script>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
:show-close="true" :show-close="true"
@closed="resetForm" @closed="resetForm"
> >
<div class="title">添加</div> <div class="title">{{ readOnly ? "查看" : "添加" }}</div>
<el-form <el-form
ref="form" ref="form"
:model="form" :model="form"
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
:label="item.label" :label="item.label"
:prop="item.prop" :prop="item.prop"
> >
<template v-if="!readOnly">
<!-- 输入框 --> <!-- 输入框 -->
<el-input <el-input
v-if="item.type == 'input'" v-if="item.type == 'input'"
...@@ -82,6 +83,10 @@ ...@@ -82,6 +83,10 @@
v-model="form[item.prop]" v-model="form[item.prop]"
> >
</el-switch> </el-switch>
</template>
<template v-else>
<span>{{ form[item.prop] || "--" }}</span>
</template>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -103,6 +108,7 @@ export default { ...@@ -103,6 +108,7 @@ export default {
mixins: [paginationMixin], mixins: [paginationMixin],
data() { data() {
return { return {
readOnly: true,
addVisible: false, addVisible: false,
selectList: [ selectList: [
{ {
...@@ -169,7 +175,7 @@ export default { ...@@ -169,7 +175,7 @@ export default {
operType: "button", operType: "button",
operations: [ operations: [
{ {
func: this.editMedical, func: this.viewMedical,
formatter(row) { formatter(row) {
return { return {
label: "查看", label: "查看",
...@@ -266,8 +272,17 @@ export default { ...@@ -266,8 +272,17 @@ export default {
addMedical() { addMedical() {
this.addVisible = true this.addVisible = true
}, },
// 查看
viewMedical() {
this.readOnly = true
this.form = {
title: "123",
}
this.addVisible = true
},
// 编辑医联体 // 编辑医联体
editMedical(data) { editMedical(data) {
this.readOnly = false
console.log(data) console.log(data)
this.form = { this.form = {
medicalName: "黑乎乎", medicalName: "黑乎乎",
......
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