田源
2023-08-16 7bdcc45e2ba5513a7b2cba65f9daafe1a76872bc
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() {