This commit is contained in:
zpc 2025-08-12 17:01:59 +08:00
parent 55703a3ad6
commit d299d89650
3 changed files with 23 additions and 8 deletions

View File

@ -1,11 +1,11 @@
# 开发环境配置
ENV = 'development'
VITE_APP_API_HOST = 'http://localhost:8888/'
VITE_APP_API_HOST = 'http://localhost:11082/'
# 开发环境
# VITE_APP_BASE_API = 'http://localhost:8888/'
VITE_APP_BASE_API = 'http://localhost:8888/'
# VITE_APP_BASE_API = 'http://49.233.115.141:11082/'
# 路由前缀
VITE_APP_ROUTER_PREFIX = '/'
@ -14,4 +14,4 @@ VITE_APP_ROUTER_PREFIX = '/'
VITE_APP_UPLOAD_URL = 'Common/UploadFile'
#socket API
VITE_APP_SOCKET_API = 'http://localhost:8888/msghub'
VITE_APP_SOCKET_API = 'http://localhost:11082/msghub'

View File

@ -1,10 +1,10 @@
# 生产环境配置
ENV = 'production'
VITE_APP_API_HOST = 'https://odf.zpc-xy.com/'
VITE_APP_API_HOST = 'http://49.233.115.141:11082/'
# 生产环境
VITE_APP_BASE_API = 'https://odf.zpc-xy.com/'
VITE_APP_BASE_API = 'http://49.233.115.141:11082/'
# 路由前缀
VITE_APP_ROUTER_PREFIX = '/'
@ -13,7 +13,7 @@ VITE_APP_ROUTER_PREFIX = '/'
VITE_APP_UPLOAD_URL = 'Common/UploadFile'
#socket API
VITE_APP_SOCKET_API = 'https://odf.zpc-xy.com/msghub'
VITE_APP_SOCKET_API = 'http://49.233.115.141:11082/msghub'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip

View File

@ -30,6 +30,9 @@
<el-form-item label="历史故障记录" prop="historyRemarks">
<el-input v-model="queryParams.historyRemarks" placeholder="请输入历史故障记录" />
</el-form-item>
<el-form-item label="光缆断信息" prop="opticalCableOffRemarks">
<el-input v-model="queryParams.opticalCableOffRemarks" placeholder="请输入光缆断信息" />
</el-form-item>
<el-form-item>
<el-button icon="search" type="primary" @click="handleQuery">{{ $t('btn.search') }}</el-button>
<el-button icon="refresh" @click="resetQuery">{{ $t('btn.reset') }}</el-button>
@ -65,12 +68,13 @@
<el-table-column prop="deptName" label="DeptName" align="center" :show-overflow-tooltip="true" v-if="columns.showColumn('deptName')" />
<el-table-column prop="rowNumber" label="行号1-6" align="center" v-if="columns.showColumn('rowNumber')" />
<el-table-column prop="portNumber" label="端口号1-12" align="center" v-if="columns.showColumn('portNumber')" />
<el-table-column prop="status" label="连接状态0正常1断开" align="center" v-if="columns.showColumn('status')">
<el-table-column prop="status" label="连接状态" align="center" v-if="columns.showColumn('status')">
<template #default="scope">
<dict-tag :options="options.odf_ports_status" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column prop="remarks" label="备注" align="center" :show-overflow-tooltip="true" v-if="columns.showColumn('remarks')" />
<el-table-column
prop="opticalAttenuation"
label="光衰值dB"
@ -83,6 +87,12 @@
align="center"
:show-overflow-tooltip="true"
v-if="columns.showColumn('historyRemarks')" />
<el-table-column
prop="opticalCableOffRemarks"
label="光缆断信息"
align="center"
:show-overflow-tooltip="true"
v-if="columns.showColumn('opticalCableOffRemarks')" />
<el-table-column prop="createdAt" label="创建时间" :show-overflow-tooltip="true" v-if="columns.showColumn('createdAt')" />
<el-table-column prop="updatedAt" label="修改时间" :show-overflow-tooltip="true" v-if="columns.showColumn('updatedAt')" />
<el-table-column label="操作" width="160">
@ -196,7 +206,11 @@
<el-input v-model="form.historyRemarks" placeholder="请输入历史故障记录" />
</el-form-item>
</el-col>
<el-col :lg="12">
<el-form-item label="光缆断信息" prop="remarks">
<el-input v-model="form.opticalCableOffRemarks" placeholder="光缆断信息" />
</el-form-item>
</el-col>
<el-col :lg="12">
<el-form-item label="创建时间" prop="createdAt">
<el-date-picker v-model="form.createdAt" type="datetime" placeholder="选择日期时间" value-format="YYYY-MM-DD HH:mm:ss">
@ -254,6 +268,7 @@ const columns = ref([
{ visible: false, align: 'center', type: '', prop: 'portNumber', label: '端口号' },
{ visible: true, align: 'center', type: 'dict', prop: 'status', label: '连接状态', dictType: 'odf_ports_status' },
{ visible: true, align: 'center', type: '', prop: 'remarks', label: '备注', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'opticalCableOffRemarks', label: '光缆断信息', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'opticalAttenuation', label: '光衰值dB', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'historyRemarks', label: '历史故障记录', showOverflowTooltip: true },
{ visible: false, align: 'center', type: '', prop: 'createdAt', label: '创建时间', showOverflowTooltip: true },