提交 ee76eb4a 编写于 作者: Skyeye云's avatar Skyeye云

表单布局新增操作关联信息

上级 de32b367
...@@ -55,7 +55,7 @@ layui.config({ ...@@ -55,7 +55,7 @@ layui.config({
$("#width").val(data.width); $("#width").val(data.width);
// 属性的限制条件 // 属性的限制条件
skyeyeClassEnumUtil.showEnumDataListByClassName("verificationParams", 'verificationSelect', "require", data.require, form, 'formerRequirement'); skyeyeClassEnumUtil.showEnumDataListByClassName("verificationParams", 'verificationSelect', "require", data.require, form, null, 'formerRequirement');
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
...@@ -23,10 +23,20 @@ layui.config({ ...@@ -23,10 +23,20 @@ layui.config({
$("#serviceStr").val(businessApi.serviceStr); $("#serviceStr").val(businessApi.serviceStr);
$("#api").val(businessApi.api); $("#api").val(businessApi.api);
skyeyeClassEnumUtil.showEnumDataListByClassName("httpMethodEnum", 'select', "method", businessApi.method, form); skyeyeClassEnumUtil.showEnumDataListByClassName("httpMethodEnum", 'select', "method", businessApi.method, form);
loadOperate(json.bean.operateIdList);
}}); }});
} else { } else {
skyeyeClassEnumUtil.showEnumDataListByClassName("dsFormPageType", 'select', "type", '', form); skyeyeClassEnumUtil.showEnumDataListByClassName("dsFormPageType", 'select', "type", '', form);
skyeyeClassEnumUtil.showEnumDataListByClassName("httpMethodEnum", 'select', "method", '', form); skyeyeClassEnumUtil.showEnumDataListByClassName("httpMethodEnum", 'select', "method", '', form);
loadOperate(null);
}
function loadOperate(defaultValue) {
AjaxPostUtil.request({url: reqBasePath + "queryOperateList", params: {className: parent.objectId}, type: 'json', method: 'POST', callback: function (json) {
var value = isNull(defaultValue) ? '' : defaultValue.toString();
dataShowType.showData(json, 'verificationSelect', 'operateIdList', value, form);
}});
} }
matchingLanguage(); matchingLanguage();
...@@ -38,7 +48,8 @@ layui.config({ ...@@ -38,7 +48,8 @@ layui.config({
name: $("#name").val(), name: $("#name").val(),
remark: $("#remark").val(), remark: $("#remark").val(),
type: $("#type").val(), type: $("#type").val(),
className: parent.objectId className: parent.objectId,
operateIdList: isNull($('#operateIdList').attr('value')) ? [] : $('#operateIdList').attr('value')
}; };
var businessApi = { var businessApi = {
serviceStr: $("#serviceStr").val(), serviceStr: $("#serviceStr").val(),
......
...@@ -19,12 +19,18 @@ ...@@ -19,12 +19,18 @@
</div> </div>
</div> </div>
<div class="layui-form-item layui-col-xs6"> <div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">布局类型</label> <label class="layui-form-label">布局类型<i class="red">*</i></label>
<div class="layui-input-block"> <div class="layui-input-block">
<select lay-filter="type" lay-search="" win-verify="required" id="type" name="type"> <select lay-filter="type" lay-search="" win-verify="required" id="type" name="type">
</select> </select>
</div> </div>
</div> </div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">关联操作</label>
<div class="layui-input-block" id="operateIdList">
</div>
</div>
<div class="layui-form-item layui-col-xs12"> <div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">简介</label> <label class="layui-form-label">简介</label>
<div class="layui-input-block"> <div class="layui-input-block">
......
...@@ -17,7 +17,7 @@ var skyeyeClassEnumUtil = { ...@@ -17,7 +17,7 @@ var skyeyeClassEnumUtil = {
*/ */
showEnumDataListByClassName: function (code, showType, showBoxId, defaultId, form, callback, valueKey) { showEnumDataListByClassName: function (code, showType, showBoxId, defaultId, form, callback, valueKey) {
var json = skyeyeClassEnumUtil.getEnumDataListByClassName(code); var json = skyeyeClassEnumUtil.getEnumDataListByClassName(code);
dataShowType.showData(json, showType, showBoxId, defaultId, form, callback, valueKey); dataShowType.showData(json, showType, showBoxId, defaultId, form, callback, null, valueKey);
}, },
getEnumDataNameByClassName: function (code, key, value, getKey) { getEnumDataNameByClassName: function (code, key, value, getKey) {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"httpMethodEnum": {"name": "http请求方式", "className": "skyeye-pro#com.skyeye.common.enumeration.HttpMethodEnum"}, "httpMethodEnum": {"name": "http请求方式", "className": "skyeye-pro#com.skyeye.common.enumeration.HttpMethodEnum"},
"verificationParams": {"name": "字段校验枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.VerificationParamsEnum"}, "verificationParams": {"name": "字段校验枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.VerificationParamsEnum"},
"isUsed": {"name": "是否使用的枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.IsUsedEnum"}, "isUsed": {"name": "是否使用的枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.IsUsedEnum"},
"whetherEnum": {"name": "是否的枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.WhetherEnum"},
"bossInterviewArrangementState": {"name": "面试安排状态枚举类", "className": "skyeye-flowable#com.skyeye.service.enumclass.BossInterviewArrangementState"}, "bossInterviewArrangementState": {"name": "面试安排状态枚举类", "className": "skyeye-flowable#com.skyeye.service.enumclass.BossInterviewArrangementState"},
"bossInterviewArrangementState1": { "bossInterviewArrangementState1": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册