Commit 72c6f81f by peiqiQQQ

上传

1 parent 79a0fc41
......@@ -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,42 +164,40 @@ export default {
]
},
// 打开弹框操作
fnQueryPrjNeedFile() {
async fnQueryPrjNeedFile() {
this.getDicts()
const params = {
prjName: this.rowData.prjName,
const detail = await getPrjInfoDetail(this.rowData)
// 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!