onBeforeEdit: function (row) {
                let options = $(this).treegrid('options');
                options.tempeditor = options.tempeditor || {};
                let getColumnOption = $(this).treegrid('getColumnOption', 'sampleTypeId');
                if (!options.tempeditor["sampleTypeId"]) {
                    options.tempeditor["sampleTypeId"] = getColumnOption.editor;
                }
                if (row.parentId) {
                    getColumnOption.editor = undefined;
                } else {
                    getColumnOption.editor = options.tempeditor["sampleTypeId"];
                }

            }

 

相关文章:

  • 2021-05-10
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案