4c178603 by 任超

style:上报报文查询

1 parent 17929302
...@@ -3,8 +3,6 @@ import business from '@/api/business' ...@@ -3,8 +3,6 @@ import business from '@/api/business'
3 let mixin = { 3 let mixin = {
4 data () { 4 data () {
5 return { 5 return {
6 xml: '',
7 message: '',
8 formData: { 6 formData: {
9 pageSize: 10 7 pageSize: 10
10 } 8 }
......
...@@ -46,29 +46,29 @@ export const asyncRoutes = [ ...@@ -46,29 +46,29 @@ export const asyncRoutes = [
46 } 46 }
47 ] 47 ]
48 }, 48 },
49 // 登簿日志 49 // 上报日志
50 { 50 {
51 path: '/registerLog', 51 path: '/reportLog',
52 component: Layout, 52 component: Layout,
53 children: [ 53 children: [
54 { 54 {
55 path: 'index', 55 path: 'index',
56 component: () => import('@/views/registerLog/index'), 56 component: () => import('@/views/reportLog/index'),
57 name: 'registerLog', 57 name: 'reportLog',
58 meta: { title: '登簿日志', icon: 'zhcx' } 58 meta: { title: '上报报文查询', icon: 'zsgl' }
59 } 59 }
60 ] 60 ]
61 }, 61 },
62 // 上报日志 62 // 登簿日志
63 { 63 {
64 path: '/reportLog', 64 path: '/registerLog',
65 component: Layout, 65 component: Layout,
66 children: [ 66 children: [
67 { 67 {
68 path: 'index', 68 path: 'index',
69 component: () => import('@/views/reportLog/index'), 69 component: () => import('@/views/registerLog/index'),
70 name: 'reportLog', 70 name: 'registerLog',
71 meta: { title: '上报日志', icon: 'zsgl' } 71 meta: { title: '登簿日志', icon: 'zhcx' }
72 } 72 }
73 ] 73 ]
74 }, 74 },
......
...@@ -177,6 +177,10 @@ div:focus { ...@@ -177,6 +177,10 @@ div:focus {
177 display: block; 177 display: block;
178 } 178 }
179 179
180 .marginbtm5 {
181 margin-bottom: 5px !important;
182 }
183
180 .clearfix { 184 .clearfix {
181 &:after { 185 &:after {
182 visibility: hidden; 186 visibility: hidden;
......
1 <template>
2 <!-- 错误日志 -->
3 <dialogBox ref="error" isReset saveButton="关闭" divider width="50%" @submitForm="handleResclose" multiple title="错误日志">
4 <div class="xmlMessage">
5 {{ errorData }}
6 </div>
7 </dialogBox>
8 </template>
9
10 <script>
11 export default {
12 props: {
13 errorData: {
14 type: String,
15 default: ''
16 }
17 },
18 data () {
19 return {
20 }
21 },
22 methods: {
23 handleResclose () {
24 this.$refs.error.isHide();
25 }
26 }
27 }
28 </script>
...\ No newline at end of file ...\ No newline at end of file
1 <template>
2 <!-- 预览 -->
3 <dialogBox ref="preview" :isReset="false" divider :isButton="false" multiple title="XML报文">
4 <div class="xmlMessage">
5 {{ content }}
6 </div>
7 <div class="preview-dialog-button">
8 <el-button id="copy_text" type="primary" plain @click="handleSubmit"
9 :data-clipboard-text="content">复制报文</el-button>
10 <el-button @click="handleclose">关闭</el-button>
11 </div>
12 </dialogBox>
13 </template>
14
15 <script>
16 import Clipboard from 'clipboard'
17 export default {
18 props: {
19 content: {
20 type: String,
21 default: ''
22 },
23 },
24 data () {
25 return {
26 }
27 },
28 methods: {
29 handleSubmit () {
30 var _this = this;
31 var clipboard = new Clipboard('#copy_text');
32 clipboard.on('success', e => {
33 // 释放内存
34 this.$message({
35 message: '复制成功!',
36 type: 'success'
37 })
38 clipboard.destroy()
39 _this.$refs.preview.isHide()
40 })
41 clipboard.on('error', e => {
42 // 不支持复制
43 this.$message({
44 message: '该浏览器不支持自动复制',
45 type: 'warning'
46 });
47 // 释放内存
48 clipboard.destroy()
49 })
50 },
51 handleclose () {
52 this.$refs.preview.isHide();
53 }
54 }
55 }
56 </script>
57 <style scoped lang="scss">
58 .preview-dialog-button {
59 text-align: center;
60 margin: 20px 0;
61 }
62 </style>
...\ No newline at end of file ...\ No newline at end of file
1 <template>
2 <!-- 重新发报 -->
3 <dialogBox ref="resend" saveButton="确定" width="500px" divider @submitForm="handleResclose" multiple title="提示">
4 <div class="confirmDialog">您确定重新发送报文吗?</div>
5 </dialogBox>
6 </template>
7
8 <script>
9 import journal from '@/api/journal.js'
10 export default {
11 props: {
12 msgid: {
13 type: String,
14 default: ''
15 }
16 },
17 data () {
18 return {
19 }
20 },
21 methods: {
22 async handleResclose () {
23 try {
24 let res = await journal.sendXmlForPlat(this.msgid)
25 if (res.code == 200) {
26 this.$message({
27 message: res.message,
28 type: 'success'
29 })
30 this.$parent.featchData();
31 this.$refs.resend.isHide()
32 }
33 } catch (error) {
34 this.$message({
35 showClose: true,
36 message: '服务器出错,请稍后重试',
37 type: 'error'
38 })
39 this.$refs.resend.isHide()
40 }
41 }
42 }
43 }
44 </script>
...\ No newline at end of file ...\ No newline at end of file
1 <template>
2 <!-- 相应日志 -->
3 <dialogBox ref="response" isReset saveButton="关闭" divider @submitForm="handleResclose" multiple title="相应日志">
4 <div class="xmlMessage">
5 {{ journalData }}
6 </div>
7 </dialogBox>
8 </template>
9
10 <script>
11 export default {
12 props: {
13 journalData: {
14 type: String,
15 default: ''
16 }
17 },
18 data () {
19 return {
20 }
21 },
22 methods: {
23 handleResclose () {
24 this.$refs.response.isHide();
25 }
26 }
27 }
28 </script>
...\ No newline at end of file ...\ No newline at end of file
1 <template>
2 <!-- 重新转换 -->
3 <dialogBox ref="resend" saveButton="确定" width="500px" divider @submitForm="handleResclose" multiple title="提示">
4 <div class="confirmDialog">您确定重新抽取业务转换报文吗?</div>
5 </dialogBox>
6 </template>
7
8 <script>
9 import journal from '@/api/journal.js'
10 export default {
11 props: {
12 msgid: {
13 type: String,
14 default: ''
15 }
16 },
17 data () {
18 return {
19 }
20 },
21 methods: {
22 async handleResclose () {
23 try {
24 let res = await journal.sendXmlForPlat(this.msgid)
25 if (res.code == 200) {
26 this.$message({
27 message: res.message,
28 type: 'success'
29 })
30 this.$parent.featchData();
31 this.$refs.resend.isHide()
32 }
33 } catch (error) {
34 this.$message({
35 showClose: true,
36 message: '服务器出错,请稍后重试',
37 type: 'error'
38 })
39 }
40 }
41 }
42 }
43 </script>
...\ No newline at end of file ...\ No newline at end of file