|
@@ -87,12 +87,15 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
'options.queryParams': {
|
|
'options.queryParams': {
|
|
- immediate: true,
|
|
|
|
|
|
+ immediate: false,
|
|
handler: function() {
|
|
handler: function() {
|
|
console.log('watched options', this.options, this.propDefines, this.isFrontMaster)
|
|
console.log('watched options', this.options, this.propDefines, this.isFrontMaster)
|
|
if (!this.options.queryApi) return
|
|
if (!this.options.queryApi) return
|
|
this.resetQuery()
|
|
this.resetQuery()
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ formTranslateReady() {
|
|
|
|
+ this.resetQuery()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -107,7 +110,7 @@ export default {
|
|
...this.options.queryParams
|
|
...this.options.queryParams
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.dataList = res.rows
|
|
this.dataList = res.rows
|
|
- if (this.formTranslateReady) this.dataList.forEach(this.translateForm)
|
|
|
|
|
|
+ this.dataList.forEach(this.translateForm)
|
|
this.total = res.total
|
|
this.total = res.total
|
|
const displayStatus = this.getLatestApplyStatus()
|
|
const displayStatus = this.getLatestApplyStatus()
|
|
this.$emit('statusComputed', displayStatus)
|
|
this.$emit('statusComputed', displayStatus)
|