Explorar o código

标签改为多选筛选

xiaohaizhao %!s(int64=2) %!d(string=hai) anos
pai
achega
43300c5e67
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packageA/contacts/list.js

+ 2 - 1
packageA/contacts/list.js

@@ -8,7 +8,7 @@ Page({
         "where": {
         "where": {
             "condition": "",
             "condition": "",
             "groupname": "",
             "groupname": "",
-            "tag": ""
+            "tag": []
         }
         }
     },
     },
     onLoad(options) {
     onLoad(options) {
@@ -45,6 +45,7 @@ Page({
                         filtratelist: [{
                         filtratelist: [{
                             label: "标签",
                             label: "标签",
                             index: null,
                             index: null,
+                            type: "checkbox",
                             showName: "tag", //显示字段
                             showName: "tag", //显示字段
                             valueKey: "tag", //返回Key
                             valueKey: "tag", //返回Key
                             selectKey: "tag", //传参 代表选着字段 不传参返回整个选择对象
                             selectKey: "tag", //传参 代表选着字段 不传参返回整个选择对象