|
|
@ -797,27 +797,17 @@ export default { |
|
|
|
async addFuwu() { |
|
|
|
// 处理服务范围数据 |
|
|
|
await this.operationOption(); |
|
|
|
console.log( this.fileList); |
|
|
|
|
|
|
|
let arr = [] |
|
|
|
this.fileList.forEach(item=>{ |
|
|
|
arr.push({ |
|
|
|
name: item.attachmentName, |
|
|
|
type: item.attachmentFormat, |
|
|
|
duration :0, |
|
|
|
url: item.attachmentUrl, |
|
|
|
format:item.attachmentType, |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.formData.attachmentList = arr |
|
|
|
console.log( this.formData.attachmentList ); |
|
|
|
this.formData.attachmentList = [...this.fileList]; |
|
|
|
|
|
|
|
this.formData.assignInfo = this.newFormData; |
|
|
|
let url = "/governance/policy/addPolicy"; |
|
|
|
|
|
|
|
if (this.formType === "add" || this.formType === "copy") { |
|
|
|
url = "/governance/policy/addPolicy"; |
|
|
|
this.formData.policyId = ""; |
|
|
|
} else { |
|
|
|
url = "/heart/policy/update"; |
|
|
|
this.formData.policyId = this.policyId; |
|
|
|
} |
|
|
|
|
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/initiate' |
|
|
|