From 7bd6d19f63fab157e59a696fa6c167147af1f8b5 Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Thu, 25 Jan 2024 09:54:52 +0800
Subject: [PATCH 1/4] z
---
config/routes.js | 1 +
.../push/goodspush/components/PushFrom.jsx | 137 ------------------
2 files changed, 1 insertion(+), 137 deletions(-)
delete mode 100644 src/pages/push/goodspush/components/PushFrom.jsx
diff --git a/config/routes.js b/config/routes.js
index 56f243d..9e99c34 100644
--- a/config/routes.js
+++ b/config/routes.js
@@ -213,6 +213,7 @@ export default [
// },
],
},
+
{
path: '/',
redirect: '/welcome',
diff --git a/src/pages/push/goodspush/components/PushFrom.jsx b/src/pages/push/goodspush/components/PushFrom.jsx
deleted file mode 100644
index b92e5bf..0000000
--- a/src/pages/push/goodspush/components/PushFrom.jsx
+++ /dev/null
@@ -1,137 +0,0 @@
-import React, { useState, useEffect,useRef } from 'react';
-import { Modal, Row, Col, Checkbox, Select} from 'antd';
-import ProTable from '@ant-design/pro-table';
-import {
- GetDeviceList,
- GetGoodsPage,
- GetGoodsTypeTree
-} from '../services';
-const PushFrom = (props) => {
- const [deviceData, setdeviceData] = useState([]);
- const [selectedRowsState, setSelectedRows] = useState([]);
- const [dataSource,setdataSource]= useState([]);
- const [treeData, setTreeData] = useState();
- const [DeviceIds, setDeviceIds] = useState([]);
- const [DeviceInfo, setDeviceInfo] = useState([]);
- const actionRef = useRef();
- useEffect(() => {
- console.log(props.values)
- GetDeviceList().then((r)=>{
- setDeviceInfo(r.data);
- var data=r.data.map(x=>{
- return {value:x.id,label:x.name}
- })
- setdeviceData(data)
- })
- GetGoodsTypeTree().then((r) => {
- setTreeData(r.data);
- });
- var params={current:1,pageSize:10}
- GetGoodsPage(params).then((r) => {
- setdataSource(r.data.data);
- //console.log(goodsData)
- //total = r.data.total;
- });
- },[props.values])
- const handleChange=(value)=>{
- setDeviceIds(value)
- }
- const columns=[
- {
- title: '编码',
- dataIndex: 'code',
- valueType: 'textarea',
- hideInTable: true,
- hideInSearch: true,
- },
- {
- title: '名称',
- dataIndex: 'name',
- valueType: 'textarea',
- },
- {
- title: '商品类型',
- dataIndex: 'goodsTypeName',
- valueType: 'treeSelect',
- fieldProps: {
- showSearch:true,
- allowClear:true,
- options: treeData
- },
- },
- ]
- return (
- {
- console.log(selectedRowsState)
- console.log(DeviceIds)
- if(DeviceIds.length>0){
-
- }
- }}
- onCancel={() => {
- props.onCancel();
- }}
- destroyOnClose
- >
-
-
- 选择设备:
-
-
-
-
-
-
- 选择数据:
- {
- // var goodsData = [];
- // var total = 0;
- // await goods(params).then((r) => {
- // goodsData = r.data.data;
- // console.log(goodsData)
- // total = r.data.total;
- // });
- // return {
- // data: goodsData,
- // success: true,
- // total: total,
- // };
- // }}
- columns={columns}
- rowSelection={{
- onChange: (_, selectedRows) => {
- setSelectedRows(selectedRows);
- },
- }}
- >
-
-
-
-
- );
-};
-
-export default PushFrom;
From 36b3f7b83d5886f0046db1497766f69313eb6486 Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Thu, 25 Jan 2024 11:19:59 +0800
Subject: [PATCH 2/4] z
---
.../goods/goodsInfo/components/goodstechnologymaken.jsx | 2 +-
src/pages/device/productmanage/index.jsx | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/pages/database/goods/goodsInfo/components/goodstechnologymaken.jsx b/src/pages/database/goods/goodsInfo/components/goodstechnologymaken.jsx
index 5c8180e..84048f4 100644
--- a/src/pages/database/goods/goodsInfo/components/goodstechnologymaken.jsx
+++ b/src/pages/database/goods/goodsInfo/components/goodstechnologymaken.jsx
@@ -396,7 +396,7 @@ const goodstechnologymaken = (props) => {
)
}
-
+
选择设备:
- }
- >
- {
- await handleRemove(selectedRowsState);
- setSelectedRows([]);
- actionRef.current?.reloadAndRest?.();
- }}
- >
- 删除
-
- {/* 批量审批 */}
-
- )}
-
- {
-
- }}
- onCancel={() => {
- handleModalVisible(false);
- setCurrentRow(undefined);
- }}
- createModalVisible={createModalVisible}
- values={currentRow || {}}
- />
-
- {
- setCurrentRow(undefined);
- setShowDetail(false);
- }}
- closable={false}
- >
- {currentRow?.name && (
- ({
- data: currentRow || {},
- })}
- params={{
- id: currentRow?.name,
- }}
- columns={columns}
- />
- )}
-
-
- );
-};
-
-export default DevicePush;
diff --git a/src/pages/device/devicepush/services.js b/src/pages/device/devicepush/services.js
deleted file mode 100644
index 3d4c3fe..0000000
--- a/src/pages/device/devicepush/services.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import { request } from 'umi';
-export async function GetDevicePushRecodePage(data) {
- return request(`/saasstore/api/devicepushrecode/page`, {
- method: 'POST',
- data: data,
- });
- }
- export async function DevicePushRecodeAdd(data) {
- return request(`/saasstore/api/devicepushrecode/add`, {
- method: 'POST',
- data: data,
- });
- }
- export async function DevicePushRecodeUpdate(data) {
- return request(`/saasstore/api/devicepushrecode/update`, {
- method: 'POST',
- data: data,
- });
- }
- export async function DevicePushRecodeDelete(data) {
- return request(`/saasstore/api/devicepushrecode/delete`, {
- method: 'POST',
- data: data,
- });
- }
- export async function GetDeviceList() {
- return request(`/saasbase/api/device/list`, {
- method: 'GET',
- });
- }