吉安感知网项目-前端
shuishen
2026-01-20 03badc23e1793a3f94b24b5fcd8b66a612a78b3a
feat:场景配置管理去除场景状态及其相关
1 files modified
22 ■■■■■ changed files
applications/drone-command/src/views/areaManage/sceneConfig/index.vue 22 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/views/areaManage/sceneConfig/index.vue
@@ -29,24 +29,6 @@
                </el-select>
            </el-form-item>
            <el-form-item label="场景状态" prop="status">
                <el-select
                    class="command-select"
                    popper-class="command-select-popper"
                    v-model="searchParams.status"
                    placeholder="请选择"
                    clearable
                    @change="handleSearch"
                >
                    <el-option
                        v-for="item in dictObj.sceneStatus"
                        :key="item.dictKey"
                        :label="item.dictValue"
                        :value="item.dictKey"
                    />
                </el-select>
            </el-form-item>
            <el-form-item class="history-search-actions">
                <el-button :icon="RefreshRight" @click="resetForm"></el-button>
                <el-button class="search-btn" :icon="Search" @click="handleSearch"></el-button>
@@ -118,7 +100,6 @@
const initSearchParams = () => ({
    sceneName: '', // 场景名称
    sceneType: '', // 场景类型
    status: '', // 场景状态
    current: 1, // 当前页
    size: 10, // 每页大小
})
@@ -187,13 +168,12 @@
    sceneType: [], // 场景类型
    deviceMode: [], // 设备模式
    areaType: [], // 区域类型
    sceneStatus: [], // 场景状态
})
provide('dictObj', dictObj)
// 获取字典
function getDictList() {
    getDictionaryByCode('CommandSceneType,deviceMode,areaType,sceneStatus').then(res => {
    getDictionaryByCode('CommandSceneType,deviceMode,areaType').then(res => {
        dictObj.value = res.data.data
    })
}