大表功能完成

This commit is contained in:
2025-05-10 19:21:50 +08:00
parent 0a0beb3e91
commit 25b5576274
40 changed files with 3506 additions and 194 deletions

View File

@@ -23,6 +23,16 @@ export default {
params
})
},
/**
* 查询单个测试项-id
* @returns 单个测试项数据
*/
getCaseOneById(id) {
return request({
url: `project/getCaseOneById?id=${id}`,
method: "get"
})
},
/**
* 添加测试用例
* @returns
@@ -88,5 +98,38 @@ export default {
method: "get",
params
})
},
/**
* 提交选择的行、列,被替换内容,替换内容,请求后端替换
* @returns
*/
replace(data) {
return request({
url: "/project/case/replace/",
method: "post",
data
})
},
/**
* 批量修改设计人员、执行人员、审核人员
* @returns
*/
personReplace(data = { selectRows: [], designPerson: "不替换", testPerson: "不替换", monitorPerson: "不替换" }) {
return request({
url: "/project/case/personReplace/",
method: "post",
data
})
},
/**
* 批量替换事件
* @returns
*/
exetimeReplace(data = { selectRows: [], exetime: "" }) {
return request({
url: "/project/case/timeReplace/",
method: "post",
data
})
}
}

View File

@@ -13,7 +13,7 @@ export default {
})
},
/**
* 查询单个设计需求
* 查询单个设计需求-传统
* @returns 单个设计需求数据
*/
getDesignDemandOne(params = {}) {
@@ -23,6 +23,16 @@ export default {
params
})
},
/**
* 查询单个设计需求-id
* @returns 单个设计需求数据
*/
getDesignOneById(id) {
return request({
url: `project/getDesignOneById?id=${id}`,
method: "get"
})
},
/**
* 编辑设计需求
* @returns 成功编辑或失败
@@ -88,5 +98,16 @@ export default {
method: "get",
params
})
},
/**
* 提交选择的行、列,被替换内容,替换内容,请求后端替换
* @returns
*/
replace(data) {
return request({
url: "/project/designDemand/replace/",
method: "post",
data
})
}
}

View File

@@ -24,6 +24,16 @@ export default {
params
})
},
/**
* 查询单个设计需求-根据id
* @returns 单个设计需求数据
*/
getDutOneById(id) {
return request({
url: `project/getDutOneById?id=${id}`,
method: "get"
})
},
/**
* 添加被测件
* @returns

View File

@@ -22,6 +22,16 @@ export default {
params
})
},
/**
* 查询单个测试项-id
* @returns 单个测试项数据
*/
getDemandOneById(id) {
return request({
url: `project/getTestDemandOneById?id=${id}`,
method: "get"
})
},
/**
* 添加被测件
* @returns
@@ -98,5 +108,16 @@ export default {
method: "post",
data: params
})
},
/**
* 提交选择的行、列,被替换内容,替换内容,请求后端替换
* @returns
*/
replace(data) {
return request({
url: "/project/testDemand/replace/",
method: "post",
data
})
}
}

View File

@@ -35,6 +35,18 @@ export default {
params
})
},
// ~~~~~~大表页面使用~~~~~~
/**
* 获取用户信息列表
* @returns
*/
getProjectList(project_id) {
return request({
url: "system/user/list",
method: "get",
params: { project_id }
})
},
// ~~~~~~usermanage~~~~~~页面的
/**
* 添加用户