pjb
2025-07-28 81f958af697e8d35f0755c670d6c56d69bb14551
src/main/webapp/views/index.html
@@ -350,18 +350,18 @@
                            prop="status$"
                            label="状态">
                    </el-table-column>
<!--                    <el-table-column-->
<!--                            label="操作"-->
<!--                            type="template">-->
<!--                        <template slot-scope="scope">-->
<!--                            <el-button-->
<!--                                    :type="scope.row.status === 0 ? 'primary' : 'danger'"-->
<!--                                    size="small"-->
<!--                                    @click="toggleStatus(scope.$index, scope.row)">-->
<!--                                {{ scope.row.status === 0 ? '禁用' : '解除禁用' }}-->
<!--                            </el-button>-->
<!--                        </template>-->
<!--                    </el-table-column>-->
                    <el-table-column
                            label="操作"
                            type="template">
                        <template slot-scope="scope">
                            <el-button
                                    :type="scope.row.status === 0 ? 'primary' : 'danger'"
                                    size="small"
                                    @click="toggleStatus(scope.$index, scope.row)">
                                {{ scope.row.status === 0 ? '禁用' : '解除禁用' }}
                            </el-button>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
        </div>