瀏覽代碼

分组删除提示文本更新

zhuth 6 年之前
父節點
當前提交
07d420c23f

+ 1 - 0
src/components/chart/list.jsx

@@ -475,6 +475,7 @@ class ChartList extends React.Component {
                     />
                 </Content>
                 {visibleGroupManageMentBox && <GroupManagementBox
+                    typeText='图表'
                     visibleBox={visibleGroupManageMentBox}
                     groupData={chart.groupList}
                     hideBox={() => {

+ 2 - 2
src/components/common/groupManageMentBox/box.jsx

@@ -321,7 +321,7 @@ class GroupBox extends React.Component {
     }
 
     render() {
-        let { visibleBox, hideBox, okHandler } = this.props;
+        let { visibleBox, hideBox, okHandler, typeText } = this.props;
         let { groupData, expandedKeys, selectedGroup, autoExpandParent, aGroups, mGroups, dGroups, visibleDeleteGroupBox, willDeleteGroup, saving } = this.state;
         let treeData = arrayToTree(groupData, '-1', 'code', 'pcode', 'children');
         return <Modal
@@ -378,7 +378,7 @@ class GroupBox extends React.Component {
             </Row>
             {visibleDeleteGroupBox && <DeleteBox
                 visibleBox={visibleDeleteGroupBox}
-                text={<div><span>确定要删除分组【{willDeleteGroup.label}】吗?</span><br/><span style={{ color: 'red' }}>*该组所有数据源将移动到未分组</span></div>}
+                text={<div><span>确定要删除分组【{willDeleteGroup.label}】吗?</span><br/><span style={{ color: 'red' }}>{`*该组所有${typeText}将移动到未分组`}</span></div>}
                 hideBox={() => {
                     this.setState({
                         visibleDeleteGroupBox: false

+ 1 - 0
src/components/dataSource/list.jsx

@@ -448,6 +448,7 @@ class DataSource extends React.Component {
                             }}
                         />
                         {visibleGroupManageMentBox && <GroupManagementBox
+                            typeText='数据源'
                             visibleBox={visibleGroupManageMentBox}
                             groupData={dataSource.groupList}
                             hideBox={() => {