|
|
@@ -189,7 +189,9 @@ export default {
|
|
|
return value.replace("冷藏柜", "冰箱");
|
|
|
} else if (value.includes("冷冻柜")) {
|
|
|
return value.replace("冷冻柜", "冰箱");
|
|
|
- } else {
|
|
|
+ }else if(value.includes("液氮罐")){
|
|
|
+ return "YDG" + num;
|
|
|
+ }else {
|
|
|
return value;
|
|
|
}
|
|
|
},
|
|
|
@@ -323,12 +325,12 @@ export default {
|
|
|
this.cenghao = [];
|
|
|
const labelsMap = {}; // map存储
|
|
|
let typeData = [];
|
|
|
- var sqltype =
|
|
|
- `select DISTINCT SUBSTR(wei_zhi_,1,6) as wei_zhi_ from t_ck where wei_zhi_ like ` +
|
|
|
- "'%" +
|
|
|
- py +
|
|
|
- "%'" +
|
|
|
- "ORDER BY wei_zhi_ ASC "; //
|
|
|
+ var sqltype = "";
|
|
|
+ if(py.includes("YDG")){
|
|
|
+ sqltype = `select DISTINCT SUBSTR(wei_zhi_,1,9) as wei_zhi_ from t_ck where wei_zhi_ like ` +"'%" +py +"%'" +"ORDER BY wei_zhi_ ASC "; //
|
|
|
+ }else{
|
|
|
+ sqltype = `select DISTINCT SUBSTR(wei_zhi_,1,6) as wei_zhi_ from t_ck where wei_zhi_ like ` +"'%" +py +"%'" +"ORDER BY wei_zhi_ ASC "; //
|
|
|
+ }
|
|
|
curdPost("sql", sqltype).then((res) => {
|
|
|
typeData = res.variables.data; //查询该位置具有多少层
|
|
|
curdPost("sql", sql).then((res) => {
|