fix: --bug=1005746 --user=陈建星 【github#5354】非用例评审人员可通过脑图评审用例 https://www.tapd.cn/55049933/s/1043022
This commit is contained in:
parent
58e4307461
commit
5381688862
|
@ -48,10 +48,10 @@ public class TestReviewTestCaseController {
|
|||
testReviewTestCaseService.editTestCaseBatchStatus(request);
|
||||
}
|
||||
|
||||
@PostMapping("/minder/edit")
|
||||
@PostMapping("/minder/edit/{reviewId}")
|
||||
@MsAuditLog(module = "track_test_case_review", type = OperLogConstants.ASSOCIATE_CASE, content = "#msClass.getLogDetails(#testCases)", msClass = TestReviewTestCaseService.class)
|
||||
public void editTestCaseForMinder(@RequestBody List<TestCaseReviewTestCase> testCases) {
|
||||
testReviewTestCaseService.editTestCaseForMinder(testCases);
|
||||
public void editTestCaseForMinder(@PathVariable("reviewId") String reviewId, @RequestBody List<TestCaseReviewTestCase> testCases) {
|
||||
testReviewTestCaseService.editTestCaseForMinder(reviewId, testCases);
|
||||
}
|
||||
|
||||
@PostMapping("/list/minder")
|
||||
|
|
|
@ -229,7 +229,8 @@ public class TestReviewTestCaseService {
|
|||
}
|
||||
}
|
||||
|
||||
public void editTestCaseForMinder(List<TestCaseReviewTestCase> testCaseReviewTestCases) {
|
||||
public void editTestCaseForMinder(String reviewId, List<TestCaseReviewTestCase> testCaseReviewTestCases) {
|
||||
checkReviewCase(reviewId);
|
||||
if (!CollectionUtils.isEmpty(testCaseReviewTestCases)) {
|
||||
List<TestCaseWithBLOBs> testCaseList = new ArrayList<>();
|
||||
testCaseReviewTestCases.forEach((item) -> {
|
||||
|
|
|
@ -111,7 +111,7 @@ name: "TestReviewMinder",
|
|||
save(data) {
|
||||
let saveCases = [];
|
||||
this.buildSaveCase(data.root, saveCases);
|
||||
this.result = this.$post('/test/review/case/minder/edit', saveCases, () => {
|
||||
this.result = this.$post('/test/review/case/minder/edit/' + this.reviewId, saveCases, () => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
});
|
||||
},
|
||||
|
|
|
@ -390,11 +390,11 @@ function clearPageSetup(){
|
|||
hkey_root="HKEY_CURRENT_USER";
|
||||
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
|
||||
try{
|
||||
let RegWsh = new ActiveXObject("WScript.Shell");
|
||||
let regWsh = new ActiveXObject("WScript.Shell");
|
||||
hkey_key="header";
|
||||
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
|
||||
regWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
|
||||
hkey_key="footer";
|
||||
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
|
||||
regWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
|
||||
}catch(e){}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue