renmy 3 роки тому
батько
коміт
d3aad82d33
2 змінених файлів з 15 додано та 9 видалено
  1. 14 1
      src/views/device/delivery/index.vue
  2. 1 8
      src/views/login/index.vue

+ 14 - 1
src/views/device/delivery/index.vue

@@ -81,7 +81,7 @@
 
           <el-table-column label="出库类型">
             <template slot-scope="scope">
-              {{ scope.row.out_type || '-'}}
+              {{ scope.row.out_type | outTypeStr}}
             </template>
           </el-table-column>
 
@@ -505,6 +505,19 @@ export default {
         }
       })
     }
+  },
+  filters: {
+    outTypeStr(value) {
+      if (value) {
+        if(value === 1) {
+          return '商用'
+        } else if (value === 2) {
+          return '测试'
+        }
+      } else {
+        return '-'
+      }
+    }
   }
 }
 </script>

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

@@ -109,13 +109,6 @@ export default {
         if (valid) {
           this.loading = true
           this.$store.dispatch('user/login', this.loginForm).then(() => {
-            // debugger
-            // postJson('/api/v1/sys/role/tree', { id: this.loginForm.username }).then(response => {
-            //   debugger
-            //   if (response.code === 200) {
-            //     this.setRole(response.data.checked)       
-            //   }
-            // })
             localStorage.setItem('userName', this.loginForm.username)
             this.$router.push({ path: this.redirect || '/' })
             this.loading = false
@@ -192,7 +185,7 @@ $light_gray:#eee;
 .login-container {
   min-height: 100%;
   width: 100%;
-  background-color: $bg;
+  background-color: #fff;
   overflow: hidden;
   position: relative;