This commit is contained in:
孟帅
2024-04-22 23:08:40 +08:00
parent 82483bd7b9
commit e144b12580
445 changed files with 17457 additions and 6708 deletions

View File

@@ -22,9 +22,8 @@
:actionColumn="actionColumn"
:checked-row-keys="checkedIds"
@update:checked-row-keys="onCheckedRow"
:scroll-x="1090"
:scroll-x="scrollX"
:resizeHeightOffset="-10000"
size="small"
>
<template #tableTitle>
<n-button
@@ -118,7 +117,7 @@
</template>
<script lang="ts" setup>
import { h, onMounted, reactive, ref } from 'vue';
import { computed, h, reactive, ref } from 'vue';
import { useDialog, useMessage, NTag } from 'naive-ui';
import { BasicTable, TableAction } from '@/components/Table';
import { BasicForm, useForm } from '@/components/Form/index';
@@ -126,7 +125,7 @@
import { Delete, Export, List, Status, AssignRouter } from '@/api/serveLicense';
import { columns, newState, options, schemas, State } from './model';
import { DeleteOutlined, ExportOutlined, PlusOutlined } from '@vicons/antd';
import { adaModalWidth, getOptionLabel } from '@/utils/hotgo';
import { adaModalWidth, adaTableScrollX, getOptionLabel } from '@/utils/hotgo';
import Edit from './edit.vue';
const { hasPermission } = usePermission();
@@ -139,9 +138,11 @@
const showModal = ref(false);
const formParams = ref<State>();
const showRoutesModal = ref(false);
const dialogWidth = ref('75%');
const formBtnLoading = ref(false);
const formRef = ref<any>({});
const dialogWidth = computed(() => {
return adaModalWidth();
});
const actionColumn = reactive({
width: 300,
@@ -188,6 +189,10 @@
},
});
const scrollX = computed(() => {
return adaTableScrollX(columns, actionColumn.width);
});
const [register, {}] = useForm({
gridProps: { cols: '1 s:1 m:2 l:3 xl:4 2xl:4' },
labelWidth: 80,
@@ -233,9 +238,6 @@
reloadTable();
});
},
onNegativeClick: () => {
// message.error('取消');
},
});
}
@@ -253,9 +255,6 @@
reloadTable();
});
},
onNegativeClick: () => {
// message.error('取消');
},
});
}
@@ -341,10 +340,6 @@
}
);
}
onMounted(async () => {
adaModalWidth(dialogWidth);
});
</script>
<style lang="less" scoped></style>