|
|
@@ -1,6 +1,6 @@
|
|
|
var videoPlayer;
|
|
|
var isfullscreen = false;
|
|
|
-var videoids;
|
|
|
+var videoid;
|
|
|
|
|
|
function dbclick() {
|
|
|
|
|
|
@@ -34,8 +34,8 @@ function videorecordstart(type) {
|
|
|
|
|
|
//开始截取视屏
|
|
|
post_common_service_nohead(base_image_server_url + 'fileServer/file/videocut', {
|
|
|
- "targetfilename": videoids,
|
|
|
- "filename": videoids.split(".")[0],
|
|
|
+ "targetfilename": videoid,
|
|
|
+ "filename": videoid.split(".")[0],
|
|
|
"startTime": startTimec,
|
|
|
"endtime": endTimec
|
|
|
}, function(data) {
|
|
|
@@ -46,8 +46,8 @@ function videorecordstart(type) {
|
|
|
|
|
|
//开始截取视屏
|
|
|
post_common_service_nohead(base_image_server_url + 'fileServer/file/videopiccut', {
|
|
|
- "targetfilename": videoids,
|
|
|
- "filename": videoids.split(".")[0],
|
|
|
+ "targetfilename": videoid,
|
|
|
+ "filename": videoid.split(".")[0],
|
|
|
"startTime": currentTime,
|
|
|
}, function(data) {
|
|
|
addPic(data.path)
|
|
|
@@ -98,14 +98,33 @@ function initCheck() {
|
|
|
//TODO 获取分数
|
|
|
queryCheckScores();
|
|
|
|
|
|
- videoids = $.checkTask.recordVideos;
|
|
|
+ videos = $.checkTask.recordVideos;
|
|
|
|
|
|
|
|
|
+
|
|
|
+ if (videos.split(",").length > 0) {
|
|
|
+ var vlist = videos.split(",");
|
|
|
+
|
|
|
+ var htmlo = "";
|
|
|
+ for (var v in vlist) {
|
|
|
+
|
|
|
+ var vv = vlist[v];
|
|
|
+ console.log(vv.split("/")[0]);
|
|
|
+ var o = "<option val='" + vv + "' " + (v == 0 ? "selected" : "") + " >" + vv.split("/")[0] + "</option>"
|
|
|
+ htmlo += o;
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#videoslist").html(htmlo);
|
|
|
+ }
|
|
|
+
|
|
|
+ videoid = videos.split(",")[0]
|
|
|
+
|
|
|
var videoObject = {
|
|
|
container: '.video', //“#”代表容器的ID,“.”或“”代表容器的class
|
|
|
variable: 'player', //该属性必需设置,值等于下面的new chplayer()的对象
|
|
|
//poster: 'pic/wdm.jpg', //封面图片
|
|
|
- video: base_image_server_url + 'file/' + videoids //视频地址
|
|
|
+ autoplay: true,
|
|
|
+ video: base_image_server_url + 'file/' + videoid //视频地址
|
|
|
};
|
|
|
videoPlayer = new ckplayer(videoObject);
|
|
|
videoPlayer.addListener('time', timeHandler);
|
|
|
@@ -115,6 +134,19 @@ function initCheck() {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function onvideoselect(obj) {
|
|
|
+ videoid = (obj.value);
|
|
|
+ var videoObject = {
|
|
|
+ container: '.video', //“#”代表容器的ID,“.”或“”代表容器的class
|
|
|
+ variable: 'player', //该属性必需设置,值等于下面的new chplayer()的对象
|
|
|
+ //poster: 'pic/wdm.jpg', //封面图片
|
|
|
+ autoplay: true,
|
|
|
+ video: base_image_server_url + 'file/' + videoid //视频地址
|
|
|
+ };
|
|
|
+ videoPlayer = new ckplayer(videoObject);
|
|
|
+ videoPlayer.addListener('time', timeHandler);
|
|
|
+}
|
|
|
+
|
|
|
function setfastorslow(type, speed) {
|
|
|
if (type == 0) {
|
|
|
$("#fast_info").html("");
|
|
|
@@ -180,27 +212,27 @@ function getAreaCheckCount() {
|
|
|
});
|
|
|
//var html = '';
|
|
|
var userids = $.checkTask.checked_users.split(",");
|
|
|
- var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
+ var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
var param = {
|
|
|
- "period_id": $.checkTask.period_id,
|
|
|
- "checked_users":$.checkTask.checked_users
|
|
|
- };
|
|
|
- var url = base_server_url + "/q/task/getTasks/0/0";
|
|
|
- ajaxPost(url, param, function(response) {
|
|
|
- for(var i in userids){
|
|
|
- console.log(response);
|
|
|
- var html ='<label id="'+userids[i]+'"></label>'+ usernames[i]+'(次数:'+
|
|
|
- '<a href="javascript:void(0)" onclick="showCheckDetailCount(\''+userids[i]+'\')"><span class="label label-primary" id="">'+response[i].length+'</span></a>)';
|
|
|
- $("#checked_area").append(html);
|
|
|
-
|
|
|
- }
|
|
|
- }, function(error) {
|
|
|
- if (fail)
|
|
|
- fail("网络错误");
|
|
|
- else
|
|
|
- console.log("网络错误");
|
|
|
- });
|
|
|
-
|
|
|
+ "period_id": $.checkTask.period_id,
|
|
|
+ "checked_users": $.checkTask.checked_users
|
|
|
+ };
|
|
|
+ var url = base_server_url + "/q/task/getTasks/0/0";
|
|
|
+ ajaxPost(url, param, function(response) {
|
|
|
+ for (var i in userids) {
|
|
|
+ // console.log(response);
|
|
|
+ var html = '<label id="' + userids[i] + '"></label>' + usernames[i] + '(次数:' +
|
|
|
+ '<a href="javascript:void(0)" onclick="showCheckDetailCount(\'' + userids[i] + '\')"><span class="label label-primary" id="">' + response[i].length + '</span></a>)';
|
|
|
+ $("#checked_area").append(html);
|
|
|
+
|
|
|
+ }
|
|
|
+ }, function(error) {
|
|
|
+ if (fail)
|
|
|
+ fail("网络错误");
|
|
|
+ else
|
|
|
+ console.log("网络错误");
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -344,17 +376,17 @@ function showEditCheckScore(id) {
|
|
|
}, ['350px', '550px'], '#score-detail-div', 'r');
|
|
|
var list = new Array();
|
|
|
var userids = $.checkTask.checked_users.split(",");
|
|
|
- var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
+ var usernames = $.checkTask.checked_users_name.split(",");
|
|
|
console.log(rowData);
|
|
|
var optStr = '';
|
|
|
- for (var i in userids) {
|
|
|
- if (userids[i] == rowData.checked_area)
|
|
|
- optStr += '<option value="' + userids[i] + '" selected="selected">' + usernames[i] + '</option>';
|
|
|
- else
|
|
|
- optStr += '<option value="' + userids[i] + '">' + usernames[i] + '</option>';
|
|
|
- }
|
|
|
- $("#check_checked_person_select").html('');
|
|
|
- $("#check_checked_person_select").html(optStr);
|
|
|
+ for (var i in userids) {
|
|
|
+ if (userids[i] == rowData.checked_area)
|
|
|
+ optStr += '<option value="' + userids[i] + '" selected="selected">' + usernames[i] + '</option>';
|
|
|
+ else
|
|
|
+ optStr += '<option value="' + userids[i] + '">' + usernames[i] + '</option>';
|
|
|
+ }
|
|
|
+ $("#check_checked_person_select").html('');
|
|
|
+ $("#check_checked_person_select").html(optStr);
|
|
|
$("#score_id_text").val(rowData.id);
|
|
|
$("#check_item_text").val(rowData.content);
|
|
|
$("#check_score_text").val(rowData.check_item_score);
|