diff --git a/hx-ai-intelligent/src/theme/global.less b/hx-ai-intelligent/src/theme/global.less index 7271933..fc42a0d 100644 --- a/hx-ai-intelligent/src/theme/global.less +++ b/hx-ai-intelligent/src/theme/global.less @@ -182,3 +182,7 @@ background-color: #AEAEAE; } } + +#app { + min-width: 1200px; +} diff --git a/hx-ai-intelligent/src/view/organizationManage/usermanage/index.vue b/hx-ai-intelligent/src/view/organizationManage/usermanage/index.vue index d00e7ec..809d6b6 100644 --- a/hx-ai-intelligent/src/view/organizationManage/usermanage/index.vue +++ b/hx-ai-intelligent/src/view/organizationManage/usermanage/index.vue @@ -439,7 +439,7 @@ label: '账号名', component: 'NsInput', componentProps: { - placeholder: '请输入账号名', + // placeholder: '请输入账号名', maxLength: 30, }, }, @@ -448,7 +448,7 @@ label: '姓名', component: 'NsInput', componentProps: { - placeholder: '请输入姓名', + // placeholder: '请输入姓名', maxLength: 30, }, }, @@ -457,7 +457,7 @@ label: '手机号', component: 'NsInput', componentProps: { - placeholder: '请输入手机号', + // placeholder: '请输入手机号', maxLength: 11, }, }, @@ -475,7 +475,6 @@ label: '用户状态', component: 'NsSelect', componentProps: { - placeholder: '请选择', allowClear: true, options: [ { diff --git a/lib/component/form/form-util.ts b/lib/component/form/form-util.ts index 6315ca7..d6b2223 100644 --- a/lib/component/form/form-util.ts +++ b/lib/component/form/form-util.ts @@ -13,7 +13,7 @@ const DATE_TYPE = [ 'ARangePicker', ]; -const INPUT_TYPE = ['NsInput', 'AInput']; +const INPUT_TYPE = ['NsInput', 'AInput', 'NsTextarea', 'ATextarea']; /** * 是否时间组件 diff --git a/lib/component/form/form/form-item.vue b/lib/component/form/form/form-item.vue index 1225897..216010f 100644 --- a/lib/component/form/form/form-item.vue +++ b/lib/component/form/form/form-item.vue @@ -51,6 +51,11 @@ import { isInputType } from '/nerv-lib/component/form/form-util'; import { useParams } from '/nerv-lib/use/use-params'; + enum prefix { + '请选择', + '请输入', + } + export default defineComponent({ name: 'NsFormItem', components: {}, @@ -221,21 +226,28 @@ const { component, field, + label, dynamicParams, changeEvent = 'change', valueField, addModel = [], autoAddLink = false, autoSubmit = false, + componentProps, } = props.schema; const isCheck = component && ['NsSwitch', 'NsCheckbox', 'Switch', 'Checkbox'].includes(component); const eventKey = `on${upperFirst(changeEvent)}`; const attr: Recordable = {}; - if (isInputType(component)) { + const isInput = isInputType(component); + if (isInput) { attr.allowClear = true; } + // const { placeholder } = componentProps; + // // 赋予初始提示符 + // componentProps['placeholder'] = placeholder || `${prefix[Number(isInput)]}${label}`; + const propsData: Recordable = { field, dynamicParams, @@ -293,8 +305,6 @@ }, onValidateChange: (text: Object | undefined) => { if (isUndefined(text)) text = {}; - console.error(text, 'onValidateChange'); - validateRef.value = text; }, }; diff --git a/lib/component/form/form/form.vue b/lib/component/form/form/form.vue index e2adbe2..4a407ac 100644 --- a/lib/component/form/form/form.vue +++ b/lib/component/form/form/form.vue @@ -7,7 +7,24 @@ v-bind="getBindValue" ref="formElRef" :model="formModel"> - +
+ 查询 + + + + +
+