Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -58,7 +58,7 @@ import { ElMessageBox } from 'element-plus';
|
|||||||
import ColumnsFormCom from '../ColumnsFormCom/index.vue';
|
import ColumnsFormCom from '../ColumnsFormCom/index.vue';
|
||||||
import { getColumnsData, automatchColumnsData, deleteColumnsData, updateColumnsData } from './api';
|
import { getColumnsData, automatchColumnsData, deleteColumnsData, updateColumnsData } from './api';
|
||||||
import { successNotification, warningNotification } from '/@/utils/message';
|
import { successNotification, warningNotification } from '/@/utils/message';
|
||||||
import { CurrentInfoType, ColumnsFormDataType, AddColumnsDataType } from '../../types';
|
import { APIResponseData, CurrentInfoType, ColumnsFormDataType, AddColumnsDataType } from '../../types';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
currentInfo: {
|
currentInfo: {
|
||||||
@@ -149,7 +149,9 @@ const handleDelete = ({ id }: { id: number }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleChange = (record: AddColumnsDataType) => {
|
const handleChange = (record: AddColumnsDataType) => {
|
||||||
updateColumnsData(record);
|
updateColumnsData(record).then((res: APIResponseData) => {
|
||||||
|
successNotification(res.msg || '更新成功');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -113,6 +113,8 @@ onMounted(() => {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
.item-com-item {
|
.item-com-item {
|
||||||
|
width: fit-content;
|
||||||
|
min-width: 100%;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -3,6 +3,12 @@ export interface PageQuery {
|
|||||||
limit: number;
|
limit: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface APIResponseData {
|
||||||
|
code?: number;
|
||||||
|
data: any;
|
||||||
|
msg?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface CurrentInfoType {
|
export interface CurrentInfoType {
|
||||||
role: string;
|
role: string;
|
||||||
model: string;
|
model: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user