This commit is contained in:
Captain.B 2020-02-28 18:00:24 +08:00
parent 2e8055f7f3
commit be926e29bd
1 changed files with 14 additions and 18 deletions

View File

@ -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')"