Browse Source

维修机房图片

zhulizhen1111 4 years ago
parent
commit
ebae5982e5
1 changed files with 81 additions and 81 deletions
  1. 81 81
      src/views/room/room4.vue

+ 81 - 81
src/views/room/room4.vue

@@ -81,96 +81,96 @@ import moment from 'moment'
 import { formatterTime, number_format } from '@/utils/format.js'
 import { queryWxzyImg } from '@/api/equipmentList.js'
 export default {
-    props: ['table4', 'total', 'page', 'size', 'loading'],
-    data() {
-        return {
-            dateVal: '',
-            value1: '',
-            searVal: '',
-            number_format,
-            formatterTime,
-            tableMaxHeight: 0,
-            imgUrl: [],
+  props: ["table4","sjjssj" ,"total", "page", "size", "loading"],
+  data() {
+    return {
+      dateVal: "",
+      value1: "",
+      searVal: "",
+      number_format,
+      formatterTime,
+      tableMaxHeight: 0,
+      imgUrl: []
+    };
+  },
+  components: { Select },
+  methods: {
+    indexMethod(index) {
+        return (this.page - 1) * this.size + index + 1
+    },
+    formatter(date) {
+        return moment.unix(date / 1000).format('YYYY.MM.DD HH:mm')
+    },
+    pageChanged(page) {
+        this.$emit('Index3Emit', page)
+    },
+    //工单详情
+    innerTable(row) {
+        if (row.workorderid) {
+            window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=JXWO&uniqueid=WB_GZGL&uniqueid=${row.wb_gzglid}`)
         }
     },
-    components: { Select },
-    methods: {
-        indexMethod(index) {
-            return (this.page - 1) * this.size + index + 1
-        },
-        formatter(date) {
-            return moment.unix(date / 1000).format('YYYY.MM.DD HH:mm')
-        },
-        pageChanged(page) {
-            this.$emit('Index3Emit', page)
-        },
-        //工单详情
-        innerTable(row) {
-            if (row.workorderid) {
-                window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=JXWO&uniqueid=WB_GZGL&uniqueid=${row.wb_gzglid}`)
-            }
-        },
-        clickPicRepair(row) {
-            let getParams = {
-                data: {
-                    plazaId: this.$store.state.plazaId,
-                    ticketuid: row.ticketuid,
-                    type: 0,
-                    workorderid: row.workorderid,
-                },
+    clickPicRepair(row) {
+        let getParams = {
+            data: {
+                plazaId: this.$store.state.plazaId,
+                ticketuid: row.ticketuid,
+                type: 0,
+                workorderid: row.workorderid,
+            },
+        }
+        queryWxzyImg(getParams).then((res) => {
+            let url = res.data
+            this.imgUrl = []
+            if (url) {
+                url.forEach((el) => {
+                    let obj = {
+                        name: el.description,
+                        url: el.urlname,
+                    }
+                    this.imgUrl.push(obj)
+                })
             }
-            queryWxzyImg(getParams).then((res) => {
-                let url = res.data
-                this.imgUrl = []
-                if (url) {
-                    url.forEach((el) => {
-                        let obj = {
-                            name: el.description,
-                            url: el.urlname,
-                        }
-                        this.imgUrl.push(obj)
-                    })
-                }
-                this.$refs.picLargeOpen.open(this.imgUrl)
-            })
-        },
-        clickPicFinish(row) {
-            let getParams = {
-                data: {
-                    plazaId: this.$store.state.plazaId,
-                    ticketuid: row.ticketuid,
-                    type: 1,
-                    workorderid: row.workorderid,
-                },
+            this.$refs.picLargeOpen.open(this.imgUrl)
+        })
+    },
+    clickPicFinish(row) {
+        let getParams = {
+            data: {
+                plazaId: this.$store.state.plazaId,
+                ticketuid: row.ticketuid,
+                type: 1,
+                workorderid: row.workorderid,
+            },
+        }
+        queryWxzyImg(getParams).then((res) => {
+            let url = res.data
+            this.imgUrl = []
+            if (url) {
+                url.forEach((el) => {
+                    let obj = {
+                        name: el.description,
+                        url: el.urlname,
+                    }
+                    this.imgUrl.push(obj)
+                })
             }
-            queryWxzyImg(getParams).then((res) => {
-                let url = res.data
-                this.imgUrl = []
-                if (url) {
-                    url.forEach((el) => {
-                        let obj = {
-                            name: el.description,
-                            url: el.urlname,
-                        }
-                        this.imgUrl.push(obj)
-                    })
-                }
-                this.$refs.picLargeOpen.open(this.imgUrl)
-            })
-        },
-        computedHeight() {
-            this.$nextTick(() => {
-                // 页面渲染完成后的回调
-                this.tableMaxHeight = this.$refs.tableBox4.offsetHeight
-            })
-        },
+            this.$refs.picLargeOpen.open(this.imgUrl)
+        })
     },
-    updated() {
+    computedHeight() {
         this.$nextTick(() => {
             // 页面渲染完成后的回调
             this.tableMaxHeight = this.$refs.tableBox4.offsetHeight
         })
-    },
+    }
+  },
+  updated() {
+        this.$nextTick(() => {
+            // 页面渲染完成后的回调
+            this.tableMaxHeight = this.$refs.tableBox4.offsetHeight
+        })
+  }
 }
 </script>
 <style lang="less" scoped>