瀏覽代碼

Merge branch 'refs/heads/xinyan' into test

xinyan 9 月之前
父節點
當前提交
552899dae6
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/views/reportManage/TaskManage/index.vue

+ 4 - 3
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,9 +581,8 @@ async function createTask() {
     company: taskRuleForm.company,
     platform: taskRuleForm.platform,
     user: taskRuleForm.operation,
-    operater: taskRuleForm.operater,
+    operater: [taskRuleForm.operater],
   };
-  console.log('body',body);
   try {
     const resp = await postCreateTask(body);
     if (resp.code === 2000) {