hisui-framework-guide-iris
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hisui-framework-guide-iris" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-db248da7ac6d80445dbd50b5707ef66e5d46a981fd8e082dd7ad3d0b6e4d1c9b. Verify the upstream source and version against https://skillhub.cn/skills/user_a348a657/hisui-framework-guide-iris before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
HISUI front-end framework basic development guide. For a jQuery UI component library built as a secondary development on easyui, specifically designed for medical information systems. Used for HISUI component development and front-end page work involving jQuery easyui tables, forms, layouts, and windows; covers official reference for 40 components, supports declarative and programmatic initialization, and provides $cm/$m data access methods.
Introduction source: third_party · user_a348a657 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: hisui-framework-guide-iris
description: |
HISUI 前端框架基础开发指南。HISUI 是基于 easyui 二次开发的 jQuery UI 组件库,专为医疗信息系统设计。
当涉及 HISUI 组件开发、jQuery easyui 表格/表单/布局/窗口、医疗系统前端页面编写时使用此 skill。
涵盖 40 个组件的官方文档参考,支持声明式与编程式两种初始化方式,提供 $cm/$m 数据访问方法。
agent_created: trueHISUI 前端框架开发指南
HISUI 是基于 jQuery 和 easyui 的 UI 组件库,专为医疗信息系统设计。
框架概述
HISUI 提供表单、表格、树形、布局、窗口等 jQuery UI 组件,基于 easyui 二次开发。
依赖: jQuery 1.11.3+、jquery.hisui.min.js、hisui.min.css、hisui-lang-zh_CN.js
引入资源
<link rel="stylesheet" type="text/css" href="dist/css/hisui.min.css">
<script type="text/javascript" src="dist/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="dist/js/jquery.hisui.min.js"></script>
<script type="text/javascript" src="dist/js/locale/hisui-lang-zh_CN.js"></script>
组件初始化模式
HISUI 组件通过以下两种方式初始化:
1. HTML 声明式(推荐): 使用 hisui-* class + data-options 配置
<table class="hisui-datagrid" data-options="fitColumns:true,pagination:true">
<thead><tr>
<th data-options="field:'name',width:100">姓名</th>
</tr></thead>
</table>
2. JavaScript 编程式: 调用 easyui 方法(如 $().datagrid())
$('#dg').datagrid({
url: 'data.json',
columns: [[{field:'name',title:'姓名',width:100}]]
});
$HUI.datagrid('#id', {...})与$('#id').datagrid({...})等价,两种写法均可。
数据访问($cm / $m)
HISUI 通过 $cm 和 $m 调用后台方法或 Query,需先引入 jQuery 再引入 websys.jquery.js。
| 方法 | 返回值 | 适用场景 |
|---|---|---|
$cm |
JSON 对象(自动解析) | 后台返回 JSON(推荐优先) |
$m |
纯文本字符串 | 后台返回非 JSON 文本 |
// 异步调用类方法,返回 JSON
$cm({
ClassName: "dhc.Test",
MethodName: "getPatInfo",
UserName: "张三"
}, function(jsonData) {
console.dir(jsonData);
});
// 同步调用(第二参数传 false,阻塞浏览器,不推荐)
var jsonData = $cm({ClassName:"dhc.Test", MethodName:"getInfo"}, false);
// 调用后台 Query
$cm({
ClassName: "web.SSUser",
QueryName: "LookUpActive",
page: 1, rows: 20
}, function(rs) {
// rs => {"rows":[...],"total":110}
});
完整参数说明(ClassName、QueryName、ResultSetType、totalFields、type 等)见
references/基础-数据访问.md。 数据访问会对 insert、select、delete 等敏感关键词进行安全过滤。
组件参考索引
编写具体组件代码时,读取对应参考文件获取完整属性表、事件、方法和代码示例:
基础
| 组件 | 参考文件 |
|---|---|
| 公共方法($.hisui.*) | references/基础-公共方法.md |
| 图标系统(icon-w-*) | references/基础-图标.md |
| 提示(tooltip) | references/基础-提示.md |
| 泡芙提示(popover) | references/基础-泡芙提示.md |
| 数据访问($cm/$m) | references/基础-数据访问.md |
布局
| 组件 | 参考文件 |
|---|---|
| 面板(panel) | references/布局-面板.md |
| 页签(tabs) | references/布局-页签.md |
| 手风琴(accordion) | references/布局-手风琴.md |
| 五方布局(layout-five) | references/布局-五方布局.md |
| 水平步骤(steps-horizontal) | references/布局-水平步骤.md |
| 纵向步骤(steps-vertical) | references/布局-纵向步骤.md |
表单
| 组件 | 参考文件 |
|---|---|
| 按钮(linkbutton) | references/表单-按钮.md |
| 文本(label/text) | references/表单-文本.md |
| 文本框(textbox) | references/表单-文本框.md |
| 验证框(validatebox) | references/表单-验证框.md |
| 数字验证框(numberbox) | references/表单-数字验证框.md |
| 下拉框(combobox) | references/表单-下拉框.md |
| 组合框(combo) | references/表单-组合框.md |
| 触发框(comboq) | references/表单-触发框.md |
| 日期框(datebox) | references/表单-日期框.md |
| 时间框(timespinner) | references/表单-时间框.md |
| 单选框(radiobutton) | references/表单-单选框.md |
| 复选框(checkbox) | references/表单-复选框.md |
| 开关(switchbutton) | references/表单-开关.md |
| 查询框(searchbox) | references/表单-查询框.md |
| 关键字列表(tagbox) | references/表单-关键字列表.md |
| 菜单按钮(menubutton) | references/表单-菜单按钮.md |
| 分割按钮(splitbutton) | references/表单-分割按钮.md |
表格及树
| 组件 | 参考文件 |
|---|---|
| 数据表格(datagrid) | references/表格及树-表格.md |
| 表格编辑(editor) | references/表格及树-表格编辑.md |
| 表格滚动加载 | references/表格及树-表格滚动加载.md |
| 单元格编辑 | references/表格及树-单元格编辑.md |
| 树(tree) | references/表格及树-树.md |
| 树形表格(treegrid) | references/表格及树-树形表格.md |
| 菜单树 | references/表格及树-菜单树.md |
| 下拉表格(combogrid) | references/表格及树-下拉表格.md |
| 下拉树(combotree) | references/表格及树-下拉树.md |
窗口
| 组件 | 参考文件 |
|---|---|
| 窗口(window) | references/窗口-窗口.md |
| 模态窗(dialog) | references/窗口-模态窗.md |
| 消息框(messager) | references/窗口-消息框.md |
极速系列
| 组件 | 参考文件 |
|---|---|
| 放大镜(lookup) | references/极速系列-放大镜.md |
放大镜(lookup) 是 HISUI 优化的下拉表格组件,继承自 comboq 与 datagrid,非 combogrid。IE8/IE11 下性能大幅提升,界面中所有 lookup 共用一个 grid,只保留当前激活的下拉框列表数据。输入即搜索需配置
isCombo:true+minQueryLen。
关键约定
命名规则
- 组件 class:
hisui-<组件名>(如hisui-datagrid、hisui-linkbutton) - 图标 class:
icon-w-<名称>(如icon-w-find、icon-w-ok、icon-w-cancel、icon-w-edit、icon-w-delete、icon-w-save、icon-w-set)
按钮色系
- 默认蓝色:基础操作
.green:通过、确认.yellow:警示、挂起.red:拒绝、删除.hover-dark:深色悬浮效果.big+plain:true:大图按钮
表格常用配置
headerCls:'panel-header-gray':灰色表头fitColumns:true:自适应列宽(需给每列设 width)pagination:true:分页rownumbers:true:行号
表格数据格式
{
"rows": [{"code":"001","name":"张三"}],
"footer": [{"name":"合计"}],
"total": 1
}
验证类型(validatebox)
email、url、length[1,10]、remote['check.php','username']
最佳实践
- 统一在
$(function(){})或$.parser.onComplete中初始化组件 - 大数据量表格使用分页
pagination:true,避免频繁 DOM 操作 - 必填项用
required:true+validType验证 - 耗时操作用
$.messager.progress显示进度 - 操作反馈用
$.messager.alert或$.messager.show - 禁用按钮防重复点击:
stopAllEventOnDisabled:true - HISUI 基于 jQuery 1.11.3,注意版本兼容
- IE 兼容:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
如何使用参考文档
references/ 目录下每个文件对应一个组件的官方文档,包含完整属性表、事件、方法和代码示例。编写具体组件代码时,先读取对应参考文件获取准确 API。参考文件为原始官方文档,代码示例中可能含测试用 console.log,属正常现象。
版本: v20260606 适用场景: 医疗信息系统、管理系统、数据录入系统 技术基础: 基于 easyui 1.5+ 版本二次开发
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对医疗信息系统前端开发,具有明确行业场景
- 涵盖 40 个组件的官方文档参考,实用性强
- 提供声明式与编程式两种初始化方式,满足不同开发习惯
Highlights
- 触发词精准完整,覆盖 HISUI 组件开发、jQuery easyui 多种场景
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 文档结构清晰,章节划分合理
- 包含完整代码示例和配置说明
- frontmatter 完整,格式规范
Highlights
- 资源引入方式完整明确
- 组件初始化代码示例准确
- 数据访问方法说明详细,参数清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.