Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
5f10de68
Commit
5f10de68
authored
Jan 10, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1720
parent
b252d3b5
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
479 additions
and
284 deletions
+479
-284
mtable.jsx
src/components/AutoTable/mtable.jsx
+3
-1
global.less
src/global.less
+6
-2
columns.js
src/pages/check/plan/columns.js
+314
-122
index.jsx
src/pages/check/plan/index.jsx
+156
-159
No files found.
src/components/AutoTable/mtable.jsx
View file @
5f10de68
...
...
@@ -39,7 +39,7 @@ const Mtable = (props) => {
activeTabKey
,
//激活的tabKey 拖拽表格唯一标识使用 其他情况用不到
refreshDep
,
//依赖刷新 (已废弃)
getDefaultSelected
,
//存在默认选中向上返回选中值
resizeable
=
tru
e
,
resizeable
=
fals
e
,
dataSource
,
}
=
props
;
...
...
@@ -101,6 +101,7 @@ const Mtable = (props) => {
if
(
Array
.
isArray
(
it
.
options
))
{
options
=
{
fieldProps
:
{
...
it
?.
fieldProps
,
options
:
[...
it
.
options
],
},
};
...
...
@@ -162,6 +163,7 @@ const Mtable = (props) => {
if
(
Array
.
isArray
(
it
.
options
))
{
options
=
{
fieldProps
:
{
...
it
?.
fieldProps
,
options
:
[...
it
.
options
],
},
};
...
...
src/global.less
View file @
5f10de68
...
...
@@ -509,3 +509,7 @@ ol {
.ant-input-number {
width: 100%;
}
.ant-form-item-label {
pointer-events: none;
}
\ No newline at end of file
src/pages/check/plan/columns.js
View file @
5f10de68
This diff is collapsed.
Click to expand it.
src/pages/check/plan/index.jsx
View file @
5f10de68
import
*
as
React
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
function
Plan
(
props
)
{
function
Plan
(
props
)
{
const
actionRef
=
useRef
(),
formRef
=
useRef
();
const
[
drawer
,
setdrawer
]
=
useState
({
...
...
@@ -94,18 +94,17 @@ import * as React from 'react';
};
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
return
defcolumn
.
concat
({
let
defcolumn
=
getcolumns
(
setdrawer
,
run
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
columns
;
let
defpath
=
getcolumns
(
setdrawer
,
run
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
return
activeTabKey
==
1
?
defcolumn
.
concat
({
title
:
'操作'
,
valueType
:
'option'
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
defpath
?.
enabledetail
&&
detail
(
text
,
row
,
_
,
action
),
defpath
?.
enableedit
&&
edit
(
text
,
row
,
_
,
action
),
defpath
?.
enabledelete
&&
remove
(
text
,
row
,
_
,
action
),
],
})
;
})
:
defcolumn
;
},
[
activeTabKey
]);
const
pathconfig
=
useMemo
(()
=>
{
...
...
@@ -121,7 +120,6 @@ import * as React from 'react';
path=
{
pathconfig
?.
list
||
'/ngic-auth/sysUser/query/page'
}
actionRef=
{
actionRef
}
pageextra=
{
pathconfig
?.
enableadd
?
'add'
:
null
}
resizeable=
{
true
}
addconfig=
{
{
// access: 'sysDepartment_save',
btn
:
{
...
...
@@ -169,7 +167,6 @@ import * as React from 'react';
/>
</
div
>
);
}
export
default
Plan
;
}
export
default
Plan
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment