吉安感知网项目-前端
罗广辉
2026-05-22 becd34932e353d8578b20ece5710a49a52187337
feat: 转为事件只能是本部门
2 files modified
14 ■■■■■ changed files
applications/task-work-order/src/api/system/dept.js 4 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/clueEvents/index.vue 10 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/api/system/dept.js
@@ -67,12 +67,12 @@
  });
};
export const getDeptTree = tenantId => {
export const getDeptTree = id => {
  return request({
    url: '/blade-system/dept/getTree',
    method: 'get',
    params: {
      tenantId,
            id,
    },
  });
};
applications/task-work-order/src/views/orderView/orderManage/clueEvents/index.vue
@@ -115,13 +115,14 @@
</template>
<script setup>
import { Search, RefreshRight } from '@element-plus/icons-vue'
import { onMounted, ref } from 'vue'
import { computed, onMounted, ref } from 'vue'
import { getDictionaryByCode } from '@/api/system/dictbiz'
import { dateRangeFormat, getDictLabel, getDictLabelXT } from '@ztzf/utils'
import { getDictListApi } from '@/api/zkxt'
import { gdPatrolTaskPageApi } from '../inspectionRequest/inspectionRequestApi'
import { getDeptTree } from '@/api/system/dept'
import ViewDiaLog from './ViewDiaLog.vue'
import { useStore } from 'vuex'
// 初始化查询参数
const initSearchParams = () => ({
@@ -166,7 +167,7 @@
            ...searchParams.value,
            startTime: range[0],
            endTime: range[1],
            taskStatus: 8
            taskStatus: 8,
        })
        list.value = res?.data?.data?.records ?? []
        total.value = res?.data?.data?.total ?? 0
@@ -207,9 +208,12 @@
    })
}
const store = useStore()
const userInfo = computed(() => store.state.user.userInfo)
// 获取部门树
function getDeptTreeFun() {
    getDeptTree().then(res => {
    getDeptTree(userInfo.value.dept_id).then(res => {
        deptTree.value = res.data.data
    })
}