|
@@ -1096,32 +1096,31 @@
|
|
|
<c:forEach items="${taskTypeSettingMap.taskTypeSettingList}" var="sign" varStatus="s">
|
|
|
<tr class="sign-unit">
|
|
|
<td class="fixedTd">
|
|
|
- ${sign.typeName}
|
|
|
- </td>
|
|
|
- <td class="fixedTd">
|
|
|
- <select <c:if test="${3==tstate}">disabled="false"</c:if> class="typeStateSelect" name="typeStateSelect">
|
|
|
- <c:if test="${sign.typeState == null}"><option value="">请选择</option></c:if>
|
|
|
- <option data-id="${sign.id}" value="0" <c:if test="${0==sign.typeState}">selected="selected"</c:if> >未满足</option>
|
|
|
- <option data-id="${sign.id}" value="1" <c:if test="${1==sign.typeState}">selected="selected"</c:if> >已满足</option>
|
|
|
- </select>
|
|
|
+ ${sign.typeName}
|
|
|
</td>
|
|
|
+
|
|
|
+ <c:if test="${sign.typeColor == '2'}">
|
|
|
+ <td class="fixedTd">
|
|
|
+ 1:<input style="width:60px;" <c:if test="${3==tstate}">disabled="false"</c:if> type="text" class="mt-input" name="typeStateInput" value="${sign.typeState}">
|
|
|
+ <c:if test="${3!=tstate}"><button class="ajb mt-btn" data-id="${sign.id}">确认</button> </c:if>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
+
|
|
|
+ <c:if test="${sign.typeColor != '2'}">
|
|
|
+ <td class="fixedTd" <c:if test="${3==tstate}">disabled="false"</c:if>>
|
|
|
+ <select <c:if test="${3==tstate}">disabled="false"</c:if> class="typeStateSelect" name="typeStateSelect">
|
|
|
+ <c:if test="${sign.typeState == null}"><option value="">请选择</option></c:if>
|
|
|
+ <option data-id="${sign.id}" value="0" <c:if test="${0==sign.typeState}">selected="selected"</c:if> >未满足</option>
|
|
|
+ <option data-id="${sign.id}" value="1" <c:if test="${1==sign.typeState}">selected="selected"</c:if> >已满足</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
+
|
|
|
<td class="fixedTd" style="white-space: nowrap">
|
|
|
<fmt:formatDate type="time" value="${sign.updateTime}" pattern="yyyy-MM-dd HH:mm"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
- <tr class="sign-unit">
|
|
|
- <td class="fixedTd">
|
|
|
- 案件比
|
|
|
- </td>
|
|
|
- <td class="fixedTd">
|
|
|
- 1:<input style="width:60px;" <c:if test="${3==tstate}">disabled="false"</c:if> type="text" class="mt-input" id="typeStateInput" name="typeStateInput" value="${taskTypeSettingMap.caseProportion.typeState}">
|
|
|
- <c:if test="${3!=tstate}"><button class="ajb mt-btn">确认</button> </c:if>
|
|
|
- </td>
|
|
|
- <td class="fixedTd" style="white-space: nowrap">
|
|
|
- <fmt:formatDate type="time" value="${taskTypeSettingMap.caseProportion.updateTime}" pattern="yyyy-MM-dd HH:mm"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -6063,15 +6062,14 @@
|
|
|
})
|
|
|
|
|
|
$('.ajb').click(function() {
|
|
|
- var value = $('#typeStateInput').val()
|
|
|
- var z_reg = /^\+?[1-9][0-9]*$/
|
|
|
+ var value = $(this).prev().val();
|
|
|
+ var z_reg = /^\+?[1-9][0-9]*$/;
|
|
|
if (!z_reg.test(value)) {
|
|
|
$.alert("请输入正整数!");
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- var id = $('body').attr('data-id')
|
|
|
- callAjaxRequest("taskListWebService","saveCaseProportion",id,value,{
|
|
|
+ var id = $(this).attr('data-id')
|
|
|
+ callAjaxRequest("taskListWebService","updateTaskTypeSetting",id, value,{
|
|
|
success:function(result){
|
|
|
$.ok("修改成功!",function(){
|
|
|
window.location.reload();
|