|
@@ -42,11 +42,13 @@ export default {
|
|
|
useCompany: null,
|
|
|
useProject: null,
|
|
|
type: null,
|
|
|
+ typeFlag: null,
|
|
|
fileList: []
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- base (useCompany, type) {
|
|
|
+ base (useCompany, type, typeFlag) {
|
|
|
+ this.typeFlag = typeFlag
|
|
|
this.visible = true
|
|
|
this.useCompany = useCompany
|
|
|
if (type === 1) {
|
|
@@ -95,6 +97,7 @@ export default {
|
|
|
}
|
|
|
const formData = new FormData()
|
|
|
formData.append('type', this.type)
|
|
|
+ formData.append('typeFlag', this.typeFlag)
|
|
|
formData.append('file', this.fileList[0])
|
|
|
importSbInfo2(formData)
|
|
|
.then((res) => {
|