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,22 +164,21 @@ export default { ...@@ -173,22 +164,21 @@ export default {
] ]
}, },
// 打开弹框操作 // 打开弹框操作
fnQueryPrjNeedFile() { async fnQueryPrjNeedFile() {
this.getDicts() this.getDicts()
const params = { const detail = await getPrjInfoDetail(this.rowData)
prjName: this.rowData.prjName, // console.log(detail)
}
queryProjectInfoManageTable(params).then((res) => {
let filesValue = [] let filesValue = []
if (res.code == 200) { if (detail.code === 200) {
let { records } = res.data filesValue = detail.data.filesValue
filesValue = records.filesValue || [] }
if (filesValue.length) {
this.tableData.forEach((item, index) => { this.tableData.forEach((item, index) => {
filesValue.forEach((v) => { filesValue.forEach((v) => {
if (item.value == v.busiFileType) { if (item.value == v.busiFileType) {
item.fileList = [ item.fileList = [
{ {
name: v.busiFileName, name: v.fileName,
url: v.fileUrl, url: v.fileUrl,
fileId: v.fileId, fileId: v.fileId,
fileName: v.fileName, fileName: v.fileName,
...@@ -197,7 +187,7 @@ export default { ...@@ -197,7 +187,7 @@ export default {
] ]
item.fileArray = [ item.fileArray = [
{ {
name: v.busiFileName, name: v.fileName,
url: v.fileUrl, url: v.fileUrl,
fileId: v.fileId, fileId: v.fileId,
fileName: v.fileName, fileName: v.fileName,
...@@ -208,7 +198,6 @@ export default { ...@@ -208,7 +198,6 @@ export default {
}) })
}) })
} }
})
}, },
}, },
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!