cuiqian2004
6 天以前 07925905f1a596e20e980de6d42db217abb753b0
pages/modal/3018.vue
@@ -308,7 +308,9 @@
   import {
      showInfo,
      showError,
      showModal
      showModal,
      showLoading,
      hideLoading
   } from "@/js/Page.js"
   import pickerAddress from '../../js/pickerAddress/pickerAddress.vue'
   import utils from "@/js/utils.js"
@@ -380,13 +382,16 @@
      mounted() {
         console.log("3018 mounted");
      },
      onReady() {
         uni.setNavigationBarTitle({
            title: this.title
         }); //设置顶部标题
      },
      onLoad(options) {
         console.log("3018", options);
         uni.setNavigationBarTitle({
            title: options.titlename
         }); //设置顶部标题
         var param = JSON.parse(options.param);
         this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字
         this.title =  options.titlename; //设置按钮文字param.Add_BtnName ? param.Add_BtnName :
         if (options.type) {
            this.type = options.type;
         }
@@ -437,6 +442,7 @@
         },
         async loadData() {
            try {
                  showLoading("loading...")
               const param = this.param
               var edit_dlg = {
                  Model: param.EditDlgMode,
@@ -460,8 +466,10 @@
               }
               $this.classAttrList = result;
               await $this.classGridStyleInfo();
               hideLoading()
            } catch (ex) {
               // console.log(ex);
               hideLoading()
               showError(ex, this.translateSys('error') + " 1")
            }