Commit bd77b46a by wuwenlong

项目立项修改BUGFIX;

parent 942399c4
...@@ -92,11 +92,11 @@ function create() { ...@@ -92,11 +92,11 @@ function create() {
function update() { function update() {
let rows = resultGrid.getCheckedRows() let rows = resultGrid.getCheckedRows()
if (rows.length < 1||rows.length > 1) { if (rows.length < 1||rows.length > 1) {
message("请选择一条需要修改的数据"); message2("修改","请选择一条需要修改的数据");
return; return;
} }
if(rows[0].approvalStatus>0){ if(rows[0].approvalStatus>0){
message("项目已提交不可修改!"); message("修改","项目已提交不可修改!");
return; return;
} }
let id = rows[0].id; let id = rows[0].id;
...@@ -111,7 +111,7 @@ function update() { ...@@ -111,7 +111,7 @@ function update() {
function remove() { function remove() {
let rows = resultGrid.getCheckedRows() let rows = resultGrid.getCheckedRows()
if (rows.length < 1) { if (rows.length < 1) {
message("删除","没有选中的行"); message2("删除","没有选中的行");
return; return;
} }
IPLAT.confirm({ IPLAT.confirm({
...@@ -142,7 +142,7 @@ function remove() { ...@@ -142,7 +142,7 @@ function remove() {
function complete() { function complete() {
let rows = resultGrid.getCheckedRows() let rows = resultGrid.getCheckedRows()
if (rows.length < 1) { if (rows.length < 1) {
message("完工","没有选中的行"); message2("完工","没有选中的行");
return; return;
} }
IPLAT.confirm({ IPLAT.confirm({
...@@ -173,7 +173,7 @@ function complete() { ...@@ -173,7 +173,7 @@ function complete() {
function commit() { function commit() {
let rows = resultGrid.getCheckedRows() let rows = resultGrid.getCheckedRows()
if (rows.length < 1) { if (rows.length < 1) {
message("提交","没有选中的行"); message2("提交","没有选中的行");
return; return;
} }
IPLAT.confirm({ IPLAT.confirm({
......
...@@ -85,7 +85,7 @@ function message(msg) { ...@@ -85,7 +85,7 @@ function message(msg) {
* @param title * @param title
* @param msg * @param msg
*/ */
function message(title,msg) { function message2(title,msg) {
WindowUtil({ WindowUtil({
title: title, title: title,
content: "<div class='kendo-del-message'>" + msg + "</div>" content: "<div class='kendo-del-message'>" + msg + "</div>"
......
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