This commit is contained in:
fit2-zhao 2020-10-09 16:03:21 +08:00
commit a429bd8d1b
4 changed files with 4 additions and 8 deletions

View File

@ -39,8 +39,7 @@
:disabled="!row.edit || readOnly"
size="mini"
v-model="row.enable"
active-color="#13ce66"
inactive-color="#ff4949">
inactive-color="#DCDFE6">
</el-switch>
</template>
</el-table-column>

View File

@ -37,8 +37,7 @@
<el-table-column prop="status" :label="$t('commons.status')">
<template v-slot:default="scope">
<el-switch v-model="scope.row.status"
active-color="#13ce66"
inactive-color="#ff4949"
inactive-color="#DCDFE6"
active-value="ACTIVE"
inactive-value="DISABLED"
@change="changeSwitch(scope.row)"

View File

@ -16,8 +16,7 @@
<el-table-column prop="status" :label="$t('test_resource_pool.enable_disable')">
<template v-slot:default="scope">
<el-switch v-model="scope.row.status"
active-color="#13ce66"
inactive-color="#ff4949"
inactive-color="#DCDFE6"
active-value="VALID"
inactive-value="INVALID"
@change="changeSwitch(scope.row)"

View File

@ -19,8 +19,7 @@
<el-table-column prop="status" :label="$t('commons.status')" width="120">
<template v-slot:default="scope">
<el-switch v-model="scope.row.status"
active-color="#13ce66"
inactive-color="#ff4949"
inactive-color="#DCDFE6"
active-value="1"
inactive-value="0"
@change="changeSwitch(scope.row)"