祁鹏飞 2 месяцев назад
Родитель
Сommit
77511e9b92
1 измененных файлов с 3 добавлено и 16 удалено
  1. 3 16
      src/views/personnel/memberManagement.vue

+ 3 - 16
src/views/personnel/memberManagement.vue

@@ -2,9 +2,9 @@
   <PageMain class="vh100">
     <div class="flex j-s" style="height: 100%;">
       <div class="member-tree mr-1">
-        <el-input v-model="filterText" style="width: 240px" placeholder="姓名,手机号,工号查询" >
+        <el-input v-model="firstForm.name" style="width: 240px" placeholder="姓名,手机号,工号查询" >
           <template #append>
-            <el-button :icon="Search" link @click="handleSearch" />
+            <el-button :icon="Search" link @click="statusChange" />
           </template>
         </el-input>
         <div style="display: flex;justify-content: space-between;margin: 10px 0;">
@@ -212,12 +212,10 @@ interface dictType {
 onMounted(async () => {
   // 对 asyncRoutes 进行预处理并转换为树形结构
 
-
   getInstitutionList();
   getUserList()
   statusList.value = await getDictItems({ dictCode: "person_status" });
 
-
 });
 
 //状态字典
@@ -225,6 +223,7 @@ const statusList = ref<dictType[]>([]);
 const firstForm = ref({
   status:'-1',
   attrType:'1',
+  name:'',
 })
 //机构列表
 
@@ -361,10 +360,6 @@ const columns = [
   },
 ];
 
-// handleSearch
-function handleSearch() {
-  getInstitutionList()
-}
 const pageInfo = reactive({
   pageNum: 1,
   pageSize: 10,
@@ -499,14 +494,6 @@ const append = (data: Tree) => {
   // dataSource.value = [...dataSource.value]
 };
 
-const remove = (node: Node, data: Tree) => {
-  const parent = node.parent;
-  const children: Tree[] = parent.data.children || parent.data;
-  const index = children.findIndex((d) => d.id === data.id);
-  children.splice(index, 1);
-  // dataSource.value = [...dataSource.value]
-};
-
 
 const deptDialogVisible = ref(false)
 //判断当前机构是否可以进行变更