企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 执行情况 ## 如图: ![mark](http://qiniu.newthink.cc/blog/20171207-145514118.png) ## HTML 注意:`id="executeCondition"` 或 `<span id="executeCondition">执行情况加载中...</span>` ``` <div class="layui-form-item"> <label class="layui-form-label" style="width: 85px; font-weight: bold;">执行情况:</label> <div class="layui-input-block" style="line-height: 38px;" id="executeCondition"> 执行情况加载中... </div> </div> ``` 引用 ``` <script src="__STATIC__/tmc/tr_selectPolicyPassenger.js"></script> ``` 执行 ``` selectTrain.policyCheck(train_type,seatname); // 验证个人预定差旅政策 ``` ## 主要代码 ``` // 验证个人预定差旅政策 , policyCheck:function(train_type,seatname){ var url_check_train_policy = checkTrainPolicyUrl; var params_check_train_policy = { "policyId": trainPolicyId ,"seatType": train_type ,"seatName": seatname }; $.ajax({ type : "GET", url : url_check_train_policy, data: params_check_train_policy, error: function(request) { alert("服务器繁忙, 请联系管理员!"); return; }, success: function(data) { if(data.length!=0){ policyCondition = data; $('#executeCondition').text(''); //执行情况 $('#executeCondition').text(data.check_msg); //执行情况 }else{ //todo } } }) } ```