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
5b927673
Commit
5b927673
authored
Sep 27, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
technology index&&addindex&&add
parent
3b967bfd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
264 additions
and
259 deletions
+264
-259
add.vue
pages/technology/add.vue
+263
-258
index.vue
pages/technology/index.vue
+1
-1
No files found.
pages/technology/add.vue
View file @
5b927673
<
template
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"110"
>
<Form
ref=
"form"
:model=
"entity"
:rules=
"rules"
:label-width=
"110"
>
<Row>
<!--
<Col
:span=
"12"
>
<FormItem
:label=
"l('classId')"
prop=
"classId"
>
...
...
@@ -151,10 +151,9 @@
<Button
type=
"primary"
@
click=
"handleSubmit"
v-noClick
>
保存
</Button>
<Button
@
click=
"handleClose"
class=
"ml20"
>
取消
</Button>
</FormItem>
</Form>
</Form>
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiWorkflow
from
"../workflow/process/api"
;
...
...
@@ -198,28 +197,22 @@ export default {
fileId
:
""
,
},
rules
:
{
name
:
[
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
,
},
],
code
:
[
{
},
],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
,
},
],
routingType
:
[
{
},
],
routingType
:
[{
required
:
true
,
message
:
"请选择工艺类型"
,
trigger
:
"change"
,
type
:
"number"
,
},
],
},
],
},
parms
:
{
app
:
"technology"
,
...
...
@@ -272,6 +265,18 @@ export default {
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"保存成功"
);
this
.
$emit
(
"on-ok"
);
//保存成功后直接打开主页面查看功能
let
rowInfo
=
{
id
:
null
,
//????保存成功后需要返回id
code
:
this
.
entity
.
code
,
name
:
this
.
entity
.
name
,
routingType
:
this
.
entity
.
routingType
,
version
:
this
.
entity
.
versionid
,
departmentName
:
this
.
entity
.
departmentName
,
approvalStatus
:
this
.
entity
.
approvalStatus
,
productBomId
:
this
.
entity
.
productBomId
}
// this.$emit("on-goPage", rowInfo)
}
else
{
this
.
$Message
.
error
(
"保存失败"
);
}
...
...
pages/technology/index.vue
View file @
5b927673
...
...
@@ -52,7 +52,7 @@
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1120"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
:uid=
"uId"
:title=
"title"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
:uid=
"uId"
:title=
"title"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
@
on-goPage=
"view"
/>
</Modal>
<Modal
v-model=
"documentShow"
title=
"送审"
:mask-closable=
"false"
:scrollable=
"true"
ok-text=
"确定"
cancel-text=
"取消"
fullscreen
>
<sendAudit
ref=
"sendAudit"
></sendAudit>
...
...
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