| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>操作信息</title>
- <t:base type="jquery,easyui,tools"></t:base>
- <script type="text/javascript">
- function ruleConditionsChange(){
- var ruleConditions = $('select[name="ruleConditions"]').val();
- if(ruleConditions === 'IN'){
- $('#ruleConditionsIN').removeClass("ruleConditionsHide");
- $('#ruleConditionsOther').addClass("ruleConditionsHide");
- }else{
- $('#ruleConditionsOther').removeClass("ruleConditionsHide");
- $('#ruleConditionsIN').addClass("ruleConditionsHide");
- }
- }
- function beforeSubmitRemoveDiv(){
- var ruleConditions = $('select[name="ruleConditions"]').val();
- if(ruleConditions !== 'IN'){
- $('#ruleConditionsIN').remove();
- }else{
- $('#ruleConditionsOther').remove();
- }
- return true;
- }
- </script>
- </head>
- <body style="overflow-y: hidden" scroll="no">
- <t:formvalid formid="formobj" layout="div" dialog="true" action="functionController.do?saverule" beforeSubmit="beforeSubmitRemoveDiv">
- <input name="id" type="hidden" value="${operation.id}">
- <fieldset class="step">
- <div class="form">
- <label class="Validform_label"> 规则名称: </label>
- <input name="ruleName" class="inputxt" value="${operation.ruleName}" datatype="s2-20">
- <span class="Validform_checktip"> <t:mutiLang langKey="operatename.rang2to20"/></span>
- </div>
- <div class="form">
- <label class="Validform_label"> 规则字段: </label>
- <input name="ruleColumn" class="inputxt" type="hidden" value="${TSFunctionRule.ruleColumn}"/>
- <input name="ruleColumnStr" class="inputxt" readonly value="${TSFunctionRule.ruleName}"/>
- </div>
- <div class="form">
- <label class="Validform_label"> 条件规则: </label>
- <t:dictSelect field="ruleConditions" typeGroupCode="rulecon" hasLabel="false" defaultVal="${operation.ruleConditions}" onchange="ruleConditionsChange()"></t:dictSelect>
- </div>
- <input name="TSFunction.id" value="${functionId}" type="hidden">
- <div class="form">
- <label class="Validform_label"> 规则值: </label>
- <%-- <input name="ruleValue" class="inputxt" readonly value="${operation.ruleValue}"/>--%>
- <c:if test="${ TSFunctionRuleValues.ruleType != null && TSFunctionRuleValues.ruleType == 'group' }">
- <div id="ruleConditionsIN" class="${empty operation.ruleConditions || operation.ruleConditions != 'IN' ? 'ruleConditionsHide' : ''}">
- <t:dictSelect id="dictSelectIN" field="ruleValue" type="checkbox" typeGroupCode="${TSFunctionRuleValues.ruleValue}" hasLabel="false" title="in" defaultVal="${operation.ruleValue}"></t:dictSelect>
- </div>
- <div id="ruleConditionsOther" class="${!empty operation.ruleConditions && operation.ruleConditions == 'IN' ? 'ruleConditionsHide' : ''}">
- <t:dictSelect id="dictSelectOther" field="ruleValue" type="select" typeGroupCode="${TSFunctionRuleValues.ruleValue}" hasLabel="false" title="other" defaultVal="${operation.ruleValue}"></t:dictSelect>
- </div>
- </c:if>
- <c:if test="${ TSFunctionRuleValues.ruleType != null && TSFunctionRuleValues.ruleType == 'join' }">
- <div id="ruleConditionsIN" class="${empty operation.ruleConditions || operation.ruleConditions != 'IN' ? 'ruleConditionsHide' : ''}">
- <t:dictSelect id="dictSelectIN" field="ruleValue" type="checkbox" dictTable="${TSFunctionRuleValues.ruleTable}" dictField="${TSFunctionRuleValues.ruleValue}" dictText="${TSFunctionRuleValues.ruleName}" defaultVal="${operation.ruleValue}"
- hasLabel="false" title="in" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
- </div>
- <div id="ruleConditionsOther" class="${!empty operation.ruleConditions && operation.ruleConditions == 'IN' ? 'ruleConditionsHide' : ''}">
- <t:dictSelect id="dictSelectOther" field="ruleValue" type="select" dictTable="${TSFunctionRuleValues.ruleTable}" dictField="${TSFunctionRuleValues.ruleValue}" dictText="${TSFunctionRuleValues.ruleName}" defaultVal="${operation.ruleValue}"
- hasLabel="false" title="other" extendJson="{class:'form-control',style:'width:150px'}"></t:dictSelect>
- </div>
- </c:if>
- <%-- <input name="ruleValue" class="inputxt" value="${operation.ruleValue}">--%>
- <%-- <t:dictSelect field="ruleConditions" typeGroupCode="rulecon" hasLabel="false" defaultVal="${operation.ruleConditions}"></t:dictSelect>--%>
- </div>
- </fieldset>
- </t:formvalid>
- </body>
- </html>
- <style>
- .ruleConditionsHide{
- display: none;
- }
- </style>
|