| | |
| | | </el-radio-group> |
| | | <!-- 操作按钮区 --> |
| | | <el-space v-if="activeRadio !== 'task'"> |
| | | <el-button type="primary" :icon="Plus" @click="handleAdd">新建</el-button> |
| | | <el-button type="primary" :icon="Plus" @click="handleAdd(undefined)">新建</el-button> |
| | | <el-button type="danger" :icon="Delete" @click="handleDelete">删除</el-button> |
| | | <!-- <el-button type="info" plain :icon="Download">导出</el-button> --> |
| | | </el-space> |
| | |
| | | |
| | | // 新增、编辑 |
| | | const handleAdd = (row) => { |
| | | console.log(row) |
| | | const type = row === undefined ? 'add' : 'edit' |
| | | nextTick(() => { |
| | | if (tabName.value === 'task') { |