Procházet zdrojové kódy

更新表格数据

liujiejie před 6 měsíci
rodič
revize
810c678648

+ 0 - 1
src/views/performance/components/custonAsCom/AssociatedFields.vue

@@ -267,7 +267,6 @@ export default {
             this.formSelection1[0].fileData.length <= 0 ||
             this.formSelection2[0].fileData.length <= 0
           ) {
-            console.log("sssss", this.formSelection1, this.formSelection2);
             this.$message({
               type: "warning",
               message: `至少需要关联1组字段。`,

+ 4 - 8
src/views/performance/components/custonAsCom/DatabaseTable.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-10-28 17:43:21
- * @LastEditTime: 2024-12-05 14:33:36
+ * @LastEditTime: 2024-12-05 15:42:34
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/custonAsCom/DatabaseTable.vue
@@ -136,19 +136,13 @@ export default {
   computed: {
     ...mapState("dragChart", {
       updateTriggerGetData: "updateTriggerGetData",
+      triggerGetData: "triggerGetData",
     }),
   },
   watch: {
     filterText(val) {
       this.$refs.tree.filter(val);
     },
-    updateTriggerGetData: function (newVal) {
-      if (newVal) {
-        console.log(newVal, "newVal dataTable");
-        this.setUpdateTriggerGetData(false);
-        // 重置 triggerGetData 状态为 false
-      }
-    },
   },
   methods: {
     ...mapMutations("dragChart", [
@@ -256,7 +250,9 @@ export default {
         }
 
         // 更新状态和关闭对话框
+        //更新数据表格数据和自定义图表树形列表
         this.setTriggerGetData(true);
+        this.setUpdateTriggerGetData(true);
         this.showDialog = false;
 
         // 重置表单

+ 1 - 3
src/views/performance/components/custonAsCom/dataTable.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2024-10-28 16:46:38
- * @LastEditTime: 2024-11-15 09:59:57
+ * @LastEditTime: 2024-12-05 15:27:24
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/custonAsCom/dataTable.vue
@@ -109,10 +109,8 @@ export default {
     ...mapMutations("dragChart", ["setTriggerGetData"]),
     async getIndexDbData() {
       // this.loading = true;
-      console.log("触发了这个事件");
       const jsonData = await getDataFromIndexedDB();
       this.tabData = jsonData;
-      console.log(jsonData, "jsonData dataTable");
       this.activeName =
         jsonData &&
         jsonData[0] &&