fix: 修复detection切换时间卡死的问题

This commit is contained in:
chenjinsong
2022-06-09 16:01:47 +08:00
parent f6e10a14a0
commit 5f63e278ff
2 changed files with 11 additions and 1 deletions

View File

@@ -114,6 +114,9 @@
<span v-else-if="item.prop === 'lastExecutionTime'"> <span v-else-if="item.prop === 'lastExecutionTime'">
{{scope.row.lastTime ? dateFormatByAppearance(scope.row.lastTime) : '-'}} {{scope.row.lastTime ? dateFormatByAppearance(scope.row.lastTime) : '-'}}
</span> </span>
<span v-else-if="item.prop === 'total'">
{{scope.row[item.prop] || 0}}
</span>
<span v-else>{{scope.row[item.prop] || '-'}}</span> <span v-else>{{scope.row[item.prop] || '-'}}</span>
</template> </template>
</el-table-column> </el-table-column>
@@ -320,6 +323,7 @@ export default {
this.delFlag = true this.delFlag = true
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') }) this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.dropDownQueryChange({ tempId: props.row.id }) this.dropDownQueryChange({ tempId: props.row.id })
this.$emit('reload')
} else { } else {
this.$message.error(response.msg) this.$message.error(response.msg)
} }

View File

@@ -568,7 +568,13 @@ export default {
dateTimeRangeChange (s, e, v) { dateTimeRangeChange (s, e, v) {
this.timeFilter = { startTime: s, endTime: e, dateRangeValue: v } this.timeFilter = { startTime: s, endTime: e, dateRangeValue: v }
}, },
search ({ q, metaList }) { search (param) {
let q
let metaList
if (param) {
q = param.q
metaList = param.metaList
}
this.initNoData() this.initNoData()
if (q) { if (q) {
this.q = q this.q = q