Kaynağa Gözat

添加线别查看条件

callm 21 saat önce
ebeveyn
işleme
60302a067a

+ 3 - 1
src/main.js

@@ -78,7 +78,9 @@ Vue.prototype.$http.interceptors.request.use(config => {
   }
   if(config.params && config.params['condition']) {
     //console.log(sessionStorage.getItem('li_code'));
-
+    if(sessionStorage.getItem('li_code') != '所有') {
+      config.params['condition'] = config.params['condition'] + " and V_LICODE='" + sessionStorage.getItem('li_code') + "'";
+    }
   }
   return config;
 });

+ 1 - 6
src/views/assembly/index.vue

@@ -75,12 +75,9 @@
           <!-- 第三行数据 -->
           <div class="content-box">
             <div>
-              <dv-border-box-12 v-show="linecode!='所有'">
+              <dv-border-box-12>
                 <centerLeft_two />
               </dv-border-box-12>
-              <dv-border-box-12 v-show="linecode=='所有'">
-                <centerLeft1ALL />
-              </dv-border-box-12>
             </div>
             <div>
               <dv-border-box-12>
@@ -128,7 +125,6 @@ import centerRight1 from './centerRight1'
 import center from './center'
 import bottomLeft2 from './bottomLeft2'
 import bottomRight from './bottomRight'
-import centerLeft1ALL from "@/views/assembly/centerLeft1ALL.vue";
 
 export default {
   mixins: [ drawMixin ],
@@ -145,7 +141,6 @@ export default {
     }
   },
   components: {
-    centerLeft1ALL,
     centerLeft1,
     centerLeft_two,
     centerRight1,

+ 1 - 6
src/views/hj/index.vue

@@ -73,12 +73,9 @@
           <!-- 第三行数据 -->
           <div class="content-box">
             <div>
-              <dv-border-box-12 v-show="linecode!='所有'">
+              <dv-border-box-12 >
                 <centerLeft_two />
               </dv-border-box-12>
-              <dv-border-box-12 v-show="linecode=='所有'">
-                <centerLeft1ALL />
-              </dv-border-box-12>
             </div>
             <div>
               <dv-border-box-12>
@@ -126,7 +123,6 @@ import centerRight1 from './centerRight1'
 import center from './center'
 import bottomLeft2 from './bottomLeft2'
 import bottomRight from './bottomRight'
-import centerLeft1ALL from "@/views/hj/centerLeft1ALL.vue";
 
 export default {
   mixins: [ drawMixin ],
@@ -144,7 +140,6 @@ export default {
     }
   },
   components: {
-    centerLeft1ALL,
     centerLeft1,
     centerLeft_two,
     centerRight1,

+ 1 - 6
src/views/smt/index.vue

@@ -73,12 +73,9 @@
           <!-- 第三行数据 -->
           <div class="content-box">
             <div>
-              <dv-border-box-12 v-show="linecode!='所有'">
+              <dv-border-box-12 >
                 <centerLeft_two />
               </dv-border-box-12>
-              <dv-border-box-12 v-show="linecode=='所有'">
-                <centerLeft1ALL />
-              </dv-border-box-12>
             </div>
             <div>
               <dv-border-box-12>
@@ -126,7 +123,6 @@ import centerRight1 from './centerRight1'
 import center from './center'
 import bottomLeft2 from './bottomLeft2'
 import bottomRight from './bottomRight'
-import centerLeft1ALL from "@/views/smt/centerLeft1ALL.vue";
 
 export default {
   mixins: [ drawMixin ],
@@ -143,7 +139,6 @@ export default {
     }
   },
   components: {
-    centerLeft1ALL,
     centerLeft1,
     centerLeft_two,
     centerRight1,