Browse Source

人员信息页面优化

liyuan 6 days ago
parent
commit
6a629858e5
1 changed files with 10 additions and 13 deletions
  1. 10 13
      src/views/system/personnelInformation.vue

+ 10 - 13
src/views/system/personnelInformation.vue

@@ -280,7 +280,7 @@ export default {
                 calcHeight: 80,
                 tip: false,
                 searchShow: true,
-                searchMenuSpan: 24,
+                searchMenuSpan: 6,
                 border: true,
                 index: true,
                 selection: true,
@@ -316,7 +316,6 @@ export default {
                         label: "手机号",
                         prop: "phone",
                         search: true,
-                        slot: true,
                         display: false,
                     },
                     {
@@ -444,6 +443,7 @@ export default {
                                 label: "用户状态",
                                 prop: "workingStatus",
                                 type: "select",
+                                value: 0,
                                 dicData: [
                                     {
                                         label: "启用",
@@ -777,16 +777,10 @@ export default {
         rowUpdate(row, index, done, loading) {
             // row.deptId = row.deptId.join(",");
             row.roleId = row.roleId.join(",");
-            row.postId = row.postId.join(",");
+            // row.postId = row.postId.join(",");
             if (!row.workingStatus) {
                 row.workingStatus = "0";
             }
-            // 福达写死小程序
-            let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
-            if (userObj.tenant_id == "577435") {
-                // row.userType = 4
-                row.appletsId = "wxa92adb24f1784863";
-            }
             update(row).then(
                 () => {
                     this.initFlag = false;
@@ -1063,9 +1057,12 @@ export default {
 ::v-deep .el-col-md-8 {
     width: 24.33333%;
 }
-
-.itemTable ::v-deep .el-table {
-    margin-left: 50px;
-    width: 100%;
+::v-deep .el-table .cell {
+    padding-right: 0 !important;
 }
+::v-deep .avue-crud .el-table .el-button.el-button--small {
+    padding: 0 !important;
+    margin-right: 0 !important;
+}
+
 </style>