调整源状态开关列

This commit is contained in:
buvta
2020-11-07 11:19:53 +08:00
parent 1f25219cdc
commit 4d192a4c3a
2 changed files with 5 additions and 2 deletions

View File

@@ -33,6 +33,7 @@
</el-table-column>
<el-table-column
prop="isActive"
width="120"
:filters = "[{text:'启用', value: 1}, {text:'停用', value: 0}]"
:filter-method="(value, row) => value === row.isActive"
label="启用">
@@ -41,7 +42,7 @@
v-model="scope.row.isActive"
:active-value="1"
:inactive-value="0"
@change='isActiveChangeEvent(scope.row)'>
@click.native.stop='isActiveChangeEvent(scope.row)'>
</el-switch>
</template>
</el-table-column>

View File

@@ -42,6 +42,8 @@
</el-table-column>
<el-table-column
prop="isActive"
width="120"
align="center"
:filters = "[{text:'启用', value: 1}, {text:'停用', value: 0}]"
:filter-method="(value, row) => value === row.isActive"
label="启用">
@@ -50,7 +52,7 @@
v-model="scope.row.isActive"
:active-value="1"
:inactive-value="0"
@change='isActiveChangeEvent(scope.row)'>
@click.native.stop='isActiveChangeEvent(scope.row)'>
</el-switch>
</template>
</el-table-column>