Merge branch 'dev-3.7' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.8
This commit is contained in:
@@ -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]'>
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user