cuiqian2004
2025-10-17 49dfdd3bf265db28d38167f34e9aabfdd3e8e5db
pages/modal/3200_view.vue
@@ -40,7 +40,9 @@
   import classUtils from "@/js/utils.js"
   import {
      showInfo,
      showError
      showError,
      showLoading,
      hideLoading
   } from "@/js/Page.js"
   import {
      appGetInfo,
@@ -98,6 +100,8 @@
      },
      async onLoad(options) {
         // console.log(options);
         try {
            showLoading("loading...")
         uni.setNavigationBarTitle({
            title: options.titlename
         }); //设置顶部标题 
@@ -109,9 +113,10 @@
         if (this.param.ViewPage.View_UIDef.ui_type == "HTML页面") {
            // HTML页面
            //获取数据类的HTML页面
            this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id, 'viewPage');
               await this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id,
                  'viewPage');
         } else {
            this.Detail2_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id);
               await this.Detail2_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id);
         }
@@ -127,7 +132,7 @@
               });
               // console.log(obj_attr);
               var input_param = Base64.encode(JSON.stringify(obj_attr));
               this.runCustomEvent({
                  await this.runCustomEvent({
                  ed_type: 0,
                  start_transaction: true,
                  class_id: this.param.DataCls.id,
@@ -139,6 +144,12 @@
            } catch (ex) {
               showError(ex, this.translateSys('error'))
            }
            }
            hideLoading()
         } catch (ex) {
            hideLoading()
            showError(ex, this.translateSys("error"));
         }
      },
      methods: {
@@ -401,6 +412,7 @@
         //执行触发事件
         async triggerEvent(btn, style, enviroment) {
            try {
               showLoading("loading...")
               btn.disabled = true
               var obj_attr = {
                  'S_ID': this.styleDef.form.objId
@@ -411,6 +423,7 @@
               // console.log(obj_attr);
               // let input_param = Base64.encode(JSON.stringify(obj_attr));
               // return;
               await this.runCustomEvent({
                  ed_type: 0,
                  start_transaction: true,
@@ -420,7 +433,9 @@
                  obj_attr: obj_attr,
               });
               btn.disabled = false
               hideLoading()
            } catch (ex) {
               hideLoading()
               showError(ex, this.translateSys('error') + "3")
            }
         },