| | |
| | | <template> |
| | | <basic-container> |
| | | <el-form ref="queryParamsRef" :model="searchParams" class="command-page-history-search"> |
| | | <el-form-item label="场景配置名称" prop="sceneName"> |
| | | <el-form-item label="配置名称" prop="sceneName"> |
| | | <el-input |
| | | class="command-input" |
| | | v-model="searchParams.sceneName" |
| | |
| | | </el-form> |
| | | |
| | | <div class="command-table-toolbar"> |
| | | <el-button :icon="Plus" color="#284FE3" type="primary" @click="openForm('add')">新增</el-button> |
| | | <el-button :icon="Plus" color="#284FE3" type="primary" @click="openForm('add')">新增配置</el-button> |
| | | <el-button :icon="Delete" color="#1A2652" :disabled="!selectedIds.length" @click="handleDelete()">删除</el-button> |
| | | </div> |
| | | |
| | |
| | | <el-table-column type="selection" width="46" /> |
| | | <el-table-column type="index" show-overflow-tooltip width="64" label="序号" /> |
| | | |
| | | <el-table-column prop="sceneName" show-overflow-tooltip label="场景配置名称" /> |
| | | <el-table-column prop="sceneName" show-overflow-tooltip label="配置名称" /> |
| | | <el-table-column prop="sceneType" show-overflow-tooltip label="场景类型"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.sceneType, dictObj.CommandSceneType) }} |
| | |
| | | import { useRoute } from 'vue-router' |
| | | |
| | | const initSearchParams = () => ({ |
| | | sceneName: '', // 场景配置名称 |
| | | sceneName: '', // 配置名称 |
| | | sceneType: '', // 场景类型 |
| | | current: 1, // 当前页 |
| | | size: 10, // 每页大小 |