|
@@ -110,6 +110,7 @@ export default {
|
|
|
display: false,
|
|
|
isEdit: false, // 是否是编辑页面
|
|
|
isCopy: false,
|
|
|
+ isResubmit: false, // 是否重新提交
|
|
|
fileList: [],
|
|
|
dataList: [],
|
|
|
id: 0,
|
|
@@ -175,7 +176,7 @@ export default {
|
|
|
lineList: []
|
|
|
}
|
|
|
},
|
|
|
- async init (id, display, isEdit, isCopy) {
|
|
|
+ async init (id, display, isEdit, isCopy, isResubmit) {
|
|
|
this.fileList = []
|
|
|
this.dataForm = {
|
|
|
techName: '',
|
|
@@ -185,8 +186,9 @@ export default {
|
|
|
}
|
|
|
this.visible = true
|
|
|
this.display = display
|
|
|
- this.isEdit = isEdit && !isCopy
|
|
|
- this.isCopy = isCopy
|
|
|
+ this.isEdit = isEdit && !isCopy && !isResubmit
|
|
|
+ this.isCopy = isCopy || false
|
|
|
+ this.isResubmit = isResubmit || false
|
|
|
|
|
|
if (!id) return
|
|
|
await getInfo(id).then(async ({ data }) => {
|
|
@@ -217,7 +219,6 @@ export default {
|
|
|
let item = this.optionLevel.find(t => t.productId === val)
|
|
|
this.dataForm.techName = item.productName
|
|
|
}
|
|
|
- console.log(111, val)
|
|
|
},
|
|
|
handleRemove (file, fileList) {
|
|
|
this.fileList = fileList
|
|
@@ -258,6 +259,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
let url = `/biz-service/technology/submit`
|
|
|
+ if (this.isResubmit) {
|
|
|
+ url = `/biz-service/technology/resubmit`
|
|
|
+ }
|
|
|
if (this.isEdit && !this.isCopy) {
|
|
|
url = `/biz-service/technology/update`
|
|
|
}
|
|
@@ -359,7 +363,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
prodSelected (item) {
|
|
|
- console.log(JSON.stringify(item))
|
|
|
this.dataForm.productId = item.value
|
|
|
}
|
|
|
}
|