瀏覽代碼

修改首页

limeng 2 天之前
父節點
當前提交
0f77f2149b
共有 2 個文件被更改,包括 127 次插入71 次删除
  1. 1 1
      monitor_ui/src/views/index.vue
  2. 126 70
      src/main/resources/mapper/monitor/camera/CentermonitorTCameraMapper.xml

+ 1 - 1
monitor_ui/src/views/index.vue

@@ -9,7 +9,7 @@
             </p>
 
             <template>
-              <el-table :data="tableData" border @cell-click="cellClick">
+              <el-table :data="tableData" border @cell-click="cellClick" height="350px;">
                 <el-table-column label="部门ID" align="center" prop="deptId" v-if="false"></el-table-column>
                 <el-table-column label="县区名称" align="center" prop="qx">
                   <template slot-scope="scope">

+ 126 - 70
src/main/resources/mapper/monitor/camera/CentermonitorTCameraMapper.xml

@@ -1011,16 +1011,24 @@
         SELECT a.qx,
                (
                    CASE
-                       WHEN a.qx = '双辽市' THEN
-                           369
-                       WHEN a.qx = '伊通县' THEN
-                           370
-                       WHEN a.qx = '梨树县' THEN
-                           371
-                       WHEN a.qx = '铁东区' THEN
-                           372
-                       WHEN a.qx = '铁西区' THEN
-                           373
+                       WHEN a.qx = '毕克齐镇' THEN
+                           314391
+                       WHEN a.qx = '塔布赛乡' THEN
+                           314393
+                       WHEN a.qx = '台阁牧镇' THEN
+                           314394
+                       WHEN a.qx = '敕勒川镇' THEN
+                           314395
+                       WHEN a.qx = '察素齐镇' THEN
+                           314439
+                       WHEN a.qx = '白庙子镇' THEN
+                           314440
+                       WHEN a.qx = '善岱镇' THEN
+                           314441
+                       WHEN a.qx = '北什轴乡' THEN
+                           314442
+                       WHEN a.qx = '敕勒川乳业开发区' THEN
+                           314778
                        END
                    )                       deptId,
                IFNULL(a.camera_online, 0)  camera_online,
