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,15 +26,13 @@
:label="$t('load_test.enable')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
<el-switch
size="mini"
v-model="row.enable"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</template>
<span v-else>{{ row.enable }}</span>
<el-switch
:disabled="!row.edit"
size="mini"
v-model="row.enable"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</template>
</el-table-column>
<el-table-column
@ -112,15 +110,13 @@
:label="$t('load_test.enable')"
show-overflow-tooltip>
<template slot-scope="{row}">
<template v-if="row.edit">
<el-switch
size="mini"
v-model="row.enable"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</template>
<span v-else>{{ row.enable }}</span>
<el-switch
:disabled="!row.edit"
size="mini"
v-model="row.enable"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
</template>
</el-table-column>
<el-table-column