@@ -5,6 +5,8 @@
// Desktop mode
@include media-breakpoint-up(lg) {
.app-container {
+ padding-top: $app-container-padding-x !important;
+ padding-bottom: $app-container-padding-x !important;
padding-left: $app-container-padding-x !important;
padding-right: $app-container-padding-x !important;
}
@@ -243,7 +243,7 @@ defineExpose({
</el-tag>
</el-card>
</transition-group>
- <VbDataTable
+ <VbTable
ref="tableRef"
v-model:selected-rows="selectList"
v-model:query-params="queryParams"
@@ -262,7 +262,7 @@ defineExpose({
@checkbox-all="onCheckboxAll"
table-box-height="70vh">
<template #status="{ row }"></template>
- </VbDataTable>
+ </VbTable>
</template>
</VbModal>
</div>
@@ -303,7 +303,7 @@ defineExpose({
</transition>
:search-form-items="tableOpts.searchFormItems"
@@ -324,7 +324,7 @@ defineExpose({
{{ row.org.orgName }}
</el-col>
</el-row>
@@ -275,13 +275,13 @@ onMounted(init)
@confirm="handleAddMultiInstanceUser"></UserSelect>
<VbModal ref="deleteUserModalRef" title="减签人员" append-to-body>
<template #body>
- <VbDataTable :columns="deleteUserColumns" :data="deleteUserList">
+ <VbTable :columns="deleteUserColumns" :data="deleteUserList">
<template #action="{ row }">
<el-button type="danger" size="small" icon="Delete" @click="deleteMultiInstanceUser(row)">
删除
</el-button>
@@ -1,13 +1,13 @@
/**
* Table2组件导出
*
- * VbDataTable - 基于 Composables 架构重构的表格组件
+ * VbTable - 基于 Composables 架构重构的表格组件
*/
-import VbDataTable from "./VbDataTable.vue"
+import VbTable from "./VbTable.vue"
-export { VbDataTable }
-export default VbDataTable
+export { VbTable }
+export default VbTable
// 导出类型
export type { Sort, Scroll, Header, HeaderEx, ToolBtn, DefaultToolBtns } from "./models"
@@ -40,6 +40,33 @@ export const constantRoutes: RouteRecordRaw[] = [
title: "个人中心",
noCache: false
+ },
+ {
+ path: "/t",
+ name: "test",
+ component: () => import("@/views/test/index.vue"),
+ meta: {
+ title: "测试",
+ noCache: false
+ }
+ path: "/t2",
+ name: "test2",
+ component: () => import("@/views/test/index2.vue"),
+ title: "测试2",
+ path: "/t3",
+ name: "test3",
+ component: () => import("@/views/test/auto-row-merge-test.vue"),
]
},
@@ -240,7 +240,7 @@ function submitForm() {
</script>
<template>
<div class="app-container">
keyField="id"
:columns="opts.columns"
@@ -326,7 +326,7 @@ function submitForm() {
</vb-tooltip>
<VbModal
v-model:modal="modalRef"
:title="opts.modalTitle"
@@ -2,7 +2,7 @@
const url = ref(import.meta.env.VITE_APP_MONITRO_ADMIN)
- <div>
+ <div class="app-container">
<i-frame v-model:src="url"></i-frame>
@@ -121,7 +121,7 @@ const cardBodyHeightDiff = ref(255)
- <div class="p-5">
<el-row :gutter="20">
<el-col :span="8">
<card
@@ -142,7 +142,7 @@ const cardBodyHeightDiff = ref(255)
<div
class="overflow-auto w-100"
:style="`height: calc(100vh - ${cardBodyHeightDiff}px)`">
ref="tableRef_1"
:columns="columns_1"
:query-params="{}"
@@ -167,7 +167,7 @@ const cardBodyHeightDiff = ref(255)
</card>
@@ -189,7 +189,7 @@ const cardBodyHeightDiff = ref(255)
<div class="overflow-auto" :style="`height: calc(100vh - ${cardBodyHeightDiff}px)`">
ref="tableRef_2"
:columns="columns_2"
@@ -215,7 +215,7 @@ const cardBodyHeightDiff = ref(255)
const url = ref(import.meta.env.VITE_APP_JOB_ADMIN)
@@ -80,7 +80,7 @@ function handleForceLogout(row: any) {
:search-form-items="searchFormItems"
:columns="columns"
@@ -105,6 +105,6 @@ function handleForceLogout(row: any) {
强退
@@ -116,8 +116,8 @@ function init() {}
onMounted(init)
:handle-perm="opts.permission"
:handle-funs="opts.handleFuns"
@@ -163,7 +163,7 @@ onMounted(init)
title="公告详情"
@@ -222,7 +222,7 @@ function submitForm() {
@@ -279,7 +279,7 @@ function submitForm() {
@@ -130,8 +130,8 @@ function handleRefreshCache() {
@@ -177,7 +177,7 @@ function handleRefreshCache() {
@@ -146,7 +146,7 @@ defineExpose({ queryDictData, dictTypeData })
<h2 class="mt-5 text-primary text-center">
{{ dictTypeData?.dictName || "" }} {{ dictTypeData?.dictType || "" }}
</h2>
:handle-btns="opts.handleBtns"
@@ -211,7 +211,7 @@ defineExpose({ queryDictData, dictTypeData })
modal-dialog-class="max-width:850px;width:850px;"
@@ -147,7 +147,7 @@ function onQuerySuccess() {
<div>
@@ -197,7 +197,7 @@ function onQuerySuccess() {
@@ -173,8 +173,8 @@ function handleExport() {
key-field="infoId"
@@ -193,6 +193,6 @@ function handleExport() {
<template #status="{ row }">
<DictTag :value="row.status" type="sys_common_status"></DictTag>
@@ -172,8 +172,8 @@ function typeFormat(row: any) {
key-field="operId"
@@ -211,7 +211,7 @@ function typeFormat(row: any) {
详情
<VbModal v-model:modal="viewsModalRef" id="q23" title="操作日志详情" append-to-body>
<el-row>
@@ -244,8 +244,8 @@ function selected(name: string) {
:is-tree="true"
keyField="menuId"
@@ -266,7 +266,7 @@ function selected(name: string) {
:search-form-items="opts.searchFormItems"
:custom-btns="opts.customBtns"
- :remote-fun="opts.tableListFun"
+ :remote-fun="apis.system.menuApi.listMenu"
:reset-search-form-fun="resetQuery"
:custom-search-fun="handleQuery">
@@ -374,7 +374,7 @@ function selected(name: string) {
@@ -137,8 +137,8 @@ function init() {
@@ -187,7 +187,7 @@ onMounted(init)
@@ -220,8 +220,8 @@ function getUserListByOrgId(orgId: number) {
keyField="orgId"
@@ -240,7 +240,7 @@ function getUserListByOrgId(orgId: number) {
+ :remote-fun="apis.system.orgApi.listOrg"
@@ -282,7 +282,7 @@ function getUserListByOrgId(orgId: number) {
@@ -305,7 +305,7 @@ defineExpose({ query })
keyField="ossConfigId"
@@ -364,7 +364,7 @@ defineExpose({ query })
@@ -217,7 +217,7 @@ getServiceOptions()
keyField="ossId"
@@ -281,7 +281,7 @@ getServiceOptions()
@@ -247,7 +247,7 @@ function getOrgTreeSelect() {
<!--用户数据-->
<el-col :span="20" :xs="24">
@@ -296,7 +296,7 @@ function getOrgTreeSelect() {
@@ -448,8 +448,8 @@ function getOrgAllCheckedKeys() {
@@ -517,7 +517,7 @@ function getOrgAllCheckedKeys() {
@@ -382,7 +382,7 @@ function getPackages() {
@@ -455,7 +455,7 @@ function getPackages() {
@@ -237,7 +237,7 @@ function getMenuAllCheckedKeys() {
keyField="packageId"
@@ -295,7 +295,7 @@ function getMenuAllCheckedKeys() {
@@ -508,7 +508,7 @@ function clearPost() {
:handle-perm="permission"
:handle-funs="handleFuns"
@@ -577,7 +577,7 @@ function clearPost() {
@@ -114,7 +114,7 @@ defineExpose({
@@ -141,6 +141,6 @@ defineExpose({
<template #updatedAt="{ row }">
{{ dayjs(row.updatedAt).format("YYYY-MM-DD HH:mm:ss") }}
@@ -299,8 +299,8 @@ function submitProjectForm() {
@@ -365,7 +365,7 @@ function submitProjectForm() {
title="修改表信息"
@@ -197,7 +197,7 @@ function getTableData(query: any) {
ref="tableTreeRef"
keyField="categoryId"
@@ -263,7 +263,7 @@ function getTableData(query: any) {
@@ -193,7 +193,7 @@ function submitForm() {
@@ -241,7 +241,7 @@ function submitForm() {
@@ -260,7 +260,7 @@ onMounted(init)
@node-click="onCategoryChange"></VbTree>
@@ -343,7 +343,7 @@ onMounted(init)
<Design ref="modelDesignRef"></Design>
@@ -444,7 +444,7 @@ onMounted(init)
<el-col :span="21" :xs="24">
@@ -542,7 +542,7 @@ onMounted(init)
@@ -354,7 +354,7 @@ onMounted(init)
@@ -440,7 +440,7 @@ onMounted(init)
@@ -500,7 +500,7 @@ onMounted(init)
modal-body-class="pt-0"
append-to-body>
ref="pdTableRef"
:columns="pdColumns"
:data="pdHistoryList"
@@ -514,7 +514,7 @@ onMounted(init)
<el-tag v-if="row.suspensionState == 1" type="success">激活</el-tag>
<el-tag v-else type="danger">挂起</el-tag>
@@ -220,7 +220,7 @@ watch(
@@ -269,7 +269,7 @@ watch(
@@ -183,7 +183,7 @@ function onUrgeTaskSubmit(data: any) {
@@ -269,7 +269,7 @@ function onUrgeTaskSubmit(data: any) {
<!-- 选人组件 -->
<UserSelect
ref="userSelectRef"
@@ -196,7 +196,7 @@ function getCategoryTreeSelect() {
@@ -292,7 +292,7 @@ function getCategoryTreeSelect() {
@@ -101,7 +101,7 @@ function handleView(row: any) {
@@ -127,6 +127,6 @@ function handleView(row: any) {
@@ -123,7 +123,7 @@ function onUserSelect(data: any) {
@@ -157,7 +157,7 @@ function onUserSelect(data: any) {
:multiple="true"
@@ -103,7 +103,7 @@ function handleApproval(row: any) {
@@ -146,6 +146,6 @@ function handleApproval(row: any) {