Просмотр исходного кода

🐛 fix<任务列表>: 更新问题

xinyan 9 месяцев назад
Родитель
Сommit
85d81a5f38
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/views/reportManage/TaskManage/index.vue

+ 4 - 2
src/views/reportManage/TaskManage/index.vue

@@ -340,6 +340,7 @@ function filteredDataChange(newList) {
 
 // 全部保存按钮
 async function saveEvent(row) {
+  clearRowEvent(row)
   const $grid = xGrid.value;
   if ($grid) {
     try {
@@ -500,7 +501,7 @@ async function updateRow(row) {
       country: row.country,
       brandName: row.brandName,
       user: row.user,
-      operater: row.operater[0]?.split(',').map(item => item.trim()),
+      operater: row.operater?.split(',').map(item => item.trim()),
       currencyCode: row.currencyCode,
       currencyCodePlatform: row.currencyCodePlatform,
       line: row.line,
@@ -525,6 +526,7 @@ async function updateRow(row) {
 
 // 更新行任务保存按钮
 const saveRowEvent = async (row: RowVO) => {
+  //clearRowEvent(row)
   const $grid = xGrid.value;
   if ($grid) {
     if (!validateRow(row)) {
@@ -579,7 +581,7 @@ async function createTask() {
     company: taskRuleForm.company,
     platform: taskRuleForm.platform,
     user: taskRuleForm.operation,
-    operater: taskRuleForm.operater,
+    operater: [taskRuleForm.operater],
   };
   console.log('body',body);
   try {