lilei 4 vuotta sitten
vanhempi
commit
7e3745b0b1

+ 4 - 3
src/views/evaluation/evaluationItem/AddEvaIndexModal.vue

@@ -19,15 +19,16 @@
                 v-decorator="[
                   'formData.name',
                   { initialValue: formData.name,
-                    rules: [{ required: true, message: '请输入考评指标名称128个字以内!' }] },
+                    getValueFromEvent: $filterEmpty,
+                    rules: [{ required: true, message: '请输入考评指标名称!' }] },
                 ]"
-                placeholder="请输入考评指标名称128个字以内" />
+                placeholder="请输入考评指标名称(最多128个字符)" />
             </a-form-item>
           </a-col>
         </a-row>
         <a-form-item :wrapper-col="{ span: 24, offset: 10 }">
           <a-button :loading="loading" id="addEvaIndexModal-submit" type="primary" @click="handleSubmit()">
-            确定
+            保存
           </a-button>
           <a-button id="addEvaIndexModal-cancel" :style="{ marginLeft: '8px' }" @click="cancel()">
             取消

+ 6 - 5
src/views/evaluation/evaluationItem/AddEvaItemModal.vue

@@ -19,9 +19,10 @@
                 v-decorator="[
                   'formData.name',
                   { initialValue: formData.name,
-                    rules: [{ required: true, message: '请输入考评项目名称128个字以内!' }] },
+                    getValueFromEvent: $filterEmpty,
+                    rules: [{ required: true, message: '请输入考评项目名称!' }] },
                 ]"
-                placeholder="请输入考评项目名称128个字以内" />
+                placeholder="请输入考评项目名称(最多128个字符)" />
             </a-form-item>
           </a-col>
         </a-row>
@@ -37,15 +38,15 @@
                 :autoSize="{minRows:5}"
                 v-decorator="[
                   'formData.desc',
-                  { initialValue: formData.desc },
+                  { initialValue: formData.desc,getValueFromEvent: $filterEmpty },
                 ]"
-                placeholder="请输入考评项目说明500字以内" />
+                placeholder="请输入考评项目说明(最多500个字符)" />
             </a-form-item>
           </a-col>
         </a-row>
         <a-form-item :wrapper-col="{ span: 24, offset: 10 }">
           <a-button :loading="loading" id="addEvaItemModal-submit" type="primary" @click="handleSubmit()">
-            确定
+            保存
           </a-button>
           <a-button id="addEvaItemModal-cancel" :style="{ marginLeft: '8px' }" @click="cancel()">
             取消

+ 6 - 5
src/views/evaluation/evaluationPlan/AddEvaModal.vue

@@ -19,9 +19,10 @@
                 v-decorator="[
                   'formData.name',
                   { initialValue: formData.name,
-                    rules: [{ required: true, message: '请输入考评方案名称128个字以内!' }] },
+                    getValueFromEvent: $filterEmpty,
+                    rules: [{ required: true, message: '请输入考评方案名称!' }] },
                 ]"
-                placeholder="请输入考评方案名称128个字以内" />
+                placeholder="请输入考评方案名称(最多128个字符)" />
             </a-form-item>
           </a-col>
         </a-row>
@@ -57,15 +58,15 @@
                 :autoSize="{minRows:5}"
                 v-decorator="[
                   'formData.desc',
-                  { initialValue: formData.desc },
+                  { initialValue: formData.desc,getValueFromEvent: $filterEmpty },
                 ]"
-                placeholder="请输入考评方案说明500个字以内" />
+                placeholder="请输入考评方案说明(最多500个字符)" />
             </a-form-item>
           </a-col>
         </a-row>
         <a-form-item :wrapper-col="{ span: 24, offset: 10 }">
           <a-button :loading="loading" id="addEvaModal-submit" type="primary" @click="handleSubmit()">
-            确定
+            保存
           </a-button>
           <a-button id="addEvaModal-cancel" :style="{ marginLeft: '8px' }" @click="cancel()">
             取消

+ 1 - 1
src/views/evaluation/evaluationPlan/SetEvaDefaultModal.vue

@@ -56,7 +56,7 @@
         </a-row>
         <a-form-item :wrapper-col="{ span: 24, offset: 10 }">
           <a-button :loading="loading" id="setEvaDefaultModal-submit" type="primary" @click="handleSubmit()">
-            确定
+            保存
           </a-button>
           <a-button id="setEvaDefaultModal-cancle" :style="{ marginLeft: '8px' }" @click="cancel()">
             取消

+ 2 - 2
src/views/evaluation/evaluationPlan/SetEvaModal.vue

@@ -22,7 +22,7 @@
               <a-table
                 ref="table"
                 size="default"
-                :scroll="{y:500}"
+                :scroll="{y:400}"
                 :pagination="false"
                 :rowKey="(record) => record.id"
                 :columns="columns"
@@ -79,7 +79,7 @@
               <s-table
                 ref="tableItem"
                 size="default"
-                :scroll="{y:500}"
+                :scroll="{y:400}"
                 :showPagination="false"
                 :row-selection="rowSelection"
                 :rowKey="(record) => record.id"