This commit is contained in:
孟帅
2023-07-20 18:01:10 +08:00
parent 9113fc5297
commit 373d9627fb
492 changed files with 12170 additions and 6982 deletions

View File

@@ -296,7 +296,7 @@
},
},
emits: ['loadData'],
setup(props, context) {
setup(_props, context) {
const message = useMessage();
const formRef: any = ref(null);
const state = reactive<any>({

View File

@@ -40,7 +40,7 @@ export const columns = [
{
title: '角色编码',
key: 'key',
// width: 150,
width: 150,
},
// {
// title: '上级角色',
@@ -60,22 +60,22 @@ export const columns = [
}
);
},
// width: 80,
width: 80,
},
{
title: '排序',
key: 'sort',
// width: 100,
width: 100,
},
{
title: '备注',
key: 'remark',
// width: 300,
width: 180,
},
{
title: '状态',
key: 'status',
// width: 80,
width: 80,
render(row) {
return h(
NTag,

View File

@@ -31,8 +31,8 @@
<div class="py-3 menu-list" :style="{ maxHeight: '90vh', height: '70vh' }">
<n-tree
block-line
cascade
checkable
:check-on-click="true"
:default-expand-all="true"
:virtual-scroll="true"
:data="treeData"
@@ -155,7 +155,7 @@
<script lang="ts" setup>
import { h, onMounted, reactive, ref } from 'vue';
import { TreeSelectOption, useDialog, useMessage } from 'naive-ui';
import { useDialog, useMessage } from 'naive-ui';
import { BasicColumn, BasicTable, TableAction } from '@/components/Table';
import {
Delete,
@@ -189,6 +189,12 @@
const checkedKeys = ref<any>([]);
const updatePermissionsParams = ref<any>({});
const optionTreeData = ref<any>([]);
const dataScopeOption = ref<any>();
const deptList = ref<any>([]);
const dataFormRef = ref<any>();
const dataFormBtnLoading = ref(false);
const showDataModal = ref(false);
const dataForm = ref<any>();
const rules = {
name: {
@@ -217,10 +223,10 @@
customDept: [],
};
let formParams = ref<any>(cloneDeep(defaultState));
const formParams = ref<any>(cloneDeep(defaultState));
const actionColumn = reactive<BasicColumn>({
width: 320,
width: 300,
title: '操作',
key: 'action',
fixed: 'right',
@@ -350,21 +356,12 @@
showModal.value = true;
}
const dataScopeOption = ref<any>();
const deptList = ref<any>([]);
const dataFormRef = ref<any>();
const dataFormBtnLoading = ref(false);
const showDataModal = ref(false);
const dataForm = ref<any>();
function handleDataAuth(record: Recordable) {
dataForm.value = cloneDeep(record);
showDataModal.value = true;
}
function handleUpdateDeptValue(
value: string | number | Array<string | number> | null,
_option: TreeSelectOption | null | Array<TreeSelectOption | null>
) {
function handleUpdateDeptValue(value: string | number | Array<string | number> | null) {
dataForm.value.customDept = value;
}