| | |
| | | <el-row :gutter="35"> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> |
| | | <el-form-item label="设备区域名称" prop="region"> |
| | | <el-input |
| | | class="input-length" |
| | | v-model.trim="facilityAreaForm.region" |
| | | placeholder="请输入设备区域名称" |
| | | clearable |
| | | ></el-input> |
| | | <el-input class="input-length" v-model.trim="facilityAreaForm.region" placeholder="请输入设备区域名称" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> |
| | | <el-form-item label="设备区域类型" prop="regionTypeId"> |
| | | <el-select |
| | | class="input-length" |
| | | v-model="facilityAreaForm.regionTypeId" |
| | | placeholder="请选择设备区域类型" |
| | | clearable |
| | | filterable |
| | | > |
| | | <el-select class="input-length" v-model="facilityAreaForm.regionTypeId" placeholder="请选择设备区域类型" clearable filterable> |
| | | <el-option v-for="item in facilityAreaTypeList" :key="item.id" :label="item.regionType" :value="item.id"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="isShowFacilityAreaDialog = !isShowFacilityAreaDialog" size="default">取 消</el-button> |
| | | <el-button type="primary" @click="submitFacilityArea" v-throttle size="default">确 实</el-button> |
| | | <el-button type="primary" @click="submitFacilityArea" v-throttle size="default">确 定</el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | }); |
| | | |
| | | //打开模态框 |
| | | const openFacilityAreaDialog = ( |
| | | type: string, |
| | | value: { id: number; region: string; regionTypeId: number }, |
| | | facilityAreaTypeList: Array<facilityAreaTypeState> |
| | | ) => { |
| | | const openFacilityAreaDialog = (type: string, value: { id: number; region: string; regionTypeId: number }, facilityAreaTypeList: Array<facilityAreaTypeState>) => { |
| | | state.isShowFacilityAreaDialog = true; |
| | | state.facilityAreaTypeList = facilityAreaTypeList.filter((item) => item.regionType !== '所有类型'); |
| | | setTimeout(() => { |