Merge branch 'dev-3.7' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.8

This commit is contained in:
zhangyu
2023-06-26 10:38:11 +08:00
3 changed files with 9 additions and 3 deletions

View File

@@ -37,9 +37,9 @@
</template>
<template slot-scope="scope" :column="item">
<span v-if="item.prop==='varType'">
<template v-if="scope.row[item.prop] == 0 ">None</template>
<template v-if="scope.row[item.prop] == 1 ">Asset</template>
<template v-if="scope.row[item.prop] == 2 ">Endpoint</template>
<template v-if="scope.row[item.prop] == 0 ">{{$t('project.topology.none')}}</template>
<template v-if="scope.row[item.prop] == 1 ">{{$t('asset.asset')}}</template>
<template v-if="scope.row[item.prop] == 2 ">{{$t('asset.endpoint')}}</template>
</span>
<template v-else-if="item.prop === 'name'">
<copy :copyData='scope.row[item.prop]' :showInfo='scope.row[item.prop]'>

View File

@@ -281,6 +281,9 @@ export default {
event.cancelBubble = true
}
this.checked = this.checked.filter(dcId => dcId !== id)
const checkedCount = this.checked.length
this.checkAll = checkedCount === this.dataCenter.length
this.isIndeterminate = checkedCount > 0 && checkedCount < this.dataCenter.length
},
// 开始任务
startTask () {

View File

@@ -272,6 +272,9 @@ export default {
event.cancelBubble = true
}
this.checked = this.checked.filter(dcId => dcId !== id)
const checkedCount = this.checked.length
this.checkAll = checkedCount === this.dataCenter.length
this.isIndeterminate = checkedCount > 0 && checkedCount < this.dataCenter.length
},
// 开始任务
startTask () {