guoxiaohuan преди 4 години
родител
ревизия
03dd20c0eb
променени са 4 файла, в които са добавени 13 реда и са изтрити 11 реда
  1. 2 2
      src/api/public.js
  2. BIN
      src/assets/imgs/jz.png
  3. 10 8
      src/views/room/index.vue
  4. 1 1
      src/views/room/room1.vue

+ 2 - 2
src/api/public.js

@@ -1,7 +1,7 @@
 import httputils from '@/api/httputils'
 // 查询图片
-export function queryPic({ data, getParams }) {
-    return httputils.getJson(`/data/data/glsms_proimgup/query`, data, getParams)
+export function queryPic({ getParams }) {
+    return httputils.getJson(`/data/data/glsms_proimgup/query`, getParams)
 }
 
 // 查询下拉框

BIN
src/assets/imgs/jz.png


+ 10 - 8
src/views/room/index.vue

@@ -11,7 +11,7 @@
             <div class='compute-tab'>
                 <el-tabs v-model='activeName' @tab-click='handleClick'>
                     <el-tab-pane label='机房布置图' name='1'>
-                        <room-table1></room-table1>
+                        <room-table1 v-if='tableImg.length>=0' :tableImg='tableImg'></room-table1>
                     </el-tab-pane>
                     <el-tab-pane label='配电室低压柜及出线明细表' name='2'>
                         <div class='compute-center'>
@@ -402,7 +402,7 @@ export default {
             page: 1,
             size: 10,
             picFloor: '',
-            tableImg: '',
+            tableImg: [],
             //
             total1: 0,
             page1: 1,
@@ -492,10 +492,12 @@ export default {
         Index() {
             this.picFloor = this.$cookie.get('floorNow')
             let getParams = {
-                data: { tyepcode: 3, location: '1198', floor: this.picFloor, plazaId: this.$store.state.plazaId },
-                params: {}
+                typename: '位置布置图',
+                location: '1198',
+                floor: this.picFloor,
+                plazaId: this.$store.state.plazaId
             }
-            queryPic(getParams).then(res => {
+            queryPic({ getParams }).then(res => {
                 console.log('机房布置图', res)
                 this.tableImg = res.data ? res.data : []
             })
@@ -595,9 +597,9 @@ export default {
         // 维修
         Index3() {
             let getParams = {
-                location: '1175',
-                // plazaId: '1000388',
-                plazaId: this.$store.state.plazaId,
+                location: '1961',
+                plazaId: '1001145',
+                // plazaId: this.$store.state.plazaId,
                 page: this.page3,
                 size: this.size3,
                 orderBy: 'sjjssj,0;location,1'

+ 1 - 1
src/views/room/room1.vue

@@ -1,7 +1,7 @@
 <template>
     <div class='jf-box'>
         <div class='jf-inner'>
-            <!-- <rotation :rotationImg='tableImg'></rotation> -->
+            <rotation :rotationImg='tableImg'></rotation>
         </div>
     </div>
 </template>