style:响应结果
Showing
4 changed files
with
82 additions
and
7 deletions
... | @@ -49,3 +49,13 @@ export function getDetail (params) { | ... | @@ -49,3 +49,13 @@ export function getDetail (params) { |
49 | }) | 49 | }) |
50 | } | 50 | } |
51 | 51 | ||
52 | // 结果 | ||
53 | export function getReceiveDataReportResult (bsmReport) { | ||
54 | return request({ | ||
55 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReceiveDataReportResult', | ||
56 | method: 'get', | ||
57 | params: { | ||
58 | bsmReport: bsmReport | ||
59 | } | ||
60 | }) | ||
61 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/views/jsbwcx/components/result.vue
0 → 100644
1 | <!-- | ||
2 | 功能:结果 | ||
3 | 作者:calliope | ||
4 | --> | ||
5 | <template> | ||
6 | <div class='result'> | ||
7 | <p>响应xml</p> | ||
8 | <el-input type="textarea" :rows="6" class="resulttext" placeholder="请输入内容" v-model="REPMSGXML"> | ||
9 | </el-input> | ||
10 | <p>错误信息</p> | ||
11 | <el-input type="textarea" :rows="6" class="resulttext" placeholder="请输入内容" v-model="ERRORINFO"> | ||
12 | </el-input> | ||
13 | </div> | ||
14 | </template> | ||
15 | <script> | ||
16 | import { getReceiveDataReportResult } from "@/api/sbbwcx.js"; | ||
17 | export default { | ||
18 | components: {}, | ||
19 | props: { | ||
20 | formData: { | ||
21 | type: Object, | ||
22 | default: {} | ||
23 | } | ||
24 | }, | ||
25 | data () { | ||
26 | return { | ||
27 | REPMSGXML: '', | ||
28 | ERRORINFO: '', | ||
29 | } | ||
30 | }, | ||
31 | created () { | ||
32 | getReceiveDataReportResult(this.formData.bsmReport).then(res => { | ||
33 | let data = res.result | ||
34 | this.REPMSGXML = data.REPMSGXML | ||
35 | this.ERRORINFO = data.ERRORINFO | ||
36 | }) | ||
37 | } | ||
38 | } | ||
39 | </script> | ||
40 | <style scoped lang='scss'> | ||
41 | @import '~@/styles/public.scss'; | ||
42 | |||
43 | .result { | ||
44 | padding: 15px; | ||
45 | |||
46 | p { | ||
47 | color: #ffffff; | ||
48 | line-height: 26px; | ||
49 | font-size: 18px; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | /deep/.el-textarea__inner { | ||
54 | min-height: 33vh !important; | ||
55 | background-color: #08346F !important; | ||
56 | color: #ffffff; | ||
57 | border: none !important; | ||
58 | } | ||
59 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -185,7 +185,9 @@ export default { | ... | @@ -185,7 +185,9 @@ export default { |
185 | > | 185 | > |
186 | 详情 | 186 | 详情 |
187 | </el-button> | 187 | </el-button> |
188 | <el-button type="primary">结果</el-button> | 188 | <el-button type="primary" onClick={() => { |
189 | this.handleResult(scope.row); | ||
190 | }}>结果</el-button> | ||
189 | </div> | 191 | </div> |
190 | ) | 192 | ) |
191 | } | 193 | } |
... | @@ -226,6 +228,10 @@ export default { | ... | @@ -226,6 +228,10 @@ export default { |
226 | featchData () { | 228 | featchData () { |
227 | this.pageData.currentPage = 1 | 229 | this.pageData.currentPage = 1 |
228 | this.queryClick(); | 230 | this.queryClick(); |
231 | }, | ||
232 | // 结果 | ||
233 | handleResult (row) { | ||
234 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) | ||
229 | } | 235 | } |
230 | } | 236 | } |
231 | } | 237 | } | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | <div class="from-clues"> | 2 | <div class="from-clues"> |
3 | <!-- 表单部分 --> | 3 | <!-- 表单部分 --> |
4 | <div class="from-clues-header"> | 4 | <div class="from-clues-header"> |
5 | <el-form @submit.native.prevent :model="ruleForm" label-width="120px"> | 5 | <el-form @submit.native.prevent :model="ruleForm" label-width="120px"> |
6 | <el-row :gutter="20"> | 6 | <el-row :gutter="20"> |
7 | <el-col :span="6"> | 7 | <el-col :span="6"> |
8 | <el-form-item label="字典类型编码"> | 8 | <el-form-item label="字典类型编码"> |
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
14 | <el-input v-model="ruleForm.dname" @clear="queryClick" clearable placeholder="字典类型名称"></el-input> | 14 | <el-input v-model="ruleForm.dname" @clear="queryClick" clearable placeholder="字典类型名称"></el-input> |
15 | </el-form-item> | 15 | </el-form-item> |
16 | </el-col> | 16 | </el-col> |
17 | <!-- 操作按钮 --> | 17 | <!-- 操作按钮 --> |
18 | <el-col :span="12" class="btnColRight"> | 18 | <el-col :span="12" class="btnColRight"> |
19 | 19 | ||
20 | <btn nativeType="cx" @click="queryClick">查询</btn> | 20 | <btn nativeType="cx" @click="queryClick">查询</btn> |
... | @@ -71,8 +71,8 @@ export default { | ... | @@ -71,8 +71,8 @@ export default { |
71 | <div> | 71 | <div> |
72 | { | 72 | { |
73 | scope.row.isenable == '1' ? | 73 | scope.row.isenable == '1' ? |
74 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.editClick(scope.row, 1) }}>修改</el-button> : | 74 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.editClick(scope.row, 1) }}>修改</el-button> : |
75 | <el-button type="text" icon="el-icon-view" onClick={() => { this.editClick(scope.row, 2) }}>查看</el-button> | 75 | <el-button type="text" icon="el-icon-view" onClick={() => { this.editClick(scope.row, 2) }}>查看</el-button> |
76 | } | 76 | } |
77 | </div> | 77 | </div> |
78 | ); | 78 | ); |
... | @@ -86,9 +86,9 @@ export default { | ... | @@ -86,9 +86,9 @@ export default { |
86 | methods: { | 86 | methods: { |
87 | // 初始化数据 | 87 | // 初始化数据 |
88 | queryClick () { | 88 | queryClick () { |
89 | this.$startLoading(); | 89 | // this.$startLoading(); |
90 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { | 90 | getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { |
91 | this.$endLoading(); | 91 | // this.$endLoading(); |
92 | let { records, total } = res.result | 92 | let { records, total } = res.result |
93 | this.tableData.data = records ? records : [] | 93 | this.tableData.data = records ? records : [] |
94 | this.tableData.total = total ? total : 0 | 94 | this.tableData.total = total ? total : 0 | ... | ... |
-
Please register or sign in to post a comment