mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-03 00:55:33 +08:00
v3.8.1发布,上传前端代码
This commit is contained in:
@ -2,7 +2,8 @@
|
||||
<div>
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<template #tableTitle>
|
||||
<a-button preIcon="ant-design:user-add-outlined" type="primary" @click="handleAdd">新增</a-button>
|
||||
<a-button preIcon="ant-design:user-add-outlined" type="primary" @click="handleAdd">+ 默认套餐
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="selectedRowKeys.length > 0"
|
||||
preIcon="ant-design:delete-outlined"
|
||||
@ -25,7 +26,7 @@
|
||||
import { BasicTable, TableAction } from '/@/components/Table';
|
||||
import { useModal } from '/@/components/Modal';
|
||||
import { deleteTenantPack, packList } from '../tenant.api';
|
||||
import { packColumns, packFormSchema } from '../tenant.data';
|
||||
import { defalutPackColumns, defaultPackFormSchema } from "../tenant.data";
|
||||
import TenantPackMenuModal from './TenantPackMenuModal.vue';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
@ -42,9 +43,9 @@
|
||||
designScope: 'tenant-template',
|
||||
tableProps: {
|
||||
api: packList,
|
||||
columns: packColumns,
|
||||
columns: defalutPackColumns,
|
||||
formConfig: {
|
||||
schemas: packFormSchema,
|
||||
schemas: defaultPackFormSchema,
|
||||
},
|
||||
beforeFetch: (params) => {
|
||||
return Object.assign(params, { packType: 'default' });
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
//update-end---author:wangshuai ---date:20230705 for:【QQYUN-5685】2 套餐包增加一个查看:添加底部有没有按钮及表单禁用------------
|
||||
});
|
||||
//设置标题
|
||||
const title = computed(() => (unref(isUpdate) ? '编辑租户套餐包' : '新增租户套餐包'));
|
||||
const title = computed(() => (unref(isUpdate) ? '编辑 租户套餐' : '新增 租户套餐'));
|
||||
//表单提交事件
|
||||
async function handleSubmit(v) {
|
||||
const values = await validate();
|
||||
|
||||
@ -271,7 +271,33 @@ export const packColumns: BasicColumn[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
title: '备注说明',
|
||||
dataIndex: 'remarks',
|
||||
width: 150,
|
||||
},
|
||||
];
|
||||
|
||||
//套餐包列表
|
||||
export const defalutPackColumns: BasicColumn[] = [
|
||||
{
|
||||
title: '默认套餐名称',
|
||||
dataIndex: 'packName',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
width: 100,
|
||||
customRender: ({ text }) => {
|
||||
if (text === '1') {
|
||||
return '开启';
|
||||
} else {
|
||||
return '关闭';
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '备注说明',
|
||||
dataIndex: 'remarks',
|
||||
width: 150,
|
||||
},
|
||||
@ -281,7 +307,17 @@ export const packColumns: BasicColumn[] = [
|
||||
export const packFormSchema: FormSchema[] = [
|
||||
{
|
||||
field: 'packName',
|
||||
label: '套餐包名称',
|
||||
label: '套餐包名',
|
||||
component: 'JInput',
|
||||
colProps: { xxl: 8 },
|
||||
},
|
||||
];
|
||||
|
||||
//套餐包搜索表单
|
||||
export const defaultPackFormSchema: FormSchema[] = [
|
||||
{
|
||||
field: 'packName',
|
||||
label: '默认套餐名',
|
||||
component: 'JInput',
|
||||
colProps: { xxl: 8 },
|
||||
},
|
||||
@ -296,7 +332,7 @@ export const packMenuFormSchema: FormSchema[] = [
|
||||
},
|
||||
{
|
||||
field: 'permissionIds',
|
||||
label: '菜单列表',
|
||||
label: '授权菜单',
|
||||
component: 'JTreeSelect',
|
||||
componentProps: {
|
||||
dict: 'sys_permission,name,id',
|
||||
@ -309,7 +345,7 @@ export const packMenuFormSchema: FormSchema[] = [
|
||||
},
|
||||
{
|
||||
field: 'remarks',
|
||||
label: '描述',
|
||||
label: '备注说明',
|
||||
component: 'InputTextArea',
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user