1.添加项目-移除自动赋值version

2.修改ehcache持久化磁盘的异常
This commit is contained in:
kingsfighter 2020-09-21 21:31:31 +08:00
parent 034c3d9522
commit 9afaf7bb79
2 changed files with 27 additions and 24 deletions

View File

@ -46,7 +46,7 @@
<cache name="sys-cache"
maxEntriesLocalHeap="1000"
eternal="true"
overflowToDisk="true"
overflowToDisk="false"
statistics="true">
</cache>
@ -54,7 +54,7 @@
<cache name="sys-config"
maxEntriesLocalHeap="1000"
eternal="true"
overflowToDisk="true"
overflowToDisk="false"
statistics="true">
</cache>
@ -62,14 +62,14 @@
<cache name="sys-dict"
maxEntriesLocalHeap="1000"
eternal="true"
overflowToDisk="true"
overflowToDisk="false"
statistics="true">
</cache>
<!-- 系统会话缓存 -->
<cache name="shiro-activeSessionCache"
maxElementsInMemory="10000"
overflowToDisk="true"
overflowToDisk="false"
eternal="true"
timeToLiveSeconds="0"
timeToIdleSeconds="0"

View File

@ -179,7 +179,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">版本:</label>
<div class="col-sm-8">
<input name="version" id="version" class="form-control" type="text" maxlength="30" readOnly>
<input name="version" id="version" class="form-control" type="text" maxlength="30" required>
</div>
</div>
</div>
@ -437,7 +437,10 @@
},
maxHeightBot:{
number: true
}
},
version:{
number: true
}
},
focusCleanup: true
});
@ -559,23 +562,23 @@
if (null == v || "" == v) {
return false;
}
$.ajax({
url: prefix + "/getLastVersion",
data: "projectName=" + v,
cache: false,
success: function (json) {
if (null == json || "" == json) {
$("#version").val(1);
hasOldVersion = false;
resetForm();
} else //有相同项目,开始赋值
{
hasOldVersion = true;
oldProjectData = json;
fillParams();
}
}
});
// $.ajax({
// url: prefix + "/getLastVersion",
// data: "projectName=" + v,
// cache: false,
// success: function (json) {
// if (null == json || "" == json) {
// $("#version").val(1);
// hasOldVersion = false;
// resetForm();
// } else //有相同项目,开始赋值
// {
// hasOldVersion = true;
// oldProjectData = json;
// fillParams();
// }
// }
// });
}
@ -594,7 +597,7 @@
function fillParams()
{
data = oldProjectData;
$("#version").val(data.version + 1);
// $("#version").val(data.version + 1);
var checkType = $("select[name='checkType']");
checkType.val(data.checkType).trigger("change");
var dfmCheck = checkType.children(":selected").text();