diff --git a/src/views/common/push/pushConcern/concern.data.ts b/src/views/common/push/pushConcern/concern.data.ts index 8f19012..e920187 100644 --- a/src/views/common/push/pushConcern/concern.data.ts +++ b/src/views/common/push/pushConcern/concern.data.ts @@ -76,9 +76,6 @@ export const formSchema: FormSchema[] = [ field: 'nickName', label: '昵称', component: 'Input', - componentProps: { - disabled: true - } }, { field: 'deptName', @@ -87,9 +84,6 @@ export const formSchema: FormSchema[] = [ colProps: { span: 12 }, - componentProps: { - disabled: true - } }, { field: 'sex', @@ -99,7 +93,6 @@ export const formSchema: FormSchema[] = [ span: 12 }, componentProps: { - disabled: true, options: [ { label: '男', value: '0' }, { label: '女', value: '1' } @@ -110,17 +103,11 @@ export const formSchema: FormSchema[] = [ field: 'phone', label: '手机号', component: 'Input', - componentProps: { - disabled: true - } }, { field: 'email', label: '邮箱', component: 'Input', - componentProps: { - disabled: true - } }, ]; diff --git a/src/views/common/push/pushFriend/FriendModal.vue b/src/views/common/push/pushFriend/FriendModal.vue index 49c2086..d299e47 100644 --- a/src/views/common/push/pushFriend/FriendModal.vue +++ b/src/views/common/push/pushFriend/FriendModal.vue @@ -22,6 +22,7 @@ const emit = defineEmits(['success', 'register']); const router = useRoute(); const [registerForm, { resetFields, setFieldsValue, validate, clearValidate, updateSchema }] = useForm({ + disabled: true, labelWidth: 100, schemas: userFormSchema, showActionButtonGroup: false, diff --git a/src/views/common/push/pushFriend/friend.data.ts b/src/views/common/push/pushFriend/friend.data.ts index f94b20c..8f94bfd 100644 --- a/src/views/common/push/pushFriend/friend.data.ts +++ b/src/views/common/push/pushFriend/friend.data.ts @@ -2,7 +2,7 @@ import { BasicColumn } from '/@/components/Table'; import { FormSchema } from '/@/components/Table'; import { h } from 'vue'; import { Tag } from 'ant-design-vue'; -import {listPushType} from '/@/api/platform/common/controller/pushType'; +import { getUserTypeList } from '/@/api/platform/system/controller/user'; /** 表格列配置 */ export const columns: BasicColumn[] = [ @@ -70,9 +70,6 @@ export const userFormSchema: FormSchema[] = [ field: 'nickName', label: '用户昵称', component: 'Input', - componentProps: { - disabled: true, - }, colProps: { span: 12 } @@ -82,7 +79,6 @@ export const userFormSchema: FormSchema[] = [ label: '归属机构', component: 'TreeSelect', componentProps: { - disabled: true, fieldNames: { label: 'name', key: 'deptId', @@ -98,24 +94,17 @@ export const userFormSchema: FormSchema[] = [ field: 'phone', label: '手机号', component: 'Input', - componentProps: { - disabled: true, - }, }, { field: 'email', label: '邮箱', component: 'Input', - componentProps: { - disabled: true, - }, }, { field: 'sex', label: '性别', component: 'Select', componentProps: { - disabled: true, options: [ { label: '男', value: '0' }, { label: '女', value: '1' } @@ -131,7 +120,7 @@ export const userFormSchema: FormSchema[] = [ component: 'ApiSelect', required: true, componentProps: { - api: listPushType, + api: getUserTypeList, resultField: 'data' }, colProps: { @@ -143,7 +132,6 @@ export const userFormSchema: FormSchema[] = [ field: 'remarks', component: 'InputTextArea', componentProps: { - disabled: true, rows: 6 } } diff --git a/src/views/common/push/pushFriendAudit/FriendAuditModal.vue b/src/views/common/push/pushFriendAudit/FriendAuditModal.vue index 30457b1..af80080 100644 --- a/src/views/common/push/pushFriendAudit/FriendAuditModal.vue +++ b/src/views/common/push/pushFriendAudit/FriendAuditModal.vue @@ -26,6 +26,7 @@ const id = ref(''); const emit = defineEmits(['success', 'register']); const [registerForm, { resetFields, setFieldsValue, validate, clearValidate, updateSchema, setProps }] = useForm({ + disabled: true, labelWidth: 100, schemas: formSchema, showActionButtonGroup: false,