Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
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
jiawei.su
Laisi_AutoMES2
Commits
2933aeb5
Commit
2933aeb5
authored
Jan 26, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
26bc8367
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
31 deletions
+41
-31
assemblyInfo.vue
Html/src/view/fms/associate/assemblyInfo.vue
+0
-29
FixtureToolsAssemblyController.cs
...iger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
+41
-2
No files found.
Html/src/view/fms/associate/assemblyInfo.vue
View file @
2933aeb5
...
@@ -432,35 +432,6 @@ export default {
...
@@ -432,35 +432,6 @@ export default {
},
},
},
},
{
{
title
:
"备注"
,
key
:
"remark"
,
},
{
title
:
"附件"
,
key
:
"filename"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"span"
,
{
style
:
{
color
:
"#2b85e4"
,
cursor
:
"pointer"
,
},
on
:
{
click
:
()
=>
{
let
name
=
params
.
row
.
filename
;
let
url
=
params
.
row
.
fileurl
;
if
(
url
)
{
this
.
downFile
(
url
,
name
);
}
},
},
},
params
.
row
.
filename
);
},
},
{
title
:
"维护人"
,
title
:
"维护人"
,
key
:
"updator"
,
key
:
"updator"
,
},
},
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsAssemblyController.cs
View file @
2933aeb5
...
@@ -204,7 +204,26 @@ namespace Siger.ApiACC.Controllers
...
@@ -204,7 +204,26 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
}
if
(
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
)
==
null
)
if
(
parentExsit
!=
null
)
{
parentExsit
.
filename
=
req
.
filename
;
parentExsit
.
attachment
=
req
.
fileurl
;
parentExsit
.
remark
=
req
.
remark
;
//var sons = _toolsAssemblyRepository.GetList(q => q.parent == parentExsit.son && q.projectId == ProjectId).ToList();
//if (req.status.ToInt() == (int)RowState.Invalid && sons.Count(q => q.status == (int)RowState.Invalid) == sons.Count)
//{
// parentExsit.status = (int)RowState.Invalid;
//}
//else
//{
// parentExsit.status = (int)RowState.Valid;
//}
_toolsAssemblyRepository
.
Update
(
parentExsit
);
}
if
(
parentExsit
==
null
)
{
{
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
{
{
...
@@ -221,6 +240,7 @@ namespace Siger.ApiACC.Controllers
...
@@ -221,6 +240,7 @@ namespace Siger.ApiACC.Controllers
status
=
req
.
status
.
ToInt
()
==
(
int
)
RowState
.
Valid
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
status
=
req
.
status
.
ToInt
()
==
(
int
)
RowState
.
Valid
?
(
int
)
RowState
.
Valid
:
(
int
)
RowState
.
Invalid
,
remark
=
req
.
remark
remark
=
req
.
remark
};
};
_toolsAssemblyRepository
.
Insert
(
parentEntity
);
_toolsAssemblyRepository
.
Insert
(
parentEntity
);
}
}
...
@@ -289,7 +309,26 @@ namespace Siger.ApiACC.Controllers
...
@@ -289,7 +309,26 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
throw
new
BadRequestException
(
RequestEnum
.
LevelCountError
);
}
}
if
(
_toolsAssemblyRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
son
==
parentGuid
)
==
null
)
if
(
parentExsit
!=
null
)
{
parentExsit
.
filename
=
req
.
filename
;
parentExsit
.
attachment
=
req
.
fileurl
;
parentExsit
.
remark
=
req
.
remark
;
//var sons = _toolsAssemblyRepository.GetList(q => q.parent == parentExsit.son && q.projectId == ProjectId).ToList();
//if (req.status.ToInt() == (int)RowState.Invalid && sons.Count(q => q.status == (int)RowState.Invalid) == sons.Count)
//{
// parentExsit.status = (int)RowState.Invalid;
//}
//else
//{
// parentExsit.status = (int)RowState.Valid;
//}
_toolsAssemblyRepository
.
Update
(
parentExsit
);
}
if
(
parentExsit
==
null
)
{
{
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
var
parentEntity
=
new
siger_automation_fixture_tools_assembly
{
{
...
...
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