Bladeren bron

edit bug

ctt_dev_new
chutingting 1 jaar geleden
bovenliggende
commit
355081afc9
4 gewijzigde bestanden met toevoegingen van 19 en 9 verwijderingen
  1. +1
    -1
      src/api_mangage/key.js
  2. +0
    -1
      src/types/components.d.ts
  3. +10
    -0
      src/views/apiManage/index.vue
  4. +8
    -7
      src/views/apiManage/model.vue

+ 1
- 1
src/api_mangage/key.js Bestand weergeven

@@ -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'
})
}


+ 0
- 1
src/types/components.d.ts Bestand weergeven

@@ -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']


+ 10
- 0
src/views/apiManage/index.vue Bestand weergeven

@@ -51,6 +51,15 @@
{{ getDate(scope.row.createTime) }}
</template>
</el-table-column>
<el-table-column
prop="createTime"
label="时长(秒)"
align="center"
>
<template #default="scope">
{{ scope.row.remainingTimes }}
</template>
</el-table-column>

<el-table-column
fixed="right"
@@ -74,6 +83,7 @@

<el-dialog
v-model="dialogVisible"
v-if="dialogVisible"
:title="$t('businessMangage.addNew')"
width="35%"
:before-close="handleClose"


+ 8
- 7
src/views/apiManage/model.vue Bestand weergeven

@@ -99,14 +99,15 @@ const modelAllListFunc = async (PageNum, PageSize) => {
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;
// 选中关联模版


Laden…
Annuleren
Opslaan