Commit 8521482b authored by TZW's avatar TZW

11141614

parent cede7f9c
...@@ -11,8 +11,8 @@ import { createElement } from 'react'; ...@@ -11,8 +11,8 @@ import { createElement } from 'react';
import routes from '../config/authRoutes'; import routes from '../config/authRoutes';
const { LinkOutlined } = Ant4Icons; const { LinkOutlined } = Ant4Icons;
const isDev = process.env.NODE_ENV === 'development'; // const isDev = process.env.NODE_ENV === 'development';
// const isDev = false const isDev = true;
console.log(isDev); console.log(isDev);
const loginPath = '/user/login'; const loginPath = '/user/login';
......
/* /* 设备台账
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56 * @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-10 09:39:56 * @Last Modified time: 2022-11-14 15:52:12
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -142,4 +142,4 @@ function Account(props) { ...@@ -142,4 +142,4 @@ function Account(props) {
); );
} }
export default Account; export default Account;
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-14 14:19:53 * @Last Modified time: 2022-11-14 15:40:09
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -25,7 +25,7 @@ function Type(props) { ...@@ -25,7 +25,7 @@ function Type(props) {
save: '/asset/equipmentType/save', save: '/asset/equipmentType/save',
remove: '/asset/equipmentType/deleteById', remove: '/asset/equipmentType/deleteById',
list: '/asset/equipmentType/queryTreeList', list: '/asset/equipmentType/queryTreeList',
detail: '/asset/equipmentSupplier/query/detail', detail: '/asset/equipmentType/queryById',
}; };
const detail = (text, row, _, action) => { const detail = (text, row, _, action) => {
...@@ -60,11 +60,8 @@ function Type(props) { ...@@ -60,11 +60,8 @@ function Type(props) {
setDrawer((s) => ({ setDrawer((s) => ({
...s, ...s,
visible: true, visible: true,
detailpath: null, detailpath: urlParams.detail,
item: { params: { id: row.key },
title: row.title,
remark: row.remark,
},
title: '编辑', title: '编辑',
val: 'edit', val: 'edit',
onFinish: async (vals) => { onFinish: async (vals) => {
...@@ -73,7 +70,9 @@ function Type(props) { ...@@ -73,7 +70,9 @@ function Type(props) {
...vals, ...vals,
id: row.key, id: row.key,
parentId: row.parentKey, parentId: row.parentKey,
equipmentTypeName: vals.title,
}; };
delete params.title;
console.log(params); console.log(params);
let res = await doFetch({ let res = await doFetch({
url: urlParams.save, url: urlParams.save,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment