Commit 72c6f81f by peiqiQQQ

上传

1 parent 79a0fc41
...@@ -56,9 +56,11 @@ ...@@ -56,9 +56,11 @@
<script> <script>
import { import {
queryProjectInfoManageTable,
editDeleteProjectInfoManageTable, editDeleteProjectInfoManageTable,
getPrjInfoDetail,
} from '@/api/index.js' } from '@/api/index.js'
import { getDictTypeOptions } from '@/utils'
export default { export default {
props: { props: {
title: { title: {
...@@ -99,7 +101,7 @@ export default { ...@@ -99,7 +101,7 @@ export default {
}, },
methods: { methods: {
getDicts() { getDicts() {
this.getDictTypeOptions('prj_data').then((res) => { getDictTypeOptions('prj_data').then((res) => {
this.tableData = res.map((v) => { this.tableData = res.map((v) => {
return { return {
label: v.label, label: v.label,
...@@ -129,19 +131,8 @@ export default { ...@@ -129,19 +131,8 @@ export default {
} }
}) })
const params = { 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, filesValue,
// prjId: this.rowData.prjCode prjId: this.rowData.prjId
} }
editDeleteProjectInfoManageTable(params).then((res) => { editDeleteProjectInfoManageTable(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -173,42 +164,40 @@ export default { ...@@ -173,42 +164,40 @@ export default {
] ]
}, },
// 打开弹框操作 // 打开弹框操作
fnQueryPrjNeedFile() { async fnQueryPrjNeedFile() {
this.getDicts() this.getDicts()
const params = { const detail = await getPrjInfoDetail(this.rowData)
prjName: this.rowData.prjName, // console.log(detail)
let 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.fileName,
url: v.fileUrl,
fileId: v.fileId,
fileName: v.fileName,
fileUrl: v.fileUrl,
},
]
item.fileArray = [
{
name: v.fileName,
url: v.fileUrl,
fileId: v.fileId,
fileName: v.fileName,
fileUrl: v.fileUrl,
},
]
}
})
})
} }
queryProjectInfoManageTable(params).then((res) => {
let filesValue = []
if (res.code == 200) {
let { records } = res.data
filesValue = records.filesValue || []
this.tableData.forEach((item, index) => {
filesValue.forEach((v) => {
if (item.value == v.busiFileType) {
item.fileList = [
{
name: v.busiFileName,
url: v.fileUrl,
fileId: v.fileId,
fileName: v.fileName,
fileUrl: v.fileUrl,
},
]
item.fileArray = [
{
name: v.busiFileName,
url: v.fileUrl,
fileId: v.fileId,
fileName: v.fileName,
fileUrl: v.fileUrl,
},
]
}
})
})
}
})
}, },
}, },
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!