Zn преди 1 година
родител
ревизия
e41ccc27f6
променени са 2 файла, в които са добавени 10 реда и са изтрити 7 реда
  1. 1 0
      ruoyi-ui/src/views/relateTable/index.vue
  2. 9 7
      ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

+ 1 - 0
ruoyi-ui/src/views/relateTable/index.vue

@@ -1323,6 +1323,7 @@ export default {
                   tableKey: item.tableKey,
                   sort: index,
                   tablename: item.dtTableName,
+                  menuId: result.data
                 })
               })
                 data.groupName = this.groupForm.groupName

+ 9 - 7
ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -691,11 +691,11 @@ export default {
         obj[str] = row[key];
       }
       // console.log("row", row);
-       getInfoBySqlKey(this.templateInfo.template.sqlKey).then(({ data }) => {
-         if (!data || !data.dfVueTemplate) {
-           this.$message.error("当前表格未绑定表单!");
-           return;
-         }});
+    // getInfoBySqlKey(this.templateInfo.template.sqlKey).then(({ data }) => {
+    //   if (!data || !data.dfVueTemplate) {
+    //     this.$message.error("当前表格未绑定表单!");
+    //     return;
+    //   }});
 
       // 新的修改请求
       try {
@@ -717,8 +717,10 @@ export default {
         let res = await btnCommonApi(payLoad);
         // 判断是否绑定dialog弹窗
         if (!this.currentBtnData.btnTableFormGroupKey) {
-          //this.$message.error("当前表格未绑定表单!");
-          //return;
+          if (!res.data || !res.data.template) {
+            this.$message.error("当前表格未绑定表单!");
+            return;
+          }
 
           res.data.template.dfFormSql &&
           (this.dynamicData = JSON.parse(res.data.template.dfFormSql));