Explorar o código

feat: 打回和批量上线下线参数调整

cuiyalong hai 9 meses
pai
achega
1d3b4ee8ed
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      frontend/src/views/ReviewList.vue

+ 7 - 2
frontend/src/views/ReviewList.vue

@@ -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: '打回失败',
             })