fix: 二期代码提交

develop
xiangcongshuai 1 year ago
parent 6b540ef38e
commit e17f75d41a

Binary file not shown.

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

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

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

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

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

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

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

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

@ -1,36 +1,57 @@
<script setup lang="ts"> <script setup lang="ts">
import peopleImg from "@/assets/newInquiry/people.jpg"; import peopleMp4 from "../../../../../public/people.mp4";
import { ref } from "vue"; import { ref } from "vue";
defineOptions({ defineOptions({
name: "PeopleVideo" name: "PeopleVideo"
}); });
const videoFlag = ref(false); const videoFlag = ref(false);
const videoUrl = ref(""); const videoUrl = ref("");
const videoPlayer = ref(); const videoPlayer = ref();
defineExpose({ defineExpose({
openVideo(url) { openVideo(url) {
if (url) { if (url) {
videoFlag.value = true;
videoUrl.value = `data:video/mp4;base64,${url}`; 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 { } else {
videoFlag.value = false; videoFlag.value = false;
} }
} }
}); });
const handleVideoEnded = () => { // const handleVideoEnded = () => {
videoFlag.value = false; // // videoFlag.value = false;
}; // };
</script> </script>
<template> <template>
<div class="PeopleVideo"> <div class="PeopleVideo">
<img v-if="!videoFlag" :src="peopleImg" alt="" /> <!-- <img v-show="!videoFlag" :src="peopleImg" alt="" /> -->
<div class="video_content" v-if="videoFlag">
<div class="video_content" id="video_content">
<video <video
v-show="!videoFlag"
ref="videoPlayer" ref="videoPlayer"
:src="videoUrl" muted
@ended="handleVideoEnded" loop
:src="peopleMp4"
autoplay autoplay
:controls="false" :controls="false"
/> />

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

Loading…
Cancel
Save