switch
This commit is contained in:
parent
2e8055f7f3
commit
be926e29bd
|
@ -26,16 +26,14 @@
|
|||
:label="$t('load_test.enable')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="{row}">
|
||||
<template v-if="row.edit">
|
||||
<el-switch
|
||||
:disabled="!row.edit"
|
||||
size="mini"
|
||||
v-model="row.enable"
|
||||
active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</template>
|
||||
<span v-else>{{ row.enable }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('load_test.ip')"
|
||||
|
@ -112,16 +110,14 @@
|
|||
:label="$t('load_test.enable')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="{row}">
|
||||
<template v-if="row.edit">
|
||||
<el-switch
|
||||
:disabled="!row.edit"
|
||||
size="mini"
|
||||
v-model="row.enable"
|
||||
active-color="#13ce66"
|
||||
inactive-color="#ff4949">
|
||||
</el-switch>
|
||||
</template>
|
||||
<span v-else>{{ row.enable }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('load_test.param_value')"
|
||||
|
|
Loading…
Reference in New Issue