岗位高级搜索bug修复

This commit is contained in:
Chengliang 2022-06-08 16:51:54 +08:00
parent faf37dba1d
commit 74879c046d
2 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/**
* @Author: 程亮
* @Date: 2022-05-26 14:05:59
* @LastEditTime: 2022-06-07 16:44:49
* @LastEditTime: 2022-06-08 16:03:50
* @Description:
* @FilePath: /trunk/src4js/pc4mobx/organization/components/job/Job.js
*/
@ -310,11 +310,9 @@ export default class Job extends React.Component {
c.render = function (text, record) {
const menu = (
<Menu>
{
record.isUsed === 0 ? <Menu.Item>
<a href='javascript:void(0);' onClick={() => { _this.doDel(record.id) }}>删除</a>
</Menu.Item> : ''
}
<Menu.Item key="1" disabled={record.isUsed === 0 ? false : true} style={record.isUsed === 0 ? {display:'block'} : {display:'none'}}>
<a href='javascript:void(0);' onClick={() => { _this.doDel(record.id) }}>删除</a>
</Menu.Item>
<Menu.Item>
<a href='javascript:void(0);' onClick={() => { _this.select(record.id) }}>联查人员</a>
</Menu.Item>

View File

@ -73,7 +73,7 @@ export class JobStore {
params = {
...params,
...this.form.getFormParams(),
compName: this.jobName
jobName: this.jobName
};
} else {
params = {
@ -273,7 +273,7 @@ export class JobStore {
updateFields(val) {
this.form.updateFields({
compName: {
jobName: {
value: val
}
});