chenrui  1 year ago
parent
commit
e1512b92d2
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/views/createtable/index.vue

+ 20 - 0
src/views/createtable/index.vue

@@ -362,6 +362,19 @@ export default {
       const pageAuthFforms = pageAuthArrs.filter(item => item.pagetype == 'form')
       //获取form表单弹框权限
       if (pageAuthFforms?.length) this.getPageBtnFormSetting(pageAuths, pageAuthFforms)
+      this.tableType = "add"
+        this.tableTitle = "新增"
+        this.tableForm = {}
+        for (let k in this.defaultfilter) {
+          if (k != 1) {
+            this.tableForm[k] = this.defaultfilter[k]
+          }
+        }
+        for (let k in this.formItem) {
+          if (this.formItem[k].defaultvalue && this.formItem[k].defaultvalue != "") {
+            this.$set(this.tableForm, this.formItem[k].pagecode, this.formItem[k].defaultvalue)
+          }
+        }
     },
     //根据页面tree设置数据
     getPageTreeSetting (pageAuthtrees) {
@@ -744,6 +757,8 @@ export default {
     //表格-增/删/改
     async generalDataReception (event, data, key) {
       this.dialogLoading = true
+      delete data.passparameters
+      console.log(formatChange(data, event, key))
       try {
         const params = {
           serviceid: this.pageServiceId,
@@ -1246,6 +1261,11 @@ export default {
     inputChangeHandler (data) {
       if (!this.tableForm[data]) this.tableForm[data] = null
     },
+    setText (code) {
+      if (this.vflag && code == 'cronexpress') {
+        this.$refs['vcrontab'].showCron = true
+      }
+    },
   },
 }
 </script>