ソースを参照

fix: rootPath 变量补全, propJs 增加loading

Sven_x 1 年間 前
コミット
5de6121d50
2 ファイル変更5 行追加0 行削除
  1. 1 0
      application/views/welcome_message.php
  2. 4 0
      static/common/propsJs/index.js

+ 1 - 0
application/views/welcome_message.php

@@ -918,6 +918,7 @@
 
 <script type="text/javascript">
 
+    var rootPath = '<?php echo site_url();?>';
     //格式化成千分符
     function thoundsFormat(num, str = ',') {
         var reg = /\d{1,3}(?=(\d{3})+$)/g;

+ 4 - 0
static/common/propsJs/index.js

@@ -15,6 +15,7 @@
     const exportFunc = {
         // 公共导出函数
         initTag: async function (dstClass) {
+            showLoading()
             await privateFunc.paddingPropConf()
 
             $.each($(`.${dstClass}`), (k, v) => {
@@ -23,9 +24,11 @@
                 $(v).html(html)
                 privateFunc.appendInputHtml($(v))
             })
+            hideLoading()
         },
 
         initEdit: async function (event, resClass, type) {
+            showLoading()
             // 构建弹窗
             privateFunc.buildModalHtml(event)
 
@@ -39,6 +42,7 @@
             console.log(JSON.stringify(privateFunc.PropsData))
 
             privateFunc.initTableHtml()
+            hideLoading()
         },
 
         // 私有导出函数