diff --git a/pages/mypage/compents/xcrw/detail/dbForm.vue b/pages/mypage/compents/xcrw/detail/dbForm.vue index 1636087..873c787 100644 --- a/pages/mypage/compents/xcrw/detail/dbForm.vue +++ b/pages/mypage/compents/xcrw/detail/dbForm.vue @@ -12,44 +12,40 @@ - + {{o.itemDesc}} - {{o.isNormal == 0?'异常':'正常'}} + ({{o.isNormal == 0?'异常':'正常'}}{{o.isHandle?'已处理':'未处理'}}) - + 现场图片 - + - + 现场视频 - + 问题描述 {{o.itemProblemDesc}} - - 处理状态 - {{o.isHandle?'已处理':'未处理'}} - 处理图片 - + - + 处理视频 - - + + @@ -164,6 +160,22 @@ this.listData = n.map(item => { item.childen = item.children.map(i => { + i.handlePics?.map(item1=>{ + item1.url ='http://223.75.53.141:9102/test.by-lyf.tmp' + item1.filePath + return item1 + }) + i.handleVideos?.map(item1=>{ + item1.url ='http://223.75.53.141:9102/test.by-lyf.tmp' + item1.filePath + return item1 + }) + i.inspectPics?.map(item1=>{ + item1.url ='http://223.75.53.141:9102/test.by-lyf.tmp' + item1.filePath + return item1 + }) + i.inspectVideos?.map(item1=>{ + item1.url ='http://223.75.53.141:9102/test.by-lyf.tmp' + item1.filePath + return item1 + }) if (!i.handlePics) { i.handlePics = [] } @@ -369,6 +381,8 @@ .xj-text { margin-left: 10%; margin-top: 2%; + font-size: 16px; + border-bottom:1px solid #f0f0f0 ; } .subsectioin { diff --git a/pages/mypage/compents/xcrw/detail/index.vue b/pages/mypage/compents/xcrw/detail/index.vue index ac619b4..a1f96c6 100644 --- a/pages/mypage/compents/xcrw/detail/index.vue +++ b/pages/mypage/compents/xcrw/detail/index.vue @@ -93,7 +93,7 @@ // 获取巡查项 async getXjItem(id){ try { - const {data} = await uni.$http.get(`/gunshiApp/xyt/inspect/detail/info?taskId=${id}`) + const {data} = await uni.$http.get(`/gunshiApp/xyt/inspect/detail/info?taskId=${this.id}`) if(data.code == 200){ this.xjItem = data.data } @@ -107,8 +107,8 @@ }, onLoad(option){ this.taskTitle = option.taskTitle - this.taskType = JSON.parse(option.taskType) - this.taskContent = JSON.parse(option.taskContent) + this.taskType = option.taskType + this.taskContent = option.taskContent this.startDate = (option.startDate) this.endDate = option.endDate == "null" ? "" : option.endDate this.status = option.status diff --git a/pages/mypage/compents/xcrw/index.vue b/pages/mypage/compents/xcrw/index.vue index 0109fa4..11e6fcd 100644 --- a/pages/mypage/compents/xcrw/index.vue +++ b/pages/mypage/compents/xcrw/index.vue @@ -20,6 +20,7 @@ + @@ -28,7 +29,7 @@ - {{item.status == 1 ? "继续任务": "开始任务" }} + {{status[item.status]}} @@ -44,6 +45,7 @@ + { + item.url ='http://223.75.53.141:9102/test.by-lyf.tmp' + item.filePath + return item + }) }, methods: { submit(){ @@ -182,7 +186,7 @@ uploadFilePromise(url, name) { return new Promise((resolve, reject) => { let a = uni.uploadFile({ - url: 'http://local.gunshiiot.com:18083/gunshiApp/xyt/maintain/service/file/upload/singleSimple', // 仅为示例,非真实的接口地址 + url: 'http://local.gunshiiot.com:18083/gunshiApp/xyt/inspect/task/file/upload/singleSimple', // 仅为示例,非真实的接口地址 filePath: url, name: 'file', formData: { diff --git a/pages/xcrw/detail/dbForm.vue b/pages/xcrw/detail/dbForm.vue index dbacff0..8151d5d 100644 --- a/pages/xcrw/detail/dbForm.vue +++ b/pages/xcrw/detail/dbForm.vue @@ -1,7 +1,6 @@