Browse Source

科目设置调整

ljb 10 months ago
parent
commit
5c47c0e7a2
1 changed files with 9 additions and 11 deletions
  1. 9 11
      src/views/basic-resource/basic-database/subject-setting.vue

+ 9 - 11
src/views/basic-resource/basic-database/subject-setting.vue

@@ -48,33 +48,34 @@ export default {
         tree: true,
         column: [
           {
-            label: "科目代码",
-            prop: "code",
+            label: "科目名称",
+            prop: "name",
             type: "input",
             span: 24,
+            minWidth: 160,
             search: true,
-            width: 200,
             showOverflowTooltip: true,
             rules: [
               {
                 required: true,
-                message: "请输入科目代码",
+                message: "请输入科目名称",
                 trigger: "blur",
               },
             ],
           },
           {
-            label: "科目名称",
-            prop: "name",
+            label: "科目代码",
+            prop: "code",
             type: "input",
             span: 24,
-            minWidth: 160,
             search: true,
+            width: 120,
+            align: 'center',
             showOverflowTooltip: true,
             rules: [
               {
                 required: true,
-                message: "请输入科目名称",
+                message: "请输入科目代码",
                 trigger: "blur",
               },
             ],
@@ -85,7 +86,6 @@ export default {
             type: "input",
             span: 24,
             minWidth: 160,
-            search: true,
             showOverflowTooltip: true,
           },
           {
@@ -94,7 +94,6 @@ export default {
             type: "input",
             span: 24,
             minWidth: 160,
-            search: true,
             showOverflowTooltip: true,
           },
           {
@@ -103,7 +102,6 @@ export default {
             type: "input",
             span: 24,
             minWidth: 160,
-            search: true,
             showOverflowTooltip: true,
           },
         ],