Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit. On branch develop Your branch is up to date with 'goflyapp/develop'. Changes to be committed: modified: zlt-business/order-center/src/main/java/com/central/order/config/AliyunImsConfig.java modified: zlt-business/order-center/src/main/java/com/central/order/controller/AutoCutVideoController.java modified: zlt-business/order-center/src/main/java/com/central/order/feign/DeviceCenterService.java new file: zlt-business/order-center/src/main/java/com/central/order/model/params/EditTaskQueryParams.java modified: zlt-business/order-center/src/main/java/com/central/order/service/IEditTaskService.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/EditTaskServiceImpl.java modified: zlt-business/order-center/src/main/java/com/central/order/service/impl/MediaServiceImpl.java modified: zlt-business/order-center/src/main/resources/application.yml modified: zlt-business/order-center/src/main/resources/bootstrap.yml modified: zlt-config/src/main/resources/bootstrap.properties modified: zlt-web/react-web/src/main/frontend/config/proxy.ts modified: zlt-web/react-web/src/main/frontend/config/routes.ts new file: zlt-web/react-web/src/main/frontend/src/pages/orders/EditTask/components/CreateForm.tsx new file: zlt-web/react-web/src/main/frontend/src/pages/orders/EditTask/components/UpdateForm.tsx new file: zlt-web/react-web/src/main/frontend/src/pages/orders/EditTask/index.tsx modified: zlt-web/react-web/src/main/frontend/src/pages/orders/Qrcode/index.tsx modified: zlt-web/react-web/src/main/frontend/src/pages/orders/Tourism/components/UpdateForm.tsx modified: zlt-web/react-web/src/main/frontend/src/pages/orders/Tourism/index.tsx modified: zlt-web/react-web/src/main/frontend/src/services/orders/api.ts modified: zlt-web/react-web/src/main/frontend/src/services/orders/typings.d.ts
This commit is contained in:
@@ -9,43 +9,43 @@
|
||||
export default {
|
||||
dev: {
|
||||
'/api-uaa/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-user/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-log/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-search/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-generator/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-file/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-order/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
'/api-device/': {
|
||||
// target: 'http://119.45.169.13:9900',
|
||||
target: 'http://127.0.0.1:9900',
|
||||
target: 'http://119.45.169.13:9900',
|
||||
// target: 'http://127.0.0.1:9900',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -116,6 +116,10 @@
|
||||
path: '/orders/videoTemplate.html',
|
||||
component: './orders/VideoTemplate',
|
||||
},
|
||||
{
|
||||
path: '/orders/editTask.html',
|
||||
component: './orders/EditTask',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -166,6 +170,12 @@
|
||||
path: '/',
|
||||
redirect: '/welcome',
|
||||
},
|
||||
{
|
||||
path: '/orders/edit-task',
|
||||
name: '剪辑任务管理',
|
||||
icon: 'VideoCameraOutlined',
|
||||
component: './orders/EditTask',
|
||||
},
|
||||
{
|
||||
component: './404',
|
||||
},
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
ModalForm,
|
||||
ProForm,
|
||||
ProFormText,
|
||||
ProFormSelect,
|
||||
ProFormTextArea,
|
||||
} from '@ant-design/pro-components';
|
||||
|
||||
interface CreateFormProps {
|
||||
visible: boolean;
|
||||
onVisibleChange: (visible: boolean) => void;
|
||||
onSubmit: (values: ORDERS.EditTask) => Promise<boolean>;
|
||||
}
|
||||
|
||||
const CreateForm: React.FC<CreateFormProps> = ({
|
||||
visible,
|
||||
onVisibleChange,
|
||||
onSubmit,
|
||||
}) => {
|
||||
return (
|
||||
<ModalForm
|
||||
title="新增剪辑任务"
|
||||
visible={visible}
|
||||
onVisibleChange={onVisibleChange}
|
||||
modalProps={{ destroyOnClose: true }}
|
||||
onFinish={onSubmit}
|
||||
>
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="userId"
|
||||
label="用户ID"
|
||||
rules={[{ required: true, message: '请输入用户ID' }]}
|
||||
placeholder="请输入用户ID"
|
||||
/>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="orderSn"
|
||||
label="订单编号"
|
||||
rules={[{ required: true, message: '请输入订单编号' }]}
|
||||
placeholder="请输入订单编号"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="jobId"
|
||||
label="任务ID"
|
||||
rules={[{ required: true, message: '请输入任务ID' }]}
|
||||
placeholder="请输入任务ID"
|
||||
/>
|
||||
<ProFormSelect
|
||||
width="md"
|
||||
name="status"
|
||||
label="状态"
|
||||
options={[
|
||||
{ label: '待处理', value: 0 },
|
||||
{ label: '处理中', value: 1 },
|
||||
{ label: '处理完成', value: 2 },
|
||||
{ label: '处理失败', value: 3 },
|
||||
]}
|
||||
rules={[{ required: true, message: '请选择状态' }]}
|
||||
placeholder="请选择状态"
|
||||
initialValue={0}
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormTextArea
|
||||
width="md"
|
||||
name="result"
|
||||
label="处理结果"
|
||||
placeholder="请输入处理结果"
|
||||
/>
|
||||
<ProFormTextArea
|
||||
width="md"
|
||||
name="remark"
|
||||
label="备注"
|
||||
placeholder="请输入备注"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
</ModalForm>
|
||||
);
|
||||
};
|
||||
|
||||
export default CreateForm;
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
ModalForm,
|
||||
ProForm,
|
||||
ProFormText,
|
||||
ProFormSelect,
|
||||
ProFormTextArea,
|
||||
} from '@ant-design/pro-components';
|
||||
|
||||
interface UpdateFormProps {
|
||||
updateModalVisible: boolean;
|
||||
onVisibleChange: (visible: boolean) => void;
|
||||
onSubmit: (values: Partial<ORDERS.EditTask>) => Promise<boolean>;
|
||||
values?: ORDERS.EditTask;
|
||||
}
|
||||
|
||||
const UpdateForm: React.FC<UpdateFormProps> = ({
|
||||
updateModalVisible,
|
||||
onVisibleChange,
|
||||
onSubmit,
|
||||
values,
|
||||
}) => {
|
||||
return (
|
||||
<ModalForm
|
||||
title="修改剪辑任务"
|
||||
visible={updateModalVisible}
|
||||
onVisibleChange={onVisibleChange}
|
||||
modalProps={{ destroyOnClose: true }}
|
||||
onFinish={onSubmit}
|
||||
initialValues={values}
|
||||
>
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="userId"
|
||||
label="用户ID"
|
||||
rules={[{ required: true, message: '请输入用户ID' }]}
|
||||
placeholder="请输入用户ID"
|
||||
/>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="orderSn"
|
||||
label="订单编号"
|
||||
rules={[{ required: true, message: '请输入订单编号' }]}
|
||||
placeholder="请输入订单编号"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
width="md"
|
||||
name="jobId"
|
||||
label="任务ID"
|
||||
rules={[{ required: true, message: '请输入任务ID' }]}
|
||||
placeholder="请输入任务ID"
|
||||
/>
|
||||
<ProFormSelect
|
||||
width="md"
|
||||
name="status"
|
||||
label="状态"
|
||||
options={[
|
||||
{ label: '待处理', value: 0 },
|
||||
{ label: '处理中', value: 1 },
|
||||
{ label: '处理完成', value: 2 },
|
||||
{ label: '处理失败', value: 3 },
|
||||
]}
|
||||
rules={[{ required: true, message: '请选择状态' }]}
|
||||
placeholder="请选择状态"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormTextArea
|
||||
width="md"
|
||||
name="result"
|
||||
label="处理结果"
|
||||
placeholder="请输入处理结果"
|
||||
/>
|
||||
<ProFormTextArea
|
||||
width="md"
|
||||
name="remark"
|
||||
label="备注"
|
||||
placeholder="请输入备注"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
</ModalForm>
|
||||
);
|
||||
};
|
||||
|
||||
export default UpdateForm;
|
||||
@@ -0,0 +1,310 @@
|
||||
import React, { useRef, useState, useCallback } from 'react';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import type { ActionType, ProColumns } from '@ant-design/pro-components';
|
||||
import {
|
||||
PageContainer,
|
||||
ProTable,
|
||||
QueryFilter,
|
||||
ProFormSelect,
|
||||
ProFormText,
|
||||
} from '@ant-design/pro-components';
|
||||
import { Button, Space, Typography, Popconfirm, message, Tag, Tooltip } from 'antd';
|
||||
import { getEditTaskList, deleteEditTask } from '@/services/orders/api';
|
||||
import CreateForm from './components/CreateForm';
|
||||
import UpdateForm from './components/UpdateForm';
|
||||
|
||||
const { Link } = Typography;
|
||||
|
||||
// 状态选项
|
||||
const STATUS_OPTIONS = [
|
||||
{ label: '待处理', value: 0 },
|
||||
{ label: '处理中', value: 1 },
|
||||
{ label: '处理完成', value: 2 },
|
||||
{ label: '处理失败', value: 3 },
|
||||
];
|
||||
|
||||
// 状态颜色映射
|
||||
const statusColorMap = {
|
||||
0: { color: 'default', text: '待处理' },
|
||||
1: { color: 'processing', text: '处理中' },
|
||||
2: { color: 'success', text: '处理完成' },
|
||||
3: { color: 'error', text: '处理失败' },
|
||||
};
|
||||
|
||||
// 渲染状态标签
|
||||
const renderStatus = (status: number) => {
|
||||
const statusInfo = statusColorMap[status] || { color: 'gray', text: '未知状态' };
|
||||
return <Tag color={statusInfo.color}>{statusInfo.text}</Tag>;
|
||||
};
|
||||
|
||||
const TableList: React.FC = () => {
|
||||
const actionRef = useRef<ActionType>();
|
||||
const [params, setParams] = useState<Record<string, string | number>>({});
|
||||
const [createModalVisible, handleModalVisible] = useState<boolean>(false);
|
||||
const [updateModalVisible, handleUpdateModalVisible] = useState<boolean>(false);
|
||||
const [currentRow, setCurrentRow] = useState<ORDERS.EditTask>();
|
||||
|
||||
// 处理API请求
|
||||
const handleApiRequest = async (
|
||||
apiCall: () => Promise<any>,
|
||||
loadingMessage: string,
|
||||
successMessage: string,
|
||||
) => {
|
||||
const hide = message.loading(loadingMessage);
|
||||
try {
|
||||
const result = await apiCall();
|
||||
hide();
|
||||
if (result.resp_code === 0) {
|
||||
message.success(successMessage);
|
||||
return true;
|
||||
}
|
||||
message.error(result.resp_msg);
|
||||
return false;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error(`${successMessage}失败`);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// 处理删除
|
||||
const handleDelete = async (record: ORDERS.EditTask) => {
|
||||
return handleApiRequest(
|
||||
() => deleteEditTask(record.id),
|
||||
'正在删除',
|
||||
'删除成功'
|
||||
);
|
||||
};
|
||||
|
||||
// 表格操作处理
|
||||
const handleTableAction = useCallback(async (
|
||||
action: 'add' | 'edit' | 'delete',
|
||||
record?: ORDERS.EditTask,
|
||||
values?: Partial<ORDERS.EditTask>
|
||||
) => {
|
||||
let success = false;
|
||||
switch (action) {
|
||||
case 'add':
|
||||
success = await handleAdd(values as ORDERS.EditTask);
|
||||
success && handleModalVisible(false);
|
||||
break;
|
||||
case 'edit':
|
||||
if (record) {
|
||||
success = await handleEdit(record, values || {});
|
||||
if (success) {
|
||||
handleUpdateModalVisible(false);
|
||||
setCurrentRow(undefined);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'delete':
|
||||
success = await handleDelete(record!);
|
||||
break;
|
||||
}
|
||||
if (success && actionRef.current) {
|
||||
actionRef.current.reload();
|
||||
}
|
||||
}, []);
|
||||
|
||||
// 修改 request 处理方式
|
||||
const handleRequest = async (
|
||||
params: {
|
||||
pageSize?: number;
|
||||
current?: number;
|
||||
keyword?: string;
|
||||
} & Record<string, any>,
|
||||
) => {
|
||||
const msg = message.loading('正在加载数据...', 0);
|
||||
try {
|
||||
const response = await getEditTaskList({
|
||||
page: params.current || 1,
|
||||
limit: params.pageSize || 10,
|
||||
orderSn: params.orderSn,
|
||||
jobId: params.jobId,
|
||||
status: params.status,
|
||||
});
|
||||
msg();
|
||||
|
||||
if (response.resp_code === 0) {
|
||||
return {
|
||||
data: response.data.records || [],
|
||||
success: true,
|
||||
total: response.data.total || 0,
|
||||
};
|
||||
}
|
||||
message.error(response.resp_msg);
|
||||
return {
|
||||
data: [],
|
||||
success: false,
|
||||
total: 0,
|
||||
};
|
||||
} catch (error) {
|
||||
msg();
|
||||
message.error('获取数据失败');
|
||||
return {
|
||||
data: [],
|
||||
success: false,
|
||||
total: 0,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// 表格列定义
|
||||
const columns: ProColumns<ORDERS.EditTask>[] = [
|
||||
{
|
||||
dataIndex: 'index',
|
||||
valueType: 'indexBorder',
|
||||
width: 48,
|
||||
fixed: 'left',
|
||||
},
|
||||
{
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
title: '用户ID',
|
||||
dataIndex: 'userId',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: '订单编号',
|
||||
dataIndex: 'orderSn',
|
||||
width: 180,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '任务ID',
|
||||
dataIndex: 'jobId',
|
||||
width: 180,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '处理结果',
|
||||
dataIndex: 'result',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
width: 100,
|
||||
render: (status) => renderStatus(status as number),
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
dataIndex: 'remark',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createTime',
|
||||
valueType: 'dateTime',
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updateTime',
|
||||
valueType: 'dateTime',
|
||||
width: 160,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
<Link
|
||||
onClick={() => {
|
||||
setCurrentRow(record);
|
||||
handleUpdateModalVisible(true);
|
||||
}}
|
||||
>
|
||||
修改
|
||||
</Link>
|
||||
<Popconfirm
|
||||
title={`确认删除该剪辑任务?`}
|
||||
description="删除后将无法恢复,请谨慎操作"
|
||||
onConfirm={() => handleTableAction('delete', record)}
|
||||
>
|
||||
<Link>删除</Link>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<PageContainer header={{ title: '剪辑任务管理' }}>
|
||||
<QueryFilter
|
||||
defaultCollapsed={false}
|
||||
split
|
||||
span={6}
|
||||
className="query-filter"
|
||||
onFinish={setParams}
|
||||
>
|
||||
<ProFormText
|
||||
name="orderSn"
|
||||
label="订单编号"
|
||||
placeholder="请输入订单编号"
|
||||
/>
|
||||
<ProFormText
|
||||
name="jobId"
|
||||
label="任务ID"
|
||||
placeholder="请输入任务ID"
|
||||
/>
|
||||
<ProFormSelect
|
||||
name="status"
|
||||
label="状态"
|
||||
placeholder="请选择状态"
|
||||
options={STATUS_OPTIONS}
|
||||
/>
|
||||
</QueryFilter>
|
||||
<ProTable<ORDERS.EditTask>
|
||||
rowKey="id"
|
||||
headerTitle="剪辑任务列表"
|
||||
actionRef={actionRef}
|
||||
columns={columns}
|
||||
request={handleRequest}
|
||||
search={false}
|
||||
params={params}
|
||||
scroll={{ x: 1500 }}
|
||||
pagination={{
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
defaultPageSize: 10,
|
||||
}}
|
||||
toolBarRender={() => [
|
||||
<Button
|
||||
key="add"
|
||||
type="primary"
|
||||
onClick={() => handleModalVisible(true)}
|
||||
>
|
||||
<PlusOutlined /> 新增剪辑任务
|
||||
</Button>,
|
||||
]}
|
||||
style={{
|
||||
width: '100%',
|
||||
overflow: 'auto',
|
||||
}}
|
||||
/>
|
||||
<CreateForm
|
||||
visible={createModalVisible}
|
||||
onVisibleChange={handleModalVisible}
|
||||
onSubmit={async (values) => handleTableAction('add', undefined, values)}
|
||||
/>
|
||||
<UpdateForm
|
||||
updateModalVisible={updateModalVisible}
|
||||
onVisibleChange={handleUpdateModalVisible}
|
||||
onSubmit={async (values) => handleTableAction('edit', currentRow, values)}
|
||||
values={currentRow}
|
||||
/>
|
||||
</PageContainer>
|
||||
);
|
||||
};
|
||||
|
||||
export default TableList;
|
||||
@@ -10,9 +10,8 @@ import {
|
||||
ProFormDigit,
|
||||
ProTable,
|
||||
QueryFilter,
|
||||
Tooltip,
|
||||
} from '@ant-design/pro-components';
|
||||
import { Typography, Popconfirm, Space, message, Image, Button, Tag } from 'antd';
|
||||
import { Typography, Popconfirm, Space, message, Image, Button, Tag, Tooltip } from 'antd';
|
||||
import React, { useRef, useState, useCallback, useEffect } from 'react';
|
||||
import UpdateForm from './components/UpdateForm';
|
||||
import { wayline, device } from '@/services/device/api';
|
||||
|
||||
+25
-4
@@ -3,6 +3,7 @@ import {
|
||||
ProForm,
|
||||
ProFormText,
|
||||
ProFormSelect,
|
||||
ProFormTextArea,
|
||||
} from '@ant-design/pro-components';
|
||||
import React from 'react';
|
||||
|
||||
@@ -45,21 +46,27 @@ const UpdateForm: React.FC<UpdateFormProps> = ({
|
||||
name="tourismName"
|
||||
label="名称"
|
||||
width="md"
|
||||
rules={[formRules.required]}
|
||||
rules={[{ required: true, message: '此项为必填项' }]}
|
||||
placeholder="请输入景区名称"
|
||||
/>
|
||||
<ProFormText
|
||||
name="tourismAddress"
|
||||
label="地址"
|
||||
width="md"
|
||||
rules={[formRules.required]}
|
||||
rules={[{ required: true, message: '此项为必填项' }]}
|
||||
placeholder="请输入景区地址"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
name="tourismPhone"
|
||||
label="联系电话"
|
||||
width="md"
|
||||
rules={[formRules.required, formRules.phone]}
|
||||
rules={[
|
||||
{ required: true, message: '此项为必填项' },
|
||||
{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号' }
|
||||
]}
|
||||
placeholder="请输入联系电话"
|
||||
/>
|
||||
<ProFormSelect
|
||||
@@ -67,10 +74,24 @@ const UpdateForm: React.FC<UpdateFormProps> = ({
|
||||
label="状态"
|
||||
width="md"
|
||||
options={STATUS_OPTIONS}
|
||||
rules={[formRules.required]}
|
||||
rules={[{ required: true, message: '此项为必填项' }]}
|
||||
placeholder="请选择状态"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormTextArea
|
||||
name="tourismDesc"
|
||||
label="景点描述"
|
||||
width="xl"
|
||||
placeholder="请输入景点描述"
|
||||
fieldProps={{
|
||||
rows: 4,
|
||||
maxLength: 500,
|
||||
showCount: true,
|
||||
}}
|
||||
/>
|
||||
</ProForm.Group>
|
||||
</ModalForm>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -7,8 +7,9 @@ import {
|
||||
PageContainer,
|
||||
ProForm,
|
||||
ProFormText,
|
||||
ProTable,
|
||||
ProFormSelect,
|
||||
ProFormTextArea,
|
||||
ProTable,
|
||||
} from '@ant-design/pro-components';
|
||||
import { Typography, message, Popconfirm, Button, Space } from 'antd';
|
||||
import React, { useRef, useState, useCallback } from 'react';
|
||||
@@ -127,10 +128,15 @@ const TableList: React.FC = () => {
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '地址',
|
||||
title: '景点',
|
||||
dataIndex: 'tourismAddress',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '景点描述',
|
||||
dataIndex: 'tourismDesc',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '联系电话',
|
||||
dataIndex: 'tourismPhone',
|
||||
@@ -233,6 +239,9 @@ const TableList: React.FC = () => {
|
||||
rules={[formRules.required]}
|
||||
placeholder="请输入景区地址"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
name="tourismPhone"
|
||||
label="联系电话"
|
||||
@@ -249,6 +258,20 @@ const TableList: React.FC = () => {
|
||||
initialValue="1"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
|
||||
<ProForm.Group>
|
||||
<ProFormTextArea
|
||||
name="tourismDesc"
|
||||
label="景点描述"
|
||||
width="xl"
|
||||
placeholder="请输入景点描述"
|
||||
fieldProps={{
|
||||
rows: 4,
|
||||
maxLength: 500,
|
||||
showCount: true,
|
||||
}}
|
||||
/>
|
||||
</ProForm.Group>
|
||||
</ModalForm>
|
||||
|
||||
{/* 修改表单 */}
|
||||
|
||||
@@ -259,3 +259,32 @@ export async function updateVideoTemplateStatus(id: number, status: number) {
|
||||
});
|
||||
}
|
||||
|
||||
// 获取剪辑任务列表
|
||||
export async function getEditTaskList(params: {
|
||||
page: number;
|
||||
limit: number;
|
||||
orderSn?: string;
|
||||
jobId?: string;
|
||||
status?: number;
|
||||
}) {
|
||||
return request('/api-order/auto/cut/list', {
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增剪辑任务
|
||||
export async function saveOrUpdateEditTask(data: ORDERS.EditTask) {
|
||||
return request('/api-order/auto/cut/save', {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除剪辑任务
|
||||
export async function deleteEditTask(id: number) {
|
||||
return request(`/api-order/auto/cut/delete/${id}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -182,6 +182,19 @@ declare namespace ORDERS {
|
||||
company?: string;
|
||||
isDel?: number;
|
||||
}
|
||||
|
||||
interface EditTask {
|
||||
id: number;
|
||||
userId: number;
|
||||
orderSn: string;
|
||||
jobId: string;
|
||||
result: string;
|
||||
status: number;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
tenantId: number;
|
||||
remark: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace API {
|
||||
|
||||
Reference in New Issue
Block a user