feature/2.15.1.2407.01-权限

This commit is contained in:
黎永顺 2024-08-05 15:06:07 +08:00
parent d09c5f1d96
commit 42bc94e720
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,33 @@
/*
* 个税扣缴义务人-角色设置
*
* @Author: 黎永顺
* @Date: 2024/8/5
* @Wechat:
* @Email: 971387674@qq.com
* @description:
*/
import React, { Component } from "react";
import { WeaBrowser, WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;
class Index extends Component {
componentDidMount() {
console.log(this.props);
}
render() {
return (
<WeaBrowser type={161} hasAddBtn hasBorder whiteBackground viewAttr={1}
addOnClick={values => console.log("自定义btn 点击的回调", values)}
inputStyle={{ width: "100%" }}
onChange={(ids, names, datas) =>
console.log("单人力", ids, names, datas)
}/>
);
}
}
export default Index;

View File

@ -7,6 +7,7 @@ import EditModal from "./editModal";
import TipLabel from "../../components/TipLabel";
import { decentralizationConditions, editConditions } from "./editConditions";
import LogDialog from "../../components/logViewModal";
import RoleSetting from "./components/roleSetting";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@ -411,6 +412,11 @@ export default class TaxAgent extends React.Component {
);
}
};
}else if(item.dataIndex === "role"){
return {
...item,
render: (text, record) => (<RoleSetting taxAgent={record} />)
}
} else {
return { ...item };
}