|
|
@@ -1,17 +1,18 @@
|
|
|
var cur_status;
|
|
|
var cur_page;
|
|
|
+
|
|
|
function initAppealPage() {
|
|
|
initQueryParams();
|
|
|
initTableRowBtn();
|
|
|
queryAppeal();
|
|
|
}
|
|
|
+
|
|
|
function initQueryParams() {
|
|
|
// 仅选择日期
|
|
|
- $("#start_time").datetimepicker(
|
|
|
- {
|
|
|
- language: "zh-CN",
|
|
|
+ $("#start_time").datetimepicker({
|
|
|
+ language: "zh-CN",
|
|
|
weekStart: 1,
|
|
|
- todayBtn: 1,
|
|
|
+ todayBtn: 1,
|
|
|
autoclose: 1,
|
|
|
todayHighlight: 1,
|
|
|
startView: 2,
|
|
|
@@ -20,11 +21,10 @@ function initQueryParams() {
|
|
|
format: "yyyy-mm-dd"
|
|
|
});
|
|
|
// 仅选择日期
|
|
|
- $("#end_time").datetimepicker(
|
|
|
- {
|
|
|
- language: "zh-CN",
|
|
|
+ $("#end_time").datetimepicker({
|
|
|
+ language: "zh-CN",
|
|
|
weekStart: 1,
|
|
|
- todayBtn: 1,
|
|
|
+ todayBtn: 1,
|
|
|
autoclose: 1,
|
|
|
todayHighlight: 1,
|
|
|
startView: 2,
|
|
|
@@ -33,238 +33,249 @@ function initQueryParams() {
|
|
|
format: "yyyy-mm-dd"
|
|
|
});
|
|
|
//去上次查询保留的参数
|
|
|
- var store_params = $.zui.store.get('store_param_'+current_url);
|
|
|
+ var store_params = $.zui.store.get('store_param_' + current_url);
|
|
|
var checked_dept = null;
|
|
|
var position_id = null;
|
|
|
var checked_person = null;
|
|
|
- if(store_params) {
|
|
|
+ if (store_params) {
|
|
|
checked_dept = store_params.checked_dept;
|
|
|
position_id = store_params.position_id;
|
|
|
checked_person = store_params.checked_person;
|
|
|
- $("#start_time").val(store_params.start_time.substr(0,11));
|
|
|
- $("#end_time").val(store_params.end_time.substr(0,11));
|
|
|
+ $("#start_time").val(store_params.start_time.substr(0, 11));
|
|
|
+ $("#end_time").val(store_params.end_time.substr(0, 11));
|
|
|
// $("#hasScoreList").val(store_params.hasScore);
|
|
|
cur_page = store_params.currentpage;
|
|
|
}
|
|
|
- if(roleContains("STATION")){
|
|
|
- checked_dept = getCurrentUser().organid;
|
|
|
+ if (roleContains("STATION")) {
|
|
|
+ checked_dept = getCurrentUser().organid;
|
|
|
}
|
|
|
- setFeSelect("#fsList",checked_dept);
|
|
|
- if(roleContains("STATION")){
|
|
|
- $("#fsList").attr('disabled','disabled');
|
|
|
+ setFeSelect("#fsList", checked_dept);
|
|
|
+ if (roleContains("STATION")) {
|
|
|
+ $("#fsList").attr('disabled', 'disabled');
|
|
|
}
|
|
|
- setJobSelect("#jobSelect",position_id);
|
|
|
+ setJobSelect("#jobSelect", position_id);
|
|
|
|
|
|
- setFeePersonSelect("#feePersonList",checked_person,checked_dept);
|
|
|
+ setFeePersonSelect("#feePersonList", checked_person, checked_dept);
|
|
|
|
|
|
- $('#fsList').change(function(){
|
|
|
- setFeePersonSelect("#feePersonList",null,$("#fsList").val());
|
|
|
- })
|
|
|
- //获取页面参数
|
|
|
+ $('#fsList').change(function() {
|
|
|
+ setFeePersonSelect("#feePersonList", null, $("#fsList").val());
|
|
|
+ })
|
|
|
+ //获取页面参数
|
|
|
var page_params = $.zui.store.get("page_params");
|
|
|
- if(page_params && page_params.status) {
|
|
|
+ if (page_params && page_params.status) {
|
|
|
cur_status = page_params.status;
|
|
|
}
|
|
|
|
|
|
- if(cur_status==14 || cur_status==15 || cur_status==16){
|
|
|
- $("#appealResultDiv").show();
|
|
|
+ if (cur_status == 14 || cur_status == 15 || cur_status == 16) {
|
|
|
+ $("#appealResultDiv").show();
|
|
|
}
|
|
|
}
|
|
|
//初始化表行按钮
|
|
|
function initTableRowBtn() {
|
|
|
- $.zui.store.set("task_table_btn_11",[{func:'seeCheckAudit',text:'处理',icon_class:'icon-tasks'}]);
|
|
|
- $.zui.store.set("task_table_btn_12",[{func:'showAppealCheck',text:'开始稽查',icon_class:'icon-eye-open'}]);
|
|
|
- $.zui.store.set("task_table_btn_13",[{func:'showAppealCheck',text:'开始稽查',icon_class:'icon-eye-open'}]);
|
|
|
- $.zui.store.set("task_table_btn_17",[{func:'showAppealContinueCheck',text:'继续稽查',icon_class:'icon-eye-open'}]);
|
|
|
- $.zui.store.set("task_table_btn_14",[{func:'seeCheckAudit',text:'详情',icon_class:'icon-tasks'},
|
|
|
- {func:'dispatchAppealTaskById',text:'下发',icon_class:'icon-signin'}]);
|
|
|
+ $.zui.store.set("task_table_btn_11", [{ func: 'seeCheckAudit', text: '处理', icon_class: 'icon-tasks' }]);
|
|
|
+ $.zui.store.set("task_table_btn_12", [{ func: 'showAppealCheck', text: '开始稽查', icon_class: 'icon-eye-open' }]);
|
|
|
+ $.zui.store.set("task_table_btn_13", [{ func: 'showAppealCheck', text: '开始稽查', icon_class: 'icon-eye-open' }]);
|
|
|
+ $.zui.store.set("task_table_btn_17", [{ func: 'showAppealContinueCheck', text: '继续稽查', icon_class: 'icon-eye-open' }]);
|
|
|
+ $.zui.store.set("task_table_btn_14", [{ func: 'seeCheckAudit', text: '详情', icon_class: 'icon-tasks' },
|
|
|
+ { func: 'dispatchAppealTaskById', text: '下发', icon_class: 'icon-signin' }
|
|
|
+ ]);
|
|
|
// $.zui.store.set("task_table_btn_14",[{func:'showTaskDetail',text:'详情',icon_class:'icon-tasks'}]);
|
|
|
- $.zui.store.set("task_table_btn_15",[{func:'seeCheckAudit',text:'详情',icon_class:'icon-tasks'}]);
|
|
|
- $.zui.store.set("task_table_btn_16",[{func:'seeCheckAudit',text:'详情',icon_class:'icon-tasks'}]);
|
|
|
+ $.zui.store.set("task_table_btn_15", [{ func: 'seeCheckAudit', text: '详情', icon_class: 'icon-tasks' }]);
|
|
|
+ $.zui.store.set("task_table_btn_16", [{ func: 'seeCheckAudit', text: '详情', icon_class: 'icon-tasks' }]);
|
|
|
}
|
|
|
|
|
|
function initAppealList() {
|
|
|
- queryTable();
|
|
|
+ queryTable();
|
|
|
}
|
|
|
|
|
|
-function queryAppeal(){
|
|
|
+function queryAppeal() {
|
|
|
var start_time = "";
|
|
|
- if($("#start_time").val()) start_time = $("#start_time").val()+" 00:00:00";
|
|
|
+ if ($("#start_time").val()) start_time = $("#start_time").val() + " 00:00:00";
|
|
|
var end_time = "";
|
|
|
- if($("#end_time").val()) end_time = $("#end_time").val()+" 23:59:59";
|
|
|
+ if ($("#end_time").val()) end_time = $("#end_time").val() + " 23:59:59";
|
|
|
var data = {
|
|
|
"start_time": start_time,
|
|
|
"end_time": end_time,
|
|
|
- "checked_dept": $("#fsList").val(),
|
|
|
+ "checked_dept": $("#fsList").val(),
|
|
|
"check_status": cur_status,
|
|
|
- "position_id":$("#jobSelect").val(),
|
|
|
+ "position_id": $("#jobSelect").val(),
|
|
|
"checked_person": $("#feePersonList").val(),
|
|
|
"appeal_result": $("#appealResultSelect").val()
|
|
|
}
|
|
|
var hide = false;
|
|
|
- if(hasRole(ROLE_STATION_ADMIN) || hasRole(ROLE_STATION) || hasRole(ROLE_JICHA) || roleContains('STATION')) {
|
|
|
+ if (hasRole(ROLE_STATION_ADMIN) || hasRole(ROLE_STATION) || hasRole(ROLE_JICHA) || roleContains('STATION')) {
|
|
|
hide = true;
|
|
|
}
|
|
|
-
|
|
|
- var appeal_result_hide=true;
|
|
|
- if(cur_status==14 || cur_status==15 || cur_status==16){
|
|
|
- appeal_result_hide = false;
|
|
|
+
|
|
|
+ var appeal_result_hide = true;
|
|
|
+ if (cur_status == 14 || cur_status == 15 || cur_status == 16) {
|
|
|
+ appeal_result_hide = false;
|
|
|
}
|
|
|
|
|
|
var cols = [
|
|
|
- {width: 30, text: '序号', flex: true, colClass: 'text-center',field:'num'},
|
|
|
- {width: 100, text: '任务名称', flex: true,colClass: '',field:'name'},
|
|
|
- {width: 80, text: '申诉人员', flex: true, colClass: '',field:'checked_person_name'},
|
|
|
- {width: 100, text: '申诉部门', flex: true, colClass: '',sort: 'down',field:'checked_dept_name'},
|
|
|
- {width: 80, text: '稽查人员', type: 'string', flex: true, hide:hide,field:'checkman_name'},
|
|
|
- {width: 80, text: '复核人员', type: 'string', flex: true, hide:hide,field:'recheckman_name'},
|
|
|
- {width: 120, text: '稽查时间段', type: 'string', flex: true, colClass: '',field:'check_period'},
|
|
|
- {width: 80, text: '申诉结果', type: 'string', flex: true, hide:appeal_result_hide,field:'appeal_result_name'},
|
|
|
- // {width: 80, text: '状态', type: 'string', flex: true, colClass: '',field:'check_status_name'},
|
|
|
- ];
|
|
|
- var colFunc = {width: 120, text: '操作', type: 'string', flex: true, field: 'id'};
|
|
|
- colFunc.oper = $.zui.store.get("task_table_btn_"+cur_status);
|
|
|
+ { width: 30, text: '序号', flex: true, colClass: 'text-center', field: 'num' },
|
|
|
+ { width: 100, text: '任务名称', flex: true, colClass: '', field: 'name' },
|
|
|
+ { width: 80, text: '申诉人员', flex: true, colClass: '', field: 'checked_person_name' },
|
|
|
+ { width: 100, text: '申诉部门', flex: true, colClass: '', sort: 'down', field: 'checked_dept_name' },
|
|
|
+ { width: 80, text: '稽查人员', type: 'string', flex: true, hide: hide, field: 'checkman_name' },
|
|
|
+ { width: 80, text: '复核人员', type: 'string', flex: true, hide: hide, field: 'recheckman_name' },
|
|
|
+ { width: 120, text: '稽查时间段', type: 'string', flex: true, colClass: '', field: 'check_period' },
|
|
|
+ { width: 80, text: '申诉结果', type: 'string', flex: true, hide: appeal_result_hide, field: 'appeal_result_name' },
|
|
|
+ // {width: 80, text: '状态', type: 'string', flex: true, colClass: '',field:'check_status_name'},
|
|
|
+ ];
|
|
|
+ var colFunc = { width: 120, text: '操作', type: 'string', flex: true, field: 'id' };
|
|
|
+ colFunc.oper = $.zui.store.get("task_table_btn_" + cur_status);
|
|
|
cols.push(colFunc);
|
|
|
- if(cur_status==12 || cur_status==13){
|
|
|
- data.check_status_arr = [12,13];
|
|
|
+ if (cur_status == 12 || cur_status == 13) {
|
|
|
+ data.check_status_arr = [12, 13];
|
|
|
}
|
|
|
- appealTableObj = $('#appeal_list_table').mytable({'cols':cols,
|
|
|
- 'url':"/checkAppeal/getTaskList",
|
|
|
- 'param':data,
|
|
|
- 'pager': {
|
|
|
- 'p_cur': cur_page
|
|
|
- }
|
|
|
- });
|
|
|
+ appealTableObj = $('#appeal_list_table').mytable({
|
|
|
+ 'cols': cols,
|
|
|
+ 'url': "/checkAppeal/getTaskList",
|
|
|
+ 'param': data,
|
|
|
+ 'pager': {
|
|
|
+ 'p_cur': cur_page
|
|
|
+ }
|
|
|
+ });
|
|
|
//保存本次查询参数
|
|
|
- $.zui.store.set('store_param_'+current_url,data);
|
|
|
+ $.zui.store.set('store_param_' + current_url, data);
|
|
|
}
|
|
|
//查看稽查结果
|
|
|
-function seeCheckAudit(id,task_id){
|
|
|
+function seeCheckAudit(id, task_id) {
|
|
|
// alert("task_id:"+task_id+"---id:"+id)
|
|
|
// function showTaskDetail1(id){
|
|
|
- var rowData=getItemByIdFromArr(id,$('#appeal_list_table').mytable('getTableData'));
|
|
|
- post_common_service("/checkAppeal/getByTaskId", {"task_id":rowData.id}, function(data){
|
|
|
- if(!data) {
|
|
|
- layer.msg('未获取到申诉内容!',{
|
|
|
- time: 2000//20s后自动关闭
|
|
|
+ var rowData = getItemByIdFromArr(id, $('#appeal_list_table').mytable('getTableData'));
|
|
|
+ post_common_service("/checkAppeal/getByTaskId", { "task_id": rowData.id }, function(data) {
|
|
|
+ if (!data) {
|
|
|
+ layer.msg('未获取到申诉内容!', {
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
$.checkTask = rowData;
|
|
|
$.checkTask.appeal = data;
|
|
|
- changePage("/view/mytask/taskDetail.html",appealTableObj);
|
|
|
+ changePage("/view/mytask/taskDetail.html", appealTableObj);
|
|
|
});
|
|
|
-// }
|
|
|
+ // }
|
|
|
}
|
|
|
//再分配
|
|
|
-function distributionAgain(id,task_id){
|
|
|
- alert("task_id:"+task_id+"---id:"+id)
|
|
|
+function distributionAgain(id, task_id) {
|
|
|
+ alert("task_id:" + task_id + "---id:" + id)
|
|
|
}
|
|
|
|
|
|
//详情
|
|
|
-function seeDetail(id,task_id){
|
|
|
- alert("task_id:"+task_id+"---id:"+id)
|
|
|
+function seeDetail(id, task_id) {
|
|
|
+ alert("task_id:" + task_id + "---id:" + id)
|
|
|
}
|
|
|
|
|
|
-function queryUnAssignedTable(){
|
|
|
- var data = {
|
|
|
- "start_time": $("#start_time").val(),
|
|
|
- "end_time": $("#end_time").val(),
|
|
|
- "checked_dept": $("#dept_select").val(),
|
|
|
- }
|
|
|
- var hide = false;
|
|
|
- if(hasRole(ROLE_STATION_ADMIN) || hasRole(ROLE_STATION)) {
|
|
|
- hide = true;
|
|
|
- }
|
|
|
- var cols = [
|
|
|
- // {width: 30, text: '序号', flex: false, colClass: 'text-center',field:'num'},
|
|
|
- // {width: 100, text: '任务名称', flex: false,colClass: '',field:'name'},
|
|
|
- // {width: 80, text: '考核人员', flex: false, colClass: '',field:'appeal_man_name'},
|
|
|
- // {width: 100, text: '考核部门', flex: false, colClass: '',sort: 'down',field:'appeal_dept_name'},
|
|
|
- // {width: 80, text: '稽查人员', type: 'string', flex: false, hide:true,colClass: '',field:'verify_person_name'},
|
|
|
- // {width: 120, text: '稽查时间段', type: 'string', flex: false, colClass: '',field:'start_time'},
|
|
|
- // {width: 80, text: '状态', type: 'string', flex: false, colClass: '',field:'code_name'},
|
|
|
- // {width: 120, text: '上次稽查时间', type: 'string', flex: false, colClass: '',field:'start_time'},
|
|
|
- {width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center',field: 'num'},
|
|
|
- {width: 160, text: '任务名称', type: 'string', flex: true, sort: 'down',field: 'name'},
|
|
|
- {width: 80, text: '申诉人员', type: 'string', flex: true, field: 'checked_person_name'},
|
|
|
- {width: 160, text: '申诉部门', type: 'string', flex: true, sort: 'down',field: 'checked_dept_name'},
|
|
|
- {width: 80, text: '稽查人员', type: 'string', flex: true, hide:hide,field: 'checkman_name'},
|
|
|
- {width: 160, text: '稽查时间段', type: 'string', flex: true, sort: 'down',field: 'check_period'},
|
|
|
- {width: 80, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'},
|
|
|
- {width: 100, text: '操作', flex: false, colClass: '',field:'id',field_other:'task_id',oper:[
|
|
|
- {func:'seeCheckAudit1',text:'查看稽查结果',col_class:''},{func:'seeDetail',text:'详情',col_class:''}
|
|
|
- ]},
|
|
|
- ] ;
|
|
|
-
|
|
|
- $('#appeal_list_table').mytable({'cols':cols,
|
|
|
- 'url':"checkAppeal/getList",
|
|
|
- 'param':data}
|
|
|
- );
|
|
|
+function queryUnAssignedTable() {
|
|
|
+ var data = {
|
|
|
+ "start_time": $("#start_time").val(),
|
|
|
+ "end_time": $("#end_time").val(),
|
|
|
+ "checked_dept": $("#dept_select").val(),
|
|
|
}
|
|
|
+ var hide = false;
|
|
|
+ if (hasRole(ROLE_STATION_ADMIN) || hasRole(ROLE_STATION)) {
|
|
|
+ hide = true;
|
|
|
+ }
|
|
|
+ var cols = [
|
|
|
+ // {width: 30, text: '序号', flex: false, colClass: 'text-center',field:'num'},
|
|
|
+ // {width: 100, text: '任务名称', flex: false,colClass: '',field:'name'},
|
|
|
+ // {width: 80, text: '考核人员', flex: false, colClass: '',field:'appeal_man_name'},
|
|
|
+ // {width: 100, text: '考核部门', flex: false, colClass: '',sort: 'down',field:'appeal_dept_name'},
|
|
|
+ // {width: 80, text: '稽查人员', type: 'string', flex: false, hide:true,colClass: '',field:'verify_person_name'},
|
|
|
+ // {width: 120, text: '稽查时间段', type: 'string', flex: false, colClass: '',field:'start_time'},
|
|
|
+ // {width: 80, text: '状态', type: 'string', flex: false, colClass: '',field:'code_name'},
|
|
|
+ // {width: 120, text: '上次稽查时间', type: 'string', flex: false, colClass: '',field:'start_time'},
|
|
|
+ { width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center', field: 'num' },
|
|
|
+ { width: 160, text: '任务名称', type: 'string', flex: true, sort: 'down', field: 'name' },
|
|
|
+ { width: 80, text: '申诉人员', type: 'string', flex: true, field: 'checked_person_name' },
|
|
|
+ { width: 160, text: '申诉部门', type: 'string', flex: true, sort: 'down', field: 'checked_dept_name' },
|
|
|
+ { width: 80, text: '稽查人员', type: 'string', flex: true, hide: hide, field: 'checkman_name' },
|
|
|
+ { width: 160, text: '稽查时间段', type: 'string', flex: true, sort: 'down', field: 'check_period' },
|
|
|
+ { width: 80, text: '状态', type: 'string', flex: true, colClass: '', field: 'check_status_name' },
|
|
|
+ {
|
|
|
+ width: 100,
|
|
|
+ text: '操作',
|
|
|
+ flex: false,
|
|
|
+ colClass: '',
|
|
|
+ field: 'id',
|
|
|
+ field_other: 'task_id',
|
|
|
+ oper: [
|
|
|
+ { func: 'seeCheckAudit1', text: '查看稽查结果', col_class: '' }, { func: 'seeDetail', text: '详情', col_class: '' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ ];
|
|
|
+
|
|
|
+ $('#appeal_list_table').mytable({
|
|
|
+ 'cols': cols,
|
|
|
+ 'url': "checkAppeal/getList",
|
|
|
+ 'param': data
|
|
|
+ });
|
|
|
+}
|
|
|
//进入稽查页面
|
|
|
-function showAppealCheck(id){
|
|
|
- var rowData=getItemByIdFromArr(id,$('#appeal_list_table').mytable('getTableData'));
|
|
|
- post_common_service("/checkAppeal/getByTaskId", {"task_id":rowData.id}, function(data){
|
|
|
- if(!data) {
|
|
|
- layer.msg('未获取到申诉内容!',{
|
|
|
- time: 2000//20s后自动关闭
|
|
|
+function showAppealCheck(id) {
|
|
|
+ var rowData = getItemByIdFromArr(id, $('#appeal_list_table').mytable('getTableData'));
|
|
|
+ post_common_service("/checkAppeal/getByTaskId", { "task_id": rowData.id }, function(data) {
|
|
|
+ if (!data) {
|
|
|
+ layer.msg('未获取到申诉内容!', {
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
$.checkTask = rowData;
|
|
|
$.checkTask.appeal = data;
|
|
|
- console.log(data);
|
|
|
+ // console.log(data);
|
|
|
// console.log("申诉:"+$.checkTask.appeal.id);
|
|
|
- no_return_common_service('/task/update', {"id":id,"check_status":13})
|
|
|
- changePage("/view/mytask/check.html",appealTableObj);
|
|
|
+ no_return_common_service('/task/update', { "id": id, "check_status": 13 })
|
|
|
+ changePage("/view/mytask/check.html", appealTableObj);
|
|
|
});
|
|
|
}
|
|
|
//进入继续稽查页面
|
|
|
-function showAppealContinueCheck(id){
|
|
|
+function showAppealContinueCheck(id) {
|
|
|
// $('#myModal').modal({name:"dd"});
|
|
|
- var rowData=getItemByIdFromArr(id,$('#appeal_list_table').mytable('getTableData'));
|
|
|
- post_common_service("/checkAppeal/getByTaskId", {"task_id":rowData.id}, function(data){
|
|
|
- if(!data) {
|
|
|
- layer.msg('未获取到申诉内容!',{
|
|
|
- time: 2000//20s后自动关闭
|
|
|
+ var rowData = getItemByIdFromArr(id, $('#appeal_list_table').mytable('getTableData'));
|
|
|
+ post_common_service("/checkAppeal/getByTaskId", { "task_id": rowData.id }, function(data) {
|
|
|
+ if (!data) {
|
|
|
+ layer.msg('未获取到申诉内容!', {
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
$.checkTask = rowData;
|
|
|
$.checkTask.appeal = data;
|
|
|
- changePage("/view/mytask/check.html",appealTableObj);
|
|
|
+ changePage("/view/mytask/check.html", appealTableObj);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//再分配
|
|
|
-function distributionAgain(id,task_id){
|
|
|
- alert("task_id:"+task_id+"---id:"+id)
|
|
|
+function distributionAgain(id, task_id) {
|
|
|
+ alert("task_id:" + task_id + "---id:" + id)
|
|
|
}
|
|
|
|
|
|
//详情
|
|
|
-function seeDetail(id,task_id){
|
|
|
- alert("task_id:"+task_id+"---id:"+id)
|
|
|
+function seeDetail(id, task_id) {
|
|
|
+ alert("task_id:" + task_id + "---id:" + id)
|
|
|
}
|
|
|
|
|
|
//下发单条任务
|
|
|
-function dispatchAppealTaskById(id){
|
|
|
+function dispatchAppealTaskById(id) {
|
|
|
layer.confirm('确定下发任务?', {
|
|
|
- btn: ['确定','取消'] //按钮
|
|
|
- }, function(){
|
|
|
- var rowData=getItemByIdFromArr(id,$('#appeal_list_table').mytable('getTableData'));
|
|
|
- var param = {
|
|
|
+ btn: ['确定', '取消'] //按钮
|
|
|
+ }, function() {
|
|
|
+ var rowData = getItemByIdFromArr(id, $('#appeal_list_table').mytable('getTableData'));
|
|
|
+ var param = {
|
|
|
"id": rowData.id,
|
|
|
- "check_status":15
|
|
|
+ "check_status": 15
|
|
|
}
|
|
|
- no_return_common_service('/task/dispatchById', param, function(data){
|
|
|
+ no_return_common_service('/task/dispatchById', param, function(data) {
|
|
|
queryAppeal();
|
|
|
layer.msg(data, {
|
|
|
- time: 2000//20s后自动关闭
|
|
|
+ time: 2000 //20s后自动关闭
|
|
|
});
|
|
|
});
|
|
|
- }, function(index){
|
|
|
+ }, function(index) {
|
|
|
layer.close(index);
|
|
|
});
|
|
|
-
|
|
|
-}
|
|
|
+
|
|
|
+}
|