zhaoxingrui há 5 anos atrás
pai
commit
5c79c14b18
2 ficheiros alterados com 3 adições e 4 exclusões
  1. 1 1
      src/components/APITestInfoForm.vue
  2. 2 3
      src/views/Project/APITest.vue

+ 1 - 1
src/components/APITestInfoForm.vue

@@ -101,7 +101,7 @@ export default {
         that.initChart1();
         that.initChart1();
         that.initChart2();
         that.initChart2();
       });
       });
-    }, 2000);
+    }, 3000);
   },
   },
   methods: {
   methods: {
     showForm() {
     showForm() {

+ 2 - 3
src/views/Project/APITest.vue

@@ -6,8 +6,7 @@
     </div>
     </div>
     <div class="apiTestTableContainer">
     <div class="apiTestTableContainer">
       <el-table
       <el-table
-        :data="APITests"
-        style="width: 100%">
+        :data="APITests">
         <el-table-column
         <el-table-column
           prop="testId"
           prop="testId"
           label="ID"
           label="ID"
@@ -223,7 +222,7 @@ export default {
         if (valid) {
         if (valid) {
           this.createAPITestForm.createTime = this.getCurrentTime();
           this.createAPITestForm.createTime = this.getCurrentTime();
           await APITestAPI.createAPITest({
           await APITestAPI.createAPITest({
-            projectId: 1,
+            projectId: this.$store.state.workspace.currentProjectId,
             createTime: this.createAPITestForm.createTime,
             createTime: this.createAPITestForm.createTime,
             username: '',
             username: '',
             testName: this.createAPITestForm.testName,
             testName: this.createAPITestForm.testName,