|
|
@@ -159,21 +159,21 @@ $("#save-check").click(function() {
|
|
|
return;
|
|
|
}
|
|
|
data = {
|
|
|
- "id": check_id,
|
|
|
- "dept_id": dept_id,
|
|
|
- "user_id": user_id,
|
|
|
- "check_item_id": check_item_id,
|
|
|
- "check_type": check_type,
|
|
|
- "remark": remark,
|
|
|
- "check_score": check_score,
|
|
|
- "file_ids": file_ids,
|
|
|
- "check_time": check_time,
|
|
|
- "check_time_name": check_time_name,
|
|
|
- "check_num": check_num,
|
|
|
- "wrecker_check_type": wrecker_check_type,
|
|
|
- "special_check_type": special_check_type
|
|
|
- }
|
|
|
- // console.log(data);
|
|
|
+ "id": check_id,
|
|
|
+ "dept_id": dept_id,
|
|
|
+ "user_id": user_id,
|
|
|
+ "check_item_id": check_item_id,
|
|
|
+ "check_type": check_type,
|
|
|
+ "remark": remark,
|
|
|
+ "check_score": check_score,
|
|
|
+ "file_ids": file_ids,
|
|
|
+ "check_time": check_time,
|
|
|
+ "check_time_name": check_time_name,
|
|
|
+ "check_num": check_num,
|
|
|
+ "wrecker_check_type": wrecker_check_type,
|
|
|
+ "special_check_type": special_check_type
|
|
|
+ }
|
|
|
+ console.log(data);
|
|
|
if (idUpdate) {
|
|
|
post_common_service("checkOther/update", data, function(data) {
|
|
|
file_src = "";
|
|
|
@@ -482,9 +482,9 @@ function setPersonal(selectUserId) {
|
|
|
var workno = data[i].workno;
|
|
|
if (workno) workno = workno.substring(workno.length - 3);
|
|
|
if (data[i].id == userId) {
|
|
|
- tempStr += "<option value=" + data[i].id + "selected='selected' > " + workno + data[i].truename + "</option>";
|
|
|
+ tempStr += "<option value='" + data[i].id + "' selected='selected' > " + workno + data[i].truename + "</option>";
|
|
|
} else {
|
|
|
- tempStr += "<option value=" + data[i].id + (i == 0 ? " selected='selected'" : "") + ">" + workno + data[i].truename + "</option>";
|
|
|
+ tempStr += "<option value='" + data[i].id + "'" + (i == 0 ? " selected='selected'" : "") + "”>" + workno + data[i].truename + "</option>";
|
|
|
}
|
|
|
// }
|
|
|
// }
|