Commit 707dd569 authored by xinzhedeai's avatar xinzhedeai

gemhoUtil.getParameter

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