JEECGにおけるt:dictSelectのextendJsonの使い方

3322 ワード

1.t:dictSelectの各属性値は次のとおりです.
 
属性名
を選択します.
説明
必要かどうか
デフォルト
title
string
見出し
いいえ
null
field
string
コントロールフィールド名
はい
null
typeGroupCode
string
ディクショナリパケットエンコーディング
はい
null
type
string
コントロールタイプselect|radio|checkbox
いいえ
select
id
string
ユニークID
いいえ
null
defaultVal
string
デフォルト
いいえ
null
divClass
string
DIVボックスのデフォルトスタイル
いいえ
form
labelClass
string
LABELデフォルトスタイル
いいえ
Validform_label
dictTable
string
辞書表のカスタマイズ
いいえ
null
dictField
string
カスタム辞書テーブルの一致フィールド-辞書のエンコード値
いいえ
null
dictText
string
カスタム辞書表の表示テキスト-辞書の表示値
いいえ
null
dictCondition
string
カスタム辞書テーブルの表示テキスト-辞書クエリー条件
いいえ
null
extendJson
string
拡張パラメータ(jsonフォーマット)
いいえ
null
 
hasLabel
boolean
Labelを表示するかどうか
いいえ
false
readonly
string
編集可能かどうか.「readonly」の値は編集できません.
いいえ
null
datatype
string
validformチェックルール、一般的に入力する必要があります:*
いいえ
null
2.使い方は以下の通りです.
<t:dictSelect field="orgid" type="list"  dictTable="t_s_org" dictField="id" dictText="orgName" defaultVal="${id}"  typeGroupCode="ointer"  hasLabel="false" title=" " extendJson="{onchange:'isInter(this)'}">t:dictSelect>

呼び出しJSは以下の通りである.
    // 
    function isInter(cthis){
        // :1; :2;
        var isInter = cthis.value;
        if (isInter==1) {
            $("#inter").attr("ignore","checked");
        }else {
            $("#inter").attr("ignore","ignore");
        }
    }