Commit 707dd569 authored by xinzhedeai's avatar xinzhedeai

gemhoUtil.getParameter

parent 8bead5a4
......@@ -98,12 +98,12 @@ window.addEventListener("load", function() {
}
},
detail(){
var hdId = getParameter('companyId')
var hdId = gemhoUtil.getParameter('companyId')
http.get('/api/thHiddenDanger',{
page: 0,// 每次请求增加下一页
size: 1,
companyId: getParameter('companyId'),
hdId: getParameter('hdId'),
companyId: gemhoUtil.getParameter('companyId'),
hdId: gemhoUtil.getParameter('hdId'),
sort: 'hdId,asc',
}).then((res)=>{
console.log('响应结果', res.content)
......@@ -163,7 +163,7 @@ window.addEventListener("load", function() {
formData.append(key, this.form[key]);
}
formData.append('companyId', getParameter('companyId'))
formData.append('companyId', gemhoUtil.getParameter('companyId'))
formData.delete('hdPic');
formData.delete('hdRectificationPic');
......@@ -187,9 +187,12 @@ window.addEventListener("load", function() {
http.postFile(url, formData).then((res) => {
console.log('添加结果', res)
// setTimeout(()=>{
vant.Toast({
message: '操作成功',
})
// }, 0)
if(!this.form.hdId){ // 添加时则
location.reload()
}
......
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