@@ -1038,21 +1046,33 @@
                                     c.working_status,
                                     (
                                         CASE
-                                            WHEN find_in_set(369, cd.ancestors) > 0
-                                                OR cd.dept_id = 369 THEN
-                                                '双辽市'
-                                            WHEN find_in_set(370, cd.ancestors) > 0
-                                                OR cd.dept_id = 370 THEN
-                                                '伊通县'
-                                            WHEN find_in_set(371, cd.ancestors) > 0
-                                                OR cd.dept_id = 371 THEN
-                                                '梨树县'
-                                            WHEN find_in_set(372, cd.ancestors) > 0
-                                                OR cd.dept_id = 372 THEN
-                                                '铁东区'
-                                            WHEN find_in_set(373, cd.ancestors) > 0
-                                                OR cd.dept_id = 373 THEN
-                                                '铁西区'
+                                            WHEN find_in_set(314391, cd.ancestors) > 0
+                                                OR cd.dept_id = 314391 THEN
+                                                '毕克齐镇'
+                                            WHEN find_in_set(314393, cd.ancestors) > 0
+                                                OR cd.dept_id = 314393 THEN
+                                                '塔布赛乡'
+                                            WHEN find_in_set(314394, cd.ancestors) > 0
+                                                OR cd.dept_id = 314394 THEN
+                                                '台阁牧镇'
+                                            WHEN find_in_set(314395, cd.ancestors) > 0
+                                                OR cd.dept_id = 314395 THEN
+                                                '敕勒川镇'
+                                            WHEN find_in_set(314439, cd.ancestors) > 0
+                                                OR cd.dept_id = 314439 THEN
+                                                '察素齐镇'
+                                            WHEN find_in_set(314440, cd.ancestors) > 0
+                                                OR cd.dept_id = 314440 THEN
+                                                '白庙子镇'
+                                            WHEN find_in_set(314441, cd.ancestors) > 0
+                                                OR cd.dept_id = 314441 THEN
+                                                '善岱镇'
+                                            WHEN find_in_set(314442, cd.ancestors) > 0
+                                                OR cd.dept_id = 314442 THEN
+                                                '北什轴乡'
+                                            WHEN find_in_set(314778, cd.ancestors) > 0
+                                                OR cd.dept_id = 314778 THEN
+                                                '敕勒川乳业开发区'
                                             ELSE
                                                 '0'
                                             END
@@ -1075,21 +1095,33 @@
                                                   c.working_status,
                                                   (
                                                       CASE
-                                                          WHEN find_in_set(369, cd.ancestors) > 0
-                                                              OR cd.dept_id = 369 THEN
-                                                              '双辽市'
-                                                          WHEN find_in_set(370, cd.ancestors) > 0
-                                                              OR cd.dept_id = 370 THEN
-                                                              '伊通县'
-                                                          WHEN find_in_set(371, cd.ancestors) > 0
-                                                              OR cd.dept_id = 371 THEN
-                                                              '梨树县'
-                                                          WHEN find_in_set(372, cd.ancestors) > 0
-                                                              OR cd.dept_id = 372 THEN
-                                                              '铁东区'
-                                                          WHEN find_in_set(373, cd.ancestors) > 0
-                                                              OR cd.dept_id = 373 THEN
-                                                              '铁西区'
+                                                          WHEN find_in_set(314391, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314391 THEN
+                                                              '毕克齐镇'
+                                                          WHEN find_in_set(314393, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314393 THEN
+                                                              '塔布赛乡'
+                                                          WHEN find_in_set(314394, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314394 THEN
+                                                              '台阁牧镇'
+                                                          WHEN find_in_set(314395, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314395 THEN
+                                                              '敕勒川镇'
+                                                          WHEN find_in_set(314439, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314439 THEN
+                                                              '察素齐镇'
+                                                          WHEN find_in_set(314440, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314440 THEN
+                                                              '白庙子镇'
+                                                          WHEN find_in_set(314441, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314441 THEN
+                                                              '善岱镇'
+                                                          WHEN find_in_set(314442, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314442 THEN
+                                                              '北什轴乡'
+                                                          WHEN find_in_set(314778, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314778 THEN
+                                                              '敕勒川乳业开发区'
                                                           ELSE
                                                               '0'
                                                           END
@@ -1120,21 +1152,33 @@
                                     c.working_status,
                                     (
                                         CASE
-                                            WHEN find_in_set(369, cd.ancestors) > 0
-                                                OR cd.dept_id = 369 THEN
-                                                '双辽市'
-                                            WHEN find_in_set(370, cd.ancestors) > 0
-                                                OR cd.dept_id = 370 THEN
-                                                '伊通县'
-                                            WHEN find_in_set(371, cd.ancestors) > 0
-                                                OR cd.dept_id = 371 THEN
-                                                '梨树县'
-                                            WHEN find_in_set(372, cd.ancestors) > 0
-                                                OR cd.dept_id = 372 THEN
-                                                '铁东区'
-                                            WHEN find_in_set(373, cd.ancestors) > 0
-                                                OR cd.dept_id = 373 THEN
-                                                '铁西区'
+                                            WHEN find_in_set(314391, cd.ancestors) > 0
+                                                OR cd.dept_id = 314391 THEN
+                                                '毕克齐镇'
+                                            WHEN find_in_set(314393, cd.ancestors) > 0
+                                                OR cd.dept_id = 314393 THEN
+                                                '塔布赛乡'
+                                            WHEN find_in_set(314394, cd.ancestors) > 0
+                                                OR cd.dept_id = 314394 THEN
+                                                '台阁牧镇'
+                                            WHEN find_in_set(314395, cd.ancestors) > 0
+                                                OR cd.dept_id = 314395 THEN
+                                                '敕勒川镇'
+                                            WHEN find_in_set(314439, cd.ancestors) > 0
+                                                OR cd.dept_id = 314439 THEN
+                                                '察素齐镇'
+                                            WHEN find_in_set(314440, cd.ancestors) > 0
+                                                OR cd.dept_id = 314440 THEN
+                                                '白庙子镇'
+                                            WHEN find_in_set(314441, cd.ancestors) > 0
+                                                OR cd.dept_id = 314441 THEN
+                                                '善岱镇'
+                                            WHEN find_in_set(314442, cd.ancestors) > 0
+                                                OR cd.dept_id = 314442 THEN
+                                                '北什轴乡'
+                                            WHEN find_in_set(314778, cd.ancestors) > 0
+                                                OR cd.dept_id = 314778 THEN
+                                                '敕勒川乳业开发区'
                                             ELSE
                                                 '0'
                                             END
@@ -1152,21 +1196,33 @@
                                                   c.working_status,
                                                   (
                                                       CASE
-                                                          WHEN find_in_set(369, cd.ancestors) > 0
-                                                              OR cd.dept_id = 369 THEN
-                                                              '双辽市'
-                                                          WHEN find_in_set(370, cd.ancestors) > 0
-                                                              OR cd.dept_id = 370 THEN
-                                                              '伊通县'
-                                                          WHEN find_in_set(371, cd.ancestors) > 0
-                                                              OR cd.dept_id = 371 THEN
-                                                              '梨树县'
-                                                          WHEN find_in_set(372, cd.ancestors) > 0
-                                                              OR cd.dept_id = 372 THEN
-                                                              '铁东区'
-                                                          WHEN find_in_set(373, cd.ancestors) > 0
-                                                              OR cd.dept_id = 373 THEN
-                                                              '铁西区'
+                                                          WHEN find_in_set(314391, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314391 THEN
+                                                              '毕克齐镇'
+                                                          WHEN find_in_set(314393, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314393 THEN
+                                                              '塔布赛乡'
+                                                          WHEN find_in_set(314394, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314394 THEN
+                                                              '台阁牧镇'
+                                                          WHEN find_in_set(314395, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314395 THEN
+                                                              '敕勒川镇'
+                                                          WHEN find_in_set(314439, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314439 THEN
+                                                              '察素齐镇'
+                                                          WHEN find_in_set(314440, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314440 THEN
+                                                              '白庙子镇'
+                                                          WHEN find_in_set(314441, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314441 THEN
+                                                              '善岱镇'
+                                                          WHEN find_in_set(314442, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314442 THEN
+                                                              '北什轴乡'
+                                                          WHEN find_in_set(314778, cd.ancestors) > 0
+                                                              OR cd.dept_id = 314778 THEN
+                                                              '敕勒川乳业开发区'
                                                           ELSE
                                                               '0'
                                                           END