|
@@ -155,7 +155,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
snapSchema () {
|
|
snapSchema () {
|
|
|
return {
|
|
return {
|
|
|
- list: getSnapPicResults,
|
|
|
|
|
|
|
+ list: this.getSnapPicResults,
|
|
|
condition: { cameraId: this.cameraId },
|
|
condition: { cameraId: this.cameraId },
|
|
|
cols: [
|
|
cols: [
|
|
|
{ prop: 'file', type: 'asset', on: this.onViewAsset, refresh: true },
|
|
{ prop: 'file', type: 'asset', on: this.onViewAsset, refresh: true },
|
|
@@ -181,6 +181,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ created () {
|
|
|
|
|
+ this.$timer = -1
|
|
|
|
|
+ },
|
|
|
|
|
+ beforeDestroy () {
|
|
|
|
|
+ clearTimeout(this.$timer)
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
onEditRemark (camera, { newVal, oldVal }) {
|
|
onEditRemark (camera, { newVal, oldVal }) {
|
|
|
if (newVal === oldVal) {
|
|
if (newVal === oldVal) {
|
|
@@ -238,6 +244,15 @@ export default {
|
|
|
this.cameraId = camera.id
|
|
this.cameraId = camera.id
|
|
|
this.$refs.resultDialog.show()
|
|
this.$refs.resultDialog.show()
|
|
|
},
|
|
},
|
|
|
|
|
+ getSnapPicResults (params) {
|
|
|
|
|
+ clearTimeout(this.$timer)
|
|
|
|
|
+ if (params.pageNum === 1) {
|
|
|
|
|
+ this.$timer = setTimeout(() => {
|
|
|
|
|
+ this.$refs.resultDialog?.getTable()?.refreshCurrentPageOnBackground()
|
|
|
|
|
+ }, 10000)
|
|
|
|
|
+ }
|
|
|
|
|
+ return getSnapPicResults(params)
|
|
|
|
|
+ },
|
|
|
onViewAsset ({ file }) {
|
|
onViewAsset ({ file }) {
|
|
|
this.$refs.previewDialog.show(file)
|
|
this.$refs.previewDialog.show(file)
|
|
|
}
|
|
}
|