|
|
|
@ -34,7 +34,27 @@ |
|
|
|
|
<div class="layui-form-item"> |
|
|
|
|
<div id="metadataTablesTab"><label style="color: red">* 请先选择数据表</label></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="layui-form-item"> |
|
|
|
|
<div class="layui-form-item" th:each="field,iterStat : ${metadataFormConfig}" th:if="${field.isShow}"> |
|
|
|
|
<label class="layui-form-label" th:text="${field.showTitle}">字段名称</label> |
|
|
|
|
<div class="layui-input-block"> |
|
|
|
|
<input type="hidden" name="metadataComment" th:if="${field.fieldName == 'metadataName'}"> |
|
|
|
|
<!-- 文本框输入框类型 --> |
|
|
|
|
<input class="layui-input" type="text" autocomplete="off" |
|
|
|
|
th:if="${field.fieldType == 'input'}" |
|
|
|
|
th:name="${field.fieldName}" |
|
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
|
th:placeholder="${field.showTitle}" |
|
|
|
|
th:lay-verify="${field.isRequired ? 'required' : ''}"> |
|
|
|
|
<!-- 数据字典类型 --> |
|
|
|
|
<div dict-component="select" |
|
|
|
|
th:if="${field.fieldType == 'dict'}" |
|
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
|
th:dict-type="${field.dictType}" |
|
|
|
|
th:dict-name="${field.fieldName}" |
|
|
|
|
th:id="${'dict-'+field.fieldName}"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!--<div class="layui-form-item"> |
|
|
|
|
<label class="layui-form-label">数据名称</label> |
|
|
|
|
<div class="layui-input-block"> |
|
|
|
|
<input type="hidden" name="metadataComment"> |
|
|
|
@ -76,7 +96,7 @@ |
|
|
|
|
<input type="text" name="themeTask" autocomplete="off" placeholder="主题任务" |
|
|
|
|
class="layui-input"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div>--> |
|
|
|
|
<div class="layui-form-item" th:each="labelSet, iterState:${LabelConfigSet}"> |
|
|
|
|
<label class="layui-form-label" th:text="${labelSet.fieldTitle}">标签类型</label> |
|
|
|
|
<div class="layui-input-block label-set-component" |
|
|
|
@ -88,8 +108,10 @@ |
|
|
|
|
th:data-label-title-path="${labelSet.labelTitlePath}"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="layui-form-item other-label-item"> |
|
|
|
|
<label class="layui-form-label"><a class="label-type choose-data add-other" id="addOtherLabelBtn">添加</a>其他标签</label> |
|
|
|
|
<div class="layui-input-block label-set-component other-label" th:data-field-title="其他标签"></div> |
|
|
|
|
<label class="layui-form-label"><a class="label-type choose-data add-other" |
|
|
|
|
id="addOtherLabelBtn">添加</a>其他标签</label> |
|
|
|
|
<div class="layui-input-block label-set-component other-label" |
|
|
|
|
th:data-field-title="其他标签"></div> |
|
|
|
|
</div> |
|
|
|
|
<!-- 隐藏域 --> |
|
|
|
|
<input type="text" name="id" hidden="hidden"/> |
|
|
|
@ -147,6 +169,5 @@ |
|
|
|
|
{{# } }} |
|
|
|
|
</script> |
|
|
|
|
<!-- js --> |
|
|
|
|
<script th:src="@{/js/business/mark/markTag.js}"></script> |
|
|
|
|
<script th:src="@{/js/business/metadata/edit.js}"></script> |
|
|
|
|
</html> |
|
|
|
|