| | |
| | | }); |
| | | //查询监控点 |
| | | const pointList = ref(); |
| | | const cascaderOption = { label: 'pointName', value: 'id', children: 'childrenList', checkStrictly: true, expandTrigger: 'hover', emitPath: false }; //级联选择器配置 |
| | | const getPoint = async () => { |
| | | await pointApi().search({limit: 100, page: 1}).then((res) => { |
| | | pointList.value = res.data.list |
| | | await pointApi().getParentPoint().then((res) => { |
| | | pointList.value = res.data |
| | | }) |
| | | } |
| | | |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="选择监控点" prop="pointId"> |
| | | <el-select v-model="form.pointId" :placeholder="inpTip+formLabel.pointId"> |
| | | <el-option |
| | | v-for="(item,index) in pointList" |
| | | :label="item.pointName" |
| | | :value="item.id" |
| | | :key="index" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-cascader v-model="form.pointId" :options="pointList" :show-all-levels="false" :props="cascaderOption" /> |
| | | </el-form-item> |
| | | <el-form-item label="安装日期" prop="installDate"> |
| | | <el-date-picker |
| | |
| | | } |
| | | .form-box{ |
| | | justify-content: normal; |
| | | :deep(.el-cascader){ |
| | | flex-grow: 1; |
| | | } |
| | | } |
| | | </style> |
| | | |