|
@@ -67,15 +67,16 @@
|
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
|
<label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
|
|
<label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
|
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
|
-<!-- <div id="fileListPre" class="uploader-list">-->
|
|
|
|
|
-<!-- <th:block th:unless="${data.fileDown==null || data.fileDown.file_url== null}">-->
|
|
|
|
|
-<!-- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.fileDown.file_url}" target="_blank">[[${data.fileDown.file_name}]]</a>-->
|
|
|
|
|
-<!-- </th:block>-->
|
|
|
|
|
-<!-- </div>-->
|
|
|
|
|
|
|
+ <!-- <div id="fileListPre" class="uploader-list">-->
|
|
|
|
|
+ <!-- <th:block th:unless="${data.fileDown==null || data.fileDown.file_url== null}">-->
|
|
|
|
|
+ <!-- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.fileDown.file_url}" target="_blank">[[${data.fileDown.file_name}]]</a>-->
|
|
|
|
|
+ <!-- </th:block>-->
|
|
|
|
|
+ <!-- </div>-->
|
|
|
<div class="uploader-list">
|
|
<div class="uploader-list">
|
|
|
<th:block th:unless="${data.fileList==null}"
|
|
<th:block th:unless="${data.fileList==null}"
|
|
|
th:each="item,itemStat: ${data.fileList}">
|
|
th:each="item,itemStat: ${data.fileList}">
|
|
|
- <p><a style="color: #0c80fe;" th:href="${fileUrl} + ${item.file_url}" target="_blank">[[${item.file_name}]]</a></p>
|
|
|
|
|
|
|
+ <p><a style="color: #0c80fe;" th:href="${fileUrl} + ${item.file_url}" target="_blank">[[${item.file_name}]]</a>
|
|
|
|
|
+ </p>
|
|
|
</th:block>
|
|
</th:block>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -108,7 +109,8 @@
|
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
|
<label class="form-label col-xs-4 col-sm-2"></label>
|
|
<label class="form-label col-xs-4 col-sm-2"></label>
|
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
<div class="formControls col-xs-8 col-sm-9">
|
|
|
- <input th:checked="${item.isDefault}" th:disabled="${item.isDefault}" type="checkbox" th:name="'defaultList['+${itemStat.index}+']'" th:value="${item.id}">要求反馈意见
|
|
|
|
|
|
|
+ <input th:checked="${item.isDefault}" th:disabled="${item.isDefault}" type="checkbox"
|
|
|
|
|
+ th:name="'defaultList['+${itemStat.index}+']'" th:value="${item.id}">要求反馈意见
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row cl" th:id=" 'department'+${item.id}">
|
|
<div class="row cl" th:id=" 'department'+${item.id}">
|
|
@@ -125,15 +127,19 @@
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody class="add_file_line" th:id="'tbody_department'+${item.id}">
|
|
<tbody class="add_file_line" th:id="'tbody_department'+${item.id}">
|
|
|
<!--<tr class="text-c" th:unless="${landSupplyCons.isDefault}"-->
|
|
<!--<tr class="text-c" th:unless="${landSupplyCons.isDefault}"-->
|
|
|
- <tr class="text-c"
|
|
|
|
|
|
|
+ <!--<tr class="text-c"
|
|
|
th:each="landSupplyCons,landSupplyConsStat: ${industrialLandSupplyConsultationList}"
|
|
th:each="landSupplyCons,landSupplyConsStat: ${industrialLandSupplyConsultationList}"
|
|
|
th:if="*{item.id+''==landSupplyCons.department_id}"
|
|
th:if="*{item.id+''==landSupplyCons.department_id}"
|
|
|
th:unless="${landSupplyCons.consultation == '请反馈明确意见'}"
|
|
th:unless="${landSupplyCons.consultation == '请反馈明确意见'}"
|
|
|
|
|
+ >-->
|
|
|
|
|
+ <tr class="text-c"
|
|
|
|
|
+ th:each="landSupplyCons,landSupplyConsStat: ${industrialLandSupplyConsultationList}"
|
|
|
|
|
+ th:if="*{item.id+''==landSupplyCons.department_id}"
|
|
|
>
|
|
>
|
|
|
<td class="td_material">
|
|
<td class="td_material">
|
|
|
<input type="text" class="input-text consultation" placeholder="请输入咨询的问题"
|
|
<input type="text" class="input-text consultation" placeholder="请输入咨询的问题"
|
|
|
th:name="'consultationList[1'+${landSupplyConsStat.index}+${itemStat.index}+'].consultation'"
|
|
th:name="'consultationList[1'+${landSupplyConsStat.index}+${itemStat.index}+'].consultation'"
|
|
|
- th:value="${landSupplyCons.consultation}" readonly = "readonly"/>
|
|
|
|
|
|
|
+ th:value="${landSupplyCons.consultation}" readonly="readonly"/>
|
|
|
<input class="department_id" type="hidden"
|
|
<input class="department_id" type="hidden"
|
|
|
th:name="'consultationList[1'+${landSupplyConsStat.index}+${itemStat.index}+'].department_id'"
|
|
th:name="'consultationList[1'+${landSupplyConsStat.index}+${itemStat.index}+'].department_id'"
|
|
|
th:value="${item.id}"/>
|
|
th:value="${item.id}"/>
|
|
@@ -252,8 +258,8 @@
|
|
|
$(obj).parent().parent().parent().parent().parent().siblings('.cl').children('.formControls').children('input')[0].checked = false
|
|
$(obj).parent().parent().parent().parent().parent().siblings('.cl').children('.formControls').children('input')[0].checked = false
|
|
|
} else {
|
|
} else {
|
|
|
let canChecked = false
|
|
let canChecked = false
|
|
|
- $(obj).parent().parent().siblings().each(function(index,item){
|
|
|
|
|
- if($(this).children('.td_material').children('.consultation')[0].attr(value!='')) {
|
|
|
|
|
|
|
+ $(obj).parent().parent().siblings().each(function (index, item) {
|
|
|
|
|
+ if ($(this).children('.td_material').children('.consultation')[0].attr(value != '')) {
|
|
|
canChecked = true
|
|
canChecked = true
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -261,10 +267,11 @@
|
|
|
}
|
|
}
|
|
|
$(obj).parent().parent().remove();
|
|
$(obj).parent().parent().remove();
|
|
|
}
|
|
}
|
|
|
- $(document).ready(function(){
|
|
|
|
|
- $('input[name^="consultationList"]').blur(function(){
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
|
+ $('input[name^="consultationList"]').blur(function () {
|
|
|
console.log('blur事件触发')
|
|
console.log('blur事件触发')
|
|
|
- $('input[name^="consultationList"]').each(function(index,item){
|
|
|
|
|
|
|
+ $('input[name^="consultationList"]').each(function (index, item) {
|
|
|
if (item.value) {
|
|
if (item.value) {
|
|
|
console.log('输入框内有值')
|
|
console.log('输入框内有值')
|
|
|
$(this).parent().parent().parent().parent().parent().siblings('.cl').children('.formControls').children('input')[0].checked = true
|
|
$(this).parent().parent().parent().parent().parent().siblings('.cl').children('.formControls').children('input')[0].checked = true
|
|
@@ -281,8 +288,8 @@
|
|
|
} else {
|
|
} else {
|
|
|
console.log('同级元素大于一个要判断是否为空')
|
|
console.log('同级元素大于一个要判断是否为空')
|
|
|
let canChecked = false
|
|
let canChecked = false
|
|
|
- $(this).parent().parent().siblings().each(function(index,item){
|
|
|
|
|
- if($(this).children('.td_material').children('.consultation')[0].attr(value!='')) {
|
|
|
|
|
|
|
+ $(this).parent().parent().siblings().each(function (index, item) {
|
|
|
|
|
+ if ($(this).children('.td_material').children('.consultation')[0].attr(value != '')) {
|
|
|
canChecked = true
|
|
canChecked = true
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|