feat(列管理): 样式修改

This commit is contained in:
sheng
2023-08-07 13:42:03 +08:00
parent 97020ba4e8
commit 653483e5de
3 changed files with 12 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ import { ElMessageBox } from 'element-plus';
import ColumnsFormCom from '../ColumnsFormCom/index.vue';
import { getColumnsData, automatchColumnsData, deleteColumnsData, updateColumnsData } from './api';
import { successNotification, warningNotification } from '/@/utils/message';
import { CurrentInfoType, ColumnsFormDataType, AddColumnsDataType } from '../../types';
import { APIResponseData, CurrentInfoType, ColumnsFormDataType, AddColumnsDataType } from '../../types';
const props = defineProps({
currentInfo: {
@@ -149,7 +149,9 @@ const handleDelete = ({ id }: { id: number }) => {
};
const handleChange = (record: AddColumnsDataType) => {
updateColumnsData(record);
updateColumnsData(record).then((res: APIResponseData) => {
successNotification(res.msg || '更新成功');
});
};
/**

View File

@@ -113,6 +113,8 @@ onMounted(() => {
white-space: nowrap;
overflow: auto;
.item-com-item {
width: fit-content;
min-width: 100%;
padding: 10px 16px;
border-radius: 8px;
cursor: pointer;

View File

@@ -3,6 +3,12 @@ export interface PageQuery {
limit: number;
}
export interface APIResponseData {
code?: number;
data: any;
msg?: string;
}
export interface CurrentInfoType {
role: string;
model: string;