da92e65e by renchao@pashanhoo.com

style:首页的修改完成

1 parent 71f5a58a
......@@ -42,7 +42,7 @@
<div class="cardcontent-right d-center">
<p>
<span>失败</span>
<span class="bad">{{ sterrer }}</span>
<span class="bad pointer" @click="handleSthj">{{ sterrer }}</span>
</p>
<p>
<span>成功率</span>
......@@ -119,6 +119,14 @@
}
});
},
handleSthj () {
this.$router.push({
path: '/sthj/sbbwcx',
query: {
status: 2
}
})
}
},
destroyed () {
clearInterval(this.timer)
......
<!--
* @Description :修改登簿日志弹窗
* @Autor : miaofang
* @LastEditTime: 2023-07-03 16:27:13
* @LastEditTime: 2023-07-04 13:08:21
-->
<template>
<!-- 修改登簿日志弹窗 -->
......@@ -188,7 +188,7 @@
<JsonEditor class="editXML" :resultInfo="resultInfo" :key="key" />
</div>
<div class="JsonEditor" v-if="titleName == 'fhjg'">
<JsonEditor class="editXML" :resultInfo="resultInfo" :key="key" />
<JsonEditor class="editXML" :resultInfo="fhjg" :key="key" />
</div>
</div>
</div>
......@@ -215,6 +215,8 @@
return {
key: 0,
title: '',
// 省厅汇交
fhjg: '',
dialogVisible: false,
titleName: 'sjmx',
titleName2: 'drdbxd',
......@@ -311,12 +313,34 @@
* @author: renchao
*/
_getDetails (data) {
function showPattern (level) {
const resultMap = {
'0200': '上报成功',
'04001': 'xml格式错误',
'04002': 'AreaCode 节点缺失',
'04003': 'AreaCode 节点值为空',
'04004': 'xzTotallnfo 节点缺失',
'04005': 'Registerlnfo 节点缺失',
'04006': 'AccessInfo 节点缺失',
'04007': 'RegisterList 节点缺失',
'04008': 'Register 节点缺失',
'04009': 'AccessList 节点缺失',
'04010': 'Access 节点缺失',
'04011': '上报数与上报清单数量不一致'
};
for (let key in resultMap) {
if (level.includes(key)) {
return resultMap[key];
} else {
return level;
}
}
}
getDetail(data).then(res => {
let { accessLog, registerInfo, accessInfo, accessList, registerList
} = res.result
console.log(res.result, 'res.resultres.resultres.result');
this.fhjg = showPattern(accessLog.RESPONSE)
this.accessLog = accessLog
this.resultInfo = accessLog.LOGSXML
this.registerInfo = registerInfo
......
......@@ -196,6 +196,8 @@
};
},
mounted () {
this.form.hjjg = this.$route.query.status
this.featchData()
sendThis(this);
},
methods: {
......