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
ee2fe64e
Commit
ee2fe64e
authored
Jan 05, 2024
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改批量操作
parent
6da33764
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
66 deletions
+47
-66
tree.vue
...k/instructionIdentificationBatch/components/left/tree.vue
+13
-55
index.vue
...instructionIdentificationBatch/components/right/index.vue
+34
-11
No files found.
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/instructionIdentificationBatch/components/left/tree.vue
View file @
ee2fe64e
<
template
>
<
template
>
<section
v-show=
"!isCollapse"
class=
"left-tree"
>
<section
v-show=
"!isCollapse"
class=
"left-tree"
>
<el-tree
<el-tree
ref=
"tree"
class=
"tree"
class=
"tree"
:data=
"treeData"
:data=
"treeData"
default-expand-all
default-expand-all
node-key=
"id"
node-key=
"id"
:current-node-key=
"currentNodekey"
:props=
"defaultProps"
:props=
"defaultProps"
:highlight-current=
"true"
:highlight-current=
"true"
:expand-on-click-node=
"false"
:expand-on-click-node=
"false"
...
@@ -53,7 +55,8 @@ export default {
...
@@ -53,7 +55,8 @@ export default {
children
:
'children'
,
children
:
'children'
,
label
:
'label'
label
:
'label'
},
},
curTree
:
{}
curTree
:
{},
currentNodekey
:
''
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -73,26 +76,7 @@ export default {
...
@@ -73,26 +76,7 @@ export default {
methods
:
{
methods
:
{
handleNodeClick
(
data
,
node
,
event
)
{
handleNodeClick
(
data
,
node
,
event
)
{
if
(
!
data
||
!
data
.
id
)
return
if
(
!
data
||
!
data
.
id
)
return
// 处于单架次的一级node 处于禁用状态
this
.
$bus
.
$emit
(
'getPlanData'
,
data
,
node
?
node
.
level
:
data
.
level
)
// if (this.isMbom) {
// if (this.assembly.isActive === 'ag' && !data.isLeaf) return
// else if (this.assembly.isActive === 'ins' && !data.isLeaf) return
// else if (this.assembly.isActive === 'ass' && data.isLeaf) return
// } else {
// console.log(44555, this.$parent)
// this.$parent.$parent.$parent.$parent.$refs.right.tablePagination.currentPage = 1
// this.$parent.$parent.$parent.$parent.$refs.right.tablePagination.pageSize = 10
// this.curTree = data
// if (data.isLeaf) return
// }
// this.curId = data.id
// this.assembly.title.sorties = data.serialNo
// this.curNodeTitle = data.title
// this.highlightTreeRow()
// 获取表格数据
// this.assembly.getTableData(data.id, this.froms.aoName, this.isMbom)
this
.
$bus
.
$emit
(
'getPlanData'
,
data
)
},
},
/**
/**
* 高亮状态
* 高亮状态
...
@@ -190,24 +174,7 @@ export default {
...
@@ -190,24 +174,7 @@ export default {
items
:
[],
items
:
[],
operator
:
'AND'
operator
:
'AND'
},
},
openProps
:
[
openProps
:
[],
{
name
:
'extPositionPlans'
},
{
name
:
'extPositionLinks'
,
openProps
:
[
{
name
:
'target'
,
openProps
:
[
{
name
:
'wrProduction'
}
]
}
]
}
],
sortItem
:
[
sortItem
:
[
{
{
fieldName
:
'serialNumber'
,
fieldName
:
'serialNumber'
,
...
@@ -226,8 +193,10 @@ export default {
...
@@ -226,8 +193,10 @@ export default {
title
:
this
.
froms
.
modelName
+
'-'
+
this
.
froms
.
sortieName
,
title
:
this
.
froms
.
modelName
+
'-'
+
this
.
froms
.
sortieName
,
icon
:
'aircraft'
,
icon
:
'aircraft'
,
id
:
this
.
froms
.
sortie
,
id
:
this
.
froms
.
sortie
,
serialNo
:
this
.
froms
.
sortieName
,
isLeaf
:
true
,
isLeaf
:
true
,
disabled
:
true
,
disabled
:
true
,
level
:
1
,
children
:
res
.
items
.
map
((
t
)
=>
{
children
:
res
.
items
.
map
((
t
)
=>
{
quantity
+=
t
.
completeCount
quantity
+=
t
.
completeCount
total
+=
t
.
carryCount
total
+=
t
.
carryCount
...
@@ -244,22 +213,11 @@ export default {
...
@@ -244,22 +213,11 @@ export default {
total
:
total
total
:
total
}]
}]
this
.
treeData
=
data
this
.
treeData
=
data
this
.
handleNodeClick
(
data
[
0
].
children
[
0
])
this
.
handleNodeClick
(
data
[
0
])
// if (that.isMbom) {
this
.
currentNodekey
=
data
[
0
].
id
// this.handleNodeClick(data[0], this.froms.aoName)
this
.
$nextTick
(()
=>
{
// } else {
this
.
$refs
.
tree
.
setCurrentKey
(
this
.
currentNodekey
)
// if (
})
// JSON.stringify(this.curTree) === '{}' &&
// data[0].children &&
// data[0].children.length
// ) {
// this.curTree = data[0].children[0]
// this.handleNodeClick(data[0].children[0], this.froms.aoName)
// } else {
// this.handleNodeClick(this.curTree, this.froms.aoName)
// }
// }
// this.highlightTreeRow()
})
})
.
catch
((
err
)
=>
console
.
error
(
err
))
.
catch
((
err
)
=>
console
.
error
(
err
))
.
finally
(()
=>
{})
.
finally
(()
=>
{})
...
...
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/instructionIdentificationBatch/components/right/index.vue
View file @
ee2fe64e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"header"
>
<div
class=
"header"
>
<div
class=
"tools"
>
<div
class=
"tools"
>
<span
v-if=
"jurisdId !== 'Activity_0v2qfnh'"
>
<span
v-if=
"jurisdId !== 'Activity_0v2qfnh'"
>
提示:
<i
class=
"el-icon-edit-outline"
/>
状态为待提交
可双击编辑列
提示:
<i
class=
"el-icon-edit-outline"
/>
可双击编辑列
</span>
</span>
<dee-tools
app-name=
"tf-mom"
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
<dee-tools
app-name=
"tf-mom"
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
</div>
</div>
...
@@ -91,11 +91,11 @@
...
@@ -91,11 +91,11 @@
<el-table-column
<el-table-column
prop=
"countWorkHour"
prop=
"countWorkHour"
align=
"center"
align=
"center"
label=
"定额工时(
h
)"
label=
"定额工时(
min
)"
:width=
"140"
:width=
"140"
>
>
<
template
slot=
"header"
>
<
template
slot=
"header"
>
<span>
定额工时(
h
)
</span>
<span>
定额工时(
min
)
</span>
<i
v-if=
"jurisdId !== 'Activity_0v2qfnh'"
class=
"el-icon-edit-outline"
/>
<i
v-if=
"jurisdId !== 'Activity_0v2qfnh'"
class=
"el-icon-edit-outline"
/>
</
template
>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -285,7 +285,8 @@ export default {
...
@@ -285,7 +285,8 @@ export default {
stateDisplayName
:
true
,
stateDisplayName
:
true
,
seePdfShow
:
false
,
seePdfShow
:
false
,
stateOption
:
[],
stateOption
:
[],
nodeData
:
{}
nodeData
:
{},
level
:
null
}
}
},
},
created
()
{
created
()
{
...
@@ -293,10 +294,11 @@ export default {
...
@@ -293,10 +294,11 @@ export default {
this
.
getTools
()
this
.
getTools
()
},
},
mounted
()
{
mounted
()
{
this
.
$bus
.
$on
(
'getPlanData'
,
(
data
)
=>
{
this
.
$bus
.
$on
(
'getPlanData'
,
(
data
,
level
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
nodeData
=
data
this
.
nodeData
=
data
this
.
getTableData
(
data
)
this
.
level
=
level
this
.
getTableData
(
data
,
level
)
})
})
})
})
this
.
getDicListByCode
()
this
.
getDicListByCode
()
...
@@ -309,6 +311,10 @@ export default {
...
@@ -309,6 +311,10 @@ export default {
async
getDicListByCode
()
{
async
getDicListByCode
()
{
this
.
stateOption
=
await
this
.
$utils
.
getDicListByCode
(
'ObjStatus'
)
this
.
stateOption
=
await
this
.
$utils
.
getDicListByCode
(
'ObjStatus'
)
},
},
getRefreshData
()
{
console
.
log
(
5454
)
this
.
getTableData
(
this
.
nodeData
,
this
.
level
)
},
/**
/**
* 工具栏
* 工具栏
*/
*/
...
@@ -328,6 +334,7 @@ export default {
...
@@ -328,6 +334,7 @@ export default {
btnStyle
:
''
,
btnStyle
:
''
,
btnValue
:
'importFile'
,
btnValue
:
'importFile'
,
businessType
:
'importFile'
,
businessType
:
'importFile'
,
downloadAfter
:
'console.log(333, currentObject)
\
nthis.getData()
\
n'
,
downloadParams
:
'downloadParams = {}'
,
downloadParams
:
'downloadParams = {}'
,
downloadRequestMethod
:
'get'
,
downloadRequestMethod
:
'get'
,
editTableShowMode
:
'alway'
,
editTableShowMode
:
'alway'
,
...
@@ -534,9 +541,9 @@ export default {
...
@@ -534,9 +541,9 @@ export default {
searchItems
:
{
searchItems
:
{
items
:
[
items
:
[
{
{
fieldName
:
'
positionNumber
'
,
fieldName
:
'
sorties
'
,
operator
:
'EQ'
,
operator
:
'EQ'
,
value
:
this
.
nodeData
.
title
value
:
this
.
nodeData
.
serialNo
}
}
],
],
operator
:
'AND'
operator
:
'AND'
...
@@ -549,6 +556,14 @@ export default {
...
@@ -549,6 +556,14 @@ export default {
}
}
]
]
}
}
if
(
this
.
level
===
2
)
{
params
.
searchItems
.
items
.
push
(
{
fieldName
:
'positionNumber'
,
operator
:
'EQ'
,
value
:
this
.
nodeData
.
title
})
}
const
downloadTitle
=
'单架次指令标识-'
+
this
.
nodeData
.
title
+
'.xlsx'
const
downloadTitle
=
'单架次指令标识-'
+
this
.
nodeData
.
title
+
'.xlsx'
downloadFile
(
`ExtProcessPlan/download/excel?taskDefinitionKey=
${
this
.
$route
.
query
.
taskDefinitionKey
}
`
,
'post'
,
params
).
then
(
res
=>
{
downloadFile
(
`ExtProcessPlan/download/excel?taskDefinitionKey=
${
this
.
$route
.
query
.
taskDefinitionKey
}
`
,
'post'
,
params
).
then
(
res
=>
{
this
.
$utils
.
downLoadFile
(
res
,
downloadTitle
)
this
.
$utils
.
downLoadFile
(
res
,
downloadTitle
)
...
@@ -557,7 +572,7 @@ export default {
...
@@ -557,7 +572,7 @@ export default {
/**
/**
* 获取表格数据
* 获取表格数据
*/
*/
getTableData
(
data
)
{
getTableData
(
data
,
level
)
{
const
that
=
this
const
that
=
this
that
.
aoLoading
=
true
that
.
aoLoading
=
true
that
.
tableData
=
[]
that
.
tableData
=
[]
...
@@ -568,9 +583,9 @@ export default {
...
@@ -568,9 +583,9 @@ export default {
searchItems
:
{
searchItems
:
{
items
:
[
items
:
[
{
{
fieldName
:
'
positionNumber
'
,
fieldName
:
'
sorties
'
,
operator
:
'EQ'
,
operator
:
'EQ'
,
value
:
data
.
title
value
:
data
.
serialNo
}
}
],
],
operator
:
'AND'
operator
:
'AND'
...
@@ -583,6 +598,14 @@ export default {
...
@@ -583,6 +598,14 @@ export default {
}
}
]
]
}
}
if
(
level
===
2
)
{
params
.
searchItems
.
items
.
push
(
{
fieldName
:
'positionNumber'
,
operator
:
'EQ'
,
value
:
data
.
title
})
}
post
(
'/ExtProcessPlan/searchBatchExamineAo?taskDefinitionKey='
+
this
.
$route
.
query
.
taskDefinitionKey
,
params
)
post
(
'/ExtProcessPlan/searchBatchExamineAo?taskDefinitionKey='
+
this
.
$route
.
query
.
taskDefinitionKey
,
params
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
&&
res
.
items
&&
res
.
items
.
content
)
{
if
(
res
&&
res
.
items
&&
res
.
items
.
content
)
{
...
...
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