commit
This commit is contained in:
@@ -80,8 +80,6 @@
|
||||
},
|
||||
methods: {
|
||||
saveUserInfo () {
|
||||
this.$store.commit('SET_REFRESH_FLAG', true)
|
||||
return false
|
||||
this.$refs['formAdd'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
@@ -104,6 +102,7 @@
|
||||
}, res => {
|
||||
if (res.respCode === '200') {
|
||||
// 储存变量监听刷新页面
|
||||
this.$store.commit('SET_REFRESH_FLAG', true)
|
||||
localStorage.setItem('freshClueNum', new Date().getTime())
|
||||
this.isSubmit = false
|
||||
this.opinionContent.partCode = ''
|
||||
|
||||
@@ -401,13 +401,11 @@
|
||||
} else {
|
||||
localStorage.setItem('freshClueNum', new Date().getTime())
|
||||
this.freshClueNum = localStorage.getItem('freshClueNum') || '';
|
||||
|
||||
const that = this
|
||||
const watcherRefreshData = function(ev) {
|
||||
const { key: eventType, newValue } = ev
|
||||
if (eventType === 'refreshFlag' && eval(newValue) === true) {
|
||||
// 更新数据...
|
||||
console.log('更新数据')
|
||||
that.$store.commit('SET_REFRESH_FLAG', false)
|
||||
}
|
||||
}
|
||||
@@ -540,7 +538,8 @@
|
||||
},
|
||||
watch: {
|
||||
refreshFlag(val) {
|
||||
console.log('refresh刷新了')
|
||||
this.form.page = 1
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -561,12 +560,12 @@
|
||||
}
|
||||
}
|
||||
// 详情数据
|
||||
window.addEventListener("storage", ev => {
|
||||
if(ev.key === 'freshClueNum'){
|
||||
this.form.page = 1
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
// window.addEventListener("storage", ev => {
|
||||
// if(ev.key === 'freshClueNum'){
|
||||
// this.form.page = 1
|
||||
// this.getList()
|
||||
// }
|
||||
// })
|
||||
if (JSON.parse(this.lawsStand.wkfiles).length) {
|
||||
this.fileInfoLists = JSON.parse(this.lawsStand.wkfiles)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user