xingyu4j 2 жил өмнө
parent
commit
f606bfb12b

+ 5 - 3
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/data.ts.vm

@@ -41,7 +41,6 @@ const crudSchemas = reactive<VxeCrudSchema>({
       #elseif(!("" != $column.dictType))
       #if ($column.htmlType == "datetime")## 时间框
       form: {
-        show: true,
         component: 'DatePicker',
         componentProps: {
           type: 'datetime',
@@ -50,7 +49,6 @@ const crudSchemas = reactive<VxeCrudSchema>({
       },
       #elseif($column.htmlType == "editor")## 文本编辑器
       form: {
-        show: true,
         component: 'Editor',
         colProps: {
           span: 24
@@ -61,7 +59,6 @@ const crudSchemas = reactive<VxeCrudSchema>({
       },
       #elseif($column.htmlType == "textarea")## 文本框
       form: {
-        show: true,
         component: 'Input',
         componentProps: {
           type: 'textarea',
@@ -71,6 +68,11 @@ const crudSchemas = reactive<VxeCrudSchema>({
           span: 24
         }
       },
+      #elseif(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")## 数字类型
+      form: {
+        component: 'InputNumber',
+        value: 0
+      },
       #end
       #end
       #if ($column.listOperationResult)

+ 2 - 1
yudao-ui-admin-vue3/src/views/Profile/components/BasicInfo.vue

@@ -62,7 +62,8 @@ const schema = reactive<FormSchema[]>([
   {
     field: 'sex',
     label: t('profile.user.sex'),
-    component: 'InputNumber'
+    component: 'InputNumber',
+    value: 0
   }
 ])
 const sexVlue = ref<number>()

+ 4 - 2
yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts

@@ -52,7 +52,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
       title: '访问令牌的有效期',
       field: 'accessTokenValiditySeconds',
       form: {
-        component: 'InputNumber'
+        component: 'InputNumber',
+        value: 0
       },
       table: {
         slots: {
@@ -64,7 +65,8 @@ const crudSchemas = reactive<VxeCrudSchema>({
       title: '刷新令牌的有效期',
       field: 'refreshTokenValiditySeconds',
       form: {
-        component: 'InputNumber'
+        component: 'InputNumber',
+        value: 0
       },
       table: {
         slots: {