Jelajahi Sumber

组织架构新建编辑调整

qymljy 2 tahun lalu
induk
melakukan
76f30f0cc9

+ 2 - 2
src/HManagement/department/staff/list/modules/add.vue

@@ -2,7 +2,7 @@
 <div>
   <el-button type="primary" size="small" icon="el-icon-plus" @click="onShow">新建员工</el-button>
   <el-drawer title="新建员工" direction="rtl" append-to-body :visible.sync="dialogFormVisible" size="800px" @close="onClose" :show-close="false">
-    <div class="drawer__panel" style="margin-bottom: 0 !important;">
+    <div class="drawer__panel">
       <el-row :gutter="20">
         <el-form :model="form" size="small" :rules="rules" ref="form" label-position="right" label-width="100px">
           <el-row>
@@ -139,7 +139,7 @@
           </el-row>
           <el-row v-if="form.issalehr == '1'">
             <el-col :span="23" :offset="1">
-              <tableNewLayout :layout="tablecols" :data="salerList" :opwidth="200" height="calc(100vh - 820px)" :width="true" :custom="true" fixedName="operation">
+              <tableNewLayout :layout="tablecols" :data="salerList" :opwidth="200" height="450px" :width="true" :custom="true" fixedName="operation">
                 <template v-slot:customcol="scope">
                   <p v-if="scope.column.columnname == 'iseditprice '">
                     {{scope.column.data.iseditprice == '1' ? '是':'否' }}

+ 3 - 3
src/HManagement/department/staff/list/modules/edit.vue

@@ -2,7 +2,7 @@
 <div>
   <el-button type="default" size="mini" @click="onShow">编 辑</el-button>
   <el-drawer title="编辑员工" direction="rtl" append-to-body :visible.sync="dialogFormVisible" size="800px" @close="$refs.form.clearValidate()" :show-close="false">
-    <div class="drawer__panel" style="margin-bottom: 0 !important;">
+    <div class="drawer__panel" >
       <el-row :gutter="20">
         <el-form :model="form" size="small" :rules="rules" ref="form" label-position="right" label-width="100px">
           <el-row>
@@ -138,7 +138,7 @@
           </el-row>
           <el-row v-if="form.issalehr == '1'">
             <el-col :span="23" :offset="1">
-              <tableNewLayout :layout="tablecols" :data="salerList" :opwidth="200" height="calc(100vh - 820px)" :width="true" :custom="true" fixedName="operation">
+              <tableNewLayout :layout="tablecols" :data="salerList" :opwidth="200" height="450px" :width="true" :custom="true" fixedName="operation">
                 <template v-slot:customcol="scope">
                   <p v-if="scope.column.columnname == 'iseditprice '">
                     {{scope.column.data.iseditprice == '1' ? '是':'否' }}
@@ -213,7 +213,7 @@ export default {
           { required: true, message: '请选择部门', trigger: 'change' },
         ],
         tradefield: [
-          { required: true, message: '请选择报备领域', trigger: 'change' },
+          { required: true, message: '请选择报备领域', trigger: 'blur,change' },
         ],
         phonenumber: [
           { required: true, message: '请输入员工电话', trigger: 'blur' },