This commit is contained in:
Sakura9701
2022-10-13 18:09:27 +08:00
parent 55c45c7039
commit c3ad633a66
9 changed files with 71 additions and 34 deletions

View File

@@ -26,7 +26,7 @@
{{ (pageIndex - 1) * pageSize + scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="state" header-align="center" align="center" label="状态">
<el-table-column min-width="155px" prop="state" header-align="center" align="center" label="状态">
<template slot-scope="scope">
<el-switch :active-value=1 :inactive-value=0 style="display: block" v-model="scope.row.state"
@change="SwitchChange(scope.row)" active-color="#13ce66" inactive-color="#ff4949" active-text="上架"