|
|
@ -15,10 +15,6 @@ |
|
|
|
.layui-form-item .layui-input-inline { |
|
|
|
.layui-form-item .layui-input-inline { |
|
|
|
width: 260px; |
|
|
|
width: 260px; |
|
|
|
} |
|
|
|
} |
|
|
|
.label-set-component{ |
|
|
|
|
|
|
|
margin-left: 120px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.star-mark{color: red; display: none} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|
<script th:inline="javascript"> |
|
|
|
<script th:inline="javascript"> |
|
|
|
const file = /*[[${file}]]*/ {}; |
|
|
|
const file = /*[[${file}]]*/ {}; |
|
|
@ -34,7 +30,7 @@ |
|
|
|
<div class="layui-upload"> |
|
|
|
<div class="layui-upload"> |
|
|
|
<h2 th:text="${file.fileName}" style="margin-bottom: 10px;"></h2> |
|
|
|
<h2 th:text="${file.fileName}" style="margin-bottom: 10px;"></h2> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<form class="layui-form" id="file-form" lay-filter="file-form" style="border: 1px solid #eee; padding-top:15px"> |
|
|
|
<form class="layui-form dynamic-form" id="file-form" lay-filter="file-form" style="border: 1px solid #eee; padding-top:15px"> |
|
|
|
<input type="hidden" name="id"> |
|
|
|
<input type="hidden" name="id"> |
|
|
|
<input type="hidden" name="fileName"> |
|
|
|
<input type="hidden" name="fileName"> |
|
|
|
<input type="hidden" name="entityId"> |
|
|
|
<input type="hidden" name="entityId"> |
|
|
@ -48,107 +44,72 @@ |
|
|
|
<input type="hidden" name="currentChunkIndex"> |
|
|
|
<input type="hidden" name="currentChunkIndex"> |
|
|
|
<input type="hidden" name="MD5"> |
|
|
|
<input type="hidden" name="MD5"> |
|
|
|
<input type="hidden" name="isFirst"> |
|
|
|
<input type="hidden" name="isFirst"> |
|
|
|
<div class="layui-form-item"> |
|
|
|
<div class="layui-form-item" |
|
|
|
<div class="layui-inline"> |
|
|
|
th:each="field,iterStat : ${uploadFormConfig}" |
|
|
|
<label class="layui-form-label"><span style="color: red">*</span>文件密级</label> |
|
|
|
th:if="${field.isShow}" |
|
|
|
<div class="layui-input-inline"> |
|
|
|
th:style="${field.fieldType == 'textarea' ? 'width: calc(100% - 30px);' : ''}" |
|
|
|
<div dict-component="select" dict-type="secret_level" dict-name="secretLevel" |
|
|
|
th:with="username=*{userName}"> |
|
|
|
dict-width="100%" id="dict-secret-level"></div> |
|
|
|
<label th:if="${field.isRequired}" class="layui-form-label"> |
|
|
|
</div> |
|
|
|
<label style="color: red">*</label> |
|
|
|
</div> |
|
|
|
<label th:text="${field.showTitle}">*</label> |
|
|
|
<div class="layui-inline"> |
|
|
|
</label> |
|
|
|
<label class="layui-form-label">是否演训数据</label> |
|
|
|
<label th:if="${!field.isRequired}" class="layui-form-label" th:text="${field.showTitle}"></label> |
|
|
|
<div class="layui-input-inline"> |
|
|
|
<div class="layui-input-block"> |
|
|
|
<input class="layui-input" type="radio" name="exerciseData" value="0" title="否" checked lay-filter="exerciseData"/> |
|
|
|
<!-- 文本框类型 --> |
|
|
|
<input class="layui-input" type="radio" name="exerciseData" value="1" title="是" lay-filter="exerciseData"/> |
|
|
|
<input class="layui-input" type="text" autocomplete="off" |
|
|
|
</div> |
|
|
|
th:if="${field.fieldType == 'input' || field.fieldType == 'date'}" |
|
|
|
</div> |
|
|
|
th:name="${field.fieldName}" |
|
|
|
</div> |
|
|
|
th:value="${field.fieldName}" |
|
|
|
<div class="layui-form-item"> |
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
<div class="layui-inline"> |
|
|
|
th:placeholder="${field.showTitle}" |
|
|
|
<label class="layui-form-label">录入人员</label> |
|
|
|
th:readonly="${field.fieldName == 'inputDate' || field.fieldName == 'entryStaff'}" |
|
|
|
<div class="layui-input-inline"> |
|
|
|
th:lay-verify="${field.isRequired ? 'required' : ''}"> |
|
|
|
<input class="layui-input" name="entryStaff" type="text" readonly> |
|
|
|
<!-- 文本域类型 --> |
|
|
|
</div> |
|
|
|
<textarea class="layui-textarea" type="text" autocomplete="off" |
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>任务时间</label> |
|
|
|
th:if="${field.fieldType == 'textarea'}" |
|
|
|
<div class="layui-input-inline"> |
|
|
|
th:name="${field.fieldName}" |
|
|
|
<input class="layui-input" id="input-data" name="inputDate" type="text"> |
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
</div> |
|
|
|
th:placeholder="${field.showTitle}" |
|
|
|
</div> |
|
|
|
th:lay-verify="${field.isRequired ? 'required' : ''}"></textarea> |
|
|
|
</div> |
|
|
|
<th:block th:if="${field.fieldType == 'radio' && field.isShow}"> |
|
|
|
<div class="layui-form-item"> |
|
|
|
<input class="layui-inline" type="radio" |
|
|
|
<div class="layui-inline"> |
|
|
|
th:each="exp, stat : ${#strings.listSplit(field.dictType, ';')}" |
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>文件来源</label> |
|
|
|
th:with="tmp=${#strings.arraySplit(exp, '-')}, value=${tmp[0]}, title=${tmp[1]}, checked=${#arrays.length(tmp)==3?tmp[2]:false}" |
|
|
|
<div class="layui-input-inline"> |
|
|
|
th:name="${field.fieldName}" |
|
|
|
<div dict-component="select" dict-type="data_source" dict-name="source" |
|
|
|
th:value="${value}" |
|
|
|
dict-width="100%" id="dict-data-form"></div> |
|
|
|
th:title="${title}" |
|
|
|
</div> |
|
|
|
th:checked="${checked}" |
|
|
|
<label class="layui-form-label">目标/靶标类型</label> |
|
|
|
/> |
|
|
|
<div class="layui-input-inline"> |
|
|
|
</th:block> |
|
|
|
<div dict-component="select" dict-type="target_type" dict-name="targetNumber" |
|
|
|
<!-- 数据字典类型 --> |
|
|
|
dict-width="100%" id="dict-target-type"></div> |
|
|
|
<div dict-component="select" |
|
|
|
</div> |
|
|
|
th:if="${field.fieldType == 'dict'}" |
|
|
|
</div> |
|
|
|
th:disabled="${field.isDisabled}" |
|
|
|
</div> |
|
|
|
th:dict-type="${field.dictType}" |
|
|
|
<div class="layui-form-item"> |
|
|
|
th:dict-name="${field.fieldName}" |
|
|
|
<div class="layui-inline"> |
|
|
|
th:id="${'dict-'+field.fieldName}"></div> |
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>任务代号</label> |
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
|
|
|
|
|
<div dict-component="select" dict-type="task_code" dict-name="taskCode" |
|
|
|
|
|
|
|
dict-width="100%" id="dict-task-code"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>任务性质</label> |
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
|
|
|
|
|
<div dict-component="select" dict-type="task_nature" dict-name="taskNature" |
|
|
|
|
|
|
|
dict-width="100%" id="dict-task-nature"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="layui-form-item"> |
|
|
|
<div class="layui-form-item" style="width: 100%" th:each="labelSet, iterState:${LabelConfigSet}"> |
|
|
|
<div class="layui-inline"> |
|
|
|
|
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>部队代号</label> |
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
|
|
|
|
|
<div dict-component="select" dict-type="troop_code" dict-name="troopCode" |
|
|
|
|
|
|
|
dict-width="100%" id="dict-troop-code"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<label class="layui-form-label"><span class="star-mark">*</span>装备型号</label> |
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
|
|
|
|
|
<div dict-component="select" dict-type="equipment_model" dict-name="equipmentModel" |
|
|
|
|
|
|
|
dict-width="100%" id="dict-equipment-model"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="layui-form-item"> |
|
|
|
|
|
|
|
<div class="layui-inline"> |
|
|
|
|
|
|
|
<label class="layui-form-label">导弹编号</label> |
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
|
|
|
|
|
<div dict-component="select" dict-type="missile_number" dict-name="missileNumber" |
|
|
|
|
|
|
|
dict-width="100%" id="dict-missile-number"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="layui-form-item layui-form-text"> |
|
|
|
|
|
|
|
<label class="layui-form-label">文件描述</label> |
|
|
|
|
|
|
|
<div class="layui-input-block" style="margin-left: 120px; width:640px;"> |
|
|
|
|
|
|
|
<textarea class="layui-textarea" name="remark"></textarea> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="layui-form-item" th:each="labelSet, iterState:${LabelConfigSet}"> |
|
|
|
|
|
|
|
<label class="layui-form-label" th:text="${labelSet.fieldTitle}">标签类型</label> |
|
|
|
<label class="layui-form-label" th:text="${labelSet.fieldTitle}">标签类型</label> |
|
|
|
<div class="layui-input-block label-set-component" |
|
|
|
<div class="layui-input-block"> |
|
|
|
th:data-id="${labelSet.id}" |
|
|
|
<div class="label-set-component" |
|
|
|
th:data-field-title="${labelSet.fieldTitle}" |
|
|
|
th:data-id="${labelSet.id}" |
|
|
|
th:data-label-id="${labelSet.labelId}" |
|
|
|
th:data-field-title="${labelSet.fieldTitle}" |
|
|
|
th:data-label-title="${labelSet.labelTitle}" |
|
|
|
th:data-label-id="${labelSet.labelId}" |
|
|
|
th:data-label-id-path="${labelSet.labelIdPath}" |
|
|
|
th:data-label-title="${labelSet.labelTitle}" |
|
|
|
th:data-label-title-path="${labelSet.labelTitlePath}"></div> |
|
|
|
th:data-label-id-path="${labelSet.labelIdPath}" |
|
|
|
|
|
|
|
th:data-label-title-path="${labelSet.labelTitlePath}"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="layui-form-item other-label-item"> |
|
|
|
<div class="layui-form-item" style="width: 100%"> |
|
|
|
<label class="layui-form-label"><a class="label-type choose-data add-other" id="addOtherLabelBtn">添加</a>其他标签</label> |
|
|
|
<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 class="layui-input-block other-label-item"> |
|
|
|
|
|
|
|
<div class="label-set-component other-label" th:data-field-title="其他标签"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<button class="layui-btn layui-btn-sm" id="btn_submit" |
|
|
|
<button class="layui-btn layui-btn-sm" id="btn_submit" |
|
|
|
style="position: absolute; left: -50px; height: 0; border:0"> |
|
|
|
style="width: 100%;position: absolute; left: -50px; height: 0; border:0"> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|