ysc 2 лет назад
Родитель
Сommit
1465adcc8c
2 измененных файлов с 7 добавлено и 15 удалено
  1. 6 14
      src/views/system/components/dept.vue
  2. 1 1
      src/views/system/user.vue

+ 6 - 14
src/views/system/components/dept.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <div>
   <div>
     <div class="head-container">
     <div class="head-container">
-      <el-button size="mini" type="primary" @click="handleAdd">新增</el-button>
+      <el-button size="mini" type="primary" plain icon="el-icon-plus" @click="handleAdd">新增部门</el-button>
 
 
       <el-input
       <el-input
         v-model="deptName"
         v-model="deptName"
@@ -38,7 +38,7 @@
 
 
     <!-- 添加或修改部门对话框 -->
     <!-- 添加或修改部门对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body :close-on-click-modal="false">
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body :close-on-click-modal="false">
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+      <el-form ref="form" :model="form" :rules="rules" size="mini" label-width="80px">
         <el-row>
         <el-row>
           <el-col :span="24" v-if="form.parentId !== 0">
           <el-col :span="24" v-if="form.parentId !== 0">
             <el-form-item label="上级部门" prop="parentId">
             <el-form-item label="上级部门" prop="parentId">
@@ -87,8 +87,8 @@
         </el-row>
         </el-row>
       </el-form>
       </el-form>
       <div slot="footer" class="dialog-footer">
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
+        <el-button type="primary" size="mini" @click="submitForm">确 定</el-button>
+        <el-button size="mini" @click="cancel">取 消</el-button>
       </div>
       </div>
     </el-dialog>
     </el-dialog>
   </div>
   </div>
@@ -107,7 +107,7 @@ export default {
   data() {
   data() {
     return {
     return {
       deptName: '',
       deptName: '',
-      deptData:[],
+      deptData: [],
       // 部门树选项
       // 部门树选项
       deptOptions: [],
       deptOptions: [],
       // 弹出层标题
       // 弹出层标题
@@ -192,15 +192,7 @@ export default {
       };
       };
       this.resetForm("form");
       this.resetForm("form");
     },
     },
-    /** 搜索按钮操作 */
-    handleQuery() {
-      this.getList();
-    },
-    /** 重置按钮操作 */
-    resetQuery() {
-      this.resetForm("queryForm");
-      this.handleQuery();
-    },
+
     /** 转换部门数据结构 */
     /** 转换部门数据结构 */
     normalizer(node) {
     normalizer(node) {
       if (node.children && !node.children.length) {
       if (node.children && !node.children.length) {

+ 1 - 1
src/views/system/user.vue

@@ -43,7 +43,7 @@
               size="mini"
               size="mini"
               @click="handleAdd"
               @click="handleAdd"
               v-hasPermi="['system:user:add']"
               v-hasPermi="['system:user:add']"
-            >新增
+            >新增用户
             </el-button>
             </el-button>
           </el-col>
           </el-col>
         </el-row>
         </el-row>