Explorar o código

wip:弹窗提示

wangshan hai 1 ano
pai
achega
7978cceaea

+ 7 - 0
CMPlatform/web/templates/private/cuser_rule_edit.html

@@ -2828,6 +2828,13 @@
     // 精准筛选规则-新增按钮点击方法
     function addExactRuleShow(){
         // 判断是否设置关键词
+        if (ruleGroupList.length===0){
+            showGroupListData()
+            if (ruleGroupList.length===0){
+                showTip("请先设置关键词规则分组")
+                return
+            }
+        }
         // 判断是否设置关键词匹配方式
         // debugger
         //  判断是否设置关键词

+ 9 - 1
CMPlatform/web/templates/private/history_rule_edit.html

@@ -565,7 +565,7 @@
         $(".smallcaidan").hide();
         $(".btnsave").hide();
     }
-    
+
     $(document).ready(function () {
         // var name1 = {{(session "user").name}};
         // if (name1 != dataMap.s_updateuser) {
@@ -2531,6 +2531,14 @@
     // 精准筛选规则-新增按钮点击方法
     function addExactRuleShow(){
         // 判断是否设置关键词
+        // 判断是否设置关键词
+        if (ruleGroupList.length===0){
+            showGroupListData()
+            if (ruleGroupList.length===0){
+                showTip("请先设置关键词规则分组")
+                return
+            }
+        }
         // 判断是否设置关键词匹配方式
         // debugger
         //  判断是否设置关键词