Commit 9c7752f5 authored by xinzhedeai's avatar xinzhedeai

add:预警值X/YZ 表面位移处理。

parent bf800570
......@@ -2242,7 +2242,7 @@ var reqApis = function () {
"equipname": { name: "设备名称", must: true, disabled: true },
"equipno": { name: "设备ID", must: true, disabled: true },
"onelevelalarm": {
name: "红色报警", must: true, type: 'tableFormat', tableFormat: function (val) {
name: "红色报警", must: true, type: 'tableFormat', ruleTip:'表面位移设备,报警数值格式为X/Y/Z', tableFormat: function (val) {
return val + ' (' + this.unit + ')'
}
},
......
......@@ -64,6 +64,12 @@
<el-dialog id="printJS-form" class="qyzz-dialog" append-to-body :close-on-click-modal="false" :before-close="cancelForm" :visible.sync="form.visible" :title="form.title" :width="form.config.formWidth || '50%'">
<el-form :model="form.item" :rules="rules" :ref="ref" :inline="true" size="small" :label-width="(form.config.labelWidth || 80) + 'px'">
<el-form-item v-for="(item, key) in Dict.baseInfo" :prop="item.rule || key" :label="item.name" v-if="item.form !== 0" :style="item.style">
<span style="color: red;
position: absolute;
font-size: 12px;
right: 62px;
top: -22px;
z-index: 999;">{{item.ruleTip}}</span>
<template v-if="item.type === 'img'">
<div class="img-upload">
<label class="upload-area" for="imgUpload">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment