diff --git a/main.js b/main.js index eb63328d..ba9c7fae 100644 --- a/main.js +++ b/main.js @@ -38,7 +38,7 @@ if (process.env.NODE_ENV === 'development') { console.log('开发环境') // Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢正式地址(弃用) // Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢正式地址 - // Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢测试地址 + Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢测试地址 // Vue.prototype.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址 // Vue.prototype.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址 // Vue.prototype.url_config = ' http://192.168.34.221:28888/' //郭圣雄本地 @@ -47,8 +47,8 @@ if (process.env.NODE_ENV === 'development') { // Vue.prototype.url_config = 'http://192.168.34.155:19111/' //彭洁本地 // Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用) // Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址 - // Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址 - Vue.prototype.work_url = 'http://192.168.34.175:5173' // 工作流地址 + Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址 + // Vue.prototype.work_url = 'http://192.168.34.175:5173' // 工作流地址 // Vue.prototype.work_url = 'http://192.168.34.138:5173' // 工作流地址 // Vue.prototype.work_url = 'http://139.9.66.234:5173' // 工作流地址 // Vue.prototype.work_url = 'http://192.168.34.126:5173' // 工作流地址 @@ -83,7 +83,7 @@ if (process.env.NODE_ENV === 'development') { // Vue.prototype.url_config = 'http://182.90.224.147:15551'//成润线上 // Vue.prototype.url_config = 'http://118.121.198.147:23232'//成润正式 // Vue.prototype.url_config = 'http://huli.zjzhiliao.com/jxjgdapi'//金林湾测试 - Vue.prototype.url_config = 'http://8.136.222.164:8808/'//中科安信 + // Vue.prototype.url_config = 'http://8.136.222.164:8808/'//中科安信 } else { @@ -92,13 +92,13 @@ if (process.env.NODE_ENV === 'development') { // Vue.prototype.url_config = 'http://10.168.1.105:11111/' // 线上地址 // Vue.prototype.url_config = 'http://10.168.1.104:11111/' // 线上地址 // Vue.prototype.url_config = 'http://47.93.215.234:9809/' // 鞍钢线上地址(弃用) - Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢线上地址 - // Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢线上测试地址 + // Vue.prototype.url_config = 'http://42.180.188.17:9809/' // 鞍钢线上地址 + Vue.prototype.url_config = 'http://42.180.188.17:11211/' // 鞍钢线上测试地址 // Vue.prototype.url_config = 'http://182.90.224.237:51234/' // 百色三标段 // Vue.prototype.url_config = 'http://192.168.34.221:9111/' // 百色三标段 // Vue.prototype.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用) - Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址 - // Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址 + // Vue.prototype.work_url = 'http://42.180.188.17:19997' // 工作流线上地址 + Vue.prototype.work_url = 'http://42.180.188.17:19097' // 工作流测试地址 // Vue.prototype.work_url = 'http://192.168.34.139:5173' // 工作流地址 // Vue.prototype.url_config = 'http://182.90.224.147:100/' //演示平台 // Vue.prototype.url_config ='http://124.71.178.44:8012/' // 河南 diff --git a/pages/projectEnd/specialOperations/bindPlatePlug/detail.vue b/pages/projectEnd/specialOperations/bindPlatePlug/detail.vue index e358688b..aa28ab4c 100644 --- a/pages/projectEnd/specialOperations/bindPlatePlug/detail.vue +++ b/pages/projectEnd/specialOperations/bindPlatePlug/detail.vue @@ -90,21 +90,29 @@ 现场作业环境: + +
  • + +
  • +
    安全技术交底: - + + {{item.url}} + + @@ -192,6 +200,14 @@ + + + + + + + + @@ -200,7 +216,10 @@ import safe from './safe.vue' import side from './side.vue' import workFinally from './workFinally.vue' - + import { + isVideoLink, + isImageLink + } from '@/utils/tool.js' export default { components:{ plan, @@ -231,7 +250,10 @@ detailData:{}, isShowBtn: null, userInfo: {}, - btnAuth: true + btnAuth: true, + showIframe: false, + show: false, + iframeUrl: "" } }, onReachBottom() { @@ -265,6 +287,30 @@ mounted() { }, methods:{ + getType(url) { + if (isImageLink(url)) { + return "image" + } else if (isVideoLink(url)) { + return "video" + } else { + return '' + } + }, + downloadFile(url) { + // 下载所有的文件 + let name = url.substring(url.lastIndexOf('/') + 1); + console.log(name, "文件名称"); + if (isVideoLink(url) || isImageLink(url)) { + // 是图片和视频 + this.show = true; + this.showIframe = true; + this.iframeUrl = this.url_config + 'image/' + url; + } else { + window.open(`${this.url_config}image/${url}`) + } + + return; + }, previewImage(url) { uni.previewImage({ urls: [url] @@ -291,9 +337,9 @@ if (this.detailData.safetyAndTechnologyDisclosure) { this.detailData.safetyAndTechnologyDisclosure = JSON.parse(this.detailData .safetyAndTechnologyDisclosure) - this.detailData.safetyAndTechnologyDisclosure.map(item => { - item.url = this.url_config + 'image/' + item.url - }) + // this.detailData.safetyAndTechnologyDisclosure.map(item => { + // item.url = this.url_config + 'image/' + item.url + // }) } // let str = ''; // if(res.result.chooseTypeDescribeList){ @@ -393,6 +439,34 @@ + \ No newline at end of file diff --git a/pages/projectEnd/specialOperations/openCircuit/detail.vue b/pages/projectEnd/specialOperations/openCircuit/detail.vue index 7480957a..58e185b9 100644 --- a/pages/projectEnd/specialOperations/openCircuit/detail.vue +++ b/pages/projectEnd/specialOperations/openCircuit/detail.vue @@ -61,21 +61,29 @@ 现场作业环境: + +
  • + +
  • +
    安全技术交底: - + + {{item.url}} + + +
  • + +
  • + 安全技术交底: - + + {{item.url}} + +