Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
a17b65f7
Commit
a17b65f7
authored
Oct 09, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整占用分配数量组件修改
parent
d42d93f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
index.vue
...ents/components/OutStorageAdjustOccupyReqAmount/index.vue
+20
-14
No files found.
applications/dee-mes/src/privateComponents/components/OutStorageAdjustOccupyReqAmount/index.vue
View file @
a17b65f7
...
...
@@ -5,7 +5,7 @@
*/
<
template
>
<div
class=
"outStorageAdjustOccupy-reqAmount"
>
<el-input-number
v-model=
"
reqAmount"
:min=
"0"
size=
"small"
:max=
"maxNum
"
@
change=
"handleChange"
/>
<el-input-number
v-model=
"
scope.row.allocatedAmount"
:min=
"0"
size=
"small"
:max=
"scope.row.usableAmount
"
@
change=
"handleChange"
/>
</div>
</
template
>
<
script
>
...
...
@@ -18,6 +18,10 @@ export default {
type
:
Object
,
default
:
()
=>
{}
},
scope
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
value
:
{
type
:
Number
,
default
:
0
...
...
@@ -25,25 +29,27 @@ export default {
},
data
()
{
return
{
reqAmount
:
0
,
maxNum
:
0
reqAmount
:
0
}
},
computed
:
{},
computed
:
{
},
created
()
{
// 初始化数据
if
(
this
.
value
!==
'0'
)
{
this
.
reqAmount
=
Number
(
this
.
value
)
}
if
(
this
.
form
.
reqAmount
)
{
this
.
maxNum
=
this
.
form
.
reqAmount
}
else
{
this
.
maxNum
=
9999
}
//
if (this.value !== '0') {
//
this.reqAmount = Number(this.value)
//
}
//
if (this.form.reqAmount) {
//
this.maxNum = this.form.reqAmount
//
} else {
//
this.maxNum = 9999
//
}
},
methods
:
{
handleChange
()
{
this
.
$emit
(
'input'
,
this
.
reqAmount
)
handleChange
(
val
)
{
this
.
$emit
(
'input'
,
val
)
// const scope = this.scope
// this.$emit('cell-data-change', { rowIndex: scope.$index, key: 'allocatedAmount', value: scope.row.allocatedAmount, row: scope.row })
}
}
}
...
...
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