Browse Source

系统反馈

xiaoqiao 10 months ago
parent
commit
01d02c135b

+ 1 - 1
src/main/java/com/bowintek/practice/controller/TempController.java

@@ -138,7 +138,7 @@ public class TempController {
     }
 
     @PostMapping("/genQuery")
-    public BaseResponse<TempObjectModel> genTest(@RequestBody TempObjectModel data) {
+    public BaseResponse<TempObjectModel> genTest(@RequestBody TempObjectModel data) throws InterruptedException {
         HashMap<String, Object> rtnObject = new HashMap<>();
         try {
             GenSqlStringResult sqlStringResult = genSqlStringService.Generation(data, accountService.getLoginUserID());

+ 2 - 1
vue/src/components/basic/query/display-chart-line.vue

@@ -1,5 +1,6 @@
 <script lang="ts">
   import DisplayChartBar from './display-chart-bar.vue'
+  import {v4 as uuidv4} from 'uuid';
 
   export default {
     name : 'DisplayChartLine',
@@ -11,7 +12,7 @@
         chartStyle: { width: "100%", height: "400px" },
         chart : null as any,
         serieType : 'line',
-        id : Date.now()
+        id :  uuidv4()
       }
     },
     methods:{

+ 2 - 1
vue/src/components/basic/query/display-chart-ybar.vue

@@ -1,5 +1,6 @@
 <script lang="ts">
   import DisplayChartBar from './display-chart-bar.vue'
+  import {v4 as uuidv4} from "uuid";
 
   export default {
     name : 'DisplayChartYbar',
@@ -11,7 +12,7 @@
         chartStyle: { width: "100%", height: "600px" },
         chart : null as any,
         serieType : 'bar',
-        id : Date.now()
+        id :  uuidv4()
       }
     },
     methods:{

+ 3 - 2
vue/src/layout/tabs/feedback.vue

@@ -89,11 +89,13 @@ const picUpload = file => {
   const isAccept = "'.png,.jpeg,.jpg,.gif,.webp".indexOf(file.name.slice(file.name.lastIndexOf('.'))) > -1;
   if (!isAccept) {
     message.error(`${file.name} 不是规定的图片类型文件`);
+    fileList.value.splice(fileList.value.length - 1, 1);
     return false;
   }
   const isLt2M = file.size / 1024 / 1024 < 2;
   if (!isLt2M) {
     message.error('预览图片大小不能超过2MB!');
+    fileList.value.splice(fileList.value.length - 1, 1);
     return false;
   }
 
@@ -103,9 +105,8 @@ const picUpload = file => {
   formData.append("fileType", "1");
   formData.append("isSingle", "0");
 
-  upload(formData).then(curFile => {
+  upload(formData).then((curFile: any) => {
     if (curFile) {
-      console.log("curPicInfo", curFile);
       fileList.value.splice(fileList.value.length - 1, 1);
       fileList.value.push({
         uid: curFile.fileId,