|
|
@ -56,13 +56,15 @@ |
|
|
|
<label th:if="${!field.isRequired}" class="layui-form-label" th:text="${field.showTitle}"></label> |
|
|
|
<label th:if="${!field.isRequired}" class="layui-form-label" th:text="${field.showTitle}"></label> |
|
|
|
<div class="layui-input-block"> |
|
|
|
<div class="layui-input-block"> |
|
|
|
<!-- 文本框类型 --> |
|
|
|
<!-- 文本框类型 --> |
|
|
|
|
|
|
|
<!-- 任务时间修改为可编辑 2024/04/10 by xiongcl --> |
|
|
|
<input class="layui-input" type="text" autocomplete="off" |
|
|
|
<input class="layui-input" type="text" autocomplete="off" |
|
|
|
|
|
|
|
th:id="${field.fieldName == 'inputDate' ? 'edit-date' : 'edit' }" |
|
|
|
th:if="${field.fieldType == 'input' || field.fieldType == 'date'}" |
|
|
|
th:if="${field.fieldType == 'input' || field.fieldType == 'date'}" |
|
|
|
th:name="${field.fieldName}" |
|
|
|
th:name="${field.fieldName}" |
|
|
|
th:value="${field.fieldName}" |
|
|
|
th:value="${field.fieldName}" |
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
th:placeholder="${field.showTitle}" |
|
|
|
th:placeholder="${field.showTitle}" |
|
|
|
th:readonly="${field.fieldName == 'inputDate' || field.fieldName == 'entryStaff'}" |
|
|
|
th:readonly="${field.fieldName == 'entryStaff'}" |
|
|
|
th:lay-verify="${field.isRequired ? 'required' : ''}"> |
|
|
|
th:lay-verify="${field.isRequired ? 'required' : ''}"> |
|
|
|
<!-- 文本域类型 --> |
|
|
|
<!-- 文本域类型 --> |
|
|
|
<textarea class="layui-textarea" type="text" autocomplete="off" |
|
|
|
<textarea class="layui-textarea" type="text" autocomplete="off" |
|
|
@ -209,6 +211,17 @@ |
|
|
|
isInitValue: true, |
|
|
|
isInitValue: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 任务时间修改为可编辑 2024/04/10 by xiongcl --> |
|
|
|
|
|
|
|
laydate.render({ |
|
|
|
|
|
|
|
elem: '#edit-date', |
|
|
|
|
|
|
|
format: "yyyy-MM-dd HH:mm:ss", |
|
|
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
|
|
value: new Date(), |
|
|
|
|
|
|
|
isInitValue: true, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function save() { |
|
|
|
function save() { |
|
|
|