<template> <div class="debugging publicContainer"> <div> <el-button type="primary" @click="testOrder('3')">触发排水工单</el-button> <el-button type="primary" @click="testOrder('2')">触发燃气工单</el-button> </div> <div style="margin-top: 10px;"> 自动转工单: <el-switch v-model="switchVal" inline-prompt active-text="是" inactive-text="否" @change="handleSwitchChange" /> </div> </div> </template> <script setup name="debugging"> import { testWorkOrder } from '@/api/order'; const switchVal = ref(false); const testOrder = async type => { try { const res = await testWorkOrder({ orderType: type, }); } catch (error) { console.log('error', error); } }; const handleSwitchChange = val => { console.log('val', val); }; </script> <style lang="scss" scoped> .debugging { } </style>