caojunjie 4 jaren geleden
bovenliggende
commit
0b99a9b4de
3 gewijzigde bestanden met toevoegingen van 7 en 3 verwijderingen
  1. 1 1
      src/request/request.js
  2. 5 2
      src/views/contractPlacing/index.vue
  3. 1 0
      src/views/login/index.vue

+ 1 - 1
src/request/request.js

@@ -55,7 +55,7 @@ export function request(config) {
         Cookies.remove();
         // store.dispatch('LogOut').then(() => {
         //   location.href = '/login';
-          window.location.href= '/login'
+        window.location.href= '/login'
         // })
       })
     }

+ 5 - 2
src/views/contractPlacing/index.vue

@@ -361,12 +361,15 @@
           </div>
           <div class="mainModules" v-if="whether === true">
             <el-form-item label="湿度设置(%)">
-              <el-input style="width:80%;" v-model="list.fHumidity"/>
+              <el-input style="width:80%;" v-model="list.fHumidity" @input="throttleOpening"  oninput='this.value=this.value.replace(/[^\d.]/g,"")'/>
             </el-form-item>
           </div>
           <div class="mainModules" v-if="whether === true">
             <el-form-item label="预冷要求">
-              <el-input style="width:80%;" v-model="list.fPrecooling"/>
+              <el-select style="width:80%;" v-model="list.fPrecooling" placeholder="请选择">
+                <el-option label="是" value="1"></el-option>
+                <el-option label="否" value="2"></el-option>
+              </el-select>
             </el-form-item>
           </div>
           <div class="mainModules">

+ 1 - 0
src/views/login/index.vue

@@ -97,6 +97,7 @@ export default {
   created() {
     this.getCode();
     this.getCookie();
+    Cookies.remove();
   },
   methods: {
     getCode() {