15168162575 2 anni fa
parent
commit
76b671359d
1 ha cambiato i file con 26 aggiunte e 26 eliminazioni
  1. 26 26
      application/admin/controller/Res.php

+ 26 - 26
application/admin/controller/Res.php

@@ -147,32 +147,32 @@ class Res extends Backend
                     'judge' => $judge,
                     'maker' => $res['maker'],
                     'remark' => '',
-                    '0' => isset($gather['甲醇']) ? $gather['甲醇'] : null,
-                    '1' => isset($gather['乙醇']) ? $gather['乙醇'] : null,
-                    '2' => isset($gather['异丙醇']) ? $gather['异丙醇'] : null,
-                    '3' => isset($gather['丙酮']) ? $gather['丙酮'] : null,
-                    '4' => isset($gather['正丙醇']) ? $gather['正丙醇'] : null,
-                    '5' => isset($gather['丁酮']) ? $gather['丁酮'] : null,
-                    '6' => isset($gather['乙酸乙酯']) ? $gather['乙酸乙酯'] : null,
-                    '7' => isset($gather['乙酸异丙酯']) ? $gather['乙酸异丙酯'] : null,
-                    '8' => isset($gather['正丁醇']) ? $gather['正丁醇'] : null,
-                    '9' => isset($gather['苯']) ? $gather['苯'] : null,
-                    '10' => isset($gather['1-甲氧基-2-丙醇']) ? $gather['1-甲氧基-2-丙醇'] : null,
-                    '11' => isset($gather['乙酸正丙酯']) ? $gather['乙酸正丙酯'] : null,
-                    '12' => isset($gather['2-乙氧基乙醇']) ? $gather['2-乙氧基乙醇'] : null,
-                    '13' => isset($gather['4-甲基-2-戊酮']) ? $gather['4-甲基-2-戊酮'] : null,
-                    '14' => isset($gather['1-乙氧基-2-丙醇']) ? $gather['1-乙氧基-2-丙醇'] : null,
-                    '15' => isset($gather['甲苯']) ? $gather['甲苯'] : null,
-                    '16' => isset($gather['乙酸正丁酯']) ? $gather['乙酸正丁酯'] : null,
-                    '17' => isset($gather['乙苯']) ? $gather['乙苯'] : null,
-                    '18' => isset($gather['间对二甲苯']) ? $gather['间对二甲苯'] : null,
-                    '19' => isset($gather['邻-二甲苯']) ? $gather['邻-二甲苯'] : null,
-                    '20' => isset($gather['苯乙烯']) ? $gather['苯乙烯'] : null,
-                    '21' => isset($gather['2-乙氧基乙基乙酸酯']) ? $gather['2-乙氧基乙基乙酸酯'] : null,
-                    '22' => isset($gather['环己酮']) ? $gather['环己酮'] : null,
-                    '23' => isset($gather['丁二酸二甲酯']) ? $gather['丁二酸二甲酯'] : null,
-                    '24' => isset($gather['戊二酸二甲酯']) ? $gather['戊二酸二甲酯'] : null,
-                    '25' => isset($gather['己二酸二甲酯']) ? $gather['己二酸二甲酯'] : null,
+                    '0' => isset($gather['甲醇']) ? $gather['甲醇'] : '',
+                    '1' => isset($gather['乙醇']) ? $gather['乙醇'] : '',
+                    '2' => isset($gather['异丙醇']) ? $gather['异丙醇'] : '',
+                    '3' => isset($gather['丙酮']) ? $gather['丙酮'] : '',
+                    '4' => isset($gather['正丙醇']) ? $gather['正丙醇'] : '',
+                    '5' => isset($gather['丁酮']) ? $gather['丁酮'] : '',
+                    '6' => isset($gather['乙酸乙酯']) ? $gather['乙酸乙酯'] : '',
+                    '7' => isset($gather['乙酸异丙酯']) ? $gather['乙酸异丙酯'] : '',
+                    '8' => isset($gather['正丁醇']) ? $gather['正丁醇'] : '',
+                    '9' => isset($gather['苯']) ? $gather['苯'] : '',
+                    '10' => isset($gather['1-甲氧基-2-丙醇']) ? $gather['1-甲氧基-2-丙醇'] : '',
+                    '11' => isset($gather['乙酸正丙酯']) ? $gather['乙酸正丙酯'] : '',
+                    '12' => isset($gather['2-乙氧基乙醇']) ? $gather['2-乙氧基乙醇'] : '',
+                    '13' => isset($gather['4-甲基-2-戊酮']) ? $gather['4-甲基-2-戊酮'] : '',
+                    '14' => isset($gather['1-乙氧基-2-丙醇']) ? $gather['1-乙氧基-2-丙醇'] : '',
+                    '15' => isset($gather['甲苯']) ? $gather['甲苯'] : '',
+                    '16' => isset($gather['乙酸正丁酯']) ? $gather['乙酸正丁酯'] : '',
+                    '17' => isset($gather['乙苯']) ? $gather['乙苯'] : '',
+                    '18' => isset($gather['间对二甲苯']) ? $gather['间对二甲苯'] : '',
+                    '19' => isset($gather['邻-二甲苯']) ? $gather['邻-二甲苯'] : '',
+                    '20' => isset($gather['苯乙烯']) ? $gather['苯乙烯'] : '',
+                    '21' => isset($gather['2-乙氧基乙基乙酸酯']) ? $gather['2-乙氧基乙基乙酸酯'] : '',
+                    '22' => isset($gather['环己酮']) ? $gather['环己酮'] : '',
+                    '23' => isset($gather['丁二酸二甲酯']) ? $gather['丁二酸二甲酯'] : '',
+                    '24' => isset($gather['戊二酸二甲酯']) ? $gather['戊二酸二甲酯'] : '',
+                    '25' => isset($gather['己二酸二甲酯']) ? $gather['己二酸二甲酯'] : '',
                 ];
             }
             $this->exceloutput($data);