|
@@ -2,22 +2,21 @@
|
|
<PageWrapper contentBackground>
|
|
<PageWrapper contentBackground>
|
|
<template #footer>
|
|
<template #footer>
|
|
<a-tabs v-model:activeKey="state" @change="changeTable">
|
|
<a-tabs v-model:activeKey="state" @change="changeTable">
|
|
- <a-tab-pane :key="1" tab="待处理" />
|
|
|
|
- <a-tab-pane :key="0" tab="已处理" />
|
|
|
|
|
|
+ <a-tab-pane :key="0" tab="待处理" />
|
|
|
|
+ <a-tab-pane :key="1" tab="已处理" />
|
|
</a-tabs>
|
|
</a-tabs>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<div class="pt-4 m-4 desc-wrap">
|
|
<div class="pt-4 m-4 desc-wrap">
|
|
<BasicTable @register="registerTimeTable" >
|
|
<BasicTable @register="registerTimeTable" >
|
|
-
|
|
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
<TableAction
|
|
<TableAction
|
|
stopButtonPropagation
|
|
stopButtonPropagation
|
|
:actions="[
|
|
:actions="[
|
|
{
|
|
{
|
|
- label: '处理',
|
|
|
|
|
|
+ label: '发送',
|
|
icon: 'icon-park-outline:door-handle',
|
|
icon: 'icon-park-outline:door-handle',
|
|
- ifShow:record.state == 1,
|
|
|
|
|
|
+ ifShow:record.state == 0,
|
|
onClick: handleWithdraw.bind(null, record),
|
|
onClick: handleWithdraw.bind(null, record),
|
|
},
|
|
},
|
|
]"
|
|
]"
|
|
@@ -34,10 +33,12 @@
|
|
import { PageWrapper } from '/@/components/Page';
|
|
import { PageWrapper } from '/@/components/Page';
|
|
import { Divider, Card, Empty, Descriptions, Steps, Tabs } from 'ant-design-vue';
|
|
import { Divider, Card, Empty, Descriptions, Steps, Tabs } from 'ant-design-vue';
|
|
import { intercomMessageList, intercomMessageHandle } from '/@/api/operate'
|
|
import { intercomMessageList, intercomMessageHandle } from '/@/api/operate'
|
|
|
|
+ import { sceneApplyList } from '/@/api/operate'
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import addMessgeModal from './components/message/addModal.vue'
|
|
import addMessgeModal from './components/message/addModal.vue'
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
- import { refundTimeTableSchema, refundTimeTableData } from './data';
|
|
|
|
|
|
+ import { DMegaSchema, refundTimeTableData } from './data';
|
|
|
|
+ import { useMessage } from '/@/hooks/web/useMessage';
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: {
|
|
components: {
|
|
BasicTable,
|
|
BasicTable,
|
|
@@ -56,13 +57,14 @@
|
|
},
|
|
},
|
|
setup() {
|
|
setup() {
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
|
|
+ const { createConfirm, createMessage } = useMessage();
|
|
const [register, { openModal }] = useModal();
|
|
const [register, { openModal }] = useModal();
|
|
- const state = ref<number>(1); //未处理,0已处理(默认1)
|
|
|
|
|
|
+ const state = ref<number>(0); //未处理,0已处理(默认1)
|
|
const searchForm: Partial<FormProps> = {
|
|
const searchForm: Partial<FormProps> = {
|
|
labelWidth: 100,
|
|
labelWidth: 100,
|
|
schemas: [
|
|
schemas: [
|
|
{
|
|
{
|
|
- field: 'sceneName',
|
|
|
|
|
|
+ field: 'payTime',
|
|
label: '提交时间',
|
|
label: '提交时间',
|
|
component: 'RangePicker',
|
|
component: 'RangePicker',
|
|
componentProps: {
|
|
componentProps: {
|
|
@@ -76,8 +78,8 @@
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- field: 'type',
|
|
|
|
- label: t('routes.operate.newsTitle'),
|
|
|
|
|
|
+ field: 'companyName',
|
|
|
|
+ label: '公司名称',
|
|
component: 'Input',
|
|
component: 'Input',
|
|
colProps: {
|
|
colProps: {
|
|
xl: 6,
|
|
xl: 6,
|
|
@@ -87,7 +89,7 @@
|
|
],
|
|
],
|
|
};
|
|
};
|
|
const [registerTimeTable,{reload}] = useTable({
|
|
const [registerTimeTable,{reload}] = useTable({
|
|
- api: intercomMessageList,
|
|
|
|
|
|
+ api: sceneApplyList,
|
|
// title: '',
|
|
// title: '',
|
|
rowKey: 'id',
|
|
rowKey: 'id',
|
|
fetchSetting: {
|
|
fetchSetting: {
|
|
@@ -96,13 +98,22 @@
|
|
listField: 'list',
|
|
listField: 'list',
|
|
totalField: 'total',
|
|
totalField: 'total',
|
|
},
|
|
},
|
|
- searchInfo: { state },
|
|
|
|
- columns: refundTimeTableSchema,
|
|
|
|
|
|
+ searchInfo: { handleState:state },
|
|
|
|
+ columns: DMegaSchema,
|
|
formConfig: searchForm,
|
|
formConfig: searchForm,
|
|
|
|
+ useSearchForm: true,
|
|
dataSource: refundTimeTableData,
|
|
dataSource: refundTimeTableData,
|
|
|
|
+ showTableSetting: true,
|
|
showIndexColumn: false,
|
|
showIndexColumn: false,
|
|
// pagination: { pageSize: 20 },
|
|
// pagination: { pageSize: 20 },
|
|
- scroll: { y: 300 },
|
|
|
|
|
|
+ // scroll: { y: 300 },
|
|
|
|
+ beforeFetch:(params)=>{
|
|
|
|
+ return {
|
|
|
|
+ ...params,
|
|
|
|
+ startTime: params.payTime && params.payTime[0],
|
|
|
|
+ endTime: params.payTime && params.payTime[1],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
actionColumn: {
|
|
actionColumn: {
|
|
width: 100,
|
|
width: 100,
|
|
title: '操作',
|
|
title: '操作',
|
|
@@ -116,7 +127,17 @@
|
|
reload();
|
|
reload();
|
|
}
|
|
}
|
|
async function handleWithdraw(record: Recordable) {
|
|
async function handleWithdraw(record: Recordable) {
|
|
- openModal(true,record)
|
|
|
|
|
|
+ createConfirm({
|
|
|
|
+ iconType: 'info',
|
|
|
|
+ title: '发送邮件',
|
|
|
|
+ content: `此操作将对${record.applicationName}进行删除, 是否继续?`,
|
|
|
|
+ onOk: async () => {
|
|
|
|
+ await buryPointDlt({ id: record.id });
|
|
|
|
+ reload();
|
|
|
|
+ createMessage.success(t('common.optSuccess'));
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ // openModal(true,record)
|
|
}
|
|
}
|
|
return {
|
|
return {
|
|
registerTimeTable,
|
|
registerTimeTable,
|