cuiqian2004
5 天以前 07925905f1a596e20e980de6d42db217abb753b0
pages/modal/3202.vue
@@ -117,13 +117,16 @@
         },
      },
      onReady() {
         uni.setNavigationBarTitle({
            title: this.title
         }); //设置顶部标题
      },
      async onLoad(options) {
         try {
            showLoading("loading...")
            // console.log(options);
            uni.setNavigationBarTitle({
               title: options.titlename
            }); //设置顶部标题
            this.title = options.titlename;
            this.param = JSON.parse(options.param);
            const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
@@ -227,7 +230,7 @@
                  };
                  runCustomEvent(dataInfo).then(result => {
                     console.log(result);
                     if (result.ret != 0 && result.ret != 1) {
                        let cls_name = result.event_info?.cls_name
                        let event_name = result.event_info?.event_name
@@ -594,7 +597,15 @@
            this.initial()
         },
         //点击显示浏览对象显示页面
         async onViewPageClick(style) {
         onViewPageClick(style) {
            this.handleButtonClick((done) => {
               this.viewPageClick(style);
               setTimeout(() => {
                  done(); // 重置状态
               }, 1000);
            });
         },
         async viewPageClick(style) {
            if (!this.clickItemEvent.id) {
               return;
            }
@@ -639,7 +650,7 @@
               data_json,
            }).then(result => {
               // console.log(result);
                  hideLoading()
               hideLoading()
               if (result.ret != 0 && result.ret != 1) {
                  let cls_name = result.event_info?.cls_name
                  let event_name = result.event_info?.event_name
@@ -705,7 +716,7 @@
            }).catch(ex => {
               // console.log(ex);
                  hideLoading()
               hideLoading()
               showError(ex, this.translateSys("error") + "8.1")
            });
         },
@@ -759,7 +770,7 @@
         //执行触发事件
         async triggerEvent(btn, style, enviroment) {
            const $this = this
showLoading("loading...")
            showLoading("loading...")
            var obj_attr = this.head_styledef.form.model;
            // console.log(obj_attr);
            var input_param = Base64.encode(
@@ -797,7 +808,7 @@
               input_param,
               data_json,
            }).then(result => {
                  hideLoading()
               hideLoading()
               // console.log(result);
               if (result.ret != 0 && result.ret != 1) {
                  let cls_name = result.event_info?.cls_name
@@ -869,7 +880,7 @@
            }).catch(ex => {
               // console.log(ex);
                  hideLoading()
               hideLoading()
               showError(ex, this.translateSys("error") + "8.1")
            });
         },