...
|
...
|
@@ -13,6 +13,8 @@ var currIndex = 0; |
|
|
var lockStatus = 0;
|
|
|
//资源id
|
|
|
var param = location.href.substring(location.href.lastIndexOf("/") + 1);
|
|
|
//0:查看1:编辑
|
|
|
var lock_type = location.href.substring(location.href.lastIndexOf("/")-1,location.href.lastIndexOf("/"));
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/resContentIndex",
|
|
|
data: {id: param},
|
...
|
...
|
@@ -21,13 +23,16 @@ common.util.__ajax({ |
|
|
resources = res.data;
|
|
|
console.log(resources);
|
|
|
}, true);
|
|
|
common.util.__ajax({
|
|
|
if(lock_type==1){
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/updateLock",
|
|
|
data: {id: param,
|
|
|
status:1},
|
|
|
async: false
|
|
|
}, function (res) {
|
|
|
}, true);
|
|
|
}, function (res) {
|
|
|
}, true);
|
|
|
}
|
|
|
|
|
|
|
|
|
/*配置模块*/
|
|
|
var edit = new common.edit2(".modal-body", {
|
...
|
...
|
@@ -580,6 +585,10 @@ function dateStrToSeconds(date) { |
|
|
|
|
|
|
|
|
function checkLockStatus(){
|
|
|
if(lock_type==0){
|
|
|
common.util.__tip("请点击内容编辑进行操作");
|
|
|
return false;
|
|
|
}
|
|
|
common.util.__ajax({
|
|
|
url: "/resources/checkLock",
|
|
|
data: {id: param},
|
...
|
...
|
|