Commit 8fd75fa4 authored by miaojiale's avatar miaojiale

1.头部增加返回首页按钮

2.首页用户信息模块修改页面
3.审核质控页面去除头部按钮
4.知情同意联动效果
5.入选标准增加参数
parent c8b49699
......@@ -186,7 +186,6 @@ export default {
// 切换不符合筛查条件的显示
formChange() {
// 入选,排除标准,一个填写是就不符合筛查条件
console.log(this.form)
let arr = [
"is_one_year",
"is_subtotal_history",
......@@ -202,6 +201,9 @@ export default {
flag++
}
}
if (this.form.is_know && this.form.is_know == 0) {
flag = 1
}
if (flag == 0) {
this.$emit("showError", false)
} else {
......
......@@ -78,6 +78,7 @@
>上一步</el-button
>
</template>
<!-- 下一步按钮 -->
<template v-if="options.submitBtn">
<el-button
type="primary"
......@@ -424,6 +425,7 @@ export default {
}
.noCol {
font-size: 12px;
margin-left: 12px;
font-family: AlibabaPuHuiTiR;
color: #ff4d4f;
}
......
```js
!实在是累的没办法了,只能在这里记住这些文件的层级关系
? FormItemSelf\ FormContent\
? FormItemText/ CustomForm/index——————views/screening/FormTab——————ConfigForms————index
*/
上一步下一步提交按钮触发:CustomForm/index 最终处理实在ConfigForms以及同级中的mixin
```
......@@ -49,10 +49,9 @@
>
<template slot="title">
{{ g.label }}
<span
v-if="g.label == '二、排除标准'"
class="noCol"
>{{errorText}}</span>
<span v-if="g.label == '二、排除标准'" class="noCol">{{
errorText
}}</span>
</template>
<form-content
v-if="collapseNames.includes(g.prop)"
......@@ -63,7 +62,7 @@
:is-show-important="isShowImportant"
@showError="showError"
:showIndex="g.showIndex"
:class="g.showIndex?'simple-form':'index-form'"
:class="g.showIndex ? 'simple-form' : 'index-form'"
></form-content>
</el-collapse-item>
</template>
......@@ -160,7 +159,7 @@ export default {
},
},
watch: {
formEdit:{
formEdit: {
handler() {
this.initfields(this.formEdit)
},
......@@ -318,7 +317,7 @@ export default {
if (this.$refs.form && this.$refs.form.clearValidate) {
this.$refs.form.clearValidate()
}
this.$forceUpdate();
this.$forceUpdate()
})
},
// 绑定部分值(此时表单已渲染)
......
......@@ -44,10 +44,17 @@
</div>
</div>
<div v-if="allianceToken" class="userInfo">
<div class="white"></div>
<div class="top">
<div class="text">欢迎,{{ userInfo.name }}</div>
<div class="exit" @click="logout">退出</div>
</div>
<div class="bot" @click="$router.push('/')">
<div class="left_chart">
<img src="@/assets/img/Home/chart.png" alt="" />
</div>
<div class="right_text">数据中心</div>
</div>
</div>
</header>
<div class="sider">
<el-menu
......@@ -260,16 +267,14 @@ export default {
display: flex;
flex-direction: column;
align-items: flex-end;
.white {
width: 32px;
height: 4px;
background: #ffffff;
}
.top {
display: flex;
align-items: center;
.text {
font-size: 20px;
font-family: AlibabaPuHuiTiM;
color: #ffffff;
margin: 10px 0;
margin: 10px 24px;
}
.exit {
font-size: 16px;
......@@ -283,6 +288,38 @@ export default {
}
}
}
.bot {
width: 183px;
height: 60px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0px 12px 36px 0px rgba(23, 44, 105, 0.3);
border-radius: 8px;
display: flex;
margin-top: 32px;
cursor: pointer;
.left_chart {
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
img {
width: 36px;
height: 36px;
}
}
.right_text {
flex: 1;
background: #4e68ff;
border-radius: 0px 8px 8px 0px;
line-height: 60px;
font-size: 22px;
font-family: PingFangSC-Medium, PingFang SC;
color: #f1f5fd;
text-align: center;
}
}
}
}
.siderMenu {
padding: 0 10%;
......
......@@ -7,7 +7,7 @@
<div class="userInfo">
<error-log></error-log>
<!-- <avatar></avatar> -->
<div class="fontSelect">
<div v-if="$route.path != '/auditqualitycontrol'" class="fontSelect">
<div
v-for="(item, index) in fontList"
:key="index"
......@@ -18,7 +18,7 @@
</div>
</div>
<div
v-show="curSelectedIndex != -1"
v-show="curSelectedIndex != -1 && $route.path != '/auditqualitycontrol'"
class="community"
@click="openModalFlag"
>
......@@ -62,6 +62,10 @@
</el-badge>
</template>
</el-popover>
<div class="user" @click="$router.push('/home')">
<img src="~@/assets/img/DataCenter/backhome.png" alt />
<span>返回首页</span>
</div>
</div>
</div>
</template>
......
<template>
<div>草稿箱</div>
</template>
<script>
export default {
data() {
return {}
},
methods: {},
mounted() {},
watch: {},
}
</script>
<style lang="scss" scoped></style>
<template>
<ConfigForms form-type="1"></ConfigForms>
<ConfigForms form-type="1" :prods="'add'"></ConfigForms>
</template>
<script>
......
......@@ -107,6 +107,7 @@ export default {
formType: String,
patientId: String,
formClass: String,
prods: String,
},
data() {
return {
......
......@@ -234,7 +234,13 @@ export default {
formId: this.form.formId,
patientId: this.patientId || this.patientStandbyId,
formRecordId: this.formData.formRecordId,
statusMap: {
patientFrom: this.$store.getters["table/selectedIndex"],
is_draft: 1,
check_status: 1,
},
},
done,
(res) => {
// 多次填写的表单新增时,获取最新数据
......@@ -355,6 +361,9 @@ export default {
)
}
},
mounted() {
// console.log()
},
}
</script>
<style scoped lang="scss">
......
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