fix: 将“电路”统一更正为“空开”
This commit is contained in:
+4
-4
@@ -202,7 +202,7 @@ const contextmenuOptions = computed<DropdownOption[]>(() => [
|
|||||||
if (!lowerDevice) return;
|
if (!lowerDevice) return;
|
||||||
window.$dialog.warning({
|
window.$dialog.warning({
|
||||||
title: '确认解除关联吗?',
|
title: '确认解除关联吗?',
|
||||||
content: `将解除【电路${circuitIndex + 1}】与【${lowerDevice.name}】的关联关系。`,
|
content: `将解除【空开${circuitIndex + 1}】与【${lowerDevice.name}】的关联关系。`,
|
||||||
style: { width: '600px' },
|
style: { width: '600px' },
|
||||||
contentStyle: { height: '60px' },
|
contentStyle: { height: '60px' },
|
||||||
negativeText: '取消',
|
negativeText: '取消',
|
||||||
@@ -299,7 +299,7 @@ const { mutate: unlinkDevice } = useMutation({
|
|||||||
<NCard v-if="showCard" hoverable size="small">
|
<NCard v-if="showCard" hoverable size="small">
|
||||||
<template #header>
|
<template #header>
|
||||||
<NFlex align="center">
|
<NFlex align="center">
|
||||||
<span>电路状态</span>
|
<span>空开状态</span>
|
||||||
<NPopconfirm :positive-text="'确认'" :negative-text="'取消'" @positive-click="() => reboot()">
|
<NPopconfirm :positive-text="'确认'" :negative-text="'取消'" @positive-click="() => reboot()">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<NButton secondary size="small" :loading="rebooting">重合闸</NButton>
|
<NButton secondary size="small" :loading="rebooting">重合闸</NButton>
|
||||||
@@ -324,7 +324,7 @@ const { mutate: unlinkDevice } = useMutation({
|
|||||||
<span>{{ getCircuitStatusText(circuit) }}</span>
|
<span>{{ getCircuitStatusText(circuit) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</NTag>
|
</NTag>
|
||||||
<span>电路{{ circuitIndex + 1 }}</span>
|
<span>空开{{ circuitIndex + 1 }}</span>
|
||||||
</NFlex>
|
</NFlex>
|
||||||
<NFlex justify="end" align="center">
|
<NFlex justify="end" align="center">
|
||||||
<NPopconfirm :positive-text="'确认'" :negative-text="'取消'" @positive-click="() => turnStatus({ circuitIndex: circuitIndex, newStatus: circuit.status !== 1 })">
|
<NPopconfirm :positive-text="'确认'" :negative-text="'取消'" @positive-click="() => turnStatus({ circuitIndex: circuitIndex, newStatus: circuit.status !== 1 })">
|
||||||
@@ -332,7 +332,7 @@ const { mutate: unlinkDevice } = useMutation({
|
|||||||
<NSwitch size="small" :value="circuit.status === 1" :loading="turning" />
|
<NSwitch size="small" :value="circuit.status === 1" :loading="turning" />
|
||||||
</template>
|
</template>
|
||||||
<template #default>
|
<template #default>
|
||||||
<span>确定要{{ circuit.status === 1 ? '关闭' : '开启' }}电路{{ circuitIndex + 1 }}吗?</span>
|
<span>确定要{{ circuit.status === 1 ? '关闭' : '开启' }}空开{{ circuitIndex + 1 }}吗?</span>
|
||||||
</template>
|
</template>
|
||||||
</NPopconfirm>
|
</NPopconfirm>
|
||||||
</NFlex>
|
</NFlex>
|
||||||
|
|||||||
+2
-2
@@ -60,7 +60,7 @@ const { mutate: linkPortToDevice, isPending: linking } = useMutation({
|
|||||||
const upperDeviceDbId = ndmDevice.value.id;
|
const upperDeviceDbId = ndmDevice.value.id;
|
||||||
if (!upperDeviceDbId) throw new Error('本设备没有ID');
|
if (!upperDeviceDbId) throw new Error('本设备没有ID');
|
||||||
|
|
||||||
if (circuitIndex.value === undefined) throw new Error('该电路不存在');
|
if (circuitIndex.value === undefined) throw new Error('该空开不存在');
|
||||||
|
|
||||||
if (!lowerDevice.value) throw new Error('请选择要关联的设备');
|
if (!lowerDevice.value) throw new Error('请选择要关联的设备');
|
||||||
const lowerDeviceType = tryGetDeviceType(lowerDevice.value?.deviceType);
|
const lowerDeviceType = tryGetDeviceType(lowerDevice.value?.deviceType);
|
||||||
@@ -195,7 +195,7 @@ const onCancel = () => {
|
|||||||
<template #header>
|
<template #header>
|
||||||
<span>{{ ndmDevice.name }}</span>
|
<span>{{ ndmDevice.name }}</span>
|
||||||
<span> - </span>
|
<span> - </span>
|
||||||
<span>电路{{ circuitIndex ? circuitIndex + 1 : '-' }}</span>
|
<span>空开{{ circuitIndex ? circuitIndex + 1 : '-' }}</span>
|
||||||
<span> - </span>
|
<span> - </span>
|
||||||
<span>关联设备</span>
|
<span>关联设备</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+2
-2
@@ -31,7 +31,7 @@ const { ndmDevice, station } = toRefs(props);
|
|||||||
const showDetailModal = ref(false);
|
const showDetailModal = ref(false);
|
||||||
|
|
||||||
const detailTableColumns: DataTableColumns<SecurityBoxCircuitRowData> = [
|
const detailTableColumns: DataTableColumns<SecurityBoxCircuitRowData> = [
|
||||||
{ title: '电路序号', key: 'number' },
|
{ title: '空开序号', key: 'number' },
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
@@ -98,7 +98,7 @@ const tableColumns: DataTableColumns<SecurityBoxRuntimeRowData> = [
|
|||||||
},
|
},
|
||||||
// { title: '开关状态', key: 'switches' },
|
// { title: '开关状态', key: 'switches' },
|
||||||
{
|
{
|
||||||
title: '电路状态',
|
title: '空开状态',
|
||||||
key: 'circuits',
|
key: 'circuits',
|
||||||
render(rowData) {
|
render(rowData) {
|
||||||
const { info } = rowData.diagInfo;
|
const { info } = rowData.diagInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user