bianww 2 년 전
부모
커밋
8fbf5a0f86
1개의 변경된 파일15개의 추가작업 그리고 4개의 파일을 삭제
  1. 15 4
      src/pages/main/departWorkLists/index.vue

+ 15 - 4
src/pages/main/departWorkLists/index.vue

@@ -130,13 +130,14 @@
                         :key="tableData.id"
                         border
                         size="small"
-                        style="width: 100%"
+                        style="width:100%"
                         v-loading="loading"
                     >
                         <el-table-column
                             prop="templateName"
                             show-overflow-tooltip
                             label="名称"
+                            width="220"
                             align="center"
                         >
                         </el-table-column>
@@ -144,13 +145,13 @@
                             prop="createTime"
                             show-overflow-tooltip
                             label="创建时间"
-                            width="150"
                             align="center"
                         />
                         <el-table-column
                             prop="createCity"
                             show-overflow-tooltip
                             label="创建科室"
+                            width="220"
                             align="center"
                         >
                         </el-table-column>
@@ -158,7 +159,7 @@
                             prop="createBy"
                             show-overflow-tooltip
                             label="创建人"
-                            width="150"
+                            width="120"
                             align="center"
                         >
                         </el-table-column>
@@ -166,7 +167,7 @@
                             prop="stateNm"
                             show-overflow-tooltip
                             label="状态"
-                            width="150"
+                            width="120"
                             align="center"
                         >
                         </el-table-column>
@@ -414,6 +415,14 @@ export default {
         async submitForm(formName) {
             let valid = await this.$refs[formName].validate().catch((err) => err);
             if (valid) {
+                let nm = this.formData.name;
+                if(""===nm.trim()){
+                    this.$message({
+                        type: "error",
+                        message: "不可创建空目录!",
+                    });
+                    return;
+                }
                 this.$http({
                     url:"/market/mkWorkListCatalogue/add",
                     method: "post",
@@ -826,6 +835,7 @@ export default {
             //overflow-y: auto;
             //   border-left: 1px solid #ddd;
             height: calc(100vh - 220px);
+            width: calc(100% - 320px - 4%);
             .tabBoxClass {
                 height: calc(100% - 120px);
             }
@@ -836,6 +846,7 @@ export default {
 .button-list {
     padding: 30px 0 10px 0;
     display: flex;
+    justify-content: center;
     //   justify-content: space-between;
 }