|
@@ -1,43 +1,50 @@
|
|
|
<template>
|
|
|
- <div class="risk_profile_header">
|
|
|
- <div class="risk_profile_title">
|
|
|
- <!-- <img src="../../../../assets/img/levelA.png" alt="">
|
|
|
+ <div class="risk_profile_header">
|
|
|
+ <div class="risk_profile_title">
|
|
|
+ <!-- <img src="../../../../assets/img/levelA.png" alt="">
|
|
|
<img src="../../../../assets/img/levelB.png" alt=""> -->
|
|
|
- <img :src="getImgSrc(level)" alt="" />
|
|
|
- <!-- <img src="../../../../assets/img/levelD.png" alt=""> -->
|
|
|
- <div class="risk_profile_name">05-2024-1210-01-不明原因肺炎</div>
|
|
|
- <div class="risk_profile_type_box">
|
|
|
- <div class="risk_profile_type" v-for="item in typeList">{{ item }}</div>
|
|
|
- <!-- <div class="risk_profile_type">突发公共卫生事件(II级)</div> -->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="risk_profile_change_btn">
|
|
|
- <!-- 切换风险 -->
|
|
|
+ <img :src="getImgSrc(level)" alt="" />
|
|
|
+ <!-- <img src="../../../../assets/img/levelD.png" alt=""> -->
|
|
|
+ <div class="risk_profile_name">05-2024-1210-01-不明原因肺炎</div>
|
|
|
+ <div class="risk_profile_type_box">
|
|
|
+ <div class="risk_profile_type" v-for="item in typeList">{{ item }}</div>
|
|
|
+ <!-- <div class="risk_profile_type">突发公共卫生事件(II级)</div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="risk_profile_change_btn" @click="goRiskTable">
|
|
|
+ <!-- 切换风险 -->
|
|
|
+ <img src="../../../../../assets/img/切换.png" alt="" />
|
|
|
+ <div>{{ tabTitle === '信息报告' ? '切换事件' : '切换风险' }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { ref, watch, computed , reactive, toRefs, onBeforeMount, onMounted } from 'vue'
|
|
|
+import { ref, watch, computed, reactive, toRefs, onBeforeMount, onMounted } from 'vue'
|
|
|
+import { useRiskTableStore } from '@/store/riskTable.js'
|
|
|
+let riskTableStore = useRiskTableStore()
|
|
|
+
|
|
|
+import { useCommonStore } from '@/store/common.js'
|
|
|
+let commonStore = useCommonStore()
|
|
|
|
|
|
const props = defineProps({
|
|
|
- headerObj:{ type: Object, default: {} },
|
|
|
+ headerObj: { type: Object, default: {} }
|
|
|
// title: { type: String, default: '' },
|
|
|
// level: { type: String, default: 'A' },
|
|
|
// typeList:{ type: Array, default: [] },
|
|
|
-
|
|
|
})
|
|
|
|
|
|
const level = ref('')
|
|
|
-const title =ref('')
|
|
|
-const typeList =ref([])
|
|
|
+const title = ref('')
|
|
|
+const typeList = ref([])
|
|
|
+const tabTitle = ref('')
|
|
|
|
|
|
watch(
|
|
|
() => props.headerObj,
|
|
|
(newObj, oldObj) => {
|
|
|
- level.value =newObj.level
|
|
|
- title.value =newObj.title
|
|
|
- typeList.value =newObj.typeList
|
|
|
-
|
|
|
+ level.value = newObj.level
|
|
|
+ title.value = newObj.title
|
|
|
+ typeList.value = newObj.typeList
|
|
|
+ tabTitle.value = newObj.tabTitle
|
|
|
},
|
|
|
{
|
|
|
deep: true,
|
|
@@ -45,87 +52,116 @@ watch(
|
|
|
}
|
|
|
)
|
|
|
|
|
|
-function getImgSrc (picName) {
|
|
|
+function goRiskTable() {
|
|
|
+ // commonStore.setActiveIndex(0)
|
|
|
+ riskTableStore.setInitShow(false)
|
|
|
+ riskTableStore.setBigRiskTableShow(true)
|
|
|
+ riskTableStore.setDisposalShow(false)
|
|
|
+ riskTableStore.setComeFrom( tabTitle.value)
|
|
|
+}
|
|
|
+
|
|
|
+function getImgSrc(picName) {
|
|
|
return new URL(`../../../../../assets/img/level${picName}.png`, import.meta.url).href
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- .risk_profile_header {
|
|
|
- width: 100%;
|
|
|
- height: 50px;
|
|
|
+.risk_profile_header {
|
|
|
+ width: 100%;
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 10px;
|
|
|
+
|
|
|
+ .risk_profile_title {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 10px;
|
|
|
+ gap: 20px;
|
|
|
|
|
|
- .risk_profile_title {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 20px;
|
|
|
+ > img {
|
|
|
+ width: 40px;
|
|
|
+ height: 37px;
|
|
|
+ }
|
|
|
|
|
|
- > img {
|
|
|
- width: 40px;
|
|
|
- height: 37px;
|
|
|
- }
|
|
|
+ .risk_profile_name {
|
|
|
+ // width: 352px;
|
|
|
+ font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
|
|
|
+ font-weight: normal;
|
|
|
+ font-size: 24px;
|
|
|
+ color: #e2ffff;
|
|
|
+ line-height: 24px;
|
|
|
+ text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
|
+ text-align: left;
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+
|
|
|
+ /* 金属光泽渐变效果 */
|
|
|
+ background: linear-gradient(to top, #49ffff 4%, #ffffff 100%);
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ /* 文字应用渐变 */
|
|
|
+ background-clip: text;
|
|
|
+
|
|
|
+ /* 使文字透明,背景渐变会应用到文字 */
|
|
|
+ color: transparent;
|
|
|
+
|
|
|
+ /* 光泽效果:文本阴影 */
|
|
|
+ // text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4), -2px -2px 5px rgba(0, 0, 0, 0.4);
|
|
|
+
|
|
|
+ /* 给文字加一些柔和的过渡效果 */
|
|
|
+ // transition: all 0.3s ease;
|
|
|
+ font-style: italic;
|
|
|
+ // transform: skewX(-5deg);
|
|
|
+ }
|
|
|
|
|
|
- .risk_profile_name {
|
|
|
- // width: 352px;
|
|
|
- font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
|
|
|
+ .risk_profile_type_box {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 6px;
|
|
|
+
|
|
|
+ .risk_profile_type {
|
|
|
+ height: 24px;
|
|
|
+ width: 158px;
|
|
|
+ background: url(../../../../../assets/img/待核实.png) no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ font-family: Alibaba PuHuiTi 30;
|
|
|
font-weight: normal;
|
|
|
- font-size: 24px;
|
|
|
- color: #e2ffff;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #ffd15c;
|
|
|
line-height: 24px;
|
|
|
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
|
- text-align: left;
|
|
|
+ text-align: center;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
|
-
|
|
|
- /* 金属光泽渐变效果 */
|
|
|
- background: linear-gradient(to top, #49ffff 4%, #ffffff 100%);
|
|
|
- -webkit-background-clip: text;
|
|
|
- /* 文字应用渐变 */
|
|
|
- background-clip: text;
|
|
|
-
|
|
|
- /* 使文字透明,背景渐变会应用到文字 */
|
|
|
- color: transparent;
|
|
|
-
|
|
|
- /* 光泽效果:文本阴影 */
|
|
|
- // text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4), -2px -2px 5px rgba(0, 0, 0, 0.4);
|
|
|
-
|
|
|
- /* 给文字加一些柔和的过渡效果 */
|
|
|
- // transition: all 0.3s ease;
|
|
|
- font-style: italic;
|
|
|
- // transform: skewX(-5deg);
|
|
|
- }
|
|
|
-
|
|
|
- .risk_profile_type_box {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- gap: 6px;
|
|
|
-
|
|
|
- .risk_profile_type {
|
|
|
- height: 24px;
|
|
|
- width: 158px;
|
|
|
- background: url(../../../../../assets/img/待核实.png) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- font-family: Alibaba PuHuiTi 30;
|
|
|
- font-weight: normal;
|
|
|
- font-size: 14px;
|
|
|
- color: #ffd15c;
|
|
|
- line-height: 24px;
|
|
|
- text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
|
- text-align: center;
|
|
|
- font-style: normal;
|
|
|
- text-transform: none;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .risk_profile_change_btn {
|
|
|
- width: 64px;
|
|
|
- height: 50px;
|
|
|
- background: url(../../../../../assets/img/changeRisk.png) no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
+ .risk_profile_change_btn {
|
|
|
+ width: 64px;
|
|
|
+ height: 55px;
|
|
|
+ // background: url(../../../../../assets/img/changeRisk.png) no-repeat;
|
|
|
+ // background-size: 100% 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ background: rgba(16, 252, 255, 0.25);
|
|
|
+ font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
|
|
|
+ font-weight: normal;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #50e0ff;
|
|
|
+ text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
|
|
|
+ font-style: normal;
|
|
|
+ text-transform: none;
|
|
|
+ padding: 4px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ >img{
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
+ >div{
|
|
|
+ // margin-top: 5px;
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
</style>
|