scorpio преди 2 години
родител
ревизия
716bf03e19
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/home/component/owner_serach.vue

+ 1 - 1
src/views/home/component/owner_serach.vue

@@ -278,7 +278,7 @@ export default {
       this.form.totalAmountMax = tmps[1] === '-' ? '' : tmps[1]
     },
     getOrg () {
-      const parentId = [1, 2].includes(this.user.info.viewStage) ? this.user.info.parentDeptId : this.user.info.deptId
+      const parentId = [0, 2].includes(this.user.info.viewStage) ? this.user.info.parentDeptId : this.user.info.deptId
       this.$api.system.getDeptLazy({ parentId }).then(res => {
         if (res.code === 200) {
           this.showOrg = true