fix: 征求意见填写意见页面中,点击提交按钮后将当前填写的内容同步主组件中
This commit is contained in:
@@ -147,6 +147,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
closePage(){
|
closePage(){
|
||||||
|
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.opener = null;
|
||||||
window.open("about:blank", "_top").close()
|
window.open("about:blank", "_top").close()
|
||||||
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
|
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
|
||||||
@@ -158,6 +178,8 @@
|
|||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const attId = this.$route.query.attId
|
const attId = this.$route.query.attId
|
||||||
|
|||||||
Reference in New Issue
Block a user