| | |
| | | import PlusIcon from 'vue-material-design-icons/PlusCircle' |
| | | import MinusIcon from 'vue-material-design-icons/MinusCircle' |
| | | import io from "socket.io-client"; |
| | | import {getDetail} from "@/api/modules/modules"; |
| | | |
| | | export default { |
| | | name: "funcView", |
| | |
| | | if (data.type == 2) { |
| | | let fileArray = data.fileUrl |
| | | this.flipConfig.pages = [] |
| | | fileArray.forEach(e => { |
| | | this.flipConfig.pages.push(e.value) |
| | | }) |
| | | if (fileArray.length>0 && fileArray){ |
| | | fileArray.forEach(e => { |
| | | this.flipConfig.pages.push(e.value) |
| | | }) |
| | | } |
| | | } else if (data.type == 3) { |
| | | url = data.fileUrl[0].value |
| | | this.path = 'http://192.168.0.200:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)) |
| | | if (data.fileUrl&&data.fileUrl.length>0){ |
| | | url = data.fileUrl[0].value |
| | | this.path = 'http://192.168.0.200:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)) |
| | | } |
| | | } else if (data.type == 1) { |
| | | url = data.fileUrl[0].value |
| | | this.path = 'http://192.168.0.200:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)) |
| | | if (data.fileUrl&&data.fileUrl.length>0){ |
| | | url = data.fileUrl[0].value |
| | | this.path = 'http://192.168.0.200:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)) |
| | | } |
| | | } |
| | | } else if (data.property == 3) { |
| | | |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | connect(form, done) { |
| | |
| | | }); |
| | | |
| | | this.socketIoClient.on("menuChange", (res) => { |
| | | console.log(res) |
| | | this.handleSelect(res) |
| | | }); |
| | | |
| | | //上一页 |
| | | this.socketIoClient.on("previousPage", (res) => { |
| | | console.log(res) |
| | | this.left() |
| | | }); |
| | | |
| | | //下一页 |
| | | this.socketIoClient.on("nextPage", (res) => { |
| | | console.log(res) |
| | | this.right() |
| | | }); |
| | | |