Browse Source

修复合并错误,删除冗余样式

dev
zhangjiming 7 months ago
parent
commit
7733198dac
  1. 3
      components.d.ts
  2. 96
      src/pages/Index/Regular/Running.vue

3
components.d.ts

@ -26,4 +26,7 @@ declare module 'vue' {
SimpleKeyboard: typeof import('./src/components/SimpleKeyboard.vue')['default'] SimpleKeyboard: typeof import('./src/components/SimpleKeyboard.vue')['default']
StackInfoModal: typeof import('./src/components/dialogs/StackInfoModal.vue')['default'] StackInfoModal: typeof import('./src/components/dialogs/StackInfoModal.vue')['default']
} }
export interface ComponentCustomProperties {
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
}
} }

96
src/pages/Index/Regular/Running.vue

@ -21,9 +21,18 @@
<span style="font-weight: 600; font-size: 18px; display: block"> <span style="font-weight: 600; font-size: 18px; display: block">
光学模组 光学模组
</span> </span>
<div v-if="runningStore.optScanModuleState && runningStore.optScanModuleState!.state !== 'EMPTY'" class="scan-ji">
<div
v-if="
runningStore.optScanModuleState &&
runningStore.optScanModuleState!.state !== 'EMPTY'
"
class="scan-ji"
>
<!--是急诊位时--> <!--是急诊位时-->
<div style="position: absolute;left:0px" v-if="runningStore.optScanModuleState!.isEmergency">
<div
style="position: absolute; left: 0px"
v-if="runningStore.optScanModuleState!.isEmergency"
>
<img <img
src="@/assets/ji.png" src="@/assets/ji.png"
alt="" alt=""
@ -32,7 +41,10 @@
style="border-radius: 50%" style="border-radius: 50%"
/> />
</div> </div>
<span class="scan-men" :style="`background-color:${runningStore.optScanModuleState.projInfo.color}`">
<span
class="scan-men"
:style="`background-color:${runningStore.optScanModuleState.projInfo.color}`"
>
<img <img
src="@/assets/men.png" src="@/assets/men.png"
alt="" alt=""
@ -70,18 +82,19 @@
<!-- 急诊按钮 --> <!-- 急诊按钮 -->
<div <div
class="emergency-button" class="emergency-button"
:style="`background:${emergencyBackground}`"
@click="!hasEmergencyPosition ? confirmEmergency():null"
:style="`background:${emergencyStore.emergencyInfo.isEmergency ? '#c7c7c7' : 'auto'}`"
@click="
!emergencyStore.emergencyInfo.isEmergency
? confirmEmergency()
: null
"
> >
<span>急诊</span> <span>急诊</span>
</div> </div>
<!-- 试管架区域 --> <!-- 试管架区域 -->
<div class="test-tube-rack-area"> <div class="test-tube-rack-area">
<div class="tube-project-tab"> <div class="tube-project-tab">
<tube-item
:tube="emergencyTube"
:showNum = "false"
/>
<tube-item :tube="emergencyStore.emergencyInfo" :showNum="false" />
</div> </div>
<div class="tube-items"> <div class="tube-items">
<!-- <SampleDisplay :samples="tubeHolderState.tubes" :selectedSamples="selectedSamples" <!-- <SampleDisplay :samples="tubeHolderState.tubes" :selectedSamples="selectedSamples"
@ -134,7 +147,9 @@
:class="{ isFull: deviceStore.sensorState.wasteBinFullFlag }" :class="{ isFull: deviceStore.sensorState.wasteBinFullFlag }"
> >
<div class="waste-text">废料箱</div> <div class="waste-text">废料箱</div>
<div class="full-state">{{ deviceStore.sensorState.wasteBinFullFlag ? '已满' : '未满' }}</div>
<div class="full-state">
{{ deviceStore.sensorState.wasteBinFullFlag ? '已满' : '未满' }}
</div>
</div> </div>
</div> </div>
</div> </div>
@ -161,7 +176,7 @@ import {
useConsumablesStore, useConsumablesStore,
useDeviceStore, useDeviceStore,
useSettingTestTubeStore, useSettingTestTubeStore,
useEmergencyStore
useEmergencyStore,
} from '@/store' } from '@/store'
import TankInfo from '../components/Running/TankInfo.vue' import TankInfo from '../components/Running/TankInfo.vue'
import { PlateDisplay, LittleBufferDisplay } from '../components' import { PlateDisplay, LittleBufferDisplay } from '../components'
@ -174,18 +189,8 @@ const consumablesStore = useConsumablesStore()
const runningStore = useRunningStore() const runningStore = useRunningStore()
const deviceStore = useDeviceStore() const deviceStore = useDeviceStore()
const settingTubeStore = useSettingTestTubeStore() const settingTubeStore = useSettingTestTubeStore()
const emergencyStore = useEmergencyStore();//
const emergencyStore = useEmergencyStore() //
const router = useRouter() const router = useRouter()
//
const emergencyTube = ref(emergencyStore.emergencyInfo)
console.log('emergencyTube---', emergencyTube)
const hasEmergencyPosition = ref(emergencyStore.emergencyInfo.isEmergency)
const emergencyBackground = computed(()=>{
if(hasEmergencyPosition){
return '#c7c7c7'
}
return ''
})
// //
const confirmEmergency = () => { const confirmEmergency = () => {
@ -203,8 +208,8 @@ const toggleSelectItem = (index: number) => {
} }
// //
const getFillStyle = (item: any) => {
const percentage = (item.tipNum / 120) * 100
const getFillStyle = (cnt: number) => {
const percentage = (cnt / 360) * 100
return { return {
background: `linear-gradient(to top, #bbd3fb ${percentage}%,#c9c9c9 ${percentage}%)`, background: `linear-gradient(to top, #bbd3fb ${percentage}%,#c9c9c9 ${percentage}%)`,
} }
@ -276,11 +281,6 @@ watch(
transition: all 0.3s ease; transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}
span { span {
font-size: 32px; font-size: 32px;
color: #ffffff; color: #ffffff;
@ -306,7 +306,7 @@ watch(
content: ''; content: '';
width: 3px; width: 3px;
height: 120px; height: 120px;
background: linear-gradient(to bottom, #e0341d, #fa4f0b);
background: lightgray;
position: absolute; position: absolute;
right: -30px; right: -30px;
} }
@ -351,11 +351,7 @@ watch(
height: 100%; height: 100%;
border-radius: 16px; border-radius: 16px;
transition: all 0.3s ease; transition: all 0.3s ease;
background: linear-gradient(
to top,
rgba(92, 184, 92, 0.1),
transparent
);
background: rgba(92, 184, 92, 0.2);
} }
.tip-text { .tip-text {
@ -368,10 +364,6 @@ watch(
} }
} }
.buffer-grid {
margin-top: -10px;
}
.waste-area { .waste-area {
border-radius: 12px; border-radius: 12px;
display: flex; display: flex;
@ -395,14 +387,10 @@ watch(
} }
.full-state { .full-state {
margin-top: 8px; margin-top: 8px;
color: #FFF;
color: #fff;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
} }
&:hover {
transform: translateY(-2px);
}
} }
} }
@ -533,27 +521,9 @@ watch(
} }
} }
//
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.red {
background-color: rgb(223, 237, 248);
}
.tube-container { .tube-container {
display: flex; display: flex;
flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
@ -563,7 +533,7 @@ watch(
} }
.plate-temp { .plate-temp {
position: fixed; position: fixed;
top: 120px;
top: 140px;
right: 30px; right: 30px;
padding: 10px; padding: 10px;
background-color: rgb(209, 229, 255); background-color: rgb(209, 229, 255);

Loading…
Cancel
Save