所在节点改成所在站点

This commit is contained in:
Leo_Ding 2025-11-03 11:09:14 +08:00
parent eec6e9b89b
commit aaafe1afbb
10 changed files with 104 additions and 160 deletions

View File

@ -183,14 +183,6 @@ const columns = [
align: 'center', align: 'center',
width: 200, width: 200,
}, },
{
title: '所在节点',
dataIndex: 'currentNode',
key: 'currentNode',
align: 'center',
width: 120,
},
{ {
title: '档案号', title: '档案号',
dataIndex: 'fileNumber', dataIndex: 'fileNumber',

View File

@ -3,19 +3,6 @@
<template #default="{ gutter, colSpan }"> <template #default="{ gutter, colSpan }">
<a-form :model="searchFormData" layout="inline" labelAlign="left"> <a-form :model="searchFormData" layout="inline" labelAlign="left">
<a-row :gutter="[24, 24]"> <a-row :gutter="[24, 24]">
<!-- 所在区域 -->
<a-col :span="12">
<a-form-item label="所在节点" name="currentNode">
<a-tree-select v-model:value="value" show-search style="width: 100%"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
allow-clear tree-default-expand-all :tree-data="treeData" tree-node-filter-prop="label">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</a-form-item>
</a-col>
<!-- 姓名 --> <!-- 姓名 -->
<a-col :span="8"> <a-col :span="8">
<a-form-item label="姓名" name="name"> <a-form-item label="姓名" name="name">
@ -175,14 +162,6 @@ const columns = [
align: 'center', align: 'center',
width: 200, width: 200,
}, },
{
title: '所在节点',
dataIndex: 'currentNode',
key: 'currentNode',
align: 'center',
width: 120,
},
{ {
title: '档案号', title: '档案号',
dataIndex: 'fileNumber', dataIndex: 'fileNumber',

View File

@ -4,15 +4,8 @@
<a-form :model="searchFormData" labelAlign="left"> <a-form :model="searchFormData" labelAlign="left">
<a-row :gutter="12"> <a-row :gutter="12">
<a-col :span="8"> <a-col :span="8">
<a-form-item label="所在节点" name="currentNode"> <a-form-item label="所在站点" name="stationId">
<a-tree-select v-model:value="value" show-search style="width: 100%" <ServiceStation v-model:value="searchFormData.stationId" />
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
allow-clear tree-default-expand-all :tree-data="treeData" tree-node-filter-prop="label">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- 所在区域 --> <!-- 所在区域 -->
@ -138,6 +131,7 @@ import detail from '../serverList/components/detail.vue'
import { useDicsStore } from '@/store' import { useDicsStore } from '@/store'
import AreaCascader from '@/components/AreaCascader/index.vue' import AreaCascader from '@/components/AreaCascader/index.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ServiceStation from '@/components/ServiceStation/index.vue'
defineOptions({ defineOptions({
name: 'serverList', name: 'serverList',
}) })
@ -360,9 +354,9 @@ const columns = [
width: 160, width: 160,
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -5,15 +5,8 @@
<a-row :gutter="[24, 24]"> <a-row :gutter="[24, 24]">
<!-- 所在区域 --> <!-- 所在区域 -->
<a-col :span="8"> <a-col :span="8">
<a-form-item label="所在节点" name="currentNode"> <a-form-item label="所在站点" name="stationId">
<a-tree-select v-model:value="value" show-search style="width: 100%" <ServiceStation v-model:value="searchFormData.stationId" />
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
allow-clear tree-default-expand-all :tree-data="treeData" tree-node-filter-prop="label">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- 所在区域 --> <!-- 所在区域 -->
@ -93,6 +86,7 @@ import EditDialog from './components/EditDialog.vue'
import { useDicsStore } from '@/store' import { useDicsStore } from '@/store'
import AreaCascader from '@/components/AreaCascader/index.vue' import AreaCascader from '@/components/AreaCascader/index.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ServiceStation from '@/components/ServiceStation/index.vue'
defineOptions({ defineOptions({
name: 'allocation', name: 'allocation',
}) })
@ -188,9 +182,9 @@ const columns = [
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -46,15 +46,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="所在节点" name="currentNode"> <a-form-item label="所在站点" name="stationId">
<a-tree-select v-model:value="value" show-search style="width: 100%" <ServiceStation v-model:value="searchFormData.stationId" />
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
allow-clear tree-default-expand-all :tree-data="treeData" tree-node-filter-prop="label">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -134,6 +127,7 @@ import EditDialog from './components/EditDialog.vue'
import { useDicsStore } from '@/store' import { useDicsStore } from '@/store'
import AreaCascader from '@/components/AreaCascader/index.vue' import AreaCascader from '@/components/AreaCascader/index.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ServiceStation from '@/components/ServiceStation/index.vue'
defineOptions({ defineOptions({
name: 'allocation', name: 'allocation',
}) })
@ -213,9 +207,9 @@ const columns = [
width: 200, width: 200,
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -4,8 +4,8 @@
<a-form :model="searchFormData" labelAlign="left"> <a-form :model="searchFormData" labelAlign="left">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="8" v-if="platForm !== 'yunying'"> <a-col :span="8" v-if="platForm !== 'yunying'">
<a-form-item label="所在节点" name="serviceNodeIds"> <a-form-item label="所在站点" name="stationId">
<node-tree v-model:value="searchFormData.serviceNodeIds" /> <ServiceStation v-model:value="searchFormData.stationId" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- 所在区域 --> <!-- 所在区域 -->
@ -380,6 +380,7 @@ import dayjs from 'dayjs'
import {DownOutlined} from '@ant-design/icons-vue' import {DownOutlined} from '@ant-design/icons-vue'
import storage from '@/utils/storage' import storage from '@/utils/storage'
import TransferOut from './components/TransferOut.vue' import TransferOut from './components/TransferOut.vue'
import ServiceStation from '@/components/ServiceStation/index.vue'
defineOptions({ defineOptions({
name: 'serverList', name: 'serverList',
}) })
@ -574,9 +575,9 @@ const columns = [
width: 160, width: 160,
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -190,9 +190,9 @@ const columns = [
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -5,15 +5,8 @@
<a-row :gutter="[24, 24]"> <a-row :gutter="[24, 24]">
<!-- 所在区域 --> <!-- 所在区域 -->
<a-col :span="12"> <a-col :span="12">
<a-form-item label="所在节点" name="currentNode"> <a-form-item label="所在站点" name="stationId">
<a-tree-select v-model:value="value" show-search style="width: 100%" <ServiceStation v-model:value="searchFormData.stationId" />
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select"
allow-clear tree-default-expand-all :tree-data="treeData" tree-node-filter-prop="label">
<template #title="{ value: val, label }">
<b v-if="val === 'parent 1-1'" style="color: #08c">sss</b>
<template v-else>{{ label }}</template>
</template>
</a-tree-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- 姓名 --> <!-- 姓名 -->
@ -177,9 +170,9 @@ const columns = [
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },

View File

@ -60,11 +60,8 @@
</a-col> </a-col>
<a-col v-bind="colSpan"> <a-col v-bind="colSpan">
<a-form-item label="所在节点" name="node"> <a-form-item label="所在站点" name="stationId">
<a-select v-model:value="searchFormData.node" placeholder="请选择所在节点"> <ServiceStation v-model:value="searchFormData.stationId" />
<a-select-option value="node1">节点1</a-select-option>
<a-select-option value="node2">节点2</a-select-option>
</a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -249,7 +246,7 @@ import { useI18n } from 'vue-i18n'
import storage from '@/utils/storage' import storage from '@/utils/storage'
import AreaCascader from '@/components/AreaCascader/index.vue' import AreaCascader from '@/components/AreaCascader/index.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import ServiceStation from '@/components/ServiceStation/index.vue'
defineOptions({ defineOptions({
name: 'menu', name: 'menu',
}) })

View File

@ -547,9 +547,9 @@ const columns = [
width: 160, width: 160,
}, },
{ {
title: '所在点', title: '所在点',
dataIndex: 'currentNode', dataIndex: 'stationName',
key: 'currentNode', key: 'stationName',
align: 'center', align: 'center',
width: 120, width: 120,
}, },