fix: 二期代码提交

develop
xiangcongshuai 1 year ago
parent 6b540ef38e
commit e17f75d41a

Binary file not shown.

@ -41,6 +41,7 @@ onMounted(() => {
onBeforeUnmount(async () => {
const data = PreliminaryDiagnosisRef.value.getData();
const list = IdentificationBasisRef.value.getData(data);
if (list.length === 0) return;
const params = {
primaryConfirmList: list,
processId: route.query.processId,

@ -358,7 +358,7 @@ onMounted(() => {
</template>
<style lang="scss" scoped>
.SetPlan {
height: 372px;
height: 352px;
padding: 24px;
background: #fff;
border-radius: 6px;

@ -500,7 +500,7 @@ onMounted(() => {
display: flex;
flex-direction: column;
width: 218px;
height: calc(100vh - 300px);
height: calc(100vh - 250px);
padding: 32px;
background: #fff;
border-radius: 6px;
@ -528,7 +528,7 @@ onMounted(() => {
.content {
flex: 1;
height: calc(100vh - 300px);
height: calc(100vh - 250px);
margin-right: 16px;
overflow-y: auto;

@ -111,7 +111,7 @@ onMounted(async () => {
display: flex;
flex-direction: column;
width: 390px;
height: calc(100vh - 200px);
// height: calc(100vh - 200px);
padding: 16px;
overflow-y: auto;
background: rgb(66 135 255 / 5%);

@ -287,7 +287,7 @@ const selectPostion = val => {
<PositionDetails @selectPostion="selectPostion" v-if="detailsFlag" />
<!-- 检查结果 -->
<div
v-show="resultFlag && (selectToolInfo.toolName || bodyResultInfo.value)"
v-show="selectToolInfo.toolName || bodyResultInfo.value"
class="result_card"
>
<div v-show="bodyResultInfo.name" class="result_card_left">

@ -51,10 +51,11 @@ watch(
);
const openDetail = items => {
if (!items) return;
bodyVisible.value = true;
bodyInfo.name = items?.toolName || "";
bodyInfo.typeValue = items?.result || "";
bodyInfo.postion = items?.locationName || "";
useConsultationStoreHooks().changeBodyResultInfo({
name: items?.toolName || "",
value: items?.result || "",
postion: items?.locationName || ""
});
};
onMounted(() => {
useConsultationStoreHooks().getyAskPhysicalHistory(route.query.processId);
@ -74,7 +75,7 @@ onMounted(() => {
align-whole="center"
showOverflowTooltip
adaptive
style="height: calc(100vh - 600px)"
style="height: calc(100vh - 634px)"
class="mt-4"
:data="dataList"
:columns="columns"
@ -159,7 +160,7 @@ onMounted(() => {
flex-direction: column;
align-items: center;
justify-content: center;
height: calc(100vh - 600px);
height: calc(100vh - 634px);
img {
width: 200px;

@ -11,6 +11,7 @@ const peopleBodyRef = ref(null);
const selectTool = (item: any) => {
peopleBodyRef.value.openResult(item);
};
const selectToolInfo = computed(() => {
return useConsultationStoreHooks().selectToolInfo;
});

@ -147,6 +147,11 @@ const save = (formEl: FormInstance | undefined) => {
route.query.processId
);
message("新增成功", { type: "success" });
useConsultationStoreHooks().changeBodyResultInfo({
name: "",
value: "",
postion: ""
});
}
} else {
return fields;
@ -172,6 +177,11 @@ const edit = (formEl: FormInstance | undefined) => {
route.query.processId
);
message("保存成功", { type: "success" });
useConsultationStoreHooks().changeBodyResultInfo({
name: "",
value: "",
postion: ""
});
}
} else {
return fields;

@ -1,36 +1,57 @@
<script setup lang="ts">
import peopleImg from "@/assets/newInquiry/people.jpg";
import peopleMp4 from "../../../../../public/people.mp4";
import { ref } from "vue";
defineOptions({
name: "PeopleVideo"
});
const videoFlag = ref(false);
const videoUrl = ref("");
const videoPlayer = ref();
defineExpose({
openVideo(url) {
if (url) {
videoFlag.value = true;
videoUrl.value = `data:video/mp4;base64,${url}`;
const video = document.createElement("video");
video.src = `data:video/mp4;base64,${url}`;
video.controls = false;
video.autoplay = true;
video.style.width = "100%";
video.style.height = "100%";
video.style.objectFit = "cover";
video.addEventListener("canplaythrough", () => {
//
document.getElementById("video_content").appendChild(video);
videoFlag.value = true;
});
video.addEventListener("ended", () => {
//
videoFlag.value = false;
video.remove();
});
} else {
videoFlag.value = false;
}
}
});
const handleVideoEnded = () => {
videoFlag.value = false;
};
// const handleVideoEnded = () => {
// // videoFlag.value = false;
// };
</script>
<template>
<div class="PeopleVideo">
<img v-if="!videoFlag" :src="peopleImg" alt="" />
<div class="video_content" v-if="videoFlag">
<!-- <img v-show="!videoFlag" :src="peopleImg" alt="" /> -->
<div class="video_content" id="video_content">
<video
v-show="!videoFlag"
ref="videoPlayer"
:src="videoUrl"
@ended="handleVideoEnded"
muted
loop
:src="peopleMp4"
autoplay
:controls="false"
/>

@ -53,7 +53,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
// rewrite: path => path.replace("/ask", "")
},
"/virtual-patient/": {
target: "https://192.168.10.138/",
target: "http://192.168.10.138:8299/",
changeOrigin: true,
secure: false
// eslint-disable-next-line no-shadow

Loading…
Cancel
Save