fix: 征求意见填写意见页面中,点击提交按钮后将当前填写的内容同步主组件中
This commit is contained in:
@@ -147,16 +147,38 @@
|
||||
}
|
||||
},
|
||||
closePage(){
|
||||
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();
|
||||
}
|
||||
this.$refs['formAdd'].validate((valid) => {
|
||||
if (valid) {
|
||||
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
|
||||
var form = {
|
||||
id: id,
|
||||
oldText: this.opinionContent.oldText,
|
||||
newText: this.opinionContent.newText,
|
||||
reason: this.opinionContent.reason,
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user