Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
1f0d00c1
Commit
1f0d00c1
authored
Sep 03, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面加载UI
parent
3ff3eeb3
Pipeline
#33968
passed with stages
in 5 minutes 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
AddModal.jsx
src/pages/platformCenter/bsmanager/workOrder/AddModal.jsx
+3
-18
incident.jsx
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
+2
-2
No files found.
src/pages/platformCenter/bsmanager/workOrder/AddModal.jsx
View file @
1f0d00c1
...
...
@@ -66,7 +66,6 @@ const AddModal = props => {
if
(
obj
.
CreateMode
===
0
||
1
)
{
obj
.
CreateMode
=
obj
.
CreateMode
.
toString
()
}
if
(
checkedList2
!=
true
)
{
obj
.
Editable
=
false
}
else
{
...
...
@@ -76,30 +75,18 @@ const AddModal = props => {
obj
.
Reportable
=
'均可'
obj
.
ReportFromMobile
=
'手持'
obj
.
ReportFromWeb
=
'前端'
// inputValue.Reportable = '均可'
// inputValue.ReportFromMobile = '手持'
// inputValue.ReportFromWeb = '前端'
}
else
if
(
checkedList3
===
true
)
{
obj
.
Reportable
=
'前端'
obj
.
ReportFromMobile
=
''
obj
.
ReportFromWeb
=
'前端'
// inputValue.Reportable = '前端'
// inputValue.ReportFromMobile = ''
// inputValue.ReportFromWeb = '前端'
obj
.
ReportFromWeb
=
'前端'
}
else
if
(
checkedList4
===
true
)
{
obj
.
Reportable
=
'手持'
obj
.
ReportFromMobile
=
'手持'
obj
.
ReportFromWeb
=
''
// inputValue.Reportable = '手持'
// inputValue.ReportFromMobile = '手持'
// inputValue.ReportFromWeb = ''
}
else
{
obj
.
Reportable
=
'否'
obj
.
ReportFromMobile
=
''
obj
.
ReportFromWeb
=
''
// inputValue.Reportable = ''
// inputValue.ReportFromMobile = ''
// inputValue.ReportFromWeb = ''
obj
.
ReportFromWeb
=
''
}
console
.
log
(
type
)
console
.
log
(
obj
)
...
...
@@ -119,7 +106,6 @@ const AddModal = props => {
})
}
else
{
let
data
=
{
...
obj
,
...
inputValue
,
Order
:
maxLength
}
// let data = { ...obj, ...inputValue, Order: maxLength } : { ...obj, Order, ID: formObj.ID }
if
(
type
==
'edit'
)
{
CM_Event_EditEventTable
({
...
inputValue
,
...
...
@@ -137,8 +123,7 @@ const AddModal = props => {
ReportPage
:
obj
.
ReportPage
,
DealPage
:
obj
.
DealPage
,
RelatedEvents
:
obj
.
RelatedEvents
,
InterfaceConfig
:
obj
.
InterfaceConfig
,
InterfaceConfig
:
obj
.
InterfaceConfig
,
})
.
then
(
res
=>
{
// setLoading(false);
...
...
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
View file @
1f0d00c1
...
...
@@ -34,7 +34,6 @@ import ViewModal from './ViewModal'
const
incident
=
()
=>
{
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
const
[
tableLoading
,
setTableLoading
]
=
useState
(
false
);
const
[
treeVisible
,
setTreeVisible
]
=
useState
(
true
);
// 左边列表是否可见
const
[
treeData
,
setTreeData
]
=
useState
([]);
// 事件表数据
const
[
tableData
,
setTableData
]
=
useState
([]);
// 事件表
...
...
@@ -259,7 +258,9 @@ const incident = () => {
]
useEffect
(()
=>
{
setTreeLoading
(
true
);
GetCM_Event_LoadEventTable
().
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
msg
===
'Ok'
){
console
.
log
(
res
.
data
)
// setMaxLength(res.data.root.length + 1)
...
...
@@ -508,7 +509,6 @@ const incident = () => {
}
}
columns=
{
columns
}
dataSource=
{
tableData
[
pickItem
]
}
loading=
{
tableLoading
}
scroll=
{
{
x
:
'max-content'
,
y
:
'calc(100vh - 155px)'
}
}
pagination=
{
{
showTotal
:
(
total
,
range
)
=>
...
...
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