From 34279381244917ef2f7f85b92a5129096fb35ed0 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 29 Oct 2025 13:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E5=80=BC=E5=8D=95=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/protection/index.js | 2 +- .../protection/protectionManage/index.vue | 116 ++++++++++-------- 2 files changed, 68 insertions(+), 50 deletions(-) diff --git a/src/api/protection/index.js b/src/api/protection/index.js index 044ab8b..2ec9a3b 100644 --- a/src/api/protection/index.js +++ b/src/api/protection/index.js @@ -86,7 +86,7 @@ export function editProdectionApi(data) { export function getProdectionByIdApi(data) { return request({ - url: '/protection/protection_manage/protectionOrder/listById', + url: '/protection/protection_manage/protectionOrder/detail', method: 'get', headers: { //"merchant-id":"378915229716713472", diff --git a/src/views/protection/protectionManage/index.vue b/src/views/protection/protectionManage/index.vue index fc36d87..e19e33f 100644 --- a/src/views/protection/protectionManage/index.vue +++ b/src/views/protection/protectionManage/index.vue @@ -113,26 +113,55 @@ - - - - - - - - - - - - - - - - -
阜阳电网继电保护装置整定值通知书
不平衡保护CT一次值(安)定值区号被保护设备不平衡保护CT二次值(安)PT一次值(千伏)
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + +
{{ headList[0].attributeValue }}
{{headList[1].attributeKey}}: {{ headList[1].attributeValue }}{{headList[2].attributeKey}}: {{ headList[2].attributeValue }}{{headList[3].attributeKey}}: {{ headList[3].attributeValue }}
{{headList[4].attributeKey}}{{headList[5].attributeKey}}{{headList[6].attributeKey}}{{headList[7].attributeKey}}{{headList[8].attributeKey}}
{{headList[4].attributeValue}}{{headList[5].attributeValue}}{{headList[6].attributeValue}}{{headList[7].attributeValue}}{{headList[8].attributeValue}}
+ + + + + + + +
保护定值
{{subText}}
+ + + + + + + +
控制字
{{subText}}
+ + + + + + + +
设备参数
{{subText}}
@@ -183,39 +212,22 @@ pageNum: 1, pageSize: 10, keyWord:null, - }, - activeName:"baseSetting", - deviceData:{}, + }, // 表单参数 baseForm: { protectionId:"" }, - // 表单校验 - baseFormRules: { - substationName: [ - { required: true, message: "变电站名称不能为空", trigger: "blur" } - ] - }, fileList: [],//图片 checkUrlList: [],//图片 checkUrlNameList: [],//图片 dialogVisible:false,//图片弹窗 dialogImageUrl:"",//图片弹窗 - // 用户导入参数 - upload: { - // 是否显示弹出层(用户导入) - open: false, - // 弹出层标题(用户导入) - title: '', - // 是否禁用上传 - isUploading: false, - // 是否更新已经存在的用户数据 - updateSupport: 0, - // 设置上传的请求头部 - headers: { Authorization: 'Bearer ' + getToken() }, - // 上传的地址 - url: process.env.VUE_APP_BASE_API + '/system/user/importData', - }, + //解析结果弹窗 + headList:[], + bhdzList:[], + kzzList:[], + sbcsList:[], + }; }, mounted(){ @@ -287,6 +299,7 @@ // this.checkUrlList=[this.baseForm.imgUrl] // this.checkUrlNameList=[this.baseForm.imgName] }, + //识别结果 handleView(row) { this.reset(); this.openView = true; @@ -294,12 +307,13 @@ this.titleView = "查看"; getProdectionByIdApi({protectionId:obj.protectionId}).then(response => { console.log("getProdectionByIdApi",response); + this.headList = response.head||[]; + this.bhdzList = response.bhdz||[]; + this.kzzList = response.kzz||[]; + this.sbcsList = response.sbcs||[]; }); }, - handleTabClick(tab, event) { - console.log(tab, event); - }, - /** 提交按钮 */ + /** 提交识别按钮 */ submitForm: function() { console.log("this.fileList",this.fileList); console.log("this.checkUrlList",this.checkUrlList); @@ -336,6 +350,7 @@ }); }).catch(() => {}); }, + //日期 formatDate(date) { // 格式化为 YYYY-MM-DD const year = date.getFullYear(); @@ -343,7 +358,6 @@ const day = String(date.getDate()).padStart(2, '0'); return `${year}-${month}-${day}`; }, - // 多选框选中数据 handleSelectionChange(selection) { this.protectionIds = selection.map(item => item.protectionId) @@ -426,5 +440,9 @@ text-align: center; vertical-align: middle; border-collapse: collapse; /* 合并表格边框 */ border: 1px solid black; /* 设置边框颜色和宽度 */ + padding: 4px; } + + +