mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
Compare commits
2 Commits
4e27f3b5a5
...
2c248d82f2
Author | SHA1 | Date | |
---|---|---|---|
2c248d82f2 | |||
28101cb2f1 |
@ -220,7 +220,7 @@ const events = computed(() => {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.tox.tox-silver-sink.tox-tinymce-aux {
|
.tox.tox-silver-sink.tox-tinymce-aux {
|
||||||
/** 该样式默认为1300的zIndex */
|
/** 该样式默认为1300的zIndex */
|
||||||
z-index: 2025;
|
z-index: 2025 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-tinymce {
|
.app-tinymce {
|
||||||
|
@ -43,3 +43,10 @@ export function fetchGetPostSelect(deptId?: CommonType.IdType, postIds?: CommonT
|
|||||||
params: { postIds, deptId }
|
params: { postIds, deptId }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/** 获取部门选择框列表 */
|
||||||
|
export function fetchGetPostDeptSelect() {
|
||||||
|
return request<Api.Common.CommonTreeRecord>({
|
||||||
|
url: '/system/post/deptTree',
|
||||||
|
method: 'get'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { NButton, NDivider } from 'naive-ui';
|
import { NButton, NDivider } from 'naive-ui';
|
||||||
import { useLoading } from '@sa/hooks';
|
import { useLoading } from '@sa/hooks';
|
||||||
import { fetchBatchDeletePost, fetchGetPostList } from '@/service/api/system/post';
|
import { fetchBatchDeletePost, fetchGetPostDeptSelect, fetchGetPostList } from '@/service/api/system/post';
|
||||||
import { fetchGetDeptTree } from '@/service/api/system';
|
|
||||||
import { useAppStore } from '@/store/modules/app';
|
import { useAppStore } from '@/store/modules/app';
|
||||||
import { useAuth } from '@/hooks/business/auth';
|
import { useAuth } from '@/hooks/business/auth';
|
||||||
import { useDownload } from '@/hooks/business/download';
|
import { useDownload } from '@/hooks/business/download';
|
||||||
@ -191,16 +190,17 @@ const { loading: treeLoading, startLoading: startTreeLoading, endLoading: endTre
|
|||||||
const deptPattern = ref<string>();
|
const deptPattern = ref<string>();
|
||||||
const deptData = ref<Api.Common.CommonTreeRecord>([]);
|
const deptData = ref<Api.Common.CommonTreeRecord>([]);
|
||||||
const selectedKeys = ref<string[]>([]);
|
const selectedKeys = ref<string[]>([]);
|
||||||
async function getTreeData() {
|
|
||||||
|
async function getDeptOptions() {
|
||||||
|
// 加载
|
||||||
startTreeLoading();
|
startTreeLoading();
|
||||||
const { data: tree, error } = await fetchGetDeptTree();
|
const { data: tree, error } = await fetchGetPostDeptSelect();
|
||||||
if (!error) {
|
if (!error) {
|
||||||
deptData.value = tree;
|
deptData.value = tree;
|
||||||
}
|
}
|
||||||
endTreeLoading();
|
endTreeLoading();
|
||||||
}
|
}
|
||||||
|
getDeptOptions();
|
||||||
getTreeData();
|
|
||||||
|
|
||||||
function handleClickTree(keys: string[]) {
|
function handleClickTree(keys: string[]) {
|
||||||
searchParams.belongDeptId = keys.length ? keys[0] : null;
|
searchParams.belongDeptId = keys.length ? keys[0] : null;
|
||||||
@ -210,7 +210,7 @@ function handleClickTree(keys: string[]) {
|
|||||||
|
|
||||||
function handleResetTreeData() {
|
function handleResetTreeData() {
|
||||||
deptPattern.value = undefined;
|
deptPattern.value = undefined;
|
||||||
getTreeData();
|
getDeptOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleResetSearch() {
|
function handleResetSearch() {
|
||||||
|
Reference in New Issue
Block a user