|
@@ -659,6 +659,10 @@ const tableEvents = {
|
|
|
const lua = getLuaParams(row)
|
|
|
lua.state = info.state
|
|
|
lua.reason = info.reason
|
|
|
+ if (info.oldstate) {
|
|
|
+ const code = `${row.code}_${row.state}`
|
|
|
+ lua.code = code
|
|
|
+ }
|
|
|
ServerActionUpdateCodeState({ lua: lua }).then(r => {
|
|
|
if (r.err === 1) {
|
|
|
ElMessage({
|
|
@@ -704,10 +708,10 @@ const tableEvents = {
|
|
|
errorTip: `批量${stateInfo.text}失败`,
|
|
|
}
|
|
|
}
|
|
|
- const codeList = list.map(r => r.code)
|
|
|
+ const codeList = list.map(r => `${r.code}_${r.state}`)
|
|
|
const lua = {
|
|
|
code: codeList.join(','),
|
|
|
- state: stateInfo.code
|
|
|
+ state: stateInfo.code,
|
|
|
}
|
|
|
ServerActionUpdateCodeState({ lua: lua }).then(r => {
|
|
|
if (r.err === 1) {
|
|
@@ -740,6 +744,7 @@ const tableEvents = {
|
|
|
this.updateCodeStateAction(row, {
|
|
|
reason: value,
|
|
|
state: 2,
|
|
|
+ oldstate: row.state,
|
|
|
successTip: '打回成功',
|
|
|
errorTip: '打回失败',
|
|
|
})
|