Commit 2a9baa6e authored by xinzhedeai's avatar xinzhedeai

山东辉泰新尾矿库 报警管理-预警值设置 字段显示非必填处理

parent 4f52fb3e
...@@ -2263,64 +2263,65 @@ var reqApis = function () { ...@@ -2263,64 +2263,65 @@ var reqApis = function () {
}, },
"fivedayone": { "fivedayone": {
name: "5天位移速率红色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "5天位移速率红色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"fivedaytwo": { "fivedaytwo": {
name: "5天位移速率橙色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "5天位移速率橙色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"fivedaythree": { "fivedaythree": {
name: "5天位移速率黄色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "5天位移速率黄色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"fivedayfour": { "fivedayfour": {
name: "5天位移速率蓝色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "5天位移速率蓝色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"dayone": { "dayone": {
name: "1天位移速率红色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1天位移速率红色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"daytwo": { "daytwo": {
name: "1天位移速率橙色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1天位移速率橙色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"daythree": { "daythree": {
name: "1天位移速率黄色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1天位移速率黄色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"dayfour": { "dayfour": {
name: "1天位移速率蓝色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1天位移速率蓝色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"hone": { "hone": {
name: "1小时位移速率红色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1小时位移速率红色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"htwo": { "htwo": {
name: "1小时位移速率橙色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1小时位移速率橙色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"hthree": { "hthree": {
name: "1小时位移速率黄色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1小时位移速率黄色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
"hfour": { "hfour": {
name: "1小时位移速率蓝色报警", must: true, type: 'tableFormat', tableFormat: function (val) { name: "1小时位移速率蓝色报警", must: false, type: 'tableFormat', tableFormat: function (val) {
return val + ' (' + this.unit + ')' return val ? (val + ' (' + this.unit + ')') : ''
} }
}, },
......
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