| | |
| | | filterable |
| | | placeholder="请选择"> |
| | | <el-option |
| | | v-for="(item, index) in pointList" |
| | | v-for="(item, index) in pointList2" |
| | | :key="index" |
| | | :label="item.pointName" |
| | | :value="item.pointNo"/> |
| | |
| | | import * as DaPoint from '@/api/data/da/point' |
| | | import * as TagApi from '@/api/data/channel/tag' |
| | | import {DICT_TYPE, getDictOptions, getIntDictOptions} from "@/utils/dict"; |
| | | import {getPointSimpleList} from "@/api/data/da/point"; |
| | | |
| | | defineOptions({name: 'DataDaPointForm'}) |
| | | |
| | |
| | | }]) |
| | | const queryParams = reactive({ |
| | | pointTypes: "MEASURE,CONSTANT", |
| | | }) |
| | | const pointList2 = ref([{ |
| | | pointName: '', |
| | | pointNo: '' |
| | | }]) |
| | | const queryParams2 = reactive({ |
| | | pointTypes: "MEASURE,CONSTANT,CALCULATE", |
| | | }) |
| | | const operatorList = ref(['+', '-', '*', '/', '&', '|', '!', '>', '<']) |
| | | const formData = ref({ |
| | |
| | | resetForm() |
| | | getSourceOption() |
| | | getPointList() |
| | | getPointList2() |
| | | // 修改时,设置数据 |
| | | if (id) { |
| | | formLoading.value = true |
| | |
| | | } |
| | | |
| | | const getPointList = async () => { |
| | | pointList.value = await DaPoint.getPointList(queryParams) |
| | | pointList.value = await DaPoint.getPointSimpleList(queryParams) |
| | | } |
| | | |
| | | const getPointList2 = async () => { |
| | | pointList2.value = await DaPoint.getPointSimpleList(queryParams2) |
| | | } |
| | | |
| | | const getInfo = async (id) => { |