|
@@ -28,9 +28,9 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="平台" prop="platform">
|
|
|
<el-checkbox-group v-model="project.platform">
|
|
|
- <el-checkbox label="IOS">IOS</el-checkbox>
|
|
|
- <el-checkbox label="ANDROID">ANDROID</el-checkbox>
|
|
|
- <el-checkbox label="WEB">WEB</el-checkbox>
|
|
|
+ <span v-for="(item,index) in platforms" :key="index">
|
|
|
+ <el-checkbox :label="item">{{ item }} </el-checkbox>
|
|
|
+ </span>
|
|
|
</el-checkbox-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="需求描述" prop="desc">
|
|
@@ -42,7 +42,7 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="服务类型" prop="type">
|
|
|
- <el-checkbox-group v-model="project.type" >
|
|
|
+ <el-checkbox-group v-model="project.type">
|
|
|
<span v-for="(item,index) in serviceType" :key="index">
|
|
|
<el-checkbox :label="item" name="type">{{item}} </el-checkbox>
|
|
|
</span>
|
|
@@ -152,7 +152,7 @@ import provincecity from '@/components/commons/ProvinceCity'
|
|
|
import provinceCityJSON from '@/constants/provinceCity.json'
|
|
|
import ResourceType from '@/constants/enum/resource-type'
|
|
|
import {notify} from '@/constants/index'
|
|
|
-import {getAllServiceTypes} from '@/js/index'
|
|
|
+import {getAllPlatformTypes, getAllServiceTypes} from '@/js/index'
|
|
|
|
|
|
export default {
|
|
|
name: 'ProjectCreate',
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
return {
|
|
|
tabPosition: 'top',
|
|
|
institutionArray: Enum.institution,
|
|
|
- platformType: [],
|
|
|
+ platforms: [],
|
|
|
serviceType: [],
|
|
|
resourceType: ResourceType,
|
|
|
project: {
|
|
@@ -305,6 +305,7 @@ export default {
|
|
|
},
|
|
|
init () {
|
|
|
this.setServiceType()
|
|
|
+ this.setPlatforms()
|
|
|
// this.project.platform.map(item => {
|
|
|
// this.platformType.push(PlatformType[item])
|
|
|
// })
|
|
@@ -443,6 +444,9 @@ export default {
|
|
|
},
|
|
|
setServiceType () {
|
|
|
this.serviceType = getAllServiceTypes()
|
|
|
+ },
|
|
|
+ setPlatforms () {
|
|
|
+ this.platforms = getAllPlatformTypes()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -465,6 +469,7 @@ export default {
|
|
|
max-height: 120px !important;
|
|
|
overflow: auto;
|
|
|
}
|
|
|
+
|
|
|
.el-input {
|
|
|
width: 400px;
|
|
|
}
|