| | |
| | | <el-input v-model="queryParams.pointName" placeholder="输入点位名称" clearable @clear="handleQuery" @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位" prop="unit"> |
| | | <el-select |
| | | v-model="queryParams.unitId" |
| | | placeholder="请选择单位" |
| | | clearable |
| | | @change="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="unit in unitList" |
| | | :key="unit.id" |
| | | :label="unit.value" |
| | | :value="unit.id" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | |
| | | import { unitSelect } from "@/api/platform/unit"; |
| | | import { getCascader } from '@/api/platform/region' |
| | | import { cascader } from '@/api/system/dept' |
| | | |
| | | export default { |
| | | name: "Point", |
| | | dicts: ['point_tag', 'area_code'], |
| | |
| | | handleEditBatch() { |
| | | this.batchOpen = true; |
| | | }, |
| | | |
| | | // 运维公司下拉数据 |
| | | selectUnit() { |
| | | workList(this.queryParams).then(res => { |
| | | this.unitList = res.data; |
| | | }) |
| | | }, |
| | | // 获取区县级联 |
| | | getCascader() { |
| | | getCascader().then(res => { |