Commit 557da31f authored by TZW's avatar TZW

bug

parent d8a8d59b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @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: 2023-01-31 14:49:20 * @Last Modified time: 2023-01-31 15:25:02
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -546,9 +546,10 @@ function Model(props) { ...@@ -546,9 +546,10 @@ function Model(props) {
<a <a
onClick={async () => { onClick={async () => {
let res = await doFetch({ let res = await doFetch({
url: '/asset/equipmentLog/checkResumeType', url: '/asset/equipmentLog/getAllResumeType',
params: {}, params: { equipmentId: row?.id },
}); });
console.log(res);
setDrawer((s) => ({ setDrawer((s) => ({
...s, ...s,
visible: true, visible: true,
...@@ -571,14 +572,14 @@ function Model(props) { ...@@ -571,14 +572,14 @@ function Model(props) {
), ),
key: '1', key: '1',
}, },
{ // {
label: <a>关联备件(暂缓)</a>, // label: <a>关联备件(暂缓)</a>,
key: '2', // key: '2',
}, // },
{ // {
label: <a>寿命件台账(暂缓)</a>, // label: <a>寿命件台账(暂缓)</a>,
key: '3', // key: '3',
}, // },
]} ]}
/> />
); );
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-31 15:01:41 * @Last Modified time: 2023-01-31 15:14:34
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -606,7 +606,11 @@ function Failure(props) { ...@@ -606,7 +606,11 @@ function Failure(props) {
} }
const menu = <Menu items={menulist} />; const menu = <Menu items={menulist} />;
return ( return row?.status == '5' ? (
<Button size="small" disabled>
更多
</Button>
) : (
<Dropdown <Dropdown
overlay={menu} overlay={menu}
trigger={['click']} trigger={['click']}
......
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