Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 72c6f81f
authored
Apr 11, 2024
by
peiqiQQQ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
1 parent
79a0fc41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
25 deletions
src/views/supervisionDataCollection/UploadDialog.vue
src/views/supervisionDataCollection/UploadDialog.vue
View file @
72c6f81
...
...
@@ -56,9 +56,11 @@
<
script
>
import
{
queryProjectInfoManageTable
,
editDeleteProjectInfoManageTable
,
getPrjInfoDetail
,
}
from
'@/api/index.js'
import
{
getDictTypeOptions
}
from
'@/utils'
export
default
{
props
:
{
title
:
{
...
...
@@ -99,7 +101,7 @@ export default {
},
methods
:
{
getDicts
()
{
this
.
getDictTypeOptions
(
'prj_data'
).
then
((
res
)
=>
{
getDictTypeOptions
(
'prj_data'
).
then
((
res
)
=>
{
this
.
tableData
=
res
.
map
((
v
)
=>
{
return
{
label
:
v
.
label
,
...
...
@@ -129,19 +131,8 @@ export default {
}
})
const
params
=
{
appCode
:
"b17be13e-4915-42ba-9ae0-cee63780f5b3"
,
appId
:
13
,
appName
:
"我的测试系统-勿动"
,
buildOrg
:
1
,
buildType
:
1
,
manageDeptId
:
1
,
manageOrgId
:
1
,
prjId
:
28
,
prjName
:
"我的测试项目-勿动"
,
prjPlanClass
:
1
,
filesValue
,
// prjId: this.rowData.prjCode
prjId
:
this
.
rowData
.
prjId
}
editDeleteProjectInfoManageTable
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -173,22 +164,21 @@ export default {
]
},
// 打开弹框操作
fnQueryPrjNeedFile
()
{
async
fnQueryPrjNeedFile
()
{
this
.
getDicts
()
const
params
=
{
prjName
:
this
.
rowData
.
prjName
,
}
queryProjectInfoManageTable
(
params
).
then
((
res
)
=>
{
const
detail
=
await
getPrjInfoDetail
(
this
.
rowData
)
// console.log(detail)
let
filesValue
=
[]
if
(
res
.
code
==
200
)
{
let
{
records
}
=
res
.
data
filesValue
=
records
.
filesValue
||
[]
if
(
detail
.
code
===
200
)
{
filesValue
=
detail
.
data
.
filesValue
}
if
(
filesValue
.
length
)
{
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
filesValue
.
forEach
((
v
)
=>
{
if
(
item
.
value
==
v
.
busiFileType
)
{
item
.
fileList
=
[
{
name
:
v
.
busiF
ileName
,
name
:
v
.
f
ileName
,
url
:
v
.
fileUrl
,
fileId
:
v
.
fileId
,
fileName
:
v
.
fileName
,
...
...
@@ -197,7 +187,7 @@ export default {
]
item
.
fileArray
=
[
{
name
:
v
.
busiF
ileName
,
name
:
v
.
f
ileName
,
url
:
v
.
fileUrl
,
fileId
:
v
.
fileId
,
fileName
:
v
.
fileName
,
...
...
@@ -208,7 +198,6 @@ export default {
})
})
}
})
},
},
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment