|
@@ -1,5 +1,5 @@
|
|
|
<script>
|
|
|
-import { post, put } from '../../../utils/request'
|
|
|
+import { post, put, postWithHeader } from '../../../utils/request'
|
|
|
|
|
|
export default {
|
|
|
data () {
|
|
@@ -74,7 +74,6 @@ export default {
|
|
|
this.formData.productList[0].licenseNumber = rowData.licenseAmount
|
|
|
}
|
|
|
}
|
|
|
- console.log(rowData)
|
|
|
},
|
|
|
methods: {
|
|
|
// 提交表单
|
|
@@ -91,7 +90,6 @@ export default {
|
|
|
if (this.flag === 'create') this.createTeam()
|
|
|
if (this.flag === 'edit') this.editTeam()
|
|
|
}
|
|
|
- console.log(this.flag, this.formData)
|
|
|
// this.dialogVisible = true
|
|
|
},
|
|
|
// 重置表单
|
|
@@ -115,7 +113,13 @@ export default {
|
|
|
},
|
|
|
// 创建团队
|
|
|
createTeam () {
|
|
|
- post('http://81.68.234.235:8032/pdf-tech/vppTeam/createTeam', this.formData).then((res) => {
|
|
|
+ // const data = {
|
|
|
+ // data: JSON.stringify(this.formData),
|
|
|
+ // headers: {
|
|
|
+ // 'Content-Type': 'application/json'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ postWithHeader('http://81.68.234.235:8032/pdf-tech/vppTeam/createTeam', JSON.stringify(this.formData)).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.$message('Change Success')
|
|
|
} else (
|
|
@@ -125,7 +129,7 @@ export default {
|
|
|
},
|
|
|
// 编辑团队
|
|
|
editTeam () {
|
|
|
- put('http://81.68.234.235:8032/pdf-tech/vppTeam/editTeam', this.formData).then((res) => {
|
|
|
+ put('http://81.68.234.235:8032/pdf-tech/vppTeam/editTeam', JSON.stringify(this.formData)).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.$message('Change Success')
|
|
|
} else (
|