Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
5f9fdd5b
Commit
5f9fdd5b
authored
May 06, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺克隆
parent
efd4f629
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
4 deletions
+39
-4
productTree.vue
components/page/productTree.vue
+1
-1
add.vue
pages/technology/add.vue
+35
-3
api.js
pages/technology/routing_header/api.js
+3
-0
No files found.
components/page/productTree.vue
View file @
5f9fdd5b
...
...
@@ -132,7 +132,7 @@ export default {
padding-left: 10px;
}
.tree {
height: calc(100vh - 2
00
px);
height: calc(100vh - 2
15
px);
overflow: auto;
}
}
...
...
pages/technology/add.vue
View file @
5f9fdd5b
...
...
@@ -202,6 +202,7 @@ export default {
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refFile
.
intFiles
();
console
.
log
(
this
.
title
)
console
.
log
(
this
.
eid
)
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
...
...
@@ -216,8 +217,29 @@ export default {
}
else
{
this
.
entity
.
fileId
=
""
;
}
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
if
(
this
.
title
==
'克隆'
){
var
parmese
=
{
"headerId"
:
this
.
eid
,
"code"
:
this
.
entity
.
code
}
debugger
Api
.
cloneheader
(
parmese
).
then
(
r
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"克隆成功"
);
this
.
$emit
(
"on-ok"
);
}
else
{
this
.
$Message
.
error
(
"克隆失败"
);
}
})
.
catch
(
err
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"克隆失败"
);
console
.
warn
(
err
);
});
// this.cloneData(parmese)
}
else
{
Api
.
create
(
this
.
entity
).
then
(
r
=>
{
this
.
disabled
=
false
;
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
...
...
@@ -231,9 +253,18 @@ export default {
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
});
}
}
});
},
// 克隆工艺
cloneData
(
parmese
){
console
.
warn
(
parmese
)
Api
.
cloneheader
(
parmese
).
then
(
r
=>
{
// this.disabled = false;
console
.
log
(
r
)
})
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
...
...
@@ -259,7 +290,7 @@ export default {
}
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
//Number parseInt
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
.
isEffect
=
parseInt
(
r
.
result
.
isEffect
);
this
.
entity
.
id
=
0
;
...
...
@@ -275,6 +306,7 @@ export default {
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
);
},
eid
(
v
)
{
// console.log("id:",v)
if
(
v
!=
0
)
{
this
.
load
(
v
);
}
...
...
pages/technology/routing_header/api.js
View file @
5f9fdd5b
...
...
@@ -10,6 +10,9 @@ export default {
create
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/create`
,
params
);
},
cloneheader
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/cloneheader`
,
params
);
},
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingheader/update`
,
params
);
},
...
...
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