fix: 征求意见填写意见页面中,点击提交按钮后将当前填写的内容同步主组件中
This commit is contained in:
@@ -147,16 +147,38 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
closePage(){
|
closePage(){
|
||||||
window.opener = null;
|
this.$refs['formAdd'].validate((valid) => {
|
||||||
window.open("about:blank", "_top").close()
|
if (valid) {
|
||||||
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
|
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
|
||||||
window.location.href = "about:blank";
|
var form = {
|
||||||
window.close();
|
id: id,
|
||||||
} else {
|
oldText: this.opinionContent.oldText,
|
||||||
window.opener = null;
|
newText: this.opinionContent.newText,
|
||||||
window.open("", "_self");
|
reason: this.opinionContent.reason,
|
||||||
window.close();
|
chapterNumber: this.opinionContent.partCode,
|
||||||
}
|
chapterName: this.opinionContent.chapterName,
|
||||||
|
}
|
||||||
|
this.$store.commit('SET_REFRESH_FLAG', true)
|
||||||
|
localStorage.setItem('bzzqyjForm', JSON.stringify(form))
|
||||||
|
localStorage.setItem('freshClueNum', new Date().getTime())
|
||||||
|
this.opinionContent.partCode = ''
|
||||||
|
this.opinionContent.reason = ''
|
||||||
|
this.opinionContent.oldText = ''
|
||||||
|
this.opinionContent.newText = ''
|
||||||
|
this.opinionContent.chapterName = ''
|
||||||
|
|
||||||
|
window.opener = null;
|
||||||
|
window.open("about:blank", "_top").close()
|
||||||
|
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
|
||||||
|
window.location.href = "about:blank";
|
||||||
|
window.close();
|
||||||
|
} else {
|
||||||
|
window.opener = null;
|
||||||
|
window.open("", "_self");
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user