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
93d59b73
Commit
93d59b73
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20221209
parent
0922d08a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
index.jsx
src/components/ExtendField/index.jsx
+12
-2
Detail.jsx
src/components/RepaireDetail/Detail.jsx
+13
-0
columns.js
src/pages/setting/users/columns.js
+2
-0
index.jsx
src/pages/setting/users/index.jsx
+2
-1
No files found.
src/components/ExtendField/index.jsx
View file @
93d59b73
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-29 14:03:07
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
7 10:11:53
* @Last Modified time: 2022-12-0
9 13:14:11
*/
import
{
doFetch
}
from
'@/utils/doFetch'
;
...
...
@@ -10,7 +10,16 @@ import { useRequest } from 'ahooks';
import
{
useState
,
useEffect
}
from
'react'
;
import
InitForm
from
'../InitForm'
;
const
App
=
({
setDrawer
,
onFinish
,
drawer
,
actionRef
,
columns
,
urlParams
,
formId
})
=>
{
const
App
=
({
setDrawer
,
onFinish
,
drawer
,
actionRef
,
columns
,
urlParams
,
formId
,
defaultFormValue
,
})
=>
{
const
[
value
,
setValue
]
=
useState
(
''
);
const
[
fieldscolumns
,
setfieldscolumns
]
=
useState
(
columns
);
const
selectValueType
=
(
type
,
options
)
=>
{
...
...
@@ -83,6 +92,7 @@ const App = ({ setDrawer, onFinish, drawer, actionRef, columns, urlParams, formI
return
(
<>
<
InitForm
defaultFormValue=
{
defaultFormValue
}
extendField=
{
selectextendField
(
formId
)
}
detailpath=
{
urlParams
?.
detail
||
null
}
params=
{
{
id
:
drawer
?.
item
?.
id
||
null
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/RepaireDetail/Detail.jsx
0 → 100644
View file @
93d59b73
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
ProDescriptions
}
from
'@ant-design/pro-components'
;
export
default
(
props
)
=>
{
return
(
<>
<
div
>
<
h3
>
单号
</
h3
>
</
div
>
<
ProDescriptions
/>
</>
);
};
This diff is collapsed.
Click to expand it.
src/pages/setting/users/columns.js
View file @
93d59b73
...
...
@@ -325,6 +325,7 @@ function getcolumns(setdrawer) {
align
:
'center'
,
search
:
false
,
key
:
'sectionIdList'
,
hideInTable
:
true
,
fieldProps
:
{
placeholder
:
'请选择'
,
showSearch
:
true
,
...
...
@@ -350,6 +351,7 @@ function getcolumns(setdrawer) {
mode
:
'multiple'
,
},
search
:
false
,
hideInTable
:
true
,
key
:
'productionLineIdList'
,
align
:
'center'
,
options
:
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/setting/users/index.jsx
View file @
93d59b73
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-0
7 10:15:25
* @Last Modified time: 2022-12-0
9 13:13:57
*/
import
*
as
React
from
'react'
;
...
...
@@ -192,6 +192,7 @@ function User(props) {
actionRef
.
current
.
reload
();
}
}
}
defaultFormValue=
{
drawer
.
item
}
/>
);
...
...
This diff is collapsed.
Click to expand it.
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