Commit a12727ea authored by xinzhedeai's avatar xinzhedeai

隐患修改

parent 2347d3f1
...@@ -35,10 +35,10 @@ var http2 = { ...@@ -35,10 +35,10 @@ var http2 = {
Authorization: localStorage.getItem('token') Authorization: localStorage.getItem('token')
}, },
} }
if(params.extraData && params.extraData.fileList){ // 用于接口传递的额外参数 如文件流等){ if(params.fileList){ // 用于接口传递的额外参数 如文件流等){
extraData.fileList = params.extraData.fileList extraData.fileList = params.fileList
} }
console.log('http2方法进来了~extraData', JSON.stringify(extraData)) console.log('http2方法进来了~extraData', extraData)
// vaildInterfacefn("jisnzjk", "ticketvalidate", JSON.stringify(interfaceContent), "1", "https://" + urldomaincreatesign, "https://" + urldomaingateway).then((value) => { // vaildInterfacefn("jisnzjk", "ticketvalidate", JSON.stringify(interfaceContent), "1", "https://" + urldomaincreatesign, "https://" + urldomaingateway).then((value) => {
// vaildInterfaceWithHeadersfn(appid, interfaceid, interfacecontent, fromport, headers, signurl, gatewayurl) // vaildInterfaceWithHeadersfn(appid, interfaceid, interfacecontent, fromport, headers, signurl, gatewayurl)
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<van-field v-model="form.hdInspectExpert" :disabled="true" label="检查人员" /> <van-field v-model="form.hdInspectExpert" :disabled="true" label="检查人员" />
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field v-model="hdLevelText" :disabled="true" label="隐患类型"/> <van-field v-model="hdLevelText" :disabled="true" label="隐患类型"/>
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field v-model="form.type" :disabled="true" label="安全类型"/> <van-field v-model="form.type" :disabled="true" label="安全类型"/>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<van-field v-model="form.recDeadLine" :disabled="true" label="整改期限" /> <van-field v-model="form.recDeadLine" :disabled="true" label="整改期限" />
</van-cell-group> </van-cell-group>
<van-cell-group :class="{'disable-van-cell': true}"> <van-cell-group :class="{'disable-van-cell': true}">
<van-cell>隐患照片 <van-cell>隐患照片
<div style="width: 2.5rem;"> <div style="width: 2.5rem;">
<van-image <van-image
width="100" width="100"
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</div></van-cell> </div></van-cell>
</van-cell-group> </van-cell-group>
<van-cell-group v-if="disabled" :class="{'disable-van-cell': true}"> <van-cell-group v-if="disabled" :class="{'disable-van-cell': true}">
<van-cell>整改照片 <van-cell>整改照片
<div style="width: 2.5rem;"> <div style="width: 2.5rem;">
<van-image <van-image
width="100" width="100"
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</div></van-cell> </div></van-cell>
</van-cell-group> </van-cell-group>
<van-cell-group v-if="!disabled"> <van-cell-group v-if="!disabled">
<van-cell>整改照片 <van-cell>整改照片
<div style="width: 2.5rem;"> <div style="width: 2.5rem;">
<van-uploader v-model="fileList" :max-count="1" :deletable="!disabled" :preview-full-image="false"> <van-uploader v-model="fileList" :max-count="1" :deletable="!disabled" :preview-full-image="false">
</van-uploader> </van-uploader>
......
...@@ -80,7 +80,7 @@ window.addEventListener("load", function() { ...@@ -80,7 +80,7 @@ window.addEventListener("load", function() {
console.log('响应结果', result.content) console.log('响应结果', result.content)
this.form = result.content[0] this.form = result.content[0]
if(this.form.hdPic && this.form.hdPic.length){ if(this.form.hdPic && this.form.hdPic.length){
this.form.hdPic = this.form.hdPic[0`] this.form.hdPic = this.form.hdPic[0]
} }
// 整改图片编辑 上传组件图片赋值 // 整改图片编辑 上传组件图片赋值
if(this.form.hdRectificationPic && this.form.hdRectificationPic.length && !this.disabled){ if(this.form.hdRectificationPic && this.form.hdRectificationPic.length && !this.disabled){
...@@ -161,7 +161,7 @@ window.addEventListener("load", function() { ...@@ -161,7 +161,7 @@ window.addEventListener("load", function() {
// // formData.append('hdRectificationPic', this.fileList[0].file ) // // formData.append('hdRectificationPic', this.fileList[0].file )
// // } // // }
console.log('上传文件',this.fileList[0].file)
http2.post({ http2.post({
serviceId: API_KEY_MAP["yh-list-detail"]['id'], serviceId: API_KEY_MAP["yh-list-detail"]['id'],
interfacePublicKey: API_KEY_MAP["yh-list-detail"]["publicKey"], interfacePublicKey: API_KEY_MAP["yh-list-detail"]["publicKey"],
...@@ -169,12 +169,10 @@ window.addEventListener("load", function() { ...@@ -169,12 +169,10 @@ window.addEventListener("load", function() {
reqParams: { reqParams: {
hdId: this.form.hdId, hdId: this.form.hdId,
}, },
extraData:{ fileList: [{
fileList: [{ fileName: 'hdRectificationPic',
fileName: 'hdRectificationPic', file: this.fileList[0].file
file: this.fileList[0].file }]
}]
}
}, (res) => { }, (res) => {
if(res){ if(res){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment