fix
Showing
2 changed files
with
13 additions
and
8 deletions
| ... | @@ -1344,7 +1344,7 @@ const getDataBaseTableData = async (params = {}) => { | ... | @@ -1344,7 +1344,7 @@ const getDataBaseTableData = async (params = {}) => { |
| 1344 | const dataBaseParams = { | 1344 | const dataBaseParams = { |
| 1345 | pageIndex: dataBasePage.value.curr, | 1345 | pageIndex: dataBasePage.value.curr, |
| 1346 | pageSize: dataBasePage.value.limit, | 1346 | pageSize: dataBasePage.value.limit, |
| 1347 | isDataAsset: checked.value ? 'Y' : 'N', | 1347 | isDataAsset: checked.value ? 'Y' : '', |
| 1348 | execGuid: execGuidInfo.value.execGuid, | 1348 | execGuid: execGuidInfo.value.execGuid, |
| 1349 | tableGuid: tableGuid.value || selectedB.value || '', | 1349 | tableGuid: tableGuid.value || selectedB.value || '', |
| 1350 | databaseGuid: dataBaseGuid.value || selectedA.value || '', | 1350 | databaseGuid: dataBaseGuid.value || selectedA.value || '', | ... | ... |
| ... | @@ -49,7 +49,7 @@ const getBizRuleConfigDetailData = async () => { | ... | @@ -49,7 +49,7 @@ const getBizRuleConfigDetailData = async () => { |
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | }) | 51 | }) |
| 52 | 52 | console.log('tableData', tableData.value) | |
| 53 | 53 | ||
| 54 | tableFieldsLoading.value = false | 54 | tableFieldsLoading.value = false |
| 55 | } else { | 55 | } else { |
| ... | @@ -273,7 +273,6 @@ const saveRow = (row) => { | ... | @@ -273,7 +273,6 @@ const saveRow = (row) => { |
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | if (tableData.value.find((item: any) => item.fieldGuid === row.fieldGuid)) { | 275 | if (tableData.value.find((item: any) => item.fieldGuid === row.fieldGuid)) { |
| 276 | console.log('tempRowData.value') | ||
| 277 | tableData.value.forEach(item => { | 276 | tableData.value.forEach(item => { |
| 278 | if (item.fieldGuid === row.fieldGuid) { | 277 | if (item.fieldGuid === row.fieldGuid) { |
| 279 | item.fieldLengthCondition = fieldLengthCondition | 278 | item.fieldLengthCondition = fieldLengthCondition |
| ... | @@ -284,6 +283,12 @@ const saveRow = (row) => { | ... | @@ -284,6 +283,12 @@ const saveRow = (row) => { |
| 284 | item.notNull = tempRow.notNull | 283 | item.notNull = tempRow.notNull |
| 285 | } | 284 | } |
| 286 | }); | 285 | }); |
| 286 | // 更新 tempRowData 中保存的数据 | ||
| 287 | const tempRowIndex = tempRowData.value.findIndex((item) => item.fieldGuid === row.fieldGuid); | ||
| 288 | if (tempRowIndex !== -1) { | ||
| 289 | // 更新 tempRowData 为保存后的数据 | ||
| 290 | tempRowData.value[tempRowIndex] = { ...row }; | ||
| 291 | } | ||
| 287 | } | 292 | } |
| 288 | row.isEdit = false | 293 | row.isEdit = false |
| 289 | } | 294 | } |
| ... | @@ -411,11 +416,11 @@ const cancelEdit = (row) => { | ... | @@ -411,11 +416,11 @@ const cancelEdit = (row) => { |
| 411 | tableData.value.forEach((item) => { | 416 | tableData.value.forEach((item) => { |
| 412 | if (item.fieldGuid === tempRow.fieldGuid) { | 417 | if (item.fieldGuid === tempRow.fieldGuid) { |
| 413 | // 恢复原始数据 | 418 | // 恢复原始数据 |
| 414 | row.fieldLengthCondition = item.fieldLengthCondition; | 419 | item.fieldLengthCondition = tempRow.fieldLengthCondition; |
| 415 | row.fieldPrecision = item.fieldPrecision; | 420 | item.fieldPrecision = tempRow.fieldPrecision; |
| 416 | row.isUnique = item.isUnique; | 421 | item.isUnique = tempRow.isUnique; |
| 417 | row.notNull = item.notNull; | 422 | item.notNull = tempRow.notNull; |
| 418 | row.fieldValueRange = item.fieldValueRange; | 423 | item.fieldValueRange = tempRow.fieldValueRange; |
| 419 | } | 424 | } |
| 420 | }); | 425 | }); |
| 421 | 426 | ... | ... |
-
Please register or sign in to post a comment