guohongjin
2024-05-01 1901fceb6ddaa56a57f3131191454554c3e77e68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
 * 初始化${context.bizChName}详情对话框
 */
var ${context.bizEnBigName}InfoDlg = new BaseInfo( "${context.bizEnBigName}", {
        formId: "${context.bizEnBigName}Form"
});
 
 
/**
 * 字段验证规则
 */
${context.bizEnBigName}InfoDlg.init_validate_fields = function () {
    // 例如: name: this.def_valid_info( true)
    return {
 
    }
}
 
/**
 * 收集数据
 */
${context.bizEnBigName}InfoDlg.collectData = function() {
    this
    <% for(item in table.fields!){ %>
    <% if(itemLP.last != true){ %>
    .set('${item.propertyName}')
    <% }else{ %>
    .set('${item.propertyName}');
    <% }} %>
    return this.$data;
};
 
/**
 * 提交添加
 */
${context.bizEnBigName}InfoDlg.addSubmit = function() {
    this.dlg_submit( "新增", "/${context.bizEnName}/add", this.collectData);
};
 
/**
 * 提交修改
 */
${context.bizEnBigName}InfoDlg.editSubmit = function() {
    this.dlg_submit( "编辑", "/${context.bizEnName}/update", this.collectData);
};
 
$(function() {
 
});