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

fix: '组态平台删除bug'

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