fix: 🧩 修复测试bug

This commit is contained in:
2025-03-31 17:01:27 +08:00
parent aeaf68307f
commit 716b383a87
23 changed files with 222 additions and 52 deletions

View File

@@ -55,6 +55,22 @@ export const EDIT_FORM_DATA: FormItem[] = [
}
]
},
// {
// prop: "is_show1",
// placeholder: "",
// type: "radio",
// label: "是否启动: ",
// options: [
// {
// label: "是",
// value: 1
// },
// {
// label: "否",
// value: 0
// }
// ]
// },
{
prop: "link",
placeholder: "请输入",

View File

@@ -57,7 +57,7 @@ const dataStore = reactive<any>({
//文章分类
const getArticleClassData = async () => {
const result = await getArticleClassDataApi();
const result = await getArticleClassDataApi({ is_show: 1 });
if (result?.code === 0) {
const { data } = result;
dataStore.editFormData[1].options = useSearchInfoArray(data);

View File

@@ -60,7 +60,7 @@ const dataStore = reactive<any>({
//文章分类(搜索条件)
const getArticleClassData = async () => {
const result = await getArticleClassDataApi();
const result = await getArticleClassDataApi({ is_show: 0 });
if (result?.code === 0) {
const { data } = result;
dataStore.formData[1].options = useSearchInfoArray(data);
@@ -80,10 +80,6 @@ const handleAdd = (type: any) => {
//导出接口
const getArticleListExport = async () => {
// searchParam,
// searchInitParam,
console.log(proTableRef?.value?.pageable, "===proTableRef?.value?.pageable==");
console.log(proTableRef?.value?.searchParam, "=dataStore.initParam=");
const result = await getArticleListExportApi({
...proTableRef?.value?.searchParam,
...proTableRef?.value?.pageable

View File

@@ -50,12 +50,12 @@ export const COLUMNS = [
width: 160
},
{
align: "center",
label: "状态",
prop: "status",
width: 80
},
// {
// align: "center",
// label: "状态",
// prop: "status",
// width: 80
// },
{ prop: "operation", label: "操作", fixed: "right", width: 200 }
];