- 注册时间
- 2014-2-12
- 最后登录
- 2018-7-26
- 阅读权限
- 10
- 积分
- 239
- 精华
- 0
- 帖子
- 64
![Rank: 3](static/image/common/star_level2.gif) ![Rank: 3](static/image/common/star_level1.gif)
|
本帖最后由 thunder_0927 于 2014-3-11 17:02 编辑
felt 发表于 2014-3-11 16:50 ![](static/image/common/back.gif)
把你的代码贴一下 - function CreateTable(hospitalCode) {
- var Url = "../../Medicine/GetSearchResult.ajax";
- Url += "?hospital=" + hospitalCode;
- grid = new mini.DataGrid();
- grid.set({
- id: hospitalCode,
- url: Url,
- style: "width:100%;height:280px;",
- columns: [
- //{ type: "indexcolumn" },
- { field: "orgname", width: 80, headerAlign: "center", header: "机构单位", },
- { field: "day", width: 130, headerAlign: "center", header: "统计年月" },
- {
- header: "详细信息", headerAlign: "center",
- columns: [
- { field: "cmaType", width: 80, headerAlign: "center", header: "a类型" },
- { field: "cmType", width: 80, headerAlign: "center", header: "类型" },
- //{ field: "birthday", width: 100, headerAlign: "center", dateFormat: "yyyy-MM-dd H:mm", allowSort: true, header: "b收入" },
- ……
- ],
- },
- ]
- });
- var mainPage = document.getElementById("mainPage");
- grid.render(mainPage);
- grid.load();
- grid.load(null, function (data) {
- //grid.mergeColumns(["orgname", "day"]);
- if (data.data[0].flag == "false")
- {
- console.log("false");
- //mini.get(……).setVisible(false);
- }
- //console.log(data);
- });
- }
- }
复制代码
|
|