浏览代码

表格和表单修改兼容勾选/导出路径修改

lph 1 年之前
父节点
当前提交
961dedb231
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 2 2
      ruoyi-ui/src/views/dragform/index.vue
  2. 5 2
      ruoyi-ui/src/views/dragform/tableList.vue

+ 2 - 2
ruoyi-ui/src/views/dragform/index.vue

@@ -488,7 +488,7 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
-      const fId = row.fId || this.ids;
+      const fId = row.fId || this.ids[0];
       sessionStorage.setItem("fid", fId);
       // this.$router.replace("system/fromModel/index");
       this.$router.push({
@@ -534,7 +534,7 @@ export default {
     /** 导出按钮操作 */
     handleExport() {
       this.download(
-        "dragform/form/export",
+        process.env.VUE_APP_BASE_API3 + "dragform/form/export",
         {
           ...this.queryParams,
         },

+ 5 - 2
ruoyi-ui/src/views/dragform/tableList.vue

@@ -354,10 +354,13 @@ export default {
       //     this.open = true;
       //     this.title = "修改动态格";
       //   });
+
+      // 兼容勾选单个的修改
+      let tId = row?.tId || this.ids[0];
       this.$router.push({
         path: "/system/fromModel/index/tableMange",
         query: {
-          tId: row.tId,
+          tId: tId,
         },
       });
     },
@@ -409,7 +412,7 @@ export default {
     /** 导出按钮操作 */
     handleExport() {
       this.download(
-        "system/table/export",
+        process.env.VUE_APP_BASE_API3 + "system/table/export",
         {
           ...this.queryParams,
         },