Parcourir la source

系统管理-用户管理:部门搜索组件优化,针对数据权限

ZhangWenQiang il y a 4 ans
Parent
commit
fec3b0025b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/views/system/modules/DepartWindow.vue

+ 2 - 1
src/views/system/modules/DepartWindow.vue

@@ -178,7 +178,8 @@
       onSearch(value) {
         let that = this
         if (value) {
-          searchByKeywords({keyWord: value}).then((res) => {
+          value = '*' + value + '*';
+          queryIdTree({departName: value}).then((res) => {
             if (res.success) {
               that.departTree = []
               for (let i = 0; i < res.result.length; i++) {