Commit fc8b1546 authored by miaojiale's avatar miaojiale

1.修改首页内容

2.动态设置视频高度
3.修改bug
parent 7054eace
...@@ -104,10 +104,10 @@ export default { ...@@ -104,10 +104,10 @@ export default {
route: "/allianceintroduction", route: "/allianceintroduction",
name: "联盟介绍", name: "联盟介绍",
}, },
{ // {
route: "/healthpopularization", // route: "/healthpopularization",
name: "健康科普", // name: "健康科普",
}, // },
{ {
route: "/scientificresearch", route: "/scientificresearch",
name: "科学研究", name: "科学研究",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="userInfo"> <div class="userInfo">
<error-log></error-log> <error-log></error-log>
<!-- <avatar></avatar> --> <!-- <avatar></avatar> -->
<div v-if="$route.path != '/auditqualitycontrol'" class="fontSelect"> <div v-if="showFontList.includes($route.path)" class="fontSelect">
<div <div
v-for="(item, index) in fontList" v-for="(item, index) in fontList"
:key="index" :key="index"
...@@ -122,6 +122,25 @@ export default { ...@@ -122,6 +122,25 @@ export default {
return { return {
pulse: false, pulse: false,
isDot: true, isDot: true,
showFontList: [
"/dataoverview",
"/screening/index",
"/screening/draft",
"/followupquery",
"/followupresearch",
"/auditqualitycontrol",
"/field-mapping",
"/systems/form-config",
"/database",
"/systems/colla-group",
"/systems/org",
"/systems/dict",
"/systems/user",
"/systems/role",
"/systems/menu",
"/systems/medicalunion",
"/operation",
],
screeningList: [ screeningList: [
{ {
title: "社区筛查", title: "社区筛查",
......
<template> <template>
<div class="commonList"> <div class="commonList">
<ul class="left_bar"> <!-- <ul class="left_bar">
<li <li
v-for="(item, index) in leftBar" v-for="(item, index) in leftBar"
:key="index" :key="index"
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
> >
{{ item.name }} {{ item.name }}
</li> </li>
</ul> </ul> -->
<div v-loading="listLoading" class="right_list"> <div v-loading="listLoading" class="right_list">
<div class="list_title"> <!-- <div class="list_title">
{{ leftBar[activeBar].name }} {{ leftBar[activeBar].name }}
</div> </div> -->
<ul v-if="tableData.length > 0" class="list"> <ul v-if="tableData.length > 0" class="list">
<li <li
v-for="(item, index) in tableData" v-for="(item, index) in tableData"
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
current: this.pageIndex, current: this.pageIndex,
moduleType: "5", moduleType: "5",
status: "1", status: "1",
articleType: this.activeBar - 0 + 1, // articleType: this.activeBar - 0 + 1,
} }
articleList(params) articleList(params)
.then((res) => { .then((res) => {
...@@ -160,7 +160,8 @@ export default { ...@@ -160,7 +160,8 @@ export default {
} }
} }
.right_list { .right_list {
width: calc(100% - 208px); width: 100%;
// width: calc(100% - 208px);
height: 760px; height: 760px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div id="con"> <div id="con">
<Notice v-show="isNotice"></Notice> <Notice v-show="isNotice"></Notice>
<div v-show="!isNotice"> <div v-show="!isNotice">
<div class="top flex"> <div class="flex">
<div class="left box"> <div class="left box">
<video :src="videoSrc" controls class="video" /> <video :src="videoSrc" controls class="video" />
</div> </div>
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
:label="e.title" :label="e.title"
:name="index + 1 + ''" :name="index + 1 + ''"
> >
<ul class="tabslist"> <ul
class="tabslist videoTabList"
:style="{ height: videoHeight }"
>
<li <li
v-for="(item, index) in noticeList" v-for="(item, index) in noticeList"
:key="index" :key="index"
...@@ -131,7 +134,7 @@ ...@@ -131,7 +134,7 @@
</div> </div>
<!-- 健康科普 --> <!-- 健康科普 -->
<div class="healthPopularization"> <!-- <div class="healthPopularization">
<div class="title_box"> <div class="title_box">
<div class="title">健康科普</div> <div class="title">健康科普</div>
<div class="empty"></div> <div class="empty"></div>
...@@ -151,7 +154,7 @@ ...@@ -151,7 +154,7 @@
{{ item.name }} {{ item.name }}
</li> </li>
</ul> </ul>
</div> </div> -->
<!-- 科学研究 --> <!-- 科学研究 -->
<div class="scientificresearch"> <div class="scientificresearch">
...@@ -178,9 +181,9 @@ ...@@ -178,9 +181,9 @@
<div v-show="showFixed" class="fixed_box"> <div v-show="showFixed" class="fixed_box">
<ul class="f_list"> <ul class="f_list">
<el-popover <el-popover
popper-class="poperbackground"
v-for="(item, index) in rigBarList" v-for="(item, index) in rigBarList"
:key="index" :key="index"
popper-class="poperbackground"
placement="left-start" placement="left-start"
title="" title=""
width="200" width="200"
...@@ -228,9 +231,10 @@ export default { ...@@ -228,9 +231,10 @@ export default {
isNotice: false, isNotice: false,
curPdf: {}, curPdf: {},
pdfSrc: "", pdfSrc: "",
videoHeight: "0px",
fixIndex: -1, fixIndex: -1,
// videoSrc: require("../../../public/aaa.mp4"), videoSrc: require("../../../public/video.mp4"),
videoSrc: "", // videoSrc: "",
exTab: "浙江省典型案例", exTab: "浙江省典型案例",
example: [ example: [
{ {
...@@ -248,6 +252,9 @@ export default { ...@@ -248,6 +252,9 @@ export default {
{ {
title: "学术动态", title: "学术动态",
}, },
{
title: "健康知识",
},
], ],
noticeList: [], noticeList: [],
curTab: "1", curTab: "1",
...@@ -317,7 +324,24 @@ export default { ...@@ -317,7 +324,24 @@ export default {
this.showFixed = false this.showFixed = false
} }
}) })
var video = document.querySelector("video")
video.addEventListener("canplay", (e) => {
console.log(e.target.clientHeight)
this.videoHeight = e.target.clientHeight - 66 + "px"
})
})
window.onresize = () =>
(() => {
this.$nextTick(() => {
this.videoHeight =
document.querySelector("video").clientHeight - 66 + "px"
}) })
})()
},
beforeDestroy() {
window.onresize = () => {}
}, },
methods: { methods: {
setPdf(item) { setPdf(item) {
...@@ -334,7 +358,10 @@ export default { ...@@ -334,7 +358,10 @@ export default {
item.filePath[0].uuidName item.filePath[0].uuidName
}, },
handleClick() { handleClick() {
// if (this.curTab == "4") {
// } else {
this.getArticleList(this.curTab) this.getArticleList(this.curTab)
// }
}, },
// 获取新闻会议tab的数据 // 获取新闻会议tab的数据
getArticleList(moduleType) { getArticleList(moduleType) {
...@@ -348,7 +375,7 @@ export default { ...@@ -348,7 +375,7 @@ export default {
articleList(params) articleList(params)
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
if (["1", "2", "3"].includes(moduleType)) { if (["1", "2", "3", "4"].includes(moduleType)) {
this.noticeList = [...res.data.records] this.noticeList = [...res.data.records]
} }
if (["6"].includes(moduleType)) { if (["6"].includes(moduleType)) {
...@@ -393,7 +420,7 @@ export default { ...@@ -393,7 +420,7 @@ export default {
.video { .video {
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
height: 420px; // height: 420px;
object-fit: fill; object-fit: fill;
} }
} }
...@@ -402,7 +429,6 @@ export default { ...@@ -402,7 +429,6 @@ export default {
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
.tabslist { .tabslist {
height: 352px;
padding-right: 8px; padding-right: 8px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
...@@ -436,7 +462,7 @@ export default { ...@@ -436,7 +462,7 @@ export default {
} }
} }
.videoboxs { .videoboxs {
height: 100%; // height: 100%;
} }
} }
.dataAnalysis { .dataAnalysis {
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
:patient-id="patientId" :patient-id="patientId"
:screenList="screenList" :screenList="screenList"
@refreshData="refreshData" @refreshData="refreshData"
@changeShow="changeShow"
></ConfigForms> ></ConfigForms>
</div> </div>
</template> </template>
...@@ -78,6 +79,9 @@ export default { ...@@ -78,6 +79,9 @@ export default {
}) })
}, },
methods: { methods: {
changeShow() {
this.$emit("changeShow")
},
refreshData(data) { refreshData(data) {
// this.refreshFlag = false // this.refreshFlag = false
// this.$nextTick(() => { // this.$nextTick(() => {
......
<template> <template>
<!-- 随访查询 --> <!-- 随访查询 -->
<div class="screeningSearch"> <div class="screeningSearch">
<div v-show="!isDetail"> <div v-show="!isDetail && !show">
<div class="top"> <div class="top">
<form-components <form-components
ref="form" ref="form"
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
v-if="isDetail" v-if="isDetail"
@back="back" @back="back"
></FollowUpDetail> ></FollowUpDetail>
<followupentry v-if="show" @changeShow="changeShow"></followupentry>
</div> </div>
</template> </template>
<script> <script>
...@@ -40,15 +41,18 @@ import searchMixin from "../searchMixin" ...@@ -40,15 +41,18 @@ import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFollowSearch } from "@/api/followup" import { getFollowSearch } from "@/api/followup"
import FollowUpDetail from "./FollowUpDetail.vue" import FollowUpDetail from "./FollowUpDetail.vue"
import followupentry from "../followupentry"
export default { export default {
components: { components: {
FormComponents, FormComponents,
FollowUpDetail, FollowUpDetail,
followupentry,
}, },
mixins: [paginationMixin, searchMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
isDetail: false, isDetail: false,
show: false,
followId: "", followId: "",
listLoading: false, listLoading: false,
keyword: "", keyword: "",
...@@ -292,6 +296,10 @@ export default { ...@@ -292,6 +296,10 @@ export default {
this.getCurrentFormByType(2) this.getCurrentFormByType(2)
}, },
methods: { methods: {
changeShow() {
this.$router.push({ query: {} })
this.show = false
},
back() { back() {
this.isDetail = false this.isDetail = false
const followId = this.$route.query.followId const followId = this.$route.query.followId
...@@ -311,8 +319,9 @@ export default { ...@@ -311,8 +319,9 @@ export default {
console.log(v) console.log(v)
}, },
handleEdit(data, i, index) { handleEdit(data, i, index) {
this.show = true
this.$router.push({ this.$router.push({
path: "/followupentry", // path: "/followupentry",
query: { query: {
patientId: data.patientId, patientId: data.patientId,
followId: data.id, followId: data.id,
......
<template> <template>
<!-- 随访调查 --> <!-- 随访调查 -->
<div class="screeningSearch"> <div class="screeningSearch">
<template v-if="!show">
<div class="top"> <div class="top">
<form-components <form-components
:forms="formList" :forms="formList"
...@@ -23,10 +24,13 @@ ...@@ -23,10 +24,13 @@
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
/> />
</div> </div>
</template>
<followupentry v-if="show" @changeShow="changeShow"></followupentry>
</div> </div>
</template> </template>
<script> <script>
import FormComponents from "@/components/FormComponents" import FormComponents from "@/components/FormComponents"
import followupentry from "../followupentry"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
import searchMixin from "../searchMixin" import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
...@@ -35,12 +39,14 @@ import { mapGetters } from "vuex" ...@@ -35,12 +39,14 @@ import { mapGetters } from "vuex"
export default { export default {
components: { components: {
FormComponents, FormComponents,
followupentry,
}, },
mixins: [paginationMixin, searchMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
formId: "", //随访表单类型 formId: "", //随访表单类型
listLoading: false, listLoading: false,
show: false,
keyword: "", keyword: "",
modifiedFlag: false, modifiedFlag: false,
columns: [ columns: [
...@@ -271,6 +277,10 @@ export default { ...@@ -271,6 +277,10 @@ export default {
this.handleSearch() //调试注释 this.handleSearch() //调试注释
}, },
methods: { methods: {
changeShow() {
this.$router.push({ query: {} })
this.show = false
},
changeModified() { changeModified() {
this.modifiedFlag = !this.modifiedFlag this.modifiedFlag = !this.modifiedFlag
}, },
...@@ -287,7 +297,7 @@ export default { ...@@ -287,7 +297,7 @@ export default {
rowOpration(data, i) { rowOpration(data, i) {
sessionStorage.setItem("formEdit", JSON.stringify(data)) sessionStorage.setItem("formEdit", JSON.stringify(data))
this.$router.push({ this.$router.push({
path: `/followupentry`, // path: `/followupentry`,
query: { query: {
patientId: data.patientId, patientId: data.patientId,
getData: 0, getData: 0,
...@@ -295,6 +305,7 @@ export default { ...@@ -295,6 +305,7 @@ export default {
model: "add", model: "add",
}, },
}) })
this.show = true
}, },
async handleSearch() { async handleSearch() {
this.listLoading = true this.listLoading = true
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
v-if="formType == 1 ? (!disabled ? true : false) : true" v-if="formType == 1 ? (!disabled ? true : false) : true"
class="draftButton" class="draftButton"
:loading="loading" :loading="loading"
:disabled="!infoCompelete" :disabled="formType == 1 ? !infoCompelete : false"
@click="onSubmit(formType)" @click="onSubmit(formType)"
>{{ formType == 1 ? "临时保存" : "返回" }}</el-button >{{ formType == 1 ? "临时保存" : "返回" }}</el-button
> >
...@@ -353,17 +353,21 @@ export default { ...@@ -353,17 +353,21 @@ export default {
this.loading = false this.loading = false
} else { } else {
// 返回 // 返回
this.$router.back() // this.$router.back()
this.$emit("changeShow")
} }
}, },
continueSubmit() { continueSubmit() {
sessionStorage.removeItem("index1Data") sessionStorage.removeItem("index1Data")
this.activeName = "index0" this.activeName = "index0"
// 清空表单 // 清空表单
for (let i = 0; i < this.$refs.formTabs.length; i++) { // for (let i = 0; i < this.$refs.formTabs.length; i++) {
this.$refs.formTabs[i].resetForm() // this.$refs.formTabs[i].resetForm()
this.$refs.formTabs[i].initForm() // this.$refs.formTabs[i].initForm()
} // }
this.formTabsList = []
this.formTabs = []
this.getCurrentFormByType(this.formType)
// 清空红字:不符合筛查条件 // 清空红字:不符合筛查条件
this.$refs.showDialog.dialogVisible = false this.$refs.showDialog.dialogVisible = false
if (this.$route.path != "/screening/add") { if (this.$route.path != "/screening/add") {
......
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