Commit 00d42871 authored by xinzhedeai's avatar xinzhedeai

隐患整改图片、修改完刷新页面

parent cb34d9dc
...@@ -49,7 +49,7 @@ var userInfo = { ...@@ -49,7 +49,7 @@ var userInfo = {
// 佳才公司下的普通用户 // 佳才公司下的普通用户
var token = var token =
"Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiI0NTBlZjFlNjE5Zjk0YzUzOWYzZTJmNThkNjFiYmVkMyIsInVzZXIiOiJqYyIsInN1YiI6ImpjIn0.a5rzPYTnWpyYcY3YA09Eg6jdoTFqFkA8K0F8vfE2ALL6RVrVVyXs8Xy11SbTdnfqgnkSK8euJvnnRiz0RZZQ_g"; "Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiJiOGQ4OTIxNTY2ODA0ZjliOWIwMTlhZGEzZDFkNTg5MCIsInVzZXIiOiJkYWJhbyIsInN1YiI6ImRhYmFvIn0.LFyN4rsVDvT4ZA2_hDl4kDre6KdFm-p4HLVtYAreLxM5i_Y7GOKqb4S_4oWnseDJ0x8PZ4n7UN8J2p91X6VmyA";
localStorage.setItem('Authorization', token) localStorage.setItem('Authorization', token)
localStorage.setItem('appCounty', userInfo.user.user.county) localStorage.setItem('appCounty', userInfo.user.user.county)
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
</van-popup> </van-popup>
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field v-model="form.hdDesc" :disabled="true" label="隐患描述" placeholder="" /> <van-field v-model="form.comment" :disabled="true" label="隐患描述" placeholder="" />
</van-cell-group> </van-cell-group>
<van-cell-group> <van-cell-group>
<van-field v-model="form.basis" :disabled="true" label="检查依据" placeholder="" /> <van-field v-model="form.basis" :disabled="true" label="检查依据" placeholder="" />
......
...@@ -96,11 +96,11 @@ window.addEventListener("load", function() { ...@@ -96,11 +96,11 @@ window.addEventListener("load", function() {
showPopup(popupType){ showPopup(popupType){
}, },
detail(){ detail(){
var hdId = gemhoUtil.getParameter('companyId') var hdId = localStorage.getItem('companyId')
http.get('/api/thHiddenDanger',{ http.get('/api/thHiddenDanger',{
page: 0,// 每次请求增加下一页 page: 0,// 每次请求增加下一页
size: 1, size: 1,
companyId: gemhoUtil.getParameter('companyId'), companyId: localStorage.getItem('companyId'),
hdId: gemhoUtil.getParameter('hdId'), hdId: gemhoUtil.getParameter('hdId'),
sort: 'hdId,asc', sort: 'hdId,asc',
}).then((res)=>{ }).then((res)=>{
...@@ -113,9 +113,11 @@ window.addEventListener("load", function() { ...@@ -113,9 +113,11 @@ window.addEventListener("load", function() {
this.form.curSelectCheckContent = this.form.inspectionContent // 安全检查内容 this.form.curSelectCheckContent = this.form.inspectionContent // 安全检查内容
this.form.hdName = this.form.hdName // 安全发现问题 this.form.hdName = this.form.hdName // 安全发现问题
// 详情图片设置 // 详情图片设置
if(this.form.hdRectificationPic){
this.fileList.push({ this.fileList.push({
content: 'data:image/jpg;base64,' + this.form.hdRectificationPic content: 'data:image/jpg;base64,' + this.form.hdRectificationPic
}) })
}
this.editAble = this.form.hdStatus === 0 || this.form.hdStatus === 2 || this.form.hdStatus === 3 this.editAble = this.form.hdStatus === 0 || this.form.hdStatus === 2 || this.form.hdStatus === 3
}) })
...@@ -192,9 +194,7 @@ window.addEventListener("load", function() { ...@@ -192,9 +194,7 @@ window.addEventListener("load", function() {
vant.Toast({ vant.Toast({
message: '操作成功', message: '操作成功',
}) })
if(!this.form.hdId){ // 添加时则 location.href="./yh-list.html"
location.reload()
}
}) })
}, },
formatDate(date, type) { formatDate(date, type) {
......
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