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}`}) |
| | |
| | | import request from '@/config/axios' |
| | | |
| | | export const getPage = async (params: PageParam) => { |
| | | export const getPage = async (params) => { |
| | | return await request.get({ url: '/model/mpk/project/page', params }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | export const packageProject = (params) => { |
| | | return request.download({ url: '/model/mpk/file/packageModel', params }) |
| | | // 超时时间两分钟 |
| | | return request.download({ url: '/model/mpk/file/packageModel', params, timeout: 2 * 60 * 1000 }) |
| | | } |
| | | |
| | | export const list = () => { |
| | | return request.get({ url: '/model/mpk/project/list'}) |
| | | } |
| | | |
| | | export const getProjectModel = async (params: PageParam) => { |
| | | export const getProjectModel = async (params) => { |
| | | return await request.get({ url: '/model/mpk/project/getProjectModel', params }) |
| | | } |
| | |
| | | export interface MmPredictItemPageReqVO extends PageParam { |
| | | itemno?: string, |
| | | itemname?: string, |
| | | itemtypeid?: 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: '' |
| | | }) |
| | |
| | | projectId: undefined, |
| | | projectName: undefined, |
| | | projectCode: undefined, |
| | | ids: undefined, |
| | | version: undefined, |
| | | }) |
| | | |
| | | /** 打开弹窗 */ |
| | | const open = async (projectId,projectName,projectCode,ids) => { |
| | | const open = async (projectId,projectName,projectCode) => { |
| | | dialogVisible.value = true |
| | | formData.projectId = projectId |
| | | formData.projectName = projectName |
| | | formData.projectCode = projectCode |
| | | formData.ids = ids |
| | | formData.log = undefined |
| | | formData.version = 'V' |
| | | } |
| | |
| | | import ProjectForm from './ProjectForm.vue' |
| | | import ProjectPackage from './ProjectPackage.vue' |
| | | import RelevanceModel from './ProjectPackageModelDialog.vue' |
| | | import * as projectApi from "@/api/model/mpk/project"; |
| | | |
| | | defineOptions({name: 'MpkProject'}) |
| | | |
| | |
| | | const handleCommand = (command: string, row) => { |
| | | switch (command) { |
| | | case 'packageModel': |
| | | packageModel(row.id, row.projectName, row.projectCode, row.models) |
| | | packageModel(row.id, row.projectName, row.projectCode) |
| | | break |
| | | default: |
| | | break |
| | |
| | | |
| | | //打包 |
| | | const projectPackageRef = ref(); |
| | | const packageModel = (projectId, projectName, projectCode, models) => { |
| | | let ids = models.map(e => e.id); |
| | | if (ids && ids.length > 0) { |
| | | projectPackageRef.value.open(projectId, projectName, projectCode, ids.join(",")); |
| | | } else { |
| | | const packageModel = async (projectId, projectName, projectCode) => { |
| | | //校验是否关联模型 |
| | | const data = await projectApi.getProjectModel({page: 1, pageSize: 1, projectId: projectId}) |
| | | if (data.total === 0) { |
| | | message.error("请先为项目添加模型!") |
| | | return |
| | | } |
| | | projectPackageRef.value.open(projectId, projectName, projectCode); |
| | | } |
| | | |
| | | /** 搜索按钮操作 */ |
| | |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="类型" prop="itemtypeid"> |
| | | <el-select |
| | | v-model="queryParams.itemtypeid" |
| | | placeholder="请选择" |
| | | clearable |
| | | class="!w-240px"> |
| | | <el-option |
| | | v-for="item in itemTypeList" |
| | | :key="item.id" |
| | | :label="item.itemtypename" |
| | | :value="item.id"/> |
| | | </el-select> |
| | | </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" /> |
| | |
| | | <script lang="ts" setup> |
| | | import MmPredictItemForm from './MmPredictItemForm.vue' |
| | | import MmPredictItemChart from './MmPredictItemChart.vue' |
| | | import * as MmItemType from '@/api/model/pre/type' |
| | | import * as MmPredictItem from '@/api/model/pre/item' |
| | | import {DICT_TYPE} from "@/utils/dict"; |
| | | |
| | |
| | | const message = useMessage() // 消息弹窗 |
| | | const {t} = useI18n() // 国际化 |
| | | |
| | | const itemTypeList = ref([]) |
| | | const loading = ref(true) // 列表的加载中 |
| | | const total = ref(0) // 列表的总页数 |
| | | const list = ref([]) // 列表的数据 |
| | |
| | | pageSize: 10, |
| | | itemno: undefined, |
| | | itemname: undefined, |
| | | itemtypeid: undefined, |
| | | modulename: undefined, |
| | | }) |
| | | const isList = ref([ |
| | | { |
| | |
| | | /** 初始化 **/ |
| | | onMounted(async () => { |
| | | await getList() |
| | | // 获取预测项类型列表 |
| | | itemTypeList.value = await MmItemType.getItemTypeList() |
| | | }) |
| | | </script> |
| | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="模型名称" prop="modelName"> |
| | | <el-input v-model="formData.modelName" placeholder="请输入模型名称" :disabled="true" /> |
| | | <el-input v-model="formData.modelName" placeholder="请输入模型名称"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list"> |
| | | <el-table-column label="模型编号" align="center" prop="modelCode" min-width="100"/> |
| | | <el-table-column label="模型名称" align="center" prop="modelName" min-width="100"/> |
| | | <el-table-column label="模型类型" align="center" prop="modelType" min-width="100"/> |
| | | <el-table-column label="模型名称" header-align="center" align="left" prop="modelName" min-width="100"/> |
| | | <el-table-column label="模型类型" align="center" prop="modelType" min-width="100"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.SCHE_MODEL_TYPE" :value="scope.row.modelType" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="类名" header-align="center" align="left" prop="className" min-width="200"/> |
| | | <el-table-column label="方法名" align="center" prop="methodName" min-width="100"/> |
| | | <el-table-column label="参数数量" align="center" prop="portLength" min-width="100"/> |