|
@@ -138,8 +138,8 @@ export default {
|
|
|
return {
|
|
|
userId: 0,
|
|
|
isModifyMode: true,
|
|
|
- serviceType:ServiceType,
|
|
|
- platform:Platform,
|
|
|
+ serviceType: ServiceType,
|
|
|
+ platform: Platform,
|
|
|
project: {
|
|
|
name: '',
|
|
|
description: '',
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
type: [],
|
|
|
requireDoc: [],
|
|
|
file: [],
|
|
|
- price: [],
|
|
|
+ price: '',
|
|
|
datetime: ''
|
|
|
},
|
|
|
rules: {
|
|
@@ -208,7 +208,19 @@ export default {
|
|
|
},
|
|
|
submitInfo () {
|
|
|
this.isModifyMode = false
|
|
|
- Http.post(Apis.PROJECT.ADD_PROJECT, this.project).then((res) => {
|
|
|
+ const newProject = {
|
|
|
+ name: this.project.name,
|
|
|
+ description: this.project.description,
|
|
|
+ contactName: this.project.contactName,
|
|
|
+ contactPhone: this.project.contactPhone,
|
|
|
+ platform: this.project.platform,
|
|
|
+ type: this.price.type,
|
|
|
+ requireDoc: this.project.requireDoc[0],
|
|
|
+ file: this.project.file[0],
|
|
|
+ price: this.project.price,
|
|
|
+ datetime: this.project.datetime
|
|
|
+ }
|
|
|
+ Http.post(Apis.PROJECT.ADD_PROJECT, newProject).then((res) => {
|
|
|
console.log(res)
|
|
|
})
|
|
|
},
|
|
@@ -249,7 +261,8 @@ export default {
|
|
|
.el-row {
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
- .el-input{
|
|
|
+
|
|
|
+ .el-input {
|
|
|
width: 400px;
|
|
|
}
|
|
|
</style>
|