定值单识别展示

This commit is contained in:
zzyuan 2025-10-29 13:16:07 +08:00
parent e3f954f275
commit 3427938124
2 changed files with 68 additions and 50 deletions

View File

@ -86,7 +86,7 @@ export function editProdectionApi(data) {
export function getProdectionByIdApi(data) { export function getProdectionByIdApi(data) {
return request({ return request({
url: '/protection/protection_manage/protectionOrder/listById', url: '/protection/protection_manage/protectionOrder/detail',
method: 'get', method: 'get',
headers: { headers: {
//"merchant-id":"378915229716713472", //"merchant-id":"378915229716713472",

View File

@ -113,26 +113,55 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 识别解析结果 --> <!-- 识别解析结果 -->
<el-dialog :title="titleView+''" :visible.sync="openView" width="700px" append-to-body> <el-dialog :title="titleView+''" :visible.sync="openView" width="800px" append-to-body>
<el-tabs v-model="activeName" @tab-click="handleTabClick"> <table style="width: 100%;" v-if="headList.length>0">
<!-- 基础设置 --> <tr v-if="headList[0].attributeKey=='通知书名称'">
<el-tab-pane label="" name="baseSetting" style="height: 400px;"> <th colspan="5" style="height: 40px;">{{ headList[0].attributeValue }}</th>
<el-form label-width="150px"> </tr>
<table> <tr>
<tr> <td colspan="2">{{headList[1].attributeKey}}: {{ headList[1].attributeValue }}</td>
<td colspan="5">阜阳电网继电保护装置整定值通知书</td> <td>{{headList[2].attributeKey}}: {{ headList[2].attributeValue }}</td>
</tr> <td colspan="2">{{headList[3].attributeKey}}: {{ headList[3].attributeValue }}</td>
<tr> </tr>
<td>不平衡保护CT一次值</td> <tr>
<td>定值区号</td> <td>{{headList[4].attributeKey}}</td>
<td>被保护设备</td> <td>{{headList[5].attributeKey}}</td>
<td>不平衡保护CT二次值</td> <td>{{headList[6].attributeKey}}</td>
<td>PT一次值千伏</td> <td>{{headList[7].attributeKey}}</td>
</tr> <td>{{headList[8].attributeKey}}</td>
</table> </tr>
</el-form> <tr>
</el-tab-pane> <td>{{headList[4].attributeValue}}</td>
</el-tabs> <td>{{headList[5].attributeValue}}</td>
<td>{{headList[6].attributeValue}}</td>
<td>{{headList[7].attributeValue}}</td>
<td>{{headList[8].attributeValue}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="bhdzList.length>0">
<tr>
<th colspan="5" style="height: 40px;">保护定值</th>
</tr>
<tr v-for="(item,index) in bhdzList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="kzzList.length>0">
<tr>
<th colspan="5" style="height: 40px;">控制字</th>
</tr>
<tr v-for="(item,index) in kzzList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
<table style="width: 100%;" v-if="sbcsList.length>0">
<tr>
<th colspan="5" style="height: 40px;">设备参数</th>
</tr>
<tr v-for="(item,index) in sbcsList" :key="index">
<td v-for="(subText,subIndex) in item.split('@')" :key="subIndex">{{subText}}</td>
</tr>
</table>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -183,39 +212,22 @@
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
keyWord:null, keyWord:null,
}, },
activeName:"baseSetting",
deviceData:{},
// //
baseForm: { baseForm: {
protectionId:"" protectionId:""
}, },
//
baseFormRules: {
substationName: [
{ required: true, message: "变电站名称不能为空", trigger: "blur" }
]
},
fileList: [],// fileList: [],//
checkUrlList: [],// checkUrlList: [],//
checkUrlNameList: [],// checkUrlNameList: [],//
dialogVisible:false,// dialogVisible:false,//
dialogImageUrl:"",// dialogImageUrl:"",//
// //
upload: { headList:[],
// bhdzList:[],
open: false, kzzList:[],
// sbcsList:[],
title: '',
//
isUploading: false,
//
updateSupport: 0,
//
headers: { Authorization: 'Bearer ' + getToken() },
//
url: process.env.VUE_APP_BASE_API + '/system/user/importData',
},
}; };
}, },
mounted(){ mounted(){
@ -287,6 +299,7 @@
// this.checkUrlList=[this.baseForm.imgUrl] // this.checkUrlList=[this.baseForm.imgUrl]
// this.checkUrlNameList=[this.baseForm.imgName] // this.checkUrlNameList=[this.baseForm.imgName]
}, },
//
handleView(row) { handleView(row) {
this.reset(); this.reset();
this.openView = true; this.openView = true;
@ -294,12 +307,13 @@
this.titleView = "查看"; this.titleView = "查看";
getProdectionByIdApi({protectionId:obj.protectionId}).then(response => { getProdectionByIdApi({protectionId:obj.protectionId}).then(response => {
console.log("getProdectionByIdApi",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() { submitForm: function() {
console.log("this.fileList",this.fileList); console.log("this.fileList",this.fileList);
console.log("this.checkUrlList",this.checkUrlList); console.log("this.checkUrlList",this.checkUrlList);
@ -336,6 +350,7 @@
}); });
}).catch(() => {}); }).catch(() => {});
}, },
//
formatDate(date) { formatDate(date) {
// YYYY-MM-DD // YYYY-MM-DD
const year = date.getFullYear(); const year = date.getFullYear();
@ -343,7 +358,6 @@
const day = String(date.getDate()).padStart(2, '0'); const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`; return `${year}-${month}-${day}`;
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.protectionIds = selection.map(item => item.protectionId) this.protectionIds = selection.map(item => item.protectionId)
@ -426,5 +440,9 @@
text-align: center; vertical-align: middle; text-align: center; vertical-align: middle;
border-collapse: collapse; /* 合并表格边框 */ border-collapse: collapse; /* 合并表格边框 */
border: 1px solid black; /* 设置边框颜色和宽度 */ border: 1px solid black; /* 设置边框颜色和宽度 */
padding: 4px;
} }
</style> </style>