推送功能
Showing
3 changed files
with
39 additions
and
11 deletions
... | @@ -249,5 +249,13 @@ export function pushSjsbRecord (data) { | ... | @@ -249,5 +249,13 @@ export function pushSjsbRecord (data) { |
249 | }) | 249 | }) |
250 | } | 250 | } |
251 | 251 | ||
252 | // 数据上报推送 | ||
253 | export function detail (bsm) { | ||
254 | return request({ | ||
255 | url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/detail?bsm=' + bsm, | ||
256 | method: 'get' | ||
257 | }) | ||
258 | } | ||
259 | |||
252 | 260 | ||
253 | 261 | ... | ... |
... | @@ -25,11 +25,11 @@ class data extends filter { | ... | @@ -25,11 +25,11 @@ class data extends filter { |
25 | { | 25 | { |
26 | prop: "ywh", | 26 | prop: "ywh", |
27 | label: "业务号", | 27 | label: "业务号", |
28 | width: '110', | 28 | // width: '110', |
29 | }, | 29 | }, |
30 | { | 30 | { |
31 | label: "权属状态", | 31 | label: "权属状态", |
32 | width: '80', | 32 | // width: '80', |
33 | render: (h, scope) => { | 33 | render: (h, scope) => { |
34 | let obj = { | 34 | let obj = { |
35 | "0": { | 35 | "0": { |
... | @@ -54,11 +54,7 @@ class data extends filter { | ... | @@ -54,11 +54,7 @@ class data extends filter { |
54 | { | 54 | { |
55 | prop: "createtime", | 55 | prop: "createtime", |
56 | label: "创建时间", | 56 | label: "创建时间", |
57 | width: '180', | 57 | // width: '180', |
58 | }, | ||
59 | { | ||
60 | prop: "json", | ||
61 | label: "json体", | ||
62 | }, | 58 | }, |
63 | { | 59 | { |
64 | label: '操作', | 60 | label: '操作', |
... | @@ -66,7 +62,7 @@ class data extends filter { | ... | @@ -66,7 +62,7 @@ class data extends filter { |
66 | render: (h, scope) => { | 62 | render: (h, scope) => { |
67 | return ( | 63 | return ( |
68 | <div> | 64 | <div> |
69 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>推送</el-button> | 65 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.detail(scope.row) }}>详情</el-button> |
70 | </div> | 66 | </div> |
71 | ) | 67 | ) |
72 | } | 68 | } | ... | ... |
... | @@ -26,13 +26,23 @@ | ... | @@ -26,13 +26,23 @@ |
26 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> | 26 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> |
27 | </lb-table> | 27 | </lb-table> |
28 | </div> | 28 | </div> |
29 | |||
30 | <el-dialog title="详情" :visible.sync="detailVisible"> | ||
31 | <div> | ||
32 | {{ dialogData.json }} | ||
33 | </div> | ||
34 | <div> | ||
35 | <button @click="pushRecord">推送</button> | ||
36 | </div> | ||
37 | </el-dialog> | ||
38 | |||
29 | </div> | 39 | </div> |
30 | </template> | 40 | </template> |
31 | <script> | 41 | <script> |
32 | import { mapGetters } from "vuex"; | 42 | import { mapGetters } from "vuex"; |
33 | import table from "@/utils/mixin/table"; | 43 | import table from "@/utils/mixin/table"; |
34 | import { datas, sendThis } from "./djbcxdata"; | 44 | import { datas, sendThis } from "./djbcxdata"; |
35 | import { getSjsbPushList, pushSjsbRecord } from "@/api/zhcx.js"; | 45 | import { getSjsbPushList, pushSjsbRecord, detail } from "@/api/zhcx.js"; |
36 | 46 | ||
37 | export default { | 47 | export default { |
38 | name: "djbcx", | 48 | name: "djbcx", |
... | @@ -49,6 +59,7 @@ export default { | ... | @@ -49,6 +59,7 @@ export default { |
49 | bdcqzh: "", | 59 | bdcqzh: "", |
50 | ywh: "", | 60 | ywh: "", |
51 | }, | 61 | }, |
62 | detailVisible : false, | ||
52 | pageData: { | 63 | pageData: { |
53 | current: 1, | 64 | current: 1, |
54 | size: 10, | 65 | size: 10, |
... | @@ -60,6 +71,7 @@ export default { | ... | @@ -60,6 +71,7 @@ export default { |
60 | }, | 71 | }, |
61 | qllxs: [], | 72 | qllxs: [], |
62 | isDialog: false, | 73 | isDialog: false, |
74 | dialogData: {}, | ||
63 | djbxxData: {}, | 75 | djbxxData: {}, |
64 | }; | 76 | }; |
65 | }, | 77 | }, |
... | @@ -82,9 +94,9 @@ export default { | ... | @@ -82,9 +94,9 @@ export default { |
82 | handleSort (name, sort) { | 94 | handleSort (name, sort) { |
83 | console.log(name, sort); | 95 | console.log(name, sort); |
84 | }, | 96 | }, |
85 | pushRecord (row, done) { | 97 | pushRecord () { |
86 | this.$startLoading() | 98 | this.$startLoading() |
87 | pushSjsbRecord(row).then((res) => { | 99 | pushSjsbRecord(this.dialogData).then((res) => { |
88 | this.$endLoading() | 100 | this.$endLoading() |
89 | if (res.code === 200) { | 101 | if (res.code === 200) { |
90 | this.$message.success("推送成功"); | 102 | this.$message.success("推送成功"); |
... | @@ -120,6 +132,18 @@ export default { | ... | @@ -120,6 +132,18 @@ export default { |
120 | }).then(action => {}); | 132 | }).then(action => {}); |
121 | 133 | ||
122 | }, | 134 | }, |
135 | |||
136 | detail(row) { | ||
137 | this.detailVisible = true | ||
138 | detail(row.bsm).then((res) => { | ||
139 | this.$endLoading() | ||
140 | if (res.code === 200) { | ||
141 | this.dialogData = res.result; | ||
142 | } else { | ||
143 | this.$message.warning(res.message); | ||
144 | } | ||
145 | }); | ||
146 | } | ||
123 | } | 147 | } |
124 | } | 148 | } |
125 | </script> | 149 | </script> | ... | ... |
-
Please register or sign in to post a comment