Skip to content

Commit

Permalink
Merge pull request #61 from victorLV214/dev/YFCui
Browse files Browse the repository at this point in the history
dev/YFCui
  • Loading branch information
SarekCuimian authored Nov 28, 2024
2 parents 50f0430 + f97c05a commit 6d01030
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/project/defect.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function updateDefect(data) {
// 删除缺陷
export function delDefect(defectIds) {
return request({
url: '/dev-api/project/defect/' + defectIds,
url: '/dev-api/project/defect/${defectId}',
method: 'delete'
})
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/project/iteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function updateIteration(data) {
// 删除迭代
export function deleteIteration(iterationId) {
return request({
url: '/dev-api/project/iteration/' + iterationId,
url: `/dev-api/project/iteration/${iterationId}`,
method: 'delete'
})
}
Expand Down
9 changes: 4 additions & 5 deletions frontend/src/views/project/project/iterations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ import {listIteration, addIteration, updateIteration, exportIteration} from '@/a
import { listItem } from '@/api/project/item'
import * as echarts from 'echarts'
import {Delete, Download, Edit, Plus, Refresh, Search, TrendCharts} from "@element-plus/icons-vue";
import {delDefect} from "@/api/project/defect.js";
import {listRole} from "@/api/system/role.js";
import html2canvas from "html2canvas";
Expand All @@ -135,7 +134,7 @@ const wList = ref([])
const formRef = ref(null)
const form = ref({
iterationId: undefined,
// iterationId: undefined,
projectId: projectId,
name: '',
startDate: '',
Expand Down Expand Up @@ -208,9 +207,9 @@ const delIteration = async (row) => {
}
)
loading.value = true
await delDefect(row.defectId)
await delIteration(row.iterationId)
boolVis1.value = false
await getReqs()
await getList()
loading.value = false
}
Expand Down Expand Up @@ -375,7 +374,7 @@ const sF1 = () => {
const rF1 = () => {
formRef.value?.resetFields()
form.value = {
iterationId: undefined,
// iterationId: undefined,
projectId: projectId,
name: '',
startDate: '',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/project/project/requirements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<div class="rList">
<el-table v-loading="loading" :data="filteredReqList" style="width: 100%">
<el-table-column label="Title" align="center" prop="title"/>
<el-table-column label="Title" prop="title" width="250px"></el-table-column>
<el-table-column label="Description" align="center" prop="description" show-overflow-tooltip/>
<el-table-column label="Priority" align="center">
<template #default="{ row }">
Expand Down

0 comments on commit 6d01030

Please sign in to comment.