ソースを参照

一个无意义的页面颜色

Zhouzhendong 4 年 前
コミット
baa814ec47

+ 13 - 6
app/Http/Controllers/TestController.php

@@ -30,15 +30,22 @@ class TestController extends Controller
         }
     }
     public function test(){
-        $arr = DB::connection("oracle")->select(DB::raw("SELECT LOCATIONID FROM INV_LOT_LOC_ID
-where LOCATIONID like 'IDE%' and CUSTOMERID in ('PUHE')
-group by CUSTOMERID,LOCATIONID order by CUSTOMERID"));
-        $str = "";
+        $sql = <<<SQL
+select * from equipment where id in (
+    select parent_id from equipment where parent_id in (select id from equipment where info like '%"id":2%' and code like 'H%')
+    group by parent_id having (count(*)<5)
+);
+SQL;
+
+        $arr = DB::connection("aliyunMysql")->select(DB::raw($sql));
+        $insert = <<<SQL
+insert into equipment(repository_id, code, parent_id, info, depth, width, height, containers, location_tab, created_at, updated_at, tandem)
+values (?,?,?,null,?,?,1.8,null,'0-0','2022-01-13 16:08:00','2022-01-13 16:08:00',null)
+SQL;
 
         foreach ($arr as $item){
-            $str .= '"'.$item->locationid.'",';
+            DB::connection("aliyunMysql")->insert($insert, [$item->repository_id,$item->code."-1",$item->id,$item->depth,$item->width]);
         }
-        dd($str);
     }
 }
 

+ 0 - 1
resources/views/auth/login.blade.php

@@ -140,7 +140,6 @@
         }
     });
     function loginSubmit() {
-        console.log(123);
         tempTip.setDuration(99999);
         tempTip.waitingTip('提交中');
         axios.post('{{ route('login') .'?rand='.microtime(true)}}', vue.inputting).then(function (response) {

+ 2 - 3
resources/views/equipment/_location.blade.php

@@ -15,9 +15,8 @@
                         <tr v-for="row in current.children[currentEqChildIndex].row">
                             <td v-for="column in current.children[currentEqChildIndex].column" v-if="locations[(row-1)*current.children[currentEqChildIndex].column+(column-1)]"
                                 class="p-0 text-center position-relative">
-                                <div style="min-height: 120px">
-                                    <div class="w-100 h-100 text-secondary font-weight-bold"
-                                         :style="locations[(row-1)*current.children[currentEqChildIndex].column+(column-1)].code|childStyle">
+                                <div style="min-height: 120px" :style="locations[(row-1)*current.children[currentEqChildIndex].column+(column-1)].code|childStyle">
+                                    <div class="w-100 h-100 text-secondary font-weight-bold">
                                         @{{ locations[(row-1)*current.children[currentEqChildIndex].column+(column-1)].code }}</div>
                                     <div style="position: absolute;bottom: 0" class="w-100 row">
                                         <div class="col-5 offset-1">