|
@@ -7,12 +7,12 @@
|
|
|
:actions="[
|
|
|
{
|
|
|
label: '编辑',
|
|
|
- icon: 'ep:edit',
|
|
|
+ ifShow:getCheckPerm('account-equityEdit'),
|
|
|
onClick: handleEdit.bind(null, record),
|
|
|
},
|
|
|
{
|
|
|
label: '删除',
|
|
|
- icon: 'ic:outline-delete-outline',
|
|
|
+ ifShow:getCheckPerm('account-equityDelete'),
|
|
|
popConfirm: {
|
|
|
title: '是否确认删除',
|
|
|
confirm: handleDelete.bind(null, record),
|
|
@@ -26,7 +26,7 @@
|
|
|
<a-tab-pane key="2" tab="下载订单">
|
|
|
<BasicTable @register="registerDown"></BasicTable>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="3" tab="消费订单">
|
|
|
+ <a-tab-pane key="3" tab="相机订单">
|
|
|
<BasicTable @register="registerCamera"></BasicTable>
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
@@ -42,8 +42,9 @@ import { DownList,CameraList } from '/@/api/order'
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
-import { cameraColumns, dowmColumns, equityColumns,equitySearchForm } from './data'
|
|
|
+import { cameraColumns, dowmColumns, equityColumns,orderSearchForm } from './data'
|
|
|
import { otherInfoStore } from '/@/store/modules/other'
|
|
|
+import { usePermissionStore } from '/@/store/modules/permission';
|
|
|
export default defineComponent({
|
|
|
components: {
|
|
|
BasicTable,
|
|
@@ -61,6 +62,8 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
const { t } = useI18n();
|
|
|
+ const permissionStore = usePermissionStore();
|
|
|
+ const { getCheckPerm } = permissionStore;
|
|
|
const otherInfo = otherInfoStore();
|
|
|
const OverviewInfo = computed(() => otherInfo.getOverviewInfo);
|
|
|
const { userName } = OverviewInfo.value
|
|
@@ -96,11 +99,18 @@ export default defineComponent({
|
|
|
title: '下载列表',
|
|
|
columns: dowmColumns,
|
|
|
useSearchForm: true,
|
|
|
- formConfig: searchForm,
|
|
|
+ formConfig: orderSearchForm,
|
|
|
showTableSetting: true,
|
|
|
showIndexColumn: false,
|
|
|
rowKey: 'id',
|
|
|
searchInfo,
|
|
|
+ beforeFetch:(T)=>{
|
|
|
+ if(T.ctivated){
|
|
|
+ T.startTime = T.ctivated[0]
|
|
|
+ T.endTime = T.ctivated[1]
|
|
|
+ }
|
|
|
+ return T
|
|
|
+ },
|
|
|
fetchSetting: {
|
|
|
pageField: 'pageNum',
|
|
|
sizeField: 'pageSize',
|
|
@@ -121,10 +131,17 @@ export default defineComponent({
|
|
|
title: '相机列表',
|
|
|
columns: cameraColumns,
|
|
|
useSearchForm: true,
|
|
|
- formConfig: searchForm,
|
|
|
+ formConfig: orderSearchForm,
|
|
|
showIndexColumn: false,
|
|
|
showTableSetting: true,
|
|
|
searchInfo,
|
|
|
+ beforeFetch:(T)=>{
|
|
|
+ if(T.ctivated){
|
|
|
+ T.startTime = T.ctivated[0]
|
|
|
+ T.endTime = T.ctivated[1]
|
|
|
+ }
|
|
|
+ return T
|
|
|
+ },
|
|
|
rowKey: 'id',
|
|
|
fetchSetting: {
|
|
|
pageField: 'pageNum',
|
|
@@ -139,10 +156,17 @@ export default defineComponent({
|
|
|
title: '权益列表',
|
|
|
columns: equityColumns,
|
|
|
useSearchForm: true,
|
|
|
- formConfig: equitySearchForm,
|
|
|
+ formConfig: orderSearchForm,
|
|
|
showIndexColumn: false,
|
|
|
showTableSetting: true,
|
|
|
searchInfo,
|
|
|
+ beforeFetch:(T)=>{
|
|
|
+ if(T.ctivated){
|
|
|
+ T.startTime = T.ctivated[0]
|
|
|
+ T.endTime = T.ctivated[1]
|
|
|
+ }
|
|
|
+ return T
|
|
|
+ },
|
|
|
rowKey: 'id',
|
|
|
fetchSetting: {
|
|
|
pageField: 'pageNum',
|
|
@@ -192,6 +216,7 @@ export default defineComponent({
|
|
|
registerEditModal,
|
|
|
openAddModal,
|
|
|
handleEdit,
|
|
|
+ getCheckPerm,
|
|
|
t,
|
|
|
searchInfo,
|
|
|
};
|