|
|
@@ -191,6 +191,8 @@ function addPic(pic) {
|
|
|
var i=0;
|
|
|
// var imgArr = $("#img_container .pic-class");
|
|
|
// if(imgArr && imgArr.length>0) i = imgArr.length;
|
|
|
+ if(!pic.startWith("http"))
|
|
|
+ pic= pic.replace(base_image_server_url,"/");
|
|
|
var picStr = genPicstr(pic);
|
|
|
$('#img_container').append(picStr);
|
|
|
$('a.lightbox-toggle').lightbox();
|
|
|
@@ -213,7 +215,8 @@ function showPics(pics, divId) {
|
|
|
}
|
|
|
|
|
|
function genPicstr(src){
|
|
|
-
|
|
|
+ if(!src.startWith("http"))
|
|
|
+ src= base_image_server_url+src;
|
|
|
var pic = '<div class="img_item" style="width:100px;height:90px;float:left;">'
|
|
|
+ '<a href="javascript:void(0)" onclick="removeImg(this)" style="float:right;position:relative;z-index:100;"><span class="label label-danger"><i class="icon icon-remove-circle"></i> 删除</span></a>'
|
|
|
+ '<a class="card lightbox-toggle" data-group="image-group-1" data-lightbox-group="example-3" href="' + src + '" style="position:absolute">'
|
|
|
@@ -450,7 +453,7 @@ function submitCheck() {
|
|
|
function showPre(id) {
|
|
|
// $('#myModal').modal({name:"dd"});
|
|
|
//预览提交把任务状态改为待提交
|
|
|
- no_return_common_service('/task/update', {"id":id,"check_status":3})
|
|
|
+ no_return_common_service('/task/update', {"id":$.checkTask.id,"check_status":3})
|
|
|
changePage("/view/mytask/taskDetail.html");
|
|
|
}
|
|
|
function showInvalid() {
|
|
|
@@ -475,7 +478,7 @@ function submitCheck4Appeal() {
|
|
|
function showPre4Appeal(id) {
|
|
|
// $('#myModal').modal({name:"dd"});
|
|
|
//预览提交把任务状态改为待提交
|
|
|
- no_return_common_service('/task/update', {"id":id,"check_status":13})
|
|
|
+ no_return_common_service('/task/update', {"id":$.checkTask.id,"check_status":13})
|
|
|
changePage("/view/mytask/taskDetail.html");
|
|
|
}
|
|
|
function saveValidReason() {
|