0cf12b6f by xukangle

fix

1 parent b288dae2
......@@ -1344,7 +1344,7 @@ const getDataBaseTableData = async (params = {}) => {
const dataBaseParams = {
pageIndex: dataBasePage.value.curr,
pageSize: dataBasePage.value.limit,
isDataAsset: checked.value ? 'Y' : 'N',
isDataAsset: checked.value ? 'Y' : '',
execGuid: execGuidInfo.value.execGuid,
tableGuid: tableGuid.value || selectedB.value || '',
databaseGuid: dataBaseGuid.value || selectedA.value || '',
......
......@@ -49,7 +49,7 @@ const getBizRuleConfigDetailData = async () => {
}
}
})
console.log('tableData', tableData.value)
tableFieldsLoading.value = false
} else {
......@@ -273,7 +273,6 @@ const saveRow = (row) => {
}
if (tableData.value.find((item: any) => item.fieldGuid === row.fieldGuid)) {
console.log('tempRowData.value')
tableData.value.forEach(item => {
if (item.fieldGuid === row.fieldGuid) {
item.fieldLengthCondition = fieldLengthCondition
......@@ -284,6 +283,12 @@ const saveRow = (row) => {
item.notNull = tempRow.notNull
}
});
// 更新 tempRowData 中保存的数据
const tempRowIndex = tempRowData.value.findIndex((item) => item.fieldGuid === row.fieldGuid);
if (tempRowIndex !== -1) {
// 更新 tempRowData 为保存后的数据
tempRowData.value[tempRowIndex] = { ...row };
}
}
row.isEdit = false
}
......@@ -411,11 +416,11 @@ const cancelEdit = (row) => {
tableData.value.forEach((item) => {
if (item.fieldGuid === tempRow.fieldGuid) {
// 恢复原始数据
row.fieldLengthCondition = item.fieldLengthCondition;
row.fieldPrecision = item.fieldPrecision;
row.isUnique = item.isUnique;
row.notNull = item.notNull;
row.fieldValueRange = item.fieldValueRange;
item.fieldLengthCondition = tempRow.fieldLengthCondition;
item.fieldPrecision = tempRow.fieldPrecision;
item.isUnique = tempRow.isUnique;
item.notNull = tempRow.notNull;
item.fieldValueRange = tempRow.fieldValueRange;
}
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!