diff --git a/src/api_mangage/key.js b/src/api_mangage/key.js index 43829b8..506dd97 100644 --- a/src/api_mangage/key.js +++ b/src/api_mangage/key.js @@ -20,7 +20,7 @@ export function keyListApi(pageNum, pageSize) { */ export function getKeyByIdApi(id) { return request({ - url: `/thirdPartyApi/get?id=${id}`, + url: `/thirdPartyApi/getByServiceId?serviceId=${id}`, method: 'get' }) } diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 869d3c2..9e33598 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -8,7 +8,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { Breadcrumb: typeof import('./../components/Breadcrumb/index.vue')['default'] - copy: typeof import('./../components/EditPosition copy.vue')['default'] CutImg: typeof import('./../components/cutImg.vue')['default'] CutImg1: typeof import('./../components/cutImg1.vue')['default'] EditPosition: typeof import('./../components/EditPosition.vue')['default'] diff --git a/src/views/apiManage/index.vue b/src/views/apiManage/index.vue index 65514f4..4bd4b74 100644 --- a/src/views/apiManage/index.vue +++ b/src/views/apiManage/index.vue @@ -51,6 +51,15 @@ {{ getDate(scope.row.createTime) }} + + + { const res = await modelAllList(PageNum, PageSize); const modelIds = await personMouldIdList(); let idIndx = [] - res.data.list.forEach((ele, idx) => { - modelIds.data.forEach((item) => { - if (ele.id === item.personMouldId) { - idIndx.push(idx) - } + if(modelIds.data && modelIds.data.length > 0) { + res.data.list.forEach((ele, idx) => { + modelIds.data.forEach((item) => { + if (ele.id === item.personMouldId) { + idIndx.push(idx) + } + }) }) - }) - console.log(res, "res"); + } tableData.value = res.data.list; total.value = res.data.total * 1; // 选中关联模版