|
|
@@ -432,7 +432,6 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
const table_gx = ref()
|
|
|
@@ -805,10 +804,16 @@ const gd_lcdCancel = async () => {
|
|
|
setCurrent(selectData[SLIndex.value]);
|
|
|
}
|
|
|
} else if (event.keyCode === 13) { // 回车键
|
|
|
- console.log("关闭弹窗,选中数据为:", selectData[SLIndex.value]);
|
|
|
+ console.log("回车键触发");
|
|
|
+
|
|
|
+ // 如果未通过上下箭头选择,则默认选中第一个
|
|
|
+ if (SLIndex.value === null || SLIndex.value === undefined) {
|
|
|
+ SLIndex.value = 0; // 默认选中第一个
|
|
|
+ }
|
|
|
|
|
|
// 获取当前选中的数据
|
|
|
const selectedRow = selectData[SLIndex.value];
|
|
|
+ console.log("关闭弹窗,选中数据为:", selectedRow);
|
|
|
console.log(selectedRow.sczl_gxmc);
|
|
|
console.log(selectedRow.sczl_bzdh);
|
|
|
console.log(selectedRow.sczl_bh1);
|
|
|
@@ -825,8 +830,7 @@ const gd_lcdCancel = async () => {
|
|
|
// 关闭弹窗
|
|
|
dialogSelectVisible2.value = false;
|
|
|
}
|
|
|
- };
|
|
|
-
|
|
|
+ };
|
|
|
// 弹窗确定
|
|
|
const enterDialog = async () => {
|
|
|
if (type.value === '查改') {
|
|
|
@@ -1459,7 +1463,6 @@ const gd_lcdCancel = async () => {
|
|
|
detailData.table[index].fp_bh = '';
|
|
|
detailData.table[index].fp_name = '';
|
|
|
} else {
|
|
|
- // 如果数量不为 0,调用 handleFpslEnter 方法
|
|
|
handleFpslEnter(event, index, row, title);
|
|
|
}
|
|
|
|