yrik há 4 anos atrás
pai
commit
7ab3cf96d3

+ 26 - 1
ruoyi-ui/src/api/system/form.js

@@ -40,4 +40,29 @@ export function getObject(data) {
      method: 'POST',
      data
    })
- }
+ }
+
+ // 提交
+ export function tableSubimt(data) {
+   return request({
+     url: '/boman-web-core/p/cs/objectSubmit',
+     method: 'POST',
+     data
+   })
+ }
+  // 反提交
+  export function tableSubimtanit(data) {
+    return request({
+      url: '/boman-web-core/p/cs/objectUnSubmit',
+      method: 'POST',
+      data
+    })
+  }
+  // 保存
+  export function addbjectSave(data) {
+    return request({
+      url: '/boman-web-core/p/cs/objectSave',
+      method: 'POST',
+      data
+    })
+  }

+ 9 - 7
ruoyi-ui/src/views/system/form/index.vue

@@ -56,7 +56,8 @@
     getObject,
     geteditindeTab,
     listIndex,
-    delMenutabform
+    delMenutabform,
+    tableSubimt, tableSubimtanit, addbjectSave
   } from '@/api/system/form.js'
 
   export default {
@@ -69,7 +70,7 @@
         loading:true,
         tabList: {},
         currentPage3: 0,
-        activeNames: ['1'],
+        activeNames: [1],
         title: '列表',
         objParams: {
           table: 'obj_test',
@@ -89,7 +90,7 @@
           pageNo: 1,
           pageSize: 10,
           orderBy:'create_time desc',
-          table: 'obj_test ',
+          table: '',
         },
         labletit: '查询参数1233',
         surlable: '实际数据库表',
@@ -151,6 +152,7 @@
       this.objParams.fixedData.id = this.$route.query.id
       this.deledlid.table = this.$route.query.tables
       this.deledlid.idList.push(this.$route.query.id)
+      this.queryParamslist.table = this.$route.query.tables
       this.init()
       this.edingelsietab()
     },
@@ -266,7 +268,7 @@
             // this.formy.id = 0
             this.formeanti.commitData.push(this.formy)
             console.log(this.formeanti)
-           // this.antiSubmission()
+           this.antiSubmission()
          }else if(index == 'U'){
            //反提交  保存
             // this.formeanti.table = 'obj_test'
@@ -275,19 +277,19 @@
             // this.formy.id = 0
             this.formeanti.commitData.push(this.formy)
             console.log(this.formeanti)
-           // this.antiSubmission()
+           this.antiSubmission()
          }else if(index == 'M'){
            // 修改
            // this.forme.table = 'obj_test'
            // this.forme.objId = 1
            this.forme.fixedData = this.queryParams
-           // this.submitForm()
+           this.submitForm()
          }else if(index == 'A'){
            //新增
            // this.forme.table = 'obj_test'
            // this.forme.objId = -1
            this.forme.fixedData = this.queryParams
-           // this.submitForm()
+           this.submitForm()
          }
 
         console.log(this.forme)

+ 1 - 1
ruoyi-ui/src/views/system/surface/index.vue

@@ -157,7 +157,7 @@
               const id = this.ids.join(',')
               // id = id.join(',')
               this.$router.push({
-                path: '/business/editing',
+                path: '/business/form',
                 query: {
                   id,
                   tables: this.tabName,