无人机管理后台前端(已迁走)
zrj
2024-08-19 1b939cab18d187632a9cab3ff37074e789994b0f
用户新增修改机构查询调整
2 files modified
10 ■■■■ changed files
src/api/system/dept.js 2 ●●● patch | view | raw | blame | history
src/views/system/user.vue 8 ●●●● patch | view | raw | blame | history
src/api/system/dept.js
@@ -61,7 +61,7 @@
export const getDeptTree = tenantId => {
  return request({
    url: '/blade-system/dept/tree',
    url: '/blade-system/dept/getTree',
    method: 'get',
    params: {
      tenantId,
src/views/system/user.vue
@@ -569,8 +569,12 @@
                type: 'tree',
                multiple: true,
                dicData: [],
                // props: {
                //   label: 'title',
                // },
                props: {
                  label: 'title',
                  label: 'name',
                  value: 'id',
                },
                checkStrictly: true,
                slot: true,
@@ -776,6 +780,7 @@
    if (!website.tenantMode) {
      this.initData(website.tenantId);
    }
    this.initData(this.form.tenantId);
  },
  methods: {
    nodeClick(data) {
@@ -784,6 +789,7 @@
      this.onLoad(this.page);
    },
    initData(tenantId) {
      tenantId = '000000';
      getRoleTree(tenantId).then(res => {
        const column = this.findObject(this.option.group, 'roleId');
        column.dicData = res.data.data;