feat(权限管理): 为角色和功能添加启用状态字段
- 在EMPLOYEE_ROLE表中添加IS_ACTIVE字段,默认值为TRUE - 在EmployeeRole和Function实体类中添加active字段 - 在角色和功能管理界面添加启用状态列和控件 - 实现TaskMonitorCenter与状态栏标签的绑定 - 更新相关ViewModel以支持启用状态 - 配置Maven仓库地址
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
<TextField fx:id="iconField" GridPane.columnIndex="1" GridPane.rowIndex="4"/>
|
||||
<Label text="描述" GridPane.rowIndex="5"/>
|
||||
<TextField fx:id="descriptionField" GridPane.columnIndex="1" GridPane.rowIndex="5"/>
|
||||
<Label text="是否启用" GridPane.rowIndex="6"/>
|
||||
<CheckBox fx:id="activeField" GridPane.columnIndex="1" GridPane.rowIndex="6"/>
|
||||
<HBox alignment="CENTER_RIGHT" spacing="5.0" GridPane.columnIndex="1" GridPane.columnSpan="3" GridPane.rowIndex="11">
|
||||
<children>
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
<TableColumn fx:id="controllerColumn" prefWidth="150" text="控制器"/>
|
||||
<TableColumn fx:id="iconColumn" prefWidth="150" text="图标"/>
|
||||
<TableColumn fx:id="descriptionColumn" prefWidth="200" text="备注"/>
|
||||
<TableColumn fx:id="activeColumn" prefWidth="80" text="是否启用"/>
|
||||
</columns>
|
||||
</TableView>
|
||||
<fx:include source="../part-footer.fxml" fx:id="footer"/>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<Tooltip text="用于解决有些姓名错别字,无法匹配" />
|
||||
</tooltip></Label>
|
||||
<Label text="活跃的" GridPane.rowIndex="5" />
|
||||
<CheckBox fx:id="activeField" disable="true" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="5" />
|
||||
<CheckBox fx:id="activeField" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="5" />
|
||||
<CheckBox fx:id="systemAdministratorField" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||
<CheckBox fx:id="managerField" mnemonicParsing="false" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
||||
</children>
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
<TableColumn fx:id="codeColumn" prefWidth="150" text="编号"/>
|
||||
<TableColumn fx:id="systemAdministratorColumn" prefWidth="50" text="系统管理员"/>
|
||||
<TableColumn fx:id="managerColumn" prefWidth="50" text="管理层"/>
|
||||
<TableColumn fx:id="activeColumn" prefWidth="50" text="是否启用"/>
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
</ToolBar>
|
||||
<AnchorPane prefHeight="248.0" prefWidth="2239.0" VBox.vgrow="ALWAYS"/>
|
||||
<TaskProgressView fx:id="taskProgressView"/>
|
||||
<HBox>
|
||||
<HBox fx:id="statusBar" spacing="5.0">
|
||||
<children>
|
||||
<Label fx:id="leftStatusLabel" text="Label" wrapText="true"/>
|
||||
<Pane prefHeight="12.0" prefWidth="12.0" HBox.hgrow="ALWAYS"/>
|
||||
@@ -199,6 +199,7 @@
|
||||
<Insets left="6.0"/>
|
||||
</HBox.margin>
|
||||
</Label>
|
||||
<Label fx:id="taskMonitorLabel" text="任务监控"></Label>
|
||||
<Label fx:id="employeeStatusLabel" layoutX="711.0" layoutY="10.0" text="管理员" wrapText="true"
|
||||
HBox.hgrow="SOMETIMES">
|
||||
<HBox.margin>
|
||||
|
||||
Reference in New Issue
Block a user