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