wzyyy 3 lat temu
rodzic
commit
cef7ac16bf
1 zmienionych plików z 18 dodań i 2 usunięć
  1. 18 2
      src/pages/link/Channel/Modbus/index.tsx

+ 18 - 2
src/pages/link/Channel/Modbus/index.tsx

@@ -264,7 +264,15 @@ const NewModbus = () => {
           style={{ padding: 0 }}
           style={{ padding: 0 }}
           disabled={record.state.value === 'enabled'}
           disabled={record.state.value === 'enabled'}
           popConfirm={{
           popConfirm={{
-            title: '确认删除',
+            title: (
+              <div
+                style={{
+                  width: 185,
+                }}
+              >
+                该点位已被设备绑定,删除后将清空与设备的绑定关系,确定要删除吗?
+              </div>
+            ),
             disabled: record.state.value === 'enabled',
             disabled: record.state.value === 'enabled',
             onConfirm: async () => {
             onConfirm: async () => {
               const resp: any = await service.deletePoint(record.id);
               const resp: any = await service.deletePoint(record.id);
@@ -461,7 +469,15 @@ const NewModbus = () => {
                             title: item.state.value === 'enabled' ? '请先禁用该通道,再删除。' : '',
                             title: item.state.value === 'enabled' ? '请先禁用该通道,再删除。' : '',
                           }}
                           }}
                           popConfirm={{
                           popConfirm={{
-                            title: '确认删除',
+                            title: (
+                              <div
+                                style={{
+                                  width: 190,
+                                }}
+                              >
+                                该通道已被设备绑定,删除后将清空与设备的绑定关系,确定要删除吗?
+                              </div>
+                            ),
                             disabled: item.state.value === 'enabled',
                             disabled: item.state.value === 'enabled',
                             onConfirm: async () => {
                             onConfirm: async () => {
                               deteleMaster(item.id);
                               deteleMaster(item.id);