1.0.1 修复软件控制权限
This commit is contained in:
parent
8b1ccfed47
commit
6512858af4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ant-design-pro",
|
||||
"version": "6.0.0",
|
||||
"name": "lms",
|
||||
"version": "1.0.1",
|
||||
"private": true,
|
||||
"description": "An out-of-box UI solution for enterprise applications",
|
||||
"scripts": {
|
||||
|
||||
@ -227,6 +227,7 @@ const SoftwareControlManagement: FC<SoftwareControlManagementProps> = () => {
|
||||
|
||||
async function QueryUserSoftwareControlCollection(tableParams: TableModel.TableParams, options?: SoftwareModel.SoftwareControlQueryParams) {
|
||||
try {
|
||||
debugger
|
||||
setLoading(true);
|
||||
let res = await SoftwareControl.GetUserSoftwareControlCollection(tableParams, options ?? {});
|
||||
setData(res.collection);
|
||||
@ -275,7 +276,7 @@ const SoftwareControlManagement: FC<SoftwareControlManagementProps> = () => {
|
||||
|
||||
|
||||
async function QuerySoftwareControlByCondition(values: any) {
|
||||
await QueryUserSoftwareControlCollection(values);
|
||||
await QueryUserSoftwareControlCollection(tableParams, values);
|
||||
}
|
||||
|
||||
return (
|
||||
@ -291,7 +292,7 @@ const SoftwareControlManagement: FC<SoftwareControlManagementProps> = () => {
|
||||
<Form.Item label="软件" name='softwareId' style={{ marginBottom: 5 }}>
|
||||
<Select placeholder="请选择用户名称" style={{ width: 200 }} options={softwareOptions} />
|
||||
</Form.Item>
|
||||
<Form.Item label="是否永久" name='IsForever' style={{ marginBottom: 5 }}>
|
||||
<Form.Item label="是否永久" name='isForever' style={{ marginBottom: 5 }}>
|
||||
<Select placeholder="请选择是否永久" style={{ width: 200 }} options={[{ label: "是", value: true }, { label: "否", value: false }]} />
|
||||
</Form.Item>
|
||||
<Form.Item label="备注" name='remark' style={{ marginBottom: 5 }}>
|
||||
|
||||
@ -39,6 +39,7 @@ async function ApplyUserSoftwareControl(userId: number) {
|
||||
* @returns
|
||||
*/
|
||||
async function GetUserSoftwareControlCollection(tableParams: TableModel.TableParams, queryParams: SoftwareModel.SoftwareControlQueryParams) {
|
||||
debugger
|
||||
let data = {
|
||||
...queryParams,
|
||||
page: tableParams.pagination?.current,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user