Browse Source

指挥者发布团购按钮限制

Longlin 5 năm trước cách đây
mục cha
commit
0b3ae8e81f

+ 9 - 0
admin-ui/app/whepi/tugou/dialogTugou.js

@@ -3,6 +3,8 @@ define(function (require) {
 
     var $dlg, $form;
 
+    var isLoading = false;
+
     function queryGrid1(data) {
       console.log(data);
     }
@@ -158,6 +160,12 @@ define(function (require) {
       buttons: [
         {
           text: "保存", iconCls: "fa fa-save", onClick: function () {
+            if (isLoading === true) {
+              return;
+            }
+            else {
+              isLoading = true;
+            }
             if ($form.formGet().uptownIds.trim() == '') {
               $.yvan.msg('请先选择小区');
               return;
@@ -174,6 +182,7 @@ define(function (require) {
             $.yvan.postForm($form, {
               url: (context.isEdit ? api('/yeweihui/tgStatus') : api('/yeweihui/tgPublish')),
               success: function (data) {
+                isLoading = false;
                 if (data.data == 1) {
                   $.yvan.msg('保存成功');
                   $dlg.window('close');

+ 1 - 1
whepi-web/src/main/resources/application.yml

@@ -43,7 +43,7 @@ endpoints:
 #  whitelabel.enabled: false
 
 spring:
-  profiles.active: maoyunfeng
+  profiles.active: lll
 
   application:
     name: bofeng-web