dedsudiyu 10 months ago
parent
commit
ec51a4bc2c

+ 27 - 8
src/views/emergencyManagement/performEvacuation/performEvacuationData.vue

@@ -1000,11 +1000,16 @@
           response.data.forEach((item)=>{
           response.data.forEach((item)=>{
             item.exceptionIcon = item.exceptionIcon?localStorage.getItem('fileBrowseEnvironment')+item.exceptionIcon:null;
             item.exceptionIcon = item.exceptionIcon?localStorage.getItem('fileBrowseEnvironment')+item.exceptionIcon:null;
             if(item.hardwareTypeKey == 'airConditioner'){
             if(item.hardwareTypeKey == 'airConditioner'){
-              if(item.reservedThree.indexOf('-') != -1){
+              if(item.reservedThree == 0){
+                item.switchType = 0;
+              }else if(item.reservedThree == 2){
+                item.switchType = 1;
+                item.functionType = 2;
+              }else if(item.reservedThree.indexOf('-') != -1){
                 let list = item.reservedThree.split('-');
                 let list = item.reservedThree.split('-');
-                item.switchType = list[0]?list[0]:'';
-                item.functionType = list[1]?list[1]:'';
-                item.orderType = list[2]?list[2]:'';
+                item.switchType = 1;
+                item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                item.orderType = list[1]?list[1]:'';
               }else{
               }else{
                 item.switchType = '';
                 item.switchType = '';
                 item.functionType = '';
                 item.functionType = '';
@@ -1577,10 +1582,24 @@
             list.forEach((item)=>{
             list.forEach((item)=>{
               if(item.hardwareNo == data.hardwareNo){
               if(item.hardwareNo == data.hardwareNo){
                 if(item.hardwareTypeKey == 'airConditioner'){
                 if(item.hardwareTypeKey == 'airConditioner'){
-                  let list = data.command.split('-');
-                  item.switchType = list[0]?list[0]:'';
-                  item.functionType = list[1]?list[1]:'';
-                  item.orderType = list[2]?list[2]:'';
+                  if(data.command == 0){
+                    item.switchType = 0;
+                    item.functionType = '';
+                    item.orderType = '';
+                  }else if(data.command == 2){
+                    item.switchType = 1;
+                    item.functionType = 3;
+                    item.orderType = '';
+                  }else if(data.command.indexOf('-') != -1){
+                    let list = data.command.split('-');
+                    item.switchType = 1;
+                    item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                    item.orderType = list[1]?list[1]:'';
+                  }else{
+                    item.switchType = '';
+                    item.functionType = '';
+                    item.orderType = '';
+                  }
                 }else{
                 }else{
                   item.operatingState = data.operatingState;
                   item.operatingState = data.operatingState;
                 }
                 }

+ 23 - 20
src/views/emergencyManagement/plan/addPlan.vue

@@ -178,6 +178,7 @@
                   <el-cascader
                   <el-cascader
                     style="width:130px;"
                     style="width:130px;"
                     v-model="item.startOperate"
                     v-model="item.startOperate"
+                    :props="{ emitPath:false }"
                     :options="options">
                     :options="options">
                   </el-cascader>
                   </el-cascader>
                 </el-form-item>
                 </el-form-item>
@@ -185,6 +186,7 @@
                   <el-cascader
                   <el-cascader
                     style="width:130px;"
                     style="width:130px;"
                     v-model="item.endOperate"
                     v-model="item.endOperate"
+                    :props="{ emitPath:false }"
                     :options="options">
                     :options="options">
                   </el-cascader>
                   </el-cascader>
                 </el-form-item>
                 </el-form-item>
@@ -305,70 +307,71 @@
         options: [{
         options: [{
           value: '1',
           value: '1',
           label: '开启',
           label: '开启',
-          children: [{
+          children: [
+            {
             value: '1',
             value: '1',
             label: '制冷',
             label: '制冷',
             children: [{
             children: [{
-              value: '18',
+              value: '3-18',
               label: '18°C'
               label: '18°C'
             }, {
             }, {
-              value: '19',
+              value: '3-19',
               label: '19°C'
               label: '19°C'
             }, {
             }, {
-              value: '21',
+              value: '3-21',
               label: '21°C'
               label: '21°C'
             }, {
             }, {
-              value: '22',
+              value: '3-22',
               label: '22°C'
               label: '22°C'
             }, {
             }, {
-              value: '23',
+              value: '3-23',
               label: '23°C'
               label: '23°C'
             }, {
             }, {
-              value: '24',
+              value: '3-24',
               label: '24°C'
               label: '24°C'
             }, {
             }, {
-              value: '25',
+              value: '3-25',
               label: '25°C'
               label: '25°C'
             }, {
             }, {
-              value: '26',
+              value: '3-26',
               label: '26°C'
               label: '26°C'
             }, {
             }, {
-              value: '27',
+              value: '3-27',
               label: '27°C'
               label: '27°C'
             },]
             },]
           }, {
           }, {
             value: '2',
             value: '2',
             label: '制热',
             label: '制热',
             children: [{
             children: [{
-              value: '18',
+              value: '4-18',
               label: '18°C'
               label: '18°C'
             }, {
             }, {
-              value: '19',
+              value: '4-19',
               label: '19°C'
               label: '19°C'
             }, {
             }, {
-              value: '21',
+              value: '4-21',
               label: '21°C'
               label: '21°C'
             }, {
             }, {
-              value: '22',
+              value: '4-22',
               label: '22°C'
               label: '22°C'
             }, {
             }, {
-              value: '23',
+              value: '4-23',
               label: '23°C'
               label: '23°C'
             }, {
             }, {
-              value: '24',
+              value: '4-24',
               label: '24°C'
               label: '24°C'
             }, {
             }, {
-              value: '25',
+              value: '4-25',
               label: '25°C'
               label: '25°C'
             }, {
             }, {
-              value: '26',
+              value: '4-26',
               label: '26°C'
               label: '26°C'
             }, {
             }, {
-              value: '27',
+              value: '4-27',
               label: '27°C'
               label: '27°C'
             },]
             },]
           }, {
           }, {
-            value: '3',
+            value: '2',
             label: '通风'
             label: '通风'
           }]
           }]
         }, {
         }, {

+ 1 - 0
src/views/integratedManagement/laboratoryManagement/subject/index.vue

@@ -9,6 +9,7 @@
                 v-model="queryParams.searchValue"
                 v-model="queryParams.searchValue"
                 placeholder="实验室/房间号"
                 placeholder="实验室/房间号"
                 clearable
                 clearable
+                maxlength="10"
                 style="width:150px;"
                 style="width:150px;"
               />
               />
             </el-form-item>
             </el-form-item>

+ 33 - 12
src/views/integratedManagement/laboratoryManagement/subject/indexRightPage/hardwarePage.vue

@@ -170,10 +170,12 @@
       dialogSubmit(){
       dialogSubmit(){
         let text = '';
         let text = '';
         if(this.infraredControllerForm.switchType == 1){
         if(this.infraredControllerForm.switchType == 1){
-          if(this.infraredControllerForm.functionType != 3){
-            text = '1-' + this.infraredControllerForm.functionType + '-' + this.infraredControllerForm.orderType;
-          }else {
-            text = '1-3';
+          if(this.infraredControllerForm.functionType == 1){
+            text = '3-' + this.infraredControllerForm.orderType;
+          }else if(this.infraredControllerForm.functionType == 2){
+            text = '4-' + this.infraredControllerForm.orderType;
+          }else if(this.infraredControllerForm.functionType == 3){
+            text = '2';
           }
           }
         }else if(this.infraredControllerForm.switchType == 0){
         }else if(this.infraredControllerForm.switchType == 0){
           text = '0';
           text = '0';
@@ -215,11 +217,16 @@
         iotHardwareFindByType({subjectId:this.$parent.subId}).then(response => {
         iotHardwareFindByType({subjectId:this.$parent.subId}).then(response => {
           response.data.forEach((item)=>{
           response.data.forEach((item)=>{
             if(item.hardwareTypeKey == 'airConditioner'){
             if(item.hardwareTypeKey == 'airConditioner'){
-              if(item.reservedThree.indexOf('-') != -1){
+              if(item.reservedThree == 0){
+                item.switchType = 0;
+              }else if(item.reservedThree == 2){
+                item.switchType = 1;
+                item.functionType = 2;
+              }else if(item.reservedThree.indexOf('-') != -1){
                 let list = item.reservedThree.split('-');
                 let list = item.reservedThree.split('-');
-                item.switchType = list[0]?list[0]:'';
-                item.functionType = list[1]?list[1]:'';
-                item.orderType = list[2]?list[2]:'';
+                item.switchType = 1;
+                item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                item.orderType = list[1]?list[1]:'';
               }else{
               }else{
                 item.switchType = '';
                 item.switchType = '';
                 item.functionType = '';
                 item.functionType = '';
@@ -284,10 +291,24 @@
             list.forEach((item)=>{
             list.forEach((item)=>{
               if(item.hardwareNo == data.hardwareNo){
               if(item.hardwareNo == data.hardwareNo){
                 if(item.hardwareTypeKey == 'airConditioner'){
                 if(item.hardwareTypeKey == 'airConditioner'){
-                  let list = data.command.split('-');
-                  item.switchType = list[0]?list[0]:'';
-                  item.functionType = list[1]?list[1]:'';
-                  item.orderType = list[2]?list[2]:'';
+                  if(data.command == 0){
+                    item.switchType = 0;
+                    item.functionType = '';
+                    item.orderType = '';
+                  }else if(data.command == 2){
+                    item.switchType = 1;
+                    item.functionType = 3;
+                    item.orderType = '';
+                  }else if(data.command.indexOf('-') != -1){
+                    let list = data.command.split('-');
+                    item.switchType = 1;
+                    item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                    item.orderType = list[1]?list[1]:'';
+                  }else{
+                    item.switchType = '';
+                    item.functionType = '';
+                    item.orderType = '';
+                  }
                 }else{
                 }else{
                   item.operatingState = data.operatingState;
                   item.operatingState = data.operatingState;
                   item.online = data.online;
                   item.online = data.online;

+ 33 - 12
src/views/integratedManagement/laboratoryManagement/subject/infoPage.vue

@@ -417,11 +417,16 @@
           iotHardwareFindByType({subjectId:this.subjectData.subId}).then(response => {
           iotHardwareFindByType({subjectId:this.subjectData.subId}).then(response => {
             response.data.forEach((item)=>{
             response.data.forEach((item)=>{
               if(item.hardwareTypeKey == 'airConditioner'){
               if(item.hardwareTypeKey == 'airConditioner'){
-                if(item.reservedThree.indexOf('-') != -1){
+                if(item.reservedThree == 0){
+                  item.switchType = 0;
+                }else if(item.reservedThree == 2){
+                  item.switchType = 1;
+                  item.functionType = 2;
+                }else if(item.reservedThree.indexOf('-') != -1){
                   let list = item.reservedThree.split('-');
                   let list = item.reservedThree.split('-');
-                  item.switchType = list[0]?list[0]:'';
-                  item.functionType = list[1]?list[1]:'';
-                  item.orderType = list[2]?list[2]:'';
+                  item.switchType = 1;
+                  item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                  item.orderType = list[1]?list[1]:'';
                 }else{
                 }else{
                   item.switchType = '';
                   item.switchType = '';
                   item.functionType = '';
                   item.functionType = '';
@@ -602,10 +607,24 @@
               list.forEach((item)=>{
               list.forEach((item)=>{
                 if(item.hardwareNo == data.hardwareNo){
                 if(item.hardwareNo == data.hardwareNo){
                   if(item.hardwareTypeKey == 'airConditioner'){
                   if(item.hardwareTypeKey == 'airConditioner'){
-                    let list = data.command.split('-');
-                    item.switchType = list[0]?list[0]:'';
-                    item.functionType = list[1]?list[1]:'';
-                    item.orderType = list[2]?list[2]:'';
+                    if(data.command == 0){
+                      item.switchType = 0;
+                      item.functionType = '';
+                      item.orderType = '';
+                    }else if(data.command == 2){
+                      item.switchType = 1;
+                      item.functionType = 3;
+                      item.orderType = '';
+                    }else if(data.command.indexOf('-') != -1){
+                      let list = data.command.split('-');
+                      item.switchType = 1;
+                      item.functionType = list[0]==3?1:(list[0]==4?2:'');
+                      item.orderType = list[1]?list[1]:'';
+                    }else{
+                      item.switchType = '';
+                      item.functionType = '';
+                      item.orderType = '';
+                    }
                   }else{
                   }else{
                     item.operatingState = data.operatingState;
                     item.operatingState = data.operatingState;
                     item.online = data.online;
                     item.online = data.online;
@@ -658,10 +677,12 @@
         dialogSubmit(){
         dialogSubmit(){
           let text = '';
           let text = '';
           if(this.infraredControllerForm.switchType == 1){
           if(this.infraredControllerForm.switchType == 1){
-            if(this.infraredControllerForm.functionType != 3){
-              text = '1-' + this.infraredControllerForm.functionType + '-' + this.infraredControllerForm.orderType;
-            }else {
-              text = '1-3';
+            if(this.infraredControllerForm.functionType == 1){
+              text = '3-' + this.infraredControllerForm.orderType;
+            }else if(this.infraredControllerForm.functionType == 2){
+              text = '4-' + this.infraredControllerForm.orderType;
+            }else if(this.infraredControllerForm.functionType == 3){
+              text = '2';
             }
             }
           }else if(this.infraredControllerForm.switchType == 0){
           }else if(this.infraredControllerForm.switchType == 0){
             text = '0';
             text = '0';