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
6782a1c9
Commit
6782a1c9
authored
Sep 18, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开始修改
parent
918c7e51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
mtable.jsx
src/components/AutoTable/mtable.jsx
+3
-1
columns.js
src/pages/lease/contract/columns.js
+4
-2
index.jsx
src/pages/lease/contract/index.jsx
+2
-1
No files found.
src/components/AutoTable/mtable.jsx
View file @
6782a1c9
...
@@ -37,6 +37,7 @@ const Mtable = (props) => {
...
@@ -37,6 +37,7 @@ const Mtable = (props) => {
pageSize
,
//修改默认pageSize
pageSize
,
//修改默认pageSize
pagination
=
true
,
//分页设置
pagination
=
true
,
//分页设置
x
,
//横向滚动
x
,
//横向滚动
y
,
activeTabKey
,
//激活的tabKey 拖拽表格唯一标识使用 其他情况用不到
activeTabKey
,
//激活的tabKey 拖拽表格唯一标识使用 其他情况用不到
refreshDep
,
//依赖刷新 (已废弃)
refreshDep
,
//依赖刷新 (已废弃)
getDefaultSelected
,
//存在默认选中向上返回选中值
getDefaultSelected
,
//存在默认选中向上返回选中值
...
@@ -405,9 +406,10 @@ const Mtable = (props) => {
...
@@ -405,9 +406,10 @@ const Mtable = (props) => {
rowKey=
{
rowKey
??
'id'
}
//表格每行数据的key
rowKey=
{
rowKey
??
'id'
}
//表格每行数据的key
dateFormatter=
"string"
dateFormatter=
"string"
scroll=
{
scroll=
{
x
x
||
y
?
{
?
{
x
:
x
,
x
:
x
,
y
:
y
}
}
:
{}
:
{}
}
}
...
...
src/pages/lease/contract/columns.js
View file @
6782a1c9
...
@@ -118,7 +118,8 @@ function getcolumns(setdrawer, valtype, itemId) {
...
@@ -118,7 +118,8 @@ function getcolumns(setdrawer, valtype, itemId) {
hideInSearch
:
true
,
hideInSearch
:
true
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
colProps
:
{
span
:
8
},
colProps
:
{
span
:
8
},
hideInTable
:
true
hideInTable
:
true
,
precision
:
0
},
},
{
{
title
:
'预警设置(自然日)'
,
title
:
'预警设置(自然日)'
,
...
@@ -128,7 +129,8 @@ function getcolumns(setdrawer, valtype, itemId) {
...
@@ -128,7 +129,8 @@ function getcolumns(setdrawer, valtype, itemId) {
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
colProps
:
{
span
:
8
},
colProps
:
{
span
:
8
},
valueType
:
'digit'
,
valueType
:
'digit'
,
hideInTable
:
true
hideInTable
:
true
,
precision
:
0
},
},
{
{
title
:
'合同租期(月)'
,
title
:
'合同租期(月)'
,
...
...
src/pages/lease/contract/index.jsx
View file @
6782a1c9
...
@@ -641,8 +641,9 @@ function Contract(props) {
...
@@ -641,8 +641,9 @@ function Contract(props) {
}
else
if
(
drawer
?.
val
==
'edit'
)
{
}
else
if
(
drawer
?.
val
==
'edit'
)
{
await
runAsync
({
url
:
pathconfig
?.
edit
,
params
:
{
...
newVals
,
id
:
drawer
?.
item
?.
id
,
amount
}
});
await
runAsync
({
url
:
pathconfig
?.
edit
,
params
:
{
...
newVals
,
id
:
drawer
?.
item
?.
id
,
amount
}
});
}
else
if
(
drawer
?.
val
==
'start'
)
{
}
else
if
(
drawer
?.
val
==
'start'
)
{
let
equipmentIdList
=
newVals
.
intelligenceList
?.
map
(
it
=>
it
.
equipmentId
);
delete
newVals
.
intelligenceList
;
delete
newVals
.
intelligenceList
;
await
runAsync
({
url
:
'/lease/umContract/start'
,
params
:
{
...
newVals
,
id
:
drawer
?.
item
?.
id
}
});
await
runAsync
({
url
:
'/lease/umContract/start'
,
params
:
{
...
newVals
,
id
:
drawer
?.
item
?.
id
,
equipmentIdList
}
});
}
else
if
(
drawer
?.
val
==
'out'
)
{
}
else
if
(
drawer
?.
val
==
'out'
)
{
let
contractEquipmentList
=
newVals
.
deviceList
?.
filter
(
it
=>
{
let
contractEquipmentList
=
newVals
.
deviceList
?.
filter
(
it
=>
{
if
(
it
.
isFinish
==
1
)
{
if
(
it
.
isFinish
==
1
)
{
...
...
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