|
@@ -26,12 +26,13 @@
|
|
|
<!--<template slot="append">¥</template>-->
|
|
|
<!--</el-input>-->
|
|
|
<!--</el-form-item>-->
|
|
|
- <el-form-item label="平台" prop="platform">
|
|
|
- <el-checkbox-group v-model="project.platform">
|
|
|
+
|
|
|
+ <el-form-item label="应用类型" prop="platform">
|
|
|
+ <el-radio-group v-model="project.platform">
|
|
|
<span v-for="(item,index) in platforms" :key="index">
|
|
|
- <el-checkbox :label="item">{{ item }} </el-checkbox>
|
|
|
+ <el-radio :label="item">{{ item }} </el-radio>
|
|
|
</span>
|
|
|
- </el-checkbox-group>
|
|
|
+ </el-radio-group>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="服务类型" prop="type">
|
|
@@ -247,9 +248,8 @@ export default {
|
|
|
],
|
|
|
platform: [
|
|
|
{
|
|
|
- type: 'array',
|
|
|
required: true,
|
|
|
- message: '请至少选择一个平台',
|
|
|
+ message: '请至少选择一个应用类型',
|
|
|
trigger: 'change'
|
|
|
}
|
|
|
],
|
|
@@ -356,7 +356,7 @@ export default {
|
|
|
userId: this.user.userVO.id,
|
|
|
name: this.project.name,
|
|
|
type: this.project.type,
|
|
|
- platform: this.project.platform,
|
|
|
+ platform: this.project.platform.split(' '),
|
|
|
desc: this.project.desc,
|
|
|
resource: this.project.resource,
|
|
|
location: newLocation,
|
|
@@ -370,6 +370,7 @@ export default {
|
|
|
usage: this.project.usage,
|
|
|
price: this.project.price
|
|
|
}
|
|
|
+ console.log(newProject)
|
|
|
Http.post(Apis.PROJECT.CREATE_PROJECT, newProject).then((res) => {
|
|
|
//notify('success', '创建成功')
|
|
|
this.hideLoading()
|