Commit 1228f31a authored by baiyinhao's avatar baiyinhao

修改商城订单页面

parent 6a97bff1
...@@ -22,26 +22,16 @@ ...@@ -22,26 +22,16 @@
</template> </template>
<template #footer> <template #footer>
<BasicTable @register="registerTable" ref="table"> <BasicTable @register="registerTable" ref="table">
<!-- <template #bodyCell="{ column, record }">--> <template #bodyCell="{ column, record }">
<!-- <template v-if="column.key === 'action'">--> <template v-if="column.key === 'action'">
<!-- <TableAction--> <TableAction
<!-- v-if="record.progress === '待支付'"--> :actions="[
<!-- :actions="[--> { label: '详情', onClick: handleDetail.bind(null, record) },
<!-- {--> { label: '审核', onClick: handleDetail.bind(null, record) },
<!-- label: '支付',--> ]"
<!-- color: 'error',--> />
<!-- onClick: handlePay.bind(null, record),--> </template>
<!-- },--> </template>
<!-- {-->
<!-- label: '取消订单',-->
<!-- popConfirm: {-->
<!-- title: '是否确认取消订单',-->
<!-- placement: 'left',-->
<!-- confirm: handleRemove.bind(null, record),-->
<!-- },-->
<!-- },-->
<!-- ]"-->
<!-- />-->
<!-- <TableAction--> <!-- <TableAction-->
<!-- v-if="record.progress === '已完成' && record.type === '数据集'"--> <!-- v-if="record.progress === '已完成' && record.type === '数据集'"-->
<!-- :actions="[--> <!-- :actions="[-->
...@@ -73,7 +63,7 @@ ...@@ -73,7 +63,7 @@
<!-- },--> <!-- },-->
<!-- ]"--> <!-- ]"-->
<!-- />--> <!-- />-->
<!-- </template>-->
<!-- </template>--> <!-- </template>-->
<template #name="{ text, record }"> <template #name="{ text, record }">
<a @click="handleDetail(record)">{{ text }}</a> <a @click="handleDetail(record)">{{ text }}</a>
...@@ -94,8 +84,7 @@ ...@@ -94,8 +84,7 @@
import { FormProps } from '@/components/Form'; import { FormProps } from '@/components/Form';
import { ref } from 'vue'; import { ref } from 'vue';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import BasicTable from '@/components/Table/src/BasicTable.vue'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { BasicTableProps, useTable } from '@/components/Table';
import { orderFormSchema, orderTableColumn } from './order.data'; import { orderFormSchema, orderTableColumn } from './order.data';
import { orderData } from './orderData'; import { orderData } from './orderData';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
...@@ -170,7 +159,10 @@ ...@@ -170,7 +159,10 @@
/** /**
* table * table
*/ */
const [registerTable, { getSelectRows }] = useTable({ const [
registerTable,
{ reload, updateTableDataRecord, getSearchInfo, getForm, getRowSelection },
] = useTable({
title: '', title: '',
api: async (params) => { api: async (params) => {
console.log('params', params); console.log('params', params);
...@@ -197,13 +189,13 @@ ...@@ -197,13 +189,13 @@
bordered: true, bordered: true,
striped: false, striped: false,
showIndexColumn: false, showIndexColumn: false,
// actionColumn: { actionColumn: {
// width: 200, width: 200,
// title: '操作', title: '操作',
// dataIndex: 'action', dataIndex: 'action',
// // slots: { customRender: 'action' }, // slots: { customRender: 'action' },
// fixed: undefined, fixed: undefined,
// }, },
} as BasicTableProps); } as BasicTableProps);
</script> </script>
...@@ -212,25 +204,31 @@ ...@@ -212,25 +204,31 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 10px; gap: 10px;
.h-back { .h-back {
font-size: 20px; font-size: 20px;
} }
.h-icon { .h-icon {
font-size: 30px;
color: #0a208a; color: #0a208a;
font-size: 30px;
} }
.h-txt { .h-txt {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.h-des { .h-des {
font-size: 20px; font-size: 20px;
font-weight: bolder; font-weight: bolder;
} }
.h-path { .h-path {
color: #a4a8b6; color: #a4a8b6;
} }
} }
} }
.h-group { .h-group {
display: flex; display: flex;
gap: 10px; gap: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment