代码提交

This commit is contained in:
userName 2024-02-22 11:16:25 +08:00
parent dfd22a45b5
commit dd676d103d
2 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
import request from '@/utils/request'
export function queryGanttList(query) {
export function selectList(query) {
return request({
url: "/mts/planDetail/queryGanttList",
url: "/mts/planDetail/selectList",
method: "get",
params: query,
});

View File

@ -162,7 +162,7 @@
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import dayjs from 'dayjs'
import { listPlanDetail, getPlanDetail, delPlanDetail, addPlanDetail, updatePlanDetail } from "@/api/mts/planDetail";
import { listPlanDetail, getPlanDetail, delPlanDetail, addPlanDetail, updatePlanDetail, selectList } from "@/api/mts/planDetail";
import { getPlanMain } from "@/api/mts/planMain";
import { queryByBo } from "@/api/mts/planrecord";
import { addPlanRecord, updatePlanRecord } from "@/api/mts/planRecord";
@ -319,8 +319,8 @@ function getList() {
}
/** 查询生产计划明细下拉树结构 */
function getTreeselect() {
listPlanDetail().then(response => {
async function getTreeselect() {
selectList().then(response => {
planDetailOptions.value = [];
const data = { id: 0, name: '顶级节点', children: [] };
data.children = proxy.handleTree(response.data, "id", "parentId");