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
56838b91
Commit
56838b91
authored
Dec 14, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
2271b5e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
43 deletions
+19
-43
index.jsx
src/components/ExtendField/index.jsx
+2
-2
index.jsx
src/components/InitForm/index.jsx
+5
-0
index.jsx
src/pages/device/account/index.jsx
+1
-34
index.jsx
src/pages/device/supplier/index.jsx
+11
-6
columns.js
src/pages/system/dictionary/columns.js
+0
-1
No files found.
src/components/ExtendField/index.jsx
View file @
56838b91
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-29 14:03:07
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-1
2 15:08:23
* @Last Modified time: 2022-12-1
4 14:08:31
*/
import
{
doFetch
}
from
'@/utils/doFetch'
;
...
...
@@ -22,7 +22,7 @@ const App = ({
})
=>
{
const
[
value
,
setValue
]
=
useState
(
''
);
const
[
fieldscolumns
,
setfieldscolumns
]
=
useState
(
columns
);
console
.
log
(
'22222'
,
drawer
,
urlParams
);
console
.
log
(
123123
);
const
selectValueType
=
(
type
,
options
)
=>
{
switch
(
type
)
{
case
1
:
...
...
src/components/InitForm/index.jsx
View file @
56838b91
...
...
@@ -123,6 +123,11 @@ function InitForm({
res
?.
data
?.
data
[
extendField
]?.
forEach
((
it
)
=>
{
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
});
console
.
log
(
'dddddd'
,
{
...(
res
?.
data
?.
data
??
{}),
...
obj
,
...
defaultFormValue
,
});
return
{
...(
res
?.
data
?.
data
??
{}),
...
obj
,
...
...
src/pages/device/account/index.jsx
View file @
56838b91
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-14 1
1:40:45
* @Last Modified time: 2022-12-14 1
4:13:17
*/
import
*
as
React
from
'react'
;
...
...
@@ -492,39 +492,6 @@ function Model(props) {
val
:
'only'
,
type
:
'edit'
,
item
:
row
,
// detailpath: urlParams.detail,
// params:
{
id
:
row
.
id
},
// onFinish: async (vals) =>
{
// //console.log(1);
// let equipmentCharList = [];
// //console.log('id:', row.id);
// for (let i in vals)
{
// if (!isNaN(Number(i)))
{
// equipmentCharList.push(
{
// fieldId: i,
// fieldRealValue: vals[i],
//
});
// delete vals[i];
//
}
//
}
// let params =
{
// ...vals,
// id: row.id,
// equipmentCharList,
//
};
// let res = await doFetch(
{
// url: urlParams.save,
// params,
//
});
// if (res.code === '0000')
{
// message.success('编辑成功!');
// setDrawer((s) => (
{
// ...s,
// visible: false,
//
}));
// actionRef.current.reload();
//
}
//
},
}));
},
}
}
...
...
src/pages/device/supplier/index.jsx
View file @
56838b91
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-14
09:15:07
* @Last Modified time: 2022-12-14
14:33:30
*/
import
*
as
React
from
'react'
;
...
...
@@ -206,6 +206,7 @@ function Supplier(props) {
key
:
el
.
id
,
});
});
console
.
log
(
'1214'
,
column
);
setnewfieldscolumns
(
column
);
}
},
...
...
@@ -216,13 +217,13 @@ function Supplier(props) {
});
//console.log(res?.data?.data);
let
obj
=
{};
res
?.
data
?.
data
[
'equipmentSupplierChar
Req
List'
]?.
forEach
((
it
)
=>
{
res
?.
data
?.
data
[
'equipmentSupplierCharList'
]?.
forEach
((
it
)
=>
{
obj
[
it
?.
fieldId
]
=
it
?.
fieldRealValue
;
});
//
console.log('drawerpro:', {
//
...(res?.data?.data ?? {}),
//
...obj,
//
});
console
.
log
(
'drawerpro:'
,
{
...(
res
?.
data
?.
data
??
{}),
...
obj
,
});
setrequest
(
{
...(
res
?.
data
?.
data
??
{}),
...
...
@@ -243,6 +244,7 @@ function Supplier(props) {
title
:
'联系人'
,
dataIndex
:
'userName'
,
key
:
'userName'
,
search
:
false
,
formItemProps
:
{
rules
:
[
{
...
...
@@ -254,16 +256,19 @@ function Supplier(props) {
},
{
title
:
'手机号码'
,
search
:
false
,
dataIndex
:
'telephone'
,
key
:
'telephone'
,
},
{
title
:
'邮箱'
,
search
:
false
,
dataIndex
:
'email'
,
key
:
'email'
,
},
{
title
:
'职务'
,
search
:
false
,
dataIndex
:
'title'
,
key
:
'title'
,
fieldProps
:
{
...
...
src/pages/system/dictionary/columns.js
View file @
56838b91
...
...
@@ -32,7 +32,6 @@ function getcolumns(setdrawer) {
dataIndex
:
'dataTypeName'
,
key
:
'dataType'
,
valueType
:
'input'
,
search
:
false
,
hideInForm
:
false
,
fieldProps
:
{
disabled
:
true
,
...
...
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