소스 검색

fix:样品间存放可视化修改

zjy 3 년 전
부모
커밋
152eeade86
1개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. 2 10
      src/views/sample/reservedSample.vue

+ 2 - 10
src/views/sample/reservedSample.vue

@@ -2,7 +2,7 @@
   <div class="sample-content">
     <!-- 表格組件 -->
     <div class="top-content">
-      <div class="top-title">样品间可视化</div>
+      <div class="top-title">样品间存放可视化</div>
       <div class="query-content">
         <el-form :inline="true" :model="formInline" class="demo-form-inline">
           <el-form-item label="房间号:">
@@ -281,13 +281,8 @@ export default {
       curdPost("sql", sqlString)
         .then((response) => {
           this_.sampleOption = response.variables.data;
-          
           this_.sampleOption.pop();
-          console.log(this_.sampleOption,"11111111111122")
         })
-        .catch((err) => {
-          console.log(err, "err------>");
-        });
     },
     onSubmits(sql) {
       var fang_jian_ = this.formInline.fang_jian_hao_value;
@@ -319,7 +314,6 @@ export default {
       this_.listData = [];
       curdPost("sql", sql).then((res) => {
         datas = res.variables.data;
-        console.log(datas,"2222222222 ")
         datas.forEach((item) => {
           if (!labelsMap[item.ceng_hao_]) {
             //没有就创建
@@ -341,7 +335,6 @@ export default {
               labelsMap[item.ceng_hao_].push(item);
             }
           });
-            console.log(labelsMap,"3333333333")
         });
         // this.loading = true;
         
@@ -382,7 +375,6 @@ export default {
         //  alert("冰箱");
       } else if (selectText.includes("液氮罐")) {
         //液氮罐 查询该液氮罐下所有的挂件
-        console.log(huojiaNum);
         let sqlString = `select distinct gua_jia_hao_ from t_mjypcfwz where huo_jia_lei_xing_ = '液氮罐' and huo_jia_hao_ = '${huojiaNum}'  order by gua_jia_hao_ asc`;
         var this_ = this;
         curdPost("sql", sqlString).then((response) => {
@@ -437,7 +429,7 @@ export default {
       let sqlString = `select distinct qu_yu_ ,huo_jia_hao_ from t_mjypcfwz where fang_jian_lei_xin = '${newdata}' `;
       var this_ = this;
       curdPost("sql", sqlString).then((response) => {
-        this_.quyu_arr = response.variables.data;
+        this_.quyu_arr = response.variables.data.reverse();
         this_.quyu_arr.forEach((item) => {
           //待优化 事实上是一个用来判断
           if (item.qu_yu_ == "") {