瀏覽代碼

屏蔽了旧实验室位置相关数据字段与接口

dedsudiyu 2 年之前
父節點
當前提交
4c62a16294
共有 1 個文件被更改,包括 17 次插入17 次删除
  1. 17 17
      src/views/comprehensive/laboratoryManagement/subject/addSubject.vue

+ 17 - 17
src/views/comprehensive/laboratoryManagement/subject/addSubject.vue

@@ -74,16 +74,16 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="详细位置" prop="layoutId" class="form-item">
-        <el-select v-model="form.layoutId"  placeholder="请选择详细位置" style="width:320px;">
-          <el-option
-            v-for="dict in layoutLists"
-            :key="dict.id"
-            :label="dict.room"
-            :value="dict.id"
-          ></el-option>
-        </el-select>
-      </el-form-item>
+      <!--<el-form-item label="详细位置" prop="layoutId" class="form-item">-->
+        <!--<el-select v-model="form.layoutId"  placeholder="请选择详细位置" style="width:320px;">-->
+          <!--<el-option-->
+            <!--v-for="dict in layoutLists"-->
+            <!--:key="dict.id"-->
+            <!--:label="dict.room"-->
+            <!--:value="dict.id"-->
+          <!--&gt;</el-option>-->
+        <!--</el-select>-->
+      <!--</el-form-item>-->
       <div class="title-box">
         <p class="left-title">安全信息牌</p>
       </div>
@@ -278,7 +278,7 @@
           this.$set(this.form,'deptId',this.subjectData.deptId)
           this.$set(this.form,'buildId',this.subjectData.buildId)
           this.$set(this.form,'floorId',this.subjectData.floorId)
-          this.$set(this.form,'layoutId',this.subjectData.layoutId)
+          // this.$set(this.form,'layoutId',this.subjectData.layoutId)
           this.$set(this.form,'moldId',this.subjectData.moldId)
           if(this.subjectData.adminId){
             this.$set(this.form,'adminId',this.subjectData.adminId)
@@ -325,9 +325,9 @@
             listFloorByBuildId(this.form.buildId).then(response=>{
               this.floors = response.data;
               //根据层获取实验室
-              onUselistLayoutByFloorIdTwo(this.form.floorId,this.form.layoutId).then(response=>{
-                this.layoutLists = response.data;
-              });
+              // onUselistLayoutByFloorIdTwo(this.form.floorId,this.form.layoutId).then(response=>{
+              //   this.layoutLists = response.data;
+              // });
             });
           });
         }
@@ -402,7 +402,7 @@
             this.buildings = [];
             this.$set(this.form, 'floorId', '');//楼层
             this.floors = [];
-            this.$set(this.form, 'layoutId', '');//房间
+            // this.$set(this.form, 'layoutId', '');//房间
             this.layoutLists = [];
             listbuildings(id).then(response => {
               this.buildings = response.data;
@@ -414,7 +414,7 @@
           if(id) {
             this.$set(this.form, 'floorId', '');//楼层
             this.floors = [];
-            this.$set(this.form, 'layoutId', '');//房间
+            // this.$set(this.form, 'layoutId', '');//房间
             this.layoutLists = [];
             listFloorByBuildId(id).then(response=>{
               this.floors = response.data;
@@ -424,7 +424,7 @@
         //查询布局信息
         getLayouts(id) {
           if(id) {
-            this.$set(this.form, 'layoutId', '');//房间
+            // this.$set(this.form, 'layoutId', '');//房间
             this.layoutLists = [];
             onUselistLayoutByFloorId(id).then(response=>{
               this.layoutLists = response.data;