Merge pull request 'bug' (#15) from feature/cl into dev

Reviewed-on: http://221.226.25.34:3000/liang.cheng/trunk/pulls/15
This commit is contained in:
liang.cheng 2022-11-09 10:20:45 +08:00
commit ddb59fa9f9
7 changed files with 26 additions and 29 deletions

View File

@ -1,7 +1,7 @@
/** /**
* @Author: 程亮 * @Author: 程亮
* @Date: 2022-05-18 16:23:32 * @Date: 2022-05-18 16:23:32
* @LastEditTime: 2022-10-26 15:53:23 * @LastEditTime: 2022-11-08 18:39:26
* @Description: * @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/company/company.js * @FilePath: /trunk/src4js/pc4mobx/organization/components/company/company.js
*/ */
@ -26,7 +26,7 @@ import {
Button, Button,
message, message,
Switch, Switch,
Menu, Dropdown, Icon Menu, Dropdown, Icon,Tooltip
} from 'antd' } from 'antd'
import { import {
WeaSwitch, WeaSwitch,
@ -322,10 +322,12 @@ export default class Company extends React.Component {
} }
}; };
if (c.dataIndex == 'compName') { if (c.dataIndex == 'compName') {
c.className = "wea-table-indent"
c.render = function (text, record) { c.render = function (text, record) {
return <a onClick={() => { return <a onClick={() => {
window.open(`/spa/organization/static/index.html#/main/organization/companyExtend/${record.id}`, "_blank") window.open(`/spa/organization/static/index.html#/main/organization/companyExtend/${record.id}`, "_blank")
}}>{text}</a> }}>{text}</a>
} }
} }
if (c.dataIndex == 'operate') { if (c.dataIndex == 'operate') {

View File

@ -1,7 +1,7 @@
/** /**
* @Author: 程亮 * @Author: 程亮
* @Date: 2022-06-02 09:19:37 * @Date: 2022-06-02 09:19:37
* @LastEditTime: 2022-10-26 15:53:37 * @LastEditTime: 2022-11-08 18:40:46
* @Description: * @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/department/department.js * @FilePath: /trunk/src4js/pc4mobx/organization/components/department/department.js
*/ */
@ -351,6 +351,7 @@ export default class Department extends React.Component {
} }
}; };
if (c.dataIndex == 'deptName') { if (c.dataIndex == 'deptName') {
c.className = "wea-table-indent"
c.render = function (text, record) { c.render = function (text, record) {
return <a href='javascript:void(0);' onClick={() => { return <a href='javascript:void(0);' onClick={() => {
window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${record.id}`, "_blank") window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${record.id}`, "_blank")

View File

@ -103,9 +103,7 @@ export default class FieldDef extends Component {
// } // }
// } // }
} }
const rMenu = [...rightMenu, ...store.getBasicMenus(this.props.logSmallType, this.props.targetId)] const rMenu = [...rightMenu, ...store.getBasicMenus(this.props.logSmallType, this.props.targetId)]
return ( return (
<div className={classes} ref={dom => { this.tabDom = dom }}> <div className={classes} ref={dom => { this.tabDom = dom }}>
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@43qdk8`} datas={rMenu}> <WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@43qdk8`} datas={rMenu}>

View File

@ -137,13 +137,6 @@ export default class FieldDefined extends Component {
dropMenuDatas: menus dropMenuDatas: menus
}; };
let logType; let logType;
if (selectedTreeNodeInfo) {
if (selectedTreeNodeInfo.viewAttr == 1) {
logType = 'HRM_ENGINE_RESOURCEFIELDDEFINED';
} else {
logType = 'HRM_ENGINE_RESOURCEFIELDDEFINED_DETAIL';
}
}
let children = []; let children = [];
if (hasRight === false) { if (hasRight === false) {

View File

@ -31,7 +31,7 @@ export default class newImport extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = ({ this.state = ({
title: '基础数据导入', title: '数据导入',
}) })
} }

View File

@ -1,7 +1,7 @@
/** /**
* @Author: 程亮 * @Author: 程亮
* @Date: 2022-06-09 10:16:00 * @Date: 2022-06-09 10:16:00
* @LastEditTime: 2022-09-16 11:49:18 * @LastEditTime: 2022-11-08 16:43:10
* @Description: * @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/stores/fieldDefined.js * @FilePath: /trunk/src4js/pc4mobx/organization/stores/fieldDefined.js
*/ */
@ -300,19 +300,16 @@ export class FieldDefinedStore extends HrmBaseStore {
}]; }];
//人员卡片字段定义-添加【允许个人修改】列 //人员卡片字段定义-添加【允许个人修改】列
// if (this.moduleName === 'resourcefielddefined') { if (this.moduleName === 'resourcefielddefined') {
// if (this.isJobTreeNode) {//【工作信息】列表不添加【允许个人修改】列 columns.push({
// } else { title: getLabel(510359, '允许个人修改'),
// columns.push({ dataIndex: 'isModify',
// title: getLabel(510359, '允许个人修改'), key: 'isModify',
// dataIndex: 'isModify', checkType: 'checkbox',
// key: 'isModify', colSpan: 1,
// checkType: 'checkbox', width: '11%'
// colSpan: 1, });
// width: '11%' }
// });
// }
// }
// this.encryptEnable && columns.push({ // this.encryptEnable && columns.push({
// title: getLabel('526997', '加密设置'), // title: getLabel('526997', '加密设置'),
// dataIndex: 'canEncrypt', // dataIndex: 'canEncrypt',

View File

@ -89,3 +89,9 @@
} }
} }
//表格列省略样式
.wea-table-indent {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;overflow: hidden;
}