76c0ee1d by lxs

入表功调整

1 parent 5be8f1fd
......@@ -427,8 +427,7 @@ const inputEventChange = (val, scope, field) => {
}
// 重命名
const setName = (name, level) => {
const rIndex = currentRow.value.$index;
const setName = (name, level, rIndex) => {
let rowData = tableData.value[rIndex];
rowData[`name${level}`] = name;
}
......@@ -516,7 +515,7 @@ const btnClick = async (btn, bType = null) => {
const name = value.trim();
if (type == 'edit') {
if (value == inputVal) return
setName(name, level);
setName(name, level, rIndex);
} else if (type == 'add-same') {
const tData = rowList.at(-1);
const tIndex = tableData.value.findIndex(t => (tData.code4 ? t.code4 === tData.code4 : t.code3 === tData.code3));
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!