Commit b17dbe21 by Jie Feng

assign limit bug fix

parent 7472809e
......@@ -16,7 +16,7 @@ jQuery(document).ready(function ($) {
woId: '',
operateName: '新增',
displayForm: false,
displayAuditTrace: true,
displayAuditTrace: false,
addWoType: 0,
woTypes: [
{value: 0, text: "请选择"},
......@@ -45,9 +45,29 @@ jQuery(document).ready(function ($) {
auditTraceList: [],
sysCfgId: 0
},
mounted: function () {
// 初始化加载回访工单列表
var url = "/work/sysWoCfg/list?page=1&limit=10";
var data = JSON.stringify({
"woType": "revisit"
});
$.ajax({
url: url,
dataType: "json",
data: data,
type: 'post',
contentType: "application/json; charset=utf-8",
success: function (res) {
if (res.data) {
app.sysCfgList = res.data;
}
}
});
},
methods: {
sysCfgDetail: function (sysCfg) {
app.displayForm = true;
app.displayAuditTrace = false;
// 获取工单详情
var data = JSON.stringify(
{
......@@ -72,9 +92,10 @@ jQuery(document).ready(function ($) {
app.duringTimeMin = duringTime % 60 ;
}
app.duringTimeHour = Math.floor(duringTime / 60);
app.assignLimit = res.data.assignLimit;
app.assignLimit = parseInt(res.data.assignLimit);
app.remindTime = res.data.remindTime;
app.sysCfgId = res.data.id;
app.operateName = '编辑';
}
}
......@@ -85,10 +106,13 @@ jQuery(document).ready(function ($) {
},
queryAuditTrace: function (sysCfg) {
console.log('queryAuditTrace: ' + sysCfg.id);
app.displayAuditTrace = true;
app.displayForm = false;
},
addSysCfg: function () {
app.displayForm = true;
console.log('addSysCfg');
app.operateName = '新增';
},
saveOrUpdateSysCfg: function () {
......@@ -103,7 +127,8 @@ jQuery(document).ready(function ($) {
"deptName": app.deptNames[app.addDeptId].text,
"duringTime": parseInt(app.duringTimeMin) + parseInt(app.duringTimeHour * 60),
"remindTime": app.remindTime,
"assignLimit": app.assignLimit
"assignLimit": parseInt(app.assignLimit),
"urgentLevel":app.addUrgentLevel
}
);
console.log("Request data...");
......@@ -117,6 +142,7 @@ jQuery(document).ready(function ($) {
contentType: "application/json; charset=utf-8",
success: function (res) {
console.log(res);
app.displayForm = false;
}
});
// app.displayForm = true;
......@@ -125,27 +151,9 @@ jQuery(document).ready(function ($) {
})
function initLoadWoSysConfig() {
var url = "/work/sysWoCfg/list?page=1&limit=10";
var data = JSON.stringify({
"id": 1,
"woType": "revisit"
});
$.ajax({
url: url,
dataType: "json",
data: data,
type: 'post',
contentType: "application/json; charset=utf-8",
success: function (res) {
if (res.data) {
app.sysCfgList = res.data;
}
}
});
}
// 初始化加载回访工单列表
initLoadWoSysConfig();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment