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
16bbc99e
Commit
16bbc99e
authored
Aug 17, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库申请及入库审核tab页签上total渲染修改
parent
a724bf89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
26 deletions
+10
-26
index.vue
.../workflow/task-center/myPlanTask/warehouseApply/index.vue
+5
-13
index.vue
...orkflow/task-center/myPlanTask/warehouseExamine/index.vue
+5
-13
No files found.
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/warehouseApply/index.vue
View file @
16bbc99e
...
...
@@ -19,7 +19,7 @@
class=
"list-table"
:basic-data=
"
{ selectData: selectData }"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'material_table'}"
@
freshData="freshData(
'Material')"
@
requestSuccess="onRequestSuccess($event,
'Material')"
/>
</el-tab-pane>
<el-tab-pane
:label=
"'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'"
name=
"AirEquipment"
>
...
...
@@ -28,7 +28,7 @@
class=
"list-table"
:lay-config=
"
{ typeName: 'InStorageRequestItem', layKey: 'airEquipment_table'}"
:basic-data=" { selectData: selectData }"
@
freshData="freshData(
'AirEquipment')"
@
requestSuccess="onRequestSuccess($event,
'AirEquipment')"
/>
</el-tab-pane>
<el-tab-pane
:label=
"'外包产品验收单(' + totals.OutSourceTotal + ')'"
name=
"OutSource"
>
...
...
@@ -37,7 +37,7 @@
class=
"list-table"
:lay-config=
"
{ typeName: 'InStorageRequestItem', layKey: 'outSource_table'}"
:basic-data=" { selectData: selectData }"
@
freshData="freshData(
'OutSource')"
@
requestSuccess="onRequestSuccess($event,
'OutSource')"
/>
</el-tab-pane>
</el-tabs>
...
...
@@ -93,16 +93,8 @@ export default {
},
// 组件方法
methods
:
{
freshData
(
tabName
)
{
setTimeout
(()
=>
{
this
.
changeTotal
(
tabName
)
},
1000
)
},
changeTotal
(
tabName
)
{
const
el
=
this
.
$refs
[
tabName
+
'Table'
]
if
(
el
&&
el
.
$refs
.
asCom
)
{
this
.
$set
(
this
.
totals
,
tabName
+
'Total'
,
el
.
$refs
.
asCom
.
pagination
.
total
)
}
onRequestSuccess
(
res
,
tabName
)
{
this
.
$set
(
this
.
totals
,
tabName
+
'Total'
,
res
.
items
.
totalElements
)
},
searchEvent
(
val
)
{
this
.
searchItems
=
val
.
items
...
...
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/warehouseExamine/index.vue
View file @
16bbc99e
...
...
@@ -19,7 +19,7 @@
class=
"list-table"
:basic-data=
" basicData"
:lay-config=
"
{ typeName: 'InStorageRequestItem', layKey: 'examine_material_table'}"
@
freshData="freshData(
'Material')"
@
requestSuccess="onRequestSuccess($event,
'Material')"
@selectionChange="selectionChange($event,'Material')"
/>
</el-tab-pane>
...
...
@@ -29,7 +29,7 @@
class=
"list-table"
:lay-config=
"
{ typeName: 'InStorageRequestItem', layKey: 'examine_airEquipment_table'}"
:basic-data=" basicData"
@
freshData="freshData(
'AirEquipment')"
@
requestSuccess="onRequestSuccess($event,
'AirEquipment')"
@selectionChange="selectionChange($event,'AirEquipment')"
/>
</el-tab-pane>
...
...
@@ -39,7 +39,7 @@
class=
"list-table"
:lay-config=
"
{ typeName: 'InStorageRequestItem', layKey: 'examine_outSource_table'}"
:basic-data=" basicData"
@
freshData="freshData(
'OutSource')"
@
requestSuccess="onRequestSuccess($event,
'OutSource')"
@selectionChange="selectionChange($event,'OutSource')"
/>
</el-tab-pane>
...
...
@@ -99,16 +99,8 @@ export default {
},
// 组件方法
methods
:
{
freshData
(
tabName
)
{
setTimeout
(()
=>
{
this
.
changeTotal
(
tabName
)
},
1000
)
},
changeTotal
(
tabName
)
{
const
el
=
this
.
$refs
[
tabName
+
'Table'
]
if
(
el
&&
el
.
$refs
.
asCom
)
{
this
.
$set
(
this
.
totals
,
tabName
+
'Total'
,
el
.
$refs
.
asCom
.
pagination
.
total
)
}
onRequestSuccess
(
res
,
tabName
)
{
this
.
$set
(
this
.
totals
,
tabName
+
'Total'
,
res
.
items
.
totalElements
)
},
searchEvent
(
val
)
{
this
.
searchItems
=
val
.
items
...
...
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