guoxiaohuan 4 年之前
父節點
當前提交
a45e40688c
共有 2 個文件被更改,包括 19 次插入3 次删除
  1. 17 1
      src/views/room/room4.vue
  2. 2 2
      vue.config.js

+ 17 - 1
src/views/room/room4.vue

@@ -65,6 +65,8 @@
                 </el-table-column>
             </el-table>
         </div>
+        <pic-large ref='picLargeOpen'></pic-large>
+
         <div class='foot'>
             <el-pagination
                 background
@@ -92,7 +94,8 @@ export default {
             value1: '',
             searVal: '',
             number_format,
-            tableMaxHeight: 0
+            tableMaxHeight: 0,
+            imgUrl: []
         }
     },
     components: { Select },
@@ -113,6 +116,19 @@ export default {
                 window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=JXWO&uniqueid=WB_GZGL&uniqueid=${row.wb_gzglid}`)
             }
         },
+        clickPic(row) {
+            this.imgUrl = []
+            if (row) {
+                row.forEach(el => {
+                    let obj = {
+                        name: el.description,
+                        url: el.url
+                    }
+                    this.imgUrl.push(obj)
+                })
+            }
+            this.$refs.picLargeOpen.open(this.imgUrl)
+        },
         computedHeight() {
             this.$nextTick(() => {
                 // 页面渲染完成后的回调

+ 2 - 2
vue.config.js

@@ -3,8 +3,8 @@ module.exports = {
         port: 8090,
         proxy: {
             '/data': {
-                // target: 'http://60.205.177.43',
-                target: 'http://10.199.143.126',
+                target: 'http://60.205.177.43',
+                // target: 'http://10.199.143.126',
                 // target: 'http://192.168.200.11:9003', //yll
                 // target: 'http://localhost:6040/data/',
                 changeOrigin: true,