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
9367d349
Commit
9367d349
authored
May 06, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产资源
parent
51679675
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
6 deletions
+40
-6
index.vue
pages/resourceManagement/productionResources/index.vue
+21
-4
set.vue
pages/resourceManagement/productionResources/set.vue
+19
-2
No files found.
pages/resourceManagement/productionResources/index.vue
View file @
9367d349
...
...
@@ -23,8 +23,8 @@
<Col
span=
"8"
>
<FormItem
:label=
"l('isimportant')"
prop=
"isimportant"
>
<RadioGroup
v-model=
"entity.isimportant"
>
<Radio
label=
"
0
"
>
是
</Radio>
<Radio
label=
"
1
"
>
否
</Radio>
<Radio
label=
"
1
"
>
是
</Radio>
<Radio
label=
"
2
"
>
否
</Radio>
</RadioGroup>
</FormItem>
</Col>
...
...
@@ -132,6 +132,23 @@ export default {
easy
:
true
,
high
:
true
},
{
key
:
"isimportant"
,
title
:
this
.
l
(
"isimportant"
),
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
let
statuse
=
params
.
row
.
isimportant
;
let
text
=
statuse
==
1
?
"是"
:
statuse
==
2
?
"否"
:
""
;
return
h
(
"span"
,
{},
text
);
}
},
{
key
:
"capabilityValue"
,
title
:
this
.
l
(
"capabilityValue"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"calId"
,
title
:
this
.
l
(
"calId"
),
...
...
@@ -173,12 +190,12 @@ export default {
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
"设置
日历
"
"设置"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"remove"
,
title
:
"删除"
},
attrs
:
{
oprate
:
"remove"
,
title
:
"删除"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
...
...
pages/resourceManagement/productionResources/set.vue
View file @
9367d349
<
template
>
<Form
ref=
"form"
:model=
"
entity
"
:rules=
"rules"
:label-width=
"90"
>
<Form
ref=
"form"
:model=
"
formItem
"
:rules=
"rules"
:label-width=
"90"
>
<Row>
<Col
span=
"12"
>
<FormItem
label=
"资源名称"
prop=
"equip_name"
>
...
...
@@ -29,6 +29,19 @@
</Select>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"是否关重"
prop=
"isimportant"
>
<RadioGroup
v-model=
"formItem.isimportant"
>
<Radio
label=
"1"
>
是
</Radio>
<Radio
label=
"2"
>
否
</Radio>
</RadioGroup>
</FormItem>
</Col>
<Col
:span=
"12"
>
<FormItem
label=
"能力值"
prop=
"capabilityValue"
>
<Input
v-model=
"formItem.capabilityValue"
placeholder=
"请输入能力值"
></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
...
@@ -47,7 +60,9 @@ export default {
overtimeList
:
[],
formItem
:
{
equip_name
:
""
,
equip_id
:
""
equip_id
:
""
,
isimportant
:
""
,
capabilityValue
:
""
},
formItem1
:
{
id
:
0
,
...
...
@@ -97,6 +112,8 @@ export default {
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
formItem
.
equip_name
=
r
.
result
.
title
;
this
.
formItem
.
equip_id
=
r
.
result
.
code
;
this
.
formItem
.
capabilityValue
=
r
.
result
.
capabilityValue
;
this
.
formItem
.
isimportant
=
r
.
result
.
isimportant
+
""
;
this
.
formItem1
.
calendarwork_pk
=
r
.
result
.
calKey
;
this
.
formItem2
.
calendarovertime_pk
=
r
.
result
.
holidayKey
;
this
.
formItem1
.
equip_pk
=
r
.
result
.
id
;
...
...
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