Commit df2c8a55f7114f434b175a69ae2cda6a807c6355

Authored by ww
1 parent 68af5265

pref: 优化组态权限控制

... ... @@ -343,7 +343,7 @@ Format.prototype.immediateRefresh = function () {
343 343 var cells = ss.cells || []
344 344 var currentCell = cells[0]
345 345 var { COMPONENT_KEY } = window.CellAttributeKeyEnum
346   - var hasDataSourceBindPanel = !!(cells.length === 1 && currentCell && currentCell.getValue() && currentCell.getAttribute(COMPONENT_KEY))
  346 + var hasDataSourceBindPanel = !!(cells.length === 1 && currentCell && currentCell.getValue() && currentCell.getAttribute(COMPONENT_KEY)) && this.editorUi?.permissionInfo?.hasDesignAuth !== false
347 347
348 348 label.style.backgroundColor = Format.inactiveTabBackgroundColor;
349 349 label.style.borderLeftWidth = '1px';
... ...