da92e65e by renchao@pashanhoo.com

style:首页的修改完成

1 parent 71f5a58a
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 <div class="cardcontent-right d-center"> 42 <div class="cardcontent-right d-center">
43 <p> 43 <p>
44 <span>失败</span> 44 <span>失败</span>
45 <span class="bad">{{ sterrer }}</span> 45 <span class="bad pointer" @click="handleSthj">{{ sterrer }}</span>
46 </p> 46 </p>
47 <p> 47 <p>
48 <span>成功率</span> 48 <span>成功率</span>
...@@ -119,6 +119,14 @@ ...@@ -119,6 +119,14 @@
119 } 119 }
120 }); 120 });
121 }, 121 },
122 handleSthj () {
123 this.$router.push({
124 path: '/sthj/sbbwcx',
125 query: {
126 status: 2
127 }
128 })
129 }
122 }, 130 },
123 destroyed () { 131 destroyed () {
124 clearInterval(this.timer) 132 clearInterval(this.timer)
......
1 <!-- 1 <!--
2 * @Description :修改登簿日志弹窗 2 * @Description :修改登簿日志弹窗
3 * @Autor : miaofang 3 * @Autor : miaofang
4 * @LastEditTime: 2023-07-03 16:27:13 4 * @LastEditTime: 2023-07-04 13:08:21
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 修改登簿日志弹窗 --> 7 <!-- 修改登簿日志弹窗 -->
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
188 <JsonEditor class="editXML" :resultInfo="resultInfo" :key="key" /> 188 <JsonEditor class="editXML" :resultInfo="resultInfo" :key="key" />
189 </div> 189 </div>
190 <div class="JsonEditor" v-if="titleName == 'fhjg'"> 190 <div class="JsonEditor" v-if="titleName == 'fhjg'">
191 <JsonEditor class="editXML" :resultInfo="resultInfo" :key="key" /> 191 <JsonEditor class="editXML" :resultInfo="fhjg" :key="key" />
192 </div> 192 </div>
193 </div> 193 </div>
194 </div> 194 </div>
...@@ -215,6 +215,8 @@ ...@@ -215,6 +215,8 @@
215 return { 215 return {
216 key: 0, 216 key: 0,
217 title: '', 217 title: '',
218 // 省厅汇交
219 fhjg: '',
218 dialogVisible: false, 220 dialogVisible: false,
219 titleName: 'sjmx', 221 titleName: 'sjmx',
220 titleName2: 'drdbxd', 222 titleName2: 'drdbxd',
...@@ -311,12 +313,34 @@ ...@@ -311,12 +313,34 @@
311 * @author: renchao 313 * @author: renchao
312 */ 314 */
313 _getDetails (data) { 315 _getDetails (data) {
316 function showPattern (level) {
317 const resultMap = {
318 '0200': '上报成功',
319 '04001': 'xml格式错误',
320 '04002': 'AreaCode 节点缺失',
321 '04003': 'AreaCode 节点值为空',
322 '04004': 'xzTotallnfo 节点缺失',
323 '04005': 'Registerlnfo 节点缺失',
324 '04006': 'AccessInfo 节点缺失',
325 '04007': 'RegisterList 节点缺失',
326 '04008': 'Register 节点缺失',
327 '04009': 'AccessList 节点缺失',
328 '04010': 'Access 节点缺失',
329 '04011': '上报数与上报清单数量不一致'
330 };
331 for (let key in resultMap) {
332 if (level.includes(key)) {
333 return resultMap[key];
334 } else {
335 return level;
336 }
337 }
338 }
339
314 getDetail(data).then(res => { 340 getDetail(data).then(res => {
315 let { accessLog, registerInfo, accessInfo, accessList, registerList 341 let { accessLog, registerInfo, accessInfo, accessList, registerList
316 } = res.result 342 } = res.result
317 343 this.fhjg = showPattern(accessLog.RESPONSE)
318 console.log(res.result, 'res.resultres.resultres.result');
319
320 this.accessLog = accessLog 344 this.accessLog = accessLog
321 this.resultInfo = accessLog.LOGSXML 345 this.resultInfo = accessLog.LOGSXML
322 this.registerInfo = registerInfo 346 this.registerInfo = registerInfo
......
...@@ -196,6 +196,8 @@ ...@@ -196,6 +196,8 @@
196 }; 196 };
197 }, 197 },
198 mounted () { 198 mounted () {
199 this.form.hjjg = this.$route.query.status
200 this.featchData()
199 sendThis(this); 201 sendThis(this);
200 }, 202 },
201 methods: { 203 methods: {
......