From 8fa2cb2ce839ba2636d67fd41395a4d914a7a94d Mon Sep 17 00:00:00 2001
From: zhaoy <137053305@qq.com>
Date: Mon, 25 Mar 2024 11:32:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E9=87=8F=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/routes.js | 7 +++++++
src/app.jsx | 8 ++++++++
.../database/goods/energyconfig/index.jsx | 0
.../database/goods/energyconfig/service.js | 0
src/pages/database/goods/newgoods/index.jsx | 19 ++++++++++++++++++-
5 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 src/pages/database/goods/energyconfig/index.jsx
create mode 100644 src/pages/database/goods/energyconfig/service.js
diff --git a/config/routes.js b/config/routes.js
index d9d8929..6261ed1 100644
--- a/config/routes.js
+++ b/config/routes.js
@@ -186,6 +186,13 @@ export default [
component: './database/goods/goodsattributeprice',
access: 'k7',
},
+ {
+ name: '商品能量配置',
+ icon: 'smile',
+ path: '/database/goods/energyconfig',
+ component: './database/goods/energyconfig',
+ access: 'k7',
+ },
]
},
],
diff --git a/src/app.jsx b/src/app.jsx
index 376ad04..ee2b926 100644
--- a/src/app.jsx
+++ b/src/app.jsx
@@ -252,6 +252,14 @@ export async function getInitialState() {
component: './database/goods/goodsattributeprice',
access: 'k10',
},
+ {
+ code: 'newgoods',
+ name: '商品能量配置',
+ icon: 'smile',
+ path: '/database/goods/energyconfig',
+ component: './database/goods/energyconfig',
+ access: 'k10',
+ },
]
},
]
diff --git a/src/pages/database/goods/energyconfig/index.jsx b/src/pages/database/goods/energyconfig/index.jsx
new file mode 100644
index 0000000..e69de29
diff --git a/src/pages/database/goods/energyconfig/service.js b/src/pages/database/goods/energyconfig/service.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/pages/database/goods/newgoods/index.jsx b/src/pages/database/goods/newgoods/index.jsx
index 62a1c48..5fd76ff 100644
--- a/src/pages/database/goods/newgoods/index.jsx
+++ b/src/pages/database/goods/newgoods/index.jsx
@@ -128,7 +128,7 @@ const GoodsManage = () => {
dataIndex: 'option',
valueType: 'option',
fixed: 'right',
- width: 350,
+ width: 450,
render: (_, record) => [
{
>
价格配置
,
+ {
+ history.push({
+ pathname: '/database/goods/energyconfig',
+ query: {
+ isAdd: false,
+ values: record,
+ },
+ });
+ // handleModalVisible(true);
+ // setCurrentRow(record);
+ }}
+ >
+ 能量配置
+ ,