Commit 87fd1b23 authored by miaojiale's avatar miaojiale

审核质控动态表单回显

parent c41edeb9
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
// } // }
}, },
created() { created() {
this.getDetail() // this.getDetail()
}, },
computed: { computed: {
unionId() { unionId() {
...@@ -218,6 +218,7 @@ export default { ...@@ -218,6 +218,7 @@ export default {
methods: { methods: {
showDialog(val, index) { showDialog(val, index) {
console.log("显示框", val) console.log("显示框", val)
this.curBtn = index + 1 this.curBtn = index + 1
if (!this.editStatus) { if (!this.editStatus) {
if (this.curBtn == 1) { if (this.curBtn == 1) {
...@@ -228,6 +229,7 @@ export default { ...@@ -228,6 +229,7 @@ export default {
//获取审核标签 //获取审核标签
this.getSysCheckNote() this.getSysCheckNote()
} else { } else {
d
this.rules.reason[0].message = "请输入驳回修改建议" this.rules.reason[0].message = "请输入驳回修改建议"
} }
this.$refs.publicDialog.dialogVisible = true this.$refs.publicDialog.dialogVisible = true
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
:disabled="disabled" :disabled="disabled"
:tab-disabled="tabDisabled" :tab-disabled="tabDisabled"
:get-data="getData" :get-data="getData"
:contrast="true"
:patient-id="patientId" :patient-id="patientId"
:screenList="screenList"
@refreshData="refreshData" @refreshData="refreshData"
></ConfigForms> ></ConfigForms>
</div> </div>
...@@ -26,6 +28,13 @@ export default { ...@@ -26,6 +28,13 @@ export default {
disabled: false, disabled: false,
tabDisabled: true, tabDisabled: true,
refreshFlag: true, refreshFlag: true,
screenList: [
{
time: "2020-12-12 11:11:11",
code: "UK102",
name: "修改第一次随访计划",
},
],
} }
}, },
provide() { provide() {
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
$route.path === '/screening/draft' ? 'p_padding' : '', $route.path === '/screening/draft' ? 'p_padding' : '',
]" ]"
> >
<div v-if="formTabs && formTabs.length > 0" style="position: relative"> <div
v-if="formTabs && formTabs.length > 0"
style="position: relative; display: flex"
>
<el-button <el-button
v-if="formType == 1 ? (!disabled ? true : false) : true" v-if="formType == 1 ? (!disabled ? true : false) : true"
class="draftButton" class="draftButton"
...@@ -46,7 +49,7 @@ ...@@ -46,7 +49,7 @@
:operation="operation" :operation="operation"
:is-draft="isDraft" :is-draft="isDraft"
:active-name="activeName" :active-name="activeName"
contrast :contrast="contrast"
:form-initial="formInitial" :form-initial="formInitial"
:survival-flag="survivalFlag" :survival-flag="survivalFlag"
:follow-id="followId" :follow-id="followId"
...@@ -60,6 +63,17 @@ ...@@ -60,6 +63,17 @@
</transition> </transition>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-aside v-if="contrast" :width="'200px'">
<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>
</div> </div>
<el-empty v-else description="暂无数据"></el-empty> <el-empty v-else description="暂无数据"></el-empty>
<!-- 筛查提交弹窗 --> <!-- 筛查提交弹窗 -->
...@@ -146,6 +160,7 @@ export default { ...@@ -146,6 +160,7 @@ export default {
mixins: [mixin], mixins: [mixin],
props: { props: {
disabled: Boolean, disabled: Boolean,
screenList: Array,
tabDisabled: { type: Boolean, default: true }, tabDisabled: { type: Boolean, default: true },
formType: String, formType: String,
patientId: String, patientId: String,
...@@ -153,6 +168,7 @@ export default { ...@@ -153,6 +168,7 @@ export default {
operation: String, operation: String,
isDraft: String, isDraft: String,
getData: { type: Boolean, default: true }, getData: { type: Boolean, default: true },
contrast: { type: Boolean, default: false },
}, },
inject: { inject: {
tabFollowId: { tabFollowId: {
...@@ -381,6 +397,32 @@ export default { ...@@ -381,6 +397,32 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-aside {
padding: 88px 0 10px;
border-left: 0px;
.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;
}
}
}
}
}
}
#publicContent { #publicContent {
position: relative; position: relative;
padding: 32px 24px 32px; padding: 32px 24px 32px;
......
...@@ -70,14 +70,6 @@ ...@@ -70,14 +70,6 @@
</div> </div>
</template> </template>
</el-main> </el-main>
<el-aside
v-if="contrast"
:width="sideWidth"
class="transition-box"
:class="{ hidden: !asideShow }"
>
<div class="side-content"></div>
</el-aside>
</el-container> </el-container>
</template> </template>
<script> <script>
...@@ -98,7 +90,7 @@ export default { ...@@ -98,7 +90,7 @@ export default {
externalScroll: Boolean, //外部滚动 externalScroll: Boolean, //外部滚动
disabled: Boolean, disabled: Boolean,
getData: Boolean, getData: Boolean,
contrast: Boolean, //同屏对照 // contrast: Boolean, //同屏对照
form: Object, form: Object,
formType: String, formType: String,
patientId: String, patientId: String,
...@@ -171,9 +163,9 @@ export default { ...@@ -171,9 +163,9 @@ export default {
getTabFollowId() { getTabFollowId() {
return this.tabFollowId() return this.tabFollowId()
}, },
sideWidth() { // sideWidth() {
return this.asideShow ? "200px" : "0px" // return this.asideShow ? "200px" : "0px"
}, // },
pageLoading() { pageLoading() {
return this.loading || this.formloading return this.loading || this.formloading
}, },
...@@ -545,12 +537,4 @@ export default { ...@@ -545,12 +537,4 @@ export default {
float: left; float: left;
width: 150px; width: 150px;
} }
.transition-box {
transition: all 0.2s;
&.hidden {
opacity: 0;
height: 0px;
}
}
</style> </style>
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