|
|
@@ -151,6 +151,8 @@ const visible = ref(false)
|
|
|
|
|
|
const formRef = ref()
|
|
|
|
|
|
+const alarmCollapse = ref<string[]>([])
|
|
|
+
|
|
|
function handleOpenForm(id: number, type: 'edit' | 'readonly') {
|
|
|
if (formRef.value) {
|
|
|
formRef.value.handleOpenForm(id, type)
|
|
|
@@ -255,25 +257,31 @@ function handleOpenForm(id: number, type: 'edit' | 'readonly') {
|
|
|
</template>
|
|
|
</ry-xj-table>
|
|
|
|
|
|
- <div class="p-2 bg-white dark:bg-[#1d1e1f] rounded-lg shadow flex flex-col gap-2">
|
|
|
- <el-alert
|
|
|
- class="h-8!"
|
|
|
- title="运行时效=生产时间/额定生产时间 超过100%红色预警"
|
|
|
- type="error"
|
|
|
- show-icon
|
|
|
- :closable="false" />
|
|
|
- <el-alert
|
|
|
- class="h-8!"
|
|
|
- title="生产时间+非生产时间=额定生产时间 否则橙色预警"
|
|
|
- type="warning"
|
|
|
- show-icon
|
|
|
- :closable="false" />
|
|
|
- <el-alert
|
|
|
- class="h-8!"
|
|
|
- title="当日油耗大于3500升 蓝色预警"
|
|
|
- type="primary"
|
|
|
- show-icon
|
|
|
- :closable="false" />
|
|
|
+ <div class="p-1 bg-white dark:bg-[#1d1e1f] rounded-lg shadow">
|
|
|
+ <el-collapse v-model="alarmCollapse" class="alarm-collapse">
|
|
|
+ <el-collapse-item title="告警提示" name="alarm">
|
|
|
+ <div class="flex flex-col gap-2">
|
|
|
+ <el-alert
|
|
|
+ class="h-8!"
|
|
|
+ title="运行时效=生产时间/额定生产时间 超过100%红色预警"
|
|
|
+ type="error"
|
|
|
+ show-icon
|
|
|
+ :closable="false" />
|
|
|
+ <el-alert
|
|
|
+ class="h-8!"
|
|
|
+ title="生产时间+非生产时间=额定生产时间 否则橙色预警"
|
|
|
+ type="warning"
|
|
|
+ show-icon
|
|
|
+ :closable="false" />
|
|
|
+ <el-alert
|
|
|
+ class="h-8!"
|
|
|
+ title="当日油耗大于3500升 蓝色预警"
|
|
|
+ type="primary"
|
|
|
+ show-icon
|
|
|
+ :closable="false" />
|
|
|
+ </div>
|
|
|
+ </el-collapse-item>
|
|
|
+ </el-collapse>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -289,4 +297,26 @@ function handleOpenForm(id: number, type: 'edit' | 'readonly') {
|
|
|
:deep(.el-form-item) {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
+
|
|
|
+:deep(.alarm-collapse) {
|
|
|
+ border-top: 0;
|
|
|
+ border-bottom: 0;
|
|
|
+
|
|
|
+ .el-collapse-item__header {
|
|
|
+ height: 32px;
|
|
|
+ padding-left: 12px;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 700;
|
|
|
+ line-height: 32px;
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-collapse-item__wrap {
|
|
|
+ border-bottom: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-collapse-item__content {
|
|
|
+ padding-bottom: 4px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|