Merge remote-tracking branch 'origin/master'
| | |
| | | return request.get({ url: '/data/da/point/list', params }) |
| | | } |
| | | |
| | | // 查询DaPoint simpleList |
| | | export const getPointSimpleList = (params: DaPointPageReqVO) => { |
| | | return request.get({ url: '/data/da/point/simple-list', params }) |
| | | } |
| | | |
| | | // 查询DaPoint详情 |
| | | export const getDaPoint = (id: number) => { |
| | | return request.get({ url: `/data/da/point/info/${id}`}) |
| | |
| | | export interface MmPredictItemPageReqVO extends PageParam { |
| | | itemno?: string, |
| | | itemname?: string, |
| | | modulename?: string, |
| | | } |
| | | |
| | | // 查询MmPredictItem列表 |
| | |
| | | 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) => { |
| | |
| | | label-width="68px" |
| | | @submit.prevent |
| | | > |
| | | <el-form-item label="模型名称" prop="pyName"> |
| | | <el-form-item label="模型名称" prop="pyChineseName"> |
| | | <el-input |
| | | v-model="queryParams.pyChineseName" |
| | | placeholder="请输入模型名称" |
| | | clearable |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="模型文件" prop="pyName"> |
| | | <el-input |
| | | v-model="queryParams.pyName" |
| | | placeholder="请输入模型名称" |
| | | placeholder="请输入模型文件名称" |
| | | clearable |
| | | class="!w-240px" |
| | | /> |
| | |
| | | :data="list" |
| | | row-key="id" |
| | | > |
| | | <el-table-column prop="pyChineseName" label="模型名称" header-align="center" align="center" min-width="100" /> |
| | | <el-table-column prop="pyName" label="模型文件" header-align="center" align="center" min-width="300"/> |
| | | <el-table-column prop="pyChineseName" label="模型名称" header-align="center" align="left" min-width="100" /> |
| | | <el-table-column prop="pyName" label="模型文件" header-align="center" align="left" min-width="300"/> |
| | | <el-table-column prop="pyType" label="模型类型" :formatter="(r,c,v) => getDictLabel(DICT_TYPE.MODEL_TYPE,v)"/> |
| | | <el-table-column prop="menuName" label="所属菜单" min-width="120px"/> |
| | | <el-table-column prop="groupName" label="所属组" min-width="120px"/> |
| | |
| | | const queryParams = reactive({ |
| | | page: 1, |
| | | limit: 10, |
| | | pyChineseName: '', |
| | | pyName: '', |
| | | label: '' |
| | | }) |
| | |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="管网名称" prop="modulename"> |
| | | <el-input |
| | | v-model="queryParams.modulename" |
| | | placeholder="请输入管网名称" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button @click="handleQuery"> |
| | | <Icon icon="ep:search" class="mr-5px"/> |
| | |
| | | <dict-tag :type="DICT_TYPE.PRED_GRANULARITY" :value="scope.row.granularity" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否融合" align="center" prop="isfuse"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.isfuse" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否检查" align="center" prop="workchecked"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.workchecked" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="管网名称" align="center" prop="modulename" /> |
| | | <el-table-column label="是否启用" align="center" prop="status"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.COM_IS_INT" :value="scope.row.status" /> |
| | |
| | | pageSize: 10, |
| | | itemno: undefined, |
| | | itemname: undefined, |
| | | modulename: undefined, |
| | | }) |
| | | const isList = ref([ |
| | | { |