瀏覽代碼

feat: 提交回退参数调整

cuiyalong 10 月之前
父節點
當前提交
a06e0b2f9c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      frontend/src/views/CodeList.vue

+ 3 - 3
frontend/src/views/CodeList.vue

@@ -82,7 +82,7 @@
                         </el-tooltip>
                     </template>
                 </el-table-column>
-                <el-table-column label="功能" width="160">
+                <el-table-column label="功能">
                     <template #default="scope">
                         <el-tooltip content="验证" placement="top">
                             <el-button size="small" :class="{ active: scope.row._action_clicked_verify }" @click="tableEvents.handleVerify(scope.$index, scope.row)">
@@ -577,7 +577,7 @@ const tableEvents = {
         onlyClickHighlight(row, '_action_clicked_submit')
         const mark = getMarkWithRow(row)
         console.log(mark)
-        ServerActionUpdateCodeState(mark, 1).then(r => {
+        ServerActionUpdateCodeState({ cssmark: mark, state: 1 }).then(r => {
             if (r.err === 1) {
                 ElMessage({
                     message: '提交成功',
@@ -598,7 +598,7 @@ const tableEvents = {
         onlyClickHighlight(row, '_action_clicked_rollback')
         const mark = getMarkWithRow(row)
         console.log(mark)
-        ServerActionUpdateCodeState(mark, -1).then(r => {
+        ServerActionUpdateCodeState({ cssmark: mark, state: -1 }).then(r => {
             if (r.err === 1) {
                 ElMessage({
                     message: '回退成功',