...
|
...
|
@@ -22,11 +22,11 @@ common.util.__ajax({ |
|
|
console.log(resources);
|
|
|
}, true);
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/checkLock",
|
|
|
data: {id: param},
|
|
|
url: "/resources/updateLock",
|
|
|
data: {id: param,
|
|
|
status:1},
|
|
|
async: false
|
|
|
}, function (res) {
|
|
|
lockStatus = res.data;
|
|
|
}, true);
|
|
|
|
|
|
/*配置模块*/
|
...
|
...
|
@@ -465,7 +465,14 @@ function secondsToStrDate(seconds) { |
|
|
return common.util.__dateFormat(t, "yyyy-MM-dd hh:mm:ss");
|
|
|
}
|
|
|
function checkLockStatus(){
|
|
|
if(lockStatus == '0') {
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/checkLock",
|
|
|
data: {id: param},
|
|
|
async: false
|
|
|
}, function (res) {
|
|
|
lockStatus = res.data;
|
|
|
}, true);
|
|
|
if(lockStatus == '2') {
|
|
|
common.util.__tip("该资源位已被锁定,不能操作");
|
|
|
return false;
|
|
|
}else{
|
...
|
...
|
|