浏览代码

更改全局样式弹出层的向下位置

sunyanqiang 3 年之前
父节点
当前提交
ef40553ae9
共有 2 个文件被更改,包括 23 次插入15 次删除
  1. 10 2
      src/assets/styles/global.css
  2. 13 13
      src/views/medicalhealth/recuperate/index.vue

+ 10 - 2
src/assets/styles/global.css

@@ -411,7 +411,7 @@ color: #fff;
   font-size: 14px;
   text-align: center;
   margin-top: 1px;
-  padding-top: 10px ;
+  padding-top: 10px;
 }
 
 .el-icon-refresh {
@@ -1085,7 +1085,8 @@ input:-moz-placeholder {
 
 /* 表单验证提示文字居左 */
 .el-form-item__error {
-  margin-left: 0px;
+  margin-left: 0px !important;
+  margin-top: 0px !important;
 }
 
 .el-form-item__error {
@@ -1131,10 +1132,12 @@ input:-moz-placeholder {
   width: 10px;
   background: transparent;
 }
+
 .userAgrees::-webkit-scrollbar {
   width: 14px;
   background: transparent;
 }
+
 .userAgrees::-webkit-scrollbar-thumb {
   background: #114d7a;
 }
@@ -1151,4 +1154,9 @@ input:-moz-placeholder {
 /* 删除按钮取消位置 */
 .el-message-box__btns .el-button {
   float: right;
+}
+
+/* 弹出层向下移动 */
+.el-dialog:not(.is-fullscreen) {
+  margin-top: 12vh !important;
 }

+ 13 - 13
src/views/medicalhealth/recuperate/index.vue

@@ -387,10 +387,7 @@
         fixed="right"
       >
         <template slot-scope="scope">
-          <el-button
-            size="btk"
-            type="text"
-            @click="handleshenpi1(scope.row)"
+          <el-button size="btk" type="text" @click="handleshenpi1(scope.row)"
             >审批</el-button
           >
           <el-button
@@ -654,7 +651,7 @@ export default {
   methods: {
     // 人员姓名选中
     qingRen(name) {
-      this.$set(this.form, this.form.peopleName, name)
+      this.$set(this.form, this.form.peopleName, name);
     },
     // 获取人员
     getRen(id) {
@@ -662,19 +659,19 @@ export default {
         this.renYuan = response.data;
       });
     },
-     // 获取人员
+    // 获取人员
     getRen2(id) {
       getQuanBu(id).then((response) => {
         this.renYuan = response.data;
       });
     },
-     // 获取人员
+    // 获取人员
     getRen3(id) {
       getQuanBu(id).then((response) => {
         this.renYuan = response.data;
       });
     },
-     // 获取人员
+    // 获取人员
     getRen4(id) {
       getQuanBu(id).then((response) => {
         this.renYuan = response.data;
@@ -686,16 +683,19 @@ export default {
       this.form.unitName = data.label;
       this.getRen(this.form.unitId, 0);
     },
+    // 一级审批单位触发
     selectPeo2(data) {
       this.form.unitId1 = data.id;
       this.form.unitName1 = data.label;
       this.getRen(this.form.unitId, 0);
     },
+    // 二级审批单位触发
     selectPeo3(data) {
       this.form.unitId2 = data.id;
       this.form.unitName2 = data.label;
       this.getRen(this.form.unitId, 0);
     },
+    // 三级审批单位触发
     selectPeo4(data) {
       this.form.unitId3 = data.id;
       this.form.unitName3 = data.label;
@@ -846,11 +846,11 @@ export default {
         })
         .catch(() => {});
     },
-    handleshenpi1(row){
-        console.log()
-        listRecuperate({common:row.common}).then(res=>{
-            console.log(res)
-        })
+    handleshenpi1(row) {
+      console.log();
+      listRecuperate({ common: row.common }).then((res) => {
+        console.log(res);
+      });
     },
   },
 };