|
@@ -19,9 +19,6 @@
|
|
|
<template #community>
|
|
|
<el-option v-for="i in communityList" :key="i._id" :label="i.name" :value="i._id"></el-option>
|
|
|
</template>
|
|
|
- <template #icon>
|
|
|
- <cUpload :model="`${'icon'}`" listType="picture-card" :limit="1" url="/files/material/user/upload" :list="form.icon" @change="onUpload"></cUpload>
|
|
|
- </template>
|
|
|
</cForm>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -59,8 +56,7 @@ let fields: Ref<any[]> = ref([
|
|
|
{ label: '性别', model: 'gender', type: 'select' },
|
|
|
{ label: '角色', model: 'role', type: 'select' },
|
|
|
{ label: '所属街道', model: 'street', type: 'select' },
|
|
|
- { label: '所属社区', model: 'community', type: 'select' },
|
|
|
- { label: '头像', model: 'icon', custom: true }
|
|
|
+ { label: '所属社区', model: 'community', type: 'select' }
|
|
|
]);
|
|
|
const rules = reactive<FormRules>({});
|
|
|
// 字典表
|
|
@@ -89,10 +85,6 @@ const search = async () => {
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-const onUpload = (e: { model: string; value: Array<[]> }) => {
|
|
|
- const { model, value } = e;
|
|
|
- form.value[model] = value;
|
|
|
-};
|
|
|
const toChange = async (val: any) => {
|
|
|
form.value.community = '';
|
|
|
let res: IQueryResult;
|