Commit 76fe826b authored by 皮倩雯's avatar 皮倩雯

fix: '组态平台删除bug'

parent 9e152b90
Pipeline #50943 passed with stages
in 8 minutes 12 seconds
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* @Description: * @Description:
* @Author: leizhe * @Author: leizhe
* @Date: 2022-04-06 11:38:46 * @Date: 2022-04-06 11:38:46
* @LastEditTime: 2022-05-23 10:22:19 * @LastEditTime: 2022-05-23 10:49:46
* @LastEditors: leizhe * @LastEditors: leizhe
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
...@@ -187,7 +187,6 @@ const DrawBoardManage = () => { ...@@ -187,7 +187,6 @@ const DrawBoardManage = () => {
}); });
} }
setTotal(len); setTotal(len);
console.log(bb);
setTableData(bb); setTableData(bb);
setSelectGroup(bb); setSelectGroup(bb);
} else { } else {
...@@ -205,7 +204,6 @@ const DrawBoardManage = () => { ...@@ -205,7 +204,6 @@ const DrawBoardManage = () => {
} }
}); });
} }
console.log(aa);
setTotal(len); setTotal(len);
setTableData(aa); setTableData(aa);
setSelectGroup(aa); setSelectGroup(aa);
...@@ -269,7 +267,6 @@ const DrawBoardManage = () => { ...@@ -269,7 +267,6 @@ const DrawBoardManage = () => {
{ {
title: '模型类型', title: '模型类型',
align: 'center', align: 'center',
dataIndex: 'ModelTypeName', dataIndex: 'ModelTypeName',
key: 'ModelTypeName', key: 'ModelTypeName',
render: (text, record) => { render: (text, record) => {
...@@ -289,7 +286,6 @@ const DrawBoardManage = () => { ...@@ -289,7 +286,6 @@ const DrawBoardManage = () => {
{ {
title: '模型名称', title: '模型名称',
align: 'center', align: 'center',
dataIndex: 'ModelName', dataIndex: 'ModelName',
key: 'ModelName', key: 'ModelName',
render: (text, record) => { render: (text, record) => {
...@@ -304,7 +300,6 @@ const DrawBoardManage = () => { ...@@ -304,7 +300,6 @@ const DrawBoardManage = () => {
{ {
title: '图像', title: '图像',
align: 'center', align: 'center',
dataIndex: 'Path', dataIndex: 'Path',
key: 'Path', key: 'Path',
render: (text, record) => { render: (text, record) => {
...@@ -594,7 +589,8 @@ const DrawBoardManage = () => { ...@@ -594,7 +589,8 @@ const DrawBoardManage = () => {
}; };
const deleteModalData = () => { const deleteModalData = () => {
DelModelType({ id: changeObj.ID }).then(res => { console.log(changeObj);
DelModelType({ id: changeObj.ID, modelTypeName: changeObj.name }).then(res => {
if (res.code === 0) { if (res.code === 0) {
setDeleteModalVisible(false); setDeleteModalVisible(false);
notification.success({ notification.success({
......
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