From 7bdcc45e2ba5513a7b2cba65f9daafe1a76872bc Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 16 八月 2023 10:26:58 +0800
Subject: [PATCH] 主题库行编辑(8-16)
---
Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 9237072..7944637 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -456,6 +456,16 @@
}
}
},
+ // editingRows:{
+ // handler(newval,oldval){
+ // if(newval){
+ // const inputElement = document.querySelector(`#inputRef${newval.oid}`);
+ // if (inputElement) {
+ // inputElement.focus();
+ // };
+ // }
+ // }
+ // },
ProData: {
handler(newval, oldval) {
if (newval) {
@@ -1816,12 +1826,10 @@
this.editShows = column.property;
this.rowOid = row.oid;
this.CurrentCell = row;
- if(this.editingRows){
- const inputElement = document.querySelector(`#inputRef${row.oid}`);
- if (inputElement) {
- inputElement.focus();
- };
- }
+ // const inputElement = document.querySelector(`#inputRef${row.oid}`);
+ // if (inputElement) {
+ // inputElement.focus();
+ // };
if (column.property == 'referConfig') {
this.referConfigVisble = true;
this.referConfigOption = {
@@ -1880,10 +1888,10 @@
saveRows() {
this.editingRows = null;
this.editShows = null;
- const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`);
- if (inputElement) {
- inputElement.blur();
- }
+ // const inputElement = document.querySelector(`#inputRef${this.CurrentCell.oid}`);
+ // if (inputElement) {
+ // inputElement.blur();
+ // }
},
// 鏋氫妇娉ㄥ叆娣诲姞涓�琛岀┖鏁版嵁
addRow() {
--
Gitblit v1.9.3