| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">场景类型</div> |
| | | <div class="val">{{ getDictLabel(formData.sceneType, dictObj.sceneType) }}</div> |
| | | <div class="val">{{ getDictLabel(formData.sceneType, dictObj.CommandSceneType) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">设备数量</div> |
| | |
| | | <el-form-item label="场景类型" prop="sceneType"> |
| | | <el-select class="command-select" popper-class="command-select-popper" |
| | | v-model="searchParams.sceneType" placeholder="请选择" clearable @change="handleSearch"> |
| | | <el-option v-for="item in dictObj.sceneType" :key="item.dictKey" :label="item.dictValue" |
| | | <el-option v-for="item in dictObj.CommandSceneType" :key="item.dictKey" :label="item.dictValue" |
| | | :value="item.dictKey" /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <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.sceneType) }} |
| | | {{ getDictLabel(row.sceneType, dictObj.CommandSceneType) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="deviceCount" show-overflow-tooltip label="设备数量" /> |
| | |
| | | |
| | | // 获取字典 |
| | | function getDictList () { |
| | | getDictionaryByCode('areaType,sceneType').then(res => { |
| | | getDictionaryByCode('areaType,CommandSceneType').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |
| | |
| | | <el-table-column prop="sceneName" label="场景名称" /> |
| | | <el-table-column prop="sceneType" label="场景类型"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.sceneType, dictObj.sceneType) }} |
| | | {{ getDictLabel(row.sceneType, dictObj.CommandSceneType) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column prop="sceneName" label="场景名称" /> |
| | | <el-table-column prop="sceneType" label="场景类型"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.sceneType, dictObj.sceneType) }} |
| | | {{ getDictLabel(row.sceneType, dictObj.CommandSceneType) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | // 获取字典 |
| | | function getDictList () { |
| | | getDictionaryByCode('areaType,sceneType').then(res => { |
| | | getDictionaryByCode('areaType,CommandSceneType').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |
| | |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <div class="label">场景类型</div> |
| | | <div class="val">{{ getDictLabel(formData.sceneType, dictObj.sceneType) }}</div> |
| | | <div class="val">{{ getDictLabel(formData.sceneType, dictObj.CommandSceneType) }}</div> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <div class="label">负责人</div> |
| | |
| | | <el-form-item label="场景类型" prop="sceneType"> |
| | | <el-select class="command-select" popper-class="command-select-popper" |
| | | v-model="formData.sceneType" placeholder="请选择" clearable> |
| | | <el-option v-for="item in dictObj.sceneType" :key="item.dictKey" :label="item.dictValue" |
| | | <el-option v-for="item in dictObj.CommandSceneType" :key="item.dictKey" :label="item.dictValue" |
| | | :value="item.dictKey" /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | @change="handleSearch" |
| | | > |
| | | <el-option |
| | | v-for="item in dictObj.sceneType" |
| | | v-for="item in dictObj.CommandSceneType" |
| | | :key="item.dictKey" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey" |
| | |
| | | <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.sceneType) }} |
| | | {{ getDictLabel(row.sceneType, dictObj.CommandSceneType) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip label="指挥点位置"> |
| | |
| | | |
| | | // 获取字典 |
| | | function getDictList() { |
| | | getDictionaryByCode('sceneType,deviceMode,areaType,sceneStatus').then(res => { |
| | | getDictionaryByCode('CommandSceneType,deviceMode,areaType,sceneStatus').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |