|
|
@ -24,7 +24,21 @@ |
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
label="分类名称 " |
|
|
|
prop="categoryCode" |
|
|
|
label-width="150px" |
|
|
|
style="display: block" |
|
|
|
> |
|
|
|
<el-select v-model="dataForm.categoryCode" placeholder="请选择" clearable> |
|
|
|
<el-option |
|
|
|
v-for="item in categoryList" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="组织人数 " |
|
|
|
prop="organizationPersonCount" |
|
|
@ -245,6 +259,7 @@ export default { |
|
|
|
orgId: "", |
|
|
|
dataForm: { |
|
|
|
organizationName: "", |
|
|
|
categoryCode: '', |
|
|
|
serviceItem: "", |
|
|
|
organizationPersonCount: "", |
|
|
|
principalName: "", |
|
|
@ -256,7 +271,8 @@ export default { |
|
|
|
latitude: "", |
|
|
|
organizationPersonnel: [], |
|
|
|
}, |
|
|
|
}; |
|
|
|
categoryList: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
computed: { |
|
|
@ -271,6 +287,9 @@ export default { |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
categoryCode: [ |
|
|
|
{ required: true, message: "分类名称不能为空", trigger: "blur" }, |
|
|
|
], |
|
|
|
organizationPersonCount: [ |
|
|
|
{ required: true, message: "组织人数不能为空", trigger: "blur" }, |
|
|
|
], |
|
|
@ -292,11 +311,26 @@ export default { |
|
|
|
props: {}, |
|
|
|
watch: {}, |
|
|
|
|
|
|
|
async created() { |
|
|
|
this.getCategoryList() |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
this.initMap(); |
|
|
|
this.initMap() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
async getCategoryList() { |
|
|
|
const url = '/sys/dict/data/dictlist' |
|
|
|
const params = { |
|
|
|
dictType: 'self_org_category' |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
if (code === 0) { |
|
|
|
this.categoryList = data |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleAddStaff() { |
|
|
|
this.dataForm.organizationPersonnel = [ |
|
|
|
...this.dataForm.organizationPersonnel, |
|
|
|