Commit 02e5b058870c9d5a55de0c217eea7e3887060949

Authored by ww
1 parent d7c4e079

fix: 优化删除来自边端设备提示

... ... @@ -124,6 +124,7 @@ export interface ProfileRecord {
124 124 image: string;
125 125 type: string;
126 126 default: boolean;
  127 + isEdge?: boolean;
127 128
128 129 checked?: boolean;
129 130 }
... ...
... ... @@ -49,7 +49,7 @@
49 49 FINISH = '完成',
50 50 }
51 51
52   - const currentStep = ref<StepsEnum>(StepsEnum.BASIC_INFO);
  52 + const currentStep = ref<StepsEnum>(StepsEnum.CREATE_ENTITY);
53 53
54 54 const goNextStep = () => {
55 55 if (unref(currentStep) >= StepsEnum.FINISH) return;
... ...
... ... @@ -199,7 +199,7 @@
199 199 auth: ProductPermission.DELETE,
200 200 icon: 'ant-design:delete-outlined',
201 201 popconfirm: {
202   - title: '是否确认删除操作?',
  202 + title: !!item.isEdge ? '此设备来自边端,请谨慎删除' : '是否确认删除',
203 203 onConfirm: handleDelete.bind(null, [item.id]),
204 204 disabled: item.default || item.name == 'default',
205 205 },
... ...
... ... @@ -79,7 +79,7 @@
79 79 icon: 'ant-design:delete-outlined',
80 80 color: 'error',
81 81 popConfirm: {
82   - title: '是否确认删除',
  82 + title: !!record.isEdge ? '此设备来自边端,请谨慎删除' : '是否确认删除',
83 83 confirm: handleDeleteOrBatchDelete.bind(null, record),
84 84 },
85 85 ifShow: () => {
... ...