Browse Source

adm:feat> 修改名字显示规则

onlyh 3 years ago
parent
commit
2945bdc97e
2 changed files with 5 additions and 5 deletions
  1. 4 4
      src/components/business/baseDataForm.vue
  2. 1 1
      src/components/business/dataForm.vue

+ 4 - 4
src/components/business/baseDataForm.vue

@@ -9,7 +9,7 @@
                                 :key="item.path"
                                 v-for="item in obj.data"
                                 :style="{ 'height': item.dataType == 'ATTACHMENT'? 'auto':'93px' }">
-                            <el-form-item :label="item.name" :prop="item.code">
+                            <el-form-item :label="item.aliasName" :prop="item.code">
                                 <!-- 动态数据按输入框输入 -->
                                 <el-input
                                     v-if="item.category !== 'STATIC'"
@@ -130,7 +130,7 @@ export default class extends Vue {
 
     private get infoHeaders(): any {
         if (this.objectHeaders?.dictStages?.data?.length && this.objectHeaders?.basicInfos) {
-            const base: any[] = [], enclosure: any[] = []; 
+            const base: any[] = [], enclosure: any[] = [];
             this.objectHeaders.dictStages.data.forEach((item: any) => {
                 if (item.dataType === 'ATTACHMENT') {
                     enclosure.push(item);
@@ -206,10 +206,10 @@ $border: 1px solid #E1E7EA;
 input::-webkit-outer-spin-button,
 input::-webkit-inner-spin-button {
     -webkit-appearance: none !important;
-    margin: 0; 
+    margin: 0;
 }
 
 input[type="number"] {
     -moz-appearance: textfield;
 }
-</style>
+</style>

+ 1 - 1
src/components/business/dataForm.vue

@@ -7,7 +7,7 @@
                     <el-col :span="8" :key="item.path" v-for="item in header.basicInfos.data">
                         <el-form-item
                             :prop="item.path"
-                            :label="item.name">
+                            :label="item.aliasName">
                             <el-input v-model="form[item.path]"/>
                         </el-form-item>
                     </el-col>