|
|
@ -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 {
|
|
|
|