Former-commit-id: f7ba536077fb7a80dd45b651dd2e3d3de1a9b283
master
王兵 5 years ago
parent 2b7ddb79a7
commit 1bad9d9c02

@ -22,26 +22,6 @@ public class LogerrUpdateRequest extends BaseUpdateRequest {
@NotNull(message = "[id]主键不能为NULL") @NotNull(message = "[id]主键不能为NULL")
private Long id; private Long id;
/**
* .
*/
@NotNull(message = "[logType]日志类型不能为NULL")
@Select({"系统错误", "任务错误", "业务错误"})
private String logType;
/**
* .
*/
@NotBlank(message = "[logTitle]任务标题不能为空")
@Length(min = 0, max = 50, message = "[logTitle]任务标题长度不合法(0-50)")
private String logTitle;
/**
* .
*/
@Length(min = 0, max = 500, message = "[logNote]日志描述长度不合法(0-500)")
private String logNote;
/** /**
* . * .
*/ */
@ -57,30 +37,6 @@ public class LogerrUpdateRequest extends BaseUpdateRequest {
this.id = id; this.id = id;
} }
public String getLogType() {
return this.logType;
}
public void setLogType(String logType) {
this.logType = logType;
}
public String getLogTitle() {
return this.logTitle;
}
public void setLogTitle(String logTitle) {
this.logTitle = logTitle;
}
public String getLogNote() {
return this.logNote;
}
public void setLogNote(String logNote) {
this.logNote = logNote;
}
public String getLogState() { public String getLogState() {
return this.logState; return this.logState;
} }

@ -34,19 +34,19 @@
<el-card class="box-card"> <el-card class="box-card">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-button type="success" size="mini" icon="el-icon-shopping-cart-full" @click="onBitchSolve">开始处理</el-button> <el-button type="success" size="mini" icon="el-icon-shopping-cart-full" @click="onBatchStart">开始处理</el-button>
<el-button type="warning" size="mini" icon="el-icon-circle-check" @click="onBitchShelve">处理结束</el-button> <el-button type="warning" size="mini" icon="el-icon-circle-check" @click="onBatchFinish">处理结束</el-button>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-button-group style="float: right;"> <el-button-group style="float: right;">
<el-tooltip effect="dark" content="解决" placement="bottom"> <el-tooltip effect="dark" content="解决" placement="bottom">
<el-button size="mini" icon="el-icon-check" @click="onBitchSolve"></el-button> <el-button size="mini" icon="el-icon-shopping-cart-full" @click="onBatchStart"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" content="搁置" placement="bottom"> <el-tooltip effect="dark" content="搁置" placement="bottom">
<el-button size="mini" icon="el-icon-minus" @click="onBitchShelve"></el-button> <el-button size="mini" icon="el-icon-circle-check" @click="onBatchFinish"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" content="刷新" placement="bottom"> <el-tooltip effect="dark" content="刷新" placement="bottom">
@ -116,13 +116,13 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"
width="120" width="150"
fixed="right" fixed="right"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<wb-dropdown :arg="scope.row"> <wb-dropdown :arg="scope.row">
<wb-dropdown-item value="解决" icon="el-icon-edit" @click="onSolve"></wb-dropdown-item> <wb-dropdown-item value="开始处理" icon="el-icon-edit" @click="onStart"></wb-dropdown-item>
<wb-dropdown-item value="搁置" icon="el-icon-edit" @click="onShelve"></wb-dropdown-item> <wb-dropdown-item value="处理结束" icon="el-icon-edit" @click="onFinish"></wb-dropdown-item>
<wb-dropdown-item value="删除" icon="el-icon-delete" @click="onDelete"></wb-dropdown-item> <wb-dropdown-item value="删除" icon="el-icon-delete" @click="onDelete"></wb-dropdown-item>
</wb-dropdown> </wb-dropdown>
</template> </template>
@ -163,8 +163,8 @@
} }
}, },
methods: { methods: {
onSolve: function (item) { onStart: function (item) {
new Ajax("wsys", "logerr").update({ new Ajax("wsvr", "logerr").update({
id: item.id, id: item.id,
logState: '1', logState: '1',
rowVersion: item.rowVersion rowVersion: item.rowVersion
@ -177,8 +177,8 @@
} }
}.bind(this)) }.bind(this))
}, },
onShelve: function (item) { onFinish: function (item) {
new Ajax("system", "logerr").update({ new Ajax("wsvr", "logerr").update({
id: item.id, id: item.id,
logState: '2', logState: '2',
rowVersion: item.rowVersion rowVersion: item.rowVersion
@ -191,13 +191,13 @@
} }
}.bind(this)) }.bind(this))
}, },
onBitchSolve: function () { onBatchStart: function () {
if (this.select.length == 0) { if (this.select.length == 0) {
nav.w("至少选中一项!"); nav.w("至少选中一项!");
} else { } else {
nav.tipShow("批量处理中..."); nav.tipShow("批量处理中...");
this.select.forAsync(function (item, next) { this.select.forAsync(function (item, next) {
new Ajax("system", "logerr").update({ new Ajax("wsvr", "logerr").update({
id: item.id, id: item.id,
logState: '1', logState: '1',
rowVersion: item.rowVersion rowVersion: item.rowVersion
@ -214,13 +214,13 @@
}.bind(this)) }.bind(this))
} }
}, },
onBitchShelve: function () { onBatchFinish: function () {
if (this.select.length == 0) { if (this.select.length == 0) {
nav.w("至少选中一项!"); nav.w("至少选中一项!");
} else { } else {
nav.tipShow("批量处理中..."); nav.tipShow("批量处理中...");
this.select.forAsync(function (item, next) { this.select.forAsync(function (item, next) {
new Ajax("system", "logerr").update({ new Ajax("wsvr", "logerr").update({
id: item.id, id: item.id,
logState: '2', logState: '2',
rowVersion: item.rowVersion rowVersion: item.rowVersion
@ -244,7 +244,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function () { }).then(function () {
new Ajax("wsys", "logerr").delete({id: item.id},function (response) { new Ajax("wsvr", "logerr").delete({id: item.id},function (response) {
if (response.errors.length > 0) { if (response.errors.length > 0) {
nav.e(response.errors[0].message); nav.e(response.errors[0].message);
} else { } else {

@ -88,10 +88,7 @@ public class LogerrTest {
//更新数据 //更新数据
LogerrUpdateRequest request = new LogerrUpdateRequest(); LogerrUpdateRequest request = new LogerrUpdateRequest();
request.setId(createResponse.getId()); request.setId(createResponse.getId());
request.setLogType("value"); request.setLogState("1");
request.setLogTitle("任务标题");
request.setLogNote("日志描述");
request.setLogState("value");
LogerrUpdateResponse response = logerrManager.update(request,token); LogerrUpdateResponse response = logerrManager.update(request,token);

Loading…
Cancel
Save

Powered by TurnKey Linux.