Commit 8521482b authored by TZW's avatar TZW

11141614

parent cede7f9c
......@@ -11,8 +11,8 @@ import { createElement } from 'react';
import routes from '../config/authRoutes';
const { LinkOutlined } = Ant4Icons;
const isDev = process.env.NODE_ENV === 'development';
// const isDev = false
// const isDev = process.env.NODE_ENV === 'development';
const isDev = true;
console.log(isDev);
const loginPath = '/user/login';
......
/*
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-10 09:39:56
/* 设备台账
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-14 15:52:12
*/
import * as React from 'react';
......@@ -142,4 +142,4 @@ function Account(props) {
);
}
export default Account;
\ No newline at end of file
export default Account;
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @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';
......@@ -25,7 +25,7 @@ function Type(props) {
save: '/asset/equipmentType/save',
remove: '/asset/equipmentType/deleteById',
list: '/asset/equipmentType/queryTreeList',
detail: '/asset/equipmentSupplier/query/detail',
detail: '/asset/equipmentType/queryById',
};
const detail = (text, row, _, action) => {
......@@ -60,11 +60,8 @@ function Type(props) {
setDrawer((s) => ({
...s,
visible: true,
detailpath: null,
item: {
title: row.title,
remark: row.remark,
},
detailpath: urlParams.detail,
params: { id: row.key },
title: '编辑',
val: 'edit',
onFinish: async (vals) => {
......@@ -73,7 +70,9 @@ function Type(props) {
...vals,
id: row.key,
parentId: row.parentKey,
equipmentTypeName: vals.title,
};
delete params.title;
console.log(params);
let res = await doFetch({
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