|
@@ -41,6 +41,7 @@ public class KwsComplaintController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "/scan", produces = "text/html;charset=UTF-8")
|
|
@GetMapping(value = "/scan", produces = "text/html;charset=UTF-8")
|
|
|
|
|
+ @Operation(summary = "h5投诉页面", description = "扫码打开h5页面")
|
|
|
public String scanPage() {
|
|
public String scanPage() {
|
|
|
return """
|
|
return """
|
|
|
<!doctype html>
|
|
<!doctype html>
|
|
@@ -161,7 +162,7 @@ public class KwsComplaintController {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
document.getElementById("resetBtn").addEventListener("click", () => {
|
|
document.getElementById("resetBtn").addEventListener("click", () => {
|
|
|
- document.getElementById("typeCode").value = "2";
|
|
|
|
|
|
|
+ document.getElementById("typeCode").value = "1";
|
|
|
document.getElementById("targetName").value = "";
|
|
document.getElementById("targetName").value = "";
|
|
|
document.getElementById("content").value = "";
|
|
document.getElementById("content").value = "";
|
|
|
initDate();
|
|
initDate();
|
|
@@ -185,7 +186,7 @@ public class KwsComplaintController {
|
|
|
typeCode,
|
|
typeCode,
|
|
|
targetName,
|
|
targetName,
|
|
|
content,
|
|
content,
|
|
|
- occurTime: occurTime.length === 16 ? (occurTime + ":00") : occurTime,
|
|
|
|
|
|
|
+ occurTime: occurTime.length === 16 ? (occurTime.replace('T', ' ') + ":00") : occurTime.replace('T', ' '),
|
|
|
isAnonymous: true,
|
|
isAnonymous: true,
|
|
|
fileUrl: state.fileUrl || "",
|
|
fileUrl: state.fileUrl || "",
|
|
|
fileName: state.fileName || "",
|
|
fileName: state.fileName || "",
|
|
@@ -213,6 +214,7 @@ public class KwsComplaintController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/scan/submit")
|
|
@PostMapping("/scan/submit")
|
|
|
|
|
+ @Operation(summary = "h5投诉接口", description = "h5投诉接口")
|
|
|
public BaseResult<ComplaintDetailResVo> scanSubmit(@RequestBody @Valid ComplaintAppSubmitReqVo reqVo) {
|
|
public BaseResult<ComplaintDetailResVo> scanSubmit(@RequestBody @Valid ComplaintAppSubmitReqVo reqVo) {
|
|
|
return BaseResult.success(kwsComplaintService.submitScanComplaint(reqVo));
|
|
return BaseResult.success(kwsComplaintService.submitScanComplaint(reqVo));
|
|
|
}
|
|
}
|