feat:样品分析元素显示与隐藏
This commit is contained in:
@@ -60,14 +60,17 @@ const Get_C_KNO3_bySValue = function (sValue, weight, operator) {
|
||||
|
||||
return ''
|
||||
}
|
||||
const Get_C_KNO3 = function (sValue, weight, operator) {
|
||||
const Get_C_KNO3 = function (weight, sValue, operator) {
|
||||
//判断sValue是数字
|
||||
const S = number(sValue)
|
||||
const W = number(weight)
|
||||
console.log(S, W)
|
||||
|
||||
if (sValue === 0 || weight === 0) {
|
||||
//如果样重为0就不计算
|
||||
if (W === 0) {
|
||||
console.log('结束')
|
||||
return ''
|
||||
}
|
||||
let S = number(sValue)
|
||||
const W = number(weight)
|
||||
if (W === 0) return ''
|
||||
const V = ((W * S) / 100) * 22 - 75
|
||||
if (operator === '<' && V < 0) {
|
||||
|
||||
Reference in New Issue
Block a user