cuiqian2004
4 天以前 07925905f1a596e20e980de6d42db217abb753b0
pages/modal/form/index.vue
@@ -133,6 +133,11 @@
            };
         },
      },
      onReady() {
         uni.setNavigationBarTitle({
            title: this.title
         }); //设置顶部标题
      },
      onLoad(options) {
         this.param = JSON.parse(options.param);
@@ -153,11 +158,6 @@
         if (options.dataJson)
            this.data_json = JSON.parse(options.dataJson);
         this.title = options.titlename ? options.titlename : this.param.ShowName; //设置按钮文字
         // console.log(options)
         uni.setNavigationBarTitle({
            title: this.title
         }); //设置顶部标题
         if (this.clsId) {
            this.loadData(objAttr)
         } else {
@@ -717,7 +717,7 @@
               showError(ex, this.translateSys('tip') + "4.2")
            }
         },
         async onFormEventResult(data, button_callback, item) {
         async onFormEventResult(data, button_callback, item,req) {
            try {
               const $this = this
               var enviroment = {
@@ -1262,7 +1262,7 @@
            console.log(dataInfo);
            // return;
            runCustomEvent(dataInfo).then(data => {
               $this.onFormEventResult(data, button_callback, item)
               $this.onFormEventResult(data, button_callback, item,req)
            }).catch(ex => {
               showError(ex, this.translateSys('tip') + "5.1")