style:xml
Showing
3 changed files
with
35 additions
and
44 deletions
| ... | @@ -2,6 +2,17 @@ import request from '@/utils/request' | ... | @@ -2,6 +2,17 @@ import request from '@/utils/request' |
| 2 | import SERVER from './config' | 2 | import SERVER from './config' |
| 3 | 3 | ||
| 4 | // 区县上报分页 | 4 | // 区县上报分页 |
| 5 | export function getXml (bizMsgid) { | ||
| 6 | return request({ | ||
| 7 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getXml', | ||
| 8 | method: 'get', | ||
| 9 | params: { | ||
| 10 | businessId: bizMsgid | ||
| 11 | } | ||
| 12 | }) | ||
| 13 | } | ||
| 14 | |||
| 15 | // 区县上报分页 | ||
| 5 | export function getAreaReportPage (data) { | 16 | export function getAreaReportPage (data) { |
| 6 | return request({ | 17 | return request({ |
| 7 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getAreaReportPage', | 18 | url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getAreaReportPage', |
| ... | @@ -10,6 +21,7 @@ export function getAreaReportPage (data) { | ... | @@ -10,6 +21,7 @@ export function getAreaReportPage (data) { |
| 10 | }) | 21 | }) |
| 11 | } | 22 | } |
| 12 | 23 | ||
| 24 | |||
| 13 | // 接入数据上报分页 | 25 | // 接入数据上报分页 |
| 14 | export function getReceiveDataReportPage (data) { | 26 | export function getReceiveDataReportPage (data) { |
| 15 | return request({ | 27 | return request({ | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <vue-json-editor v-model="resultInfo" :showBtns="false" :mode="'code'" lang="zh" @json-change="onJsonChange" | 2 | <el-input type="textarea" :rows="6" placeholder="请输入内容" v-model="resultInfo"> |
| 3 | @json-save="onJsonSave" /> | 3 | </el-input> |
| 4 | </template> | 4 | </template> |
| 5 | <script> | 5 | <script> |
| 6 | // 引入json编译器 | 6 | // 引入json编译器 |
| ... | @@ -9,22 +9,15 @@ export default { | ... | @@ -9,22 +9,15 @@ export default { |
| 9 | components: { | 9 | components: { |
| 10 | vueJsonEditor | 10 | vueJsonEditor |
| 11 | }, | 11 | }, |
| 12 | props: { | ||
| 13 | resultInfo: { | ||
| 14 | type: String, | ||
| 15 | default: '' | ||
| 16 | } | ||
| 17 | }, | ||
| 12 | data () { | 18 | data () { |
| 13 | return { | 19 | return { |
| 14 | myValue: this.value, | 20 | myValue: this.value, |
| 15 | resultInfo: { | ||
| 16 | "userId": "1111111129ac7325-30da-4e6a-8a00-9699820fc04a", | ||
| 17 | "realName": "小雪18", | ||
| 18 | "gradeCode": "166", | ||
| 19 | "provinceCode": "110000", | ||
| 20 | "cityCode": { | ||
| 21 | "test1": "test1", | ||
| 22 | "test2": "test2" | ||
| 23 | }, | ||
| 24 | "schoolId": 21, | ||
| 25 | "schoolLevel": 1, | ||
| 26 | "schoolName": "北京第二实验小学朝阳学校" | ||
| 27 | }, | ||
| 28 | } | 21 | } |
| 29 | }, | 22 | }, |
| 30 | methods: { | 23 | methods: { |
| ... | @@ -40,33 +33,11 @@ export default { | ... | @@ -40,33 +33,11 @@ export default { |
| 40 | </script> | 33 | </script> |
| 41 | 34 | ||
| 42 | <style> | 35 | <style> |
| 43 | .ace-jsoneditor .ace_gutter { | ||
| 44 | background-color: #08346F !important; | ||
| 45 | color: #FFFFFF !important; | ||
| 46 | } | ||
| 47 | |||
| 48 | .ace_content { | ||
| 49 | background-color: #05275B !important; | ||
| 50 | } | ||
| 51 | |||
| 52 | .ace_marker-layer .ace_active-line { | ||
| 53 | background-color: #4e8ae2 !important; | ||
| 54 | } | ||
| 55 | |||
| 56 | .ace-jsoneditor .ace_variable { | ||
| 57 | color: #FFFFFF !important; | ||
| 58 | } | ||
| 59 | |||
| 60 | .jsoneditor-menu { | ||
| 61 | background-color: #074487 !important; | ||
| 62 | } | ||
| 63 | |||
| 64 | /* jsoneditor右上角默认有一个链接,加css去掉了 */ | 36 | /* jsoneditor右上角默认有一个链接,加css去掉了 */ |
| 65 | .jsoneditor-poweredBy { | 37 | .el-textarea__inner { |
| 66 | display: none; | 38 | min-height: 73vh !important; |
| 67 | } | 39 | background-color: #08346F !important; |
| 68 | 40 | color: #ffffff; | |
| 69 | .jsoneditor-vue { | 41 | border: none !important; |
| 70 | height: 300px; | ||
| 71 | } | 42 | } |
| 72 | </style> | 43 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -99,7 +99,7 @@ | ... | @@ -99,7 +99,7 @@ |
| 99 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> | 99 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> |
| 100 | </div> | 100 | </div> |
| 101 | </div> | 101 | </div> |
| 102 | <JsonEditor v-else /> | 102 | <JsonEditor :resultInfo="resultInfo" v-else /> |
| 103 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> | 103 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> |
| 104 | <div class="dialog_button"> | 104 | <div class="dialog_button"> |
| 105 | <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding">确定 | 105 | <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding">确定 |
| ... | @@ -114,7 +114,7 @@ | ... | @@ -114,7 +114,7 @@ |
| 114 | import { mapGetters } from "vuex"; | 114 | import { mapGetters } from "vuex"; |
| 115 | import dataReporting from "@/api/dataReporting"; | 115 | import dataReporting from "@/api/dataReporting"; |
| 116 | import JsonEditor from "@/components/JsonEditor/index"; | 116 | import JsonEditor from "@/components/JsonEditor/index"; |
| 117 | import { getDetail } from "@/api/sbbwcx.js"; | 117 | import { getDetail, getXml } from "@/api/sbbwcx.js"; |
| 118 | import { MessageBox } from "element-ui"; | 118 | import { MessageBox } from "element-ui"; |
| 119 | export default { | 119 | export default { |
| 120 | components: { JsonEditor }, | 120 | components: { JsonEditor }, |
| ... | @@ -129,6 +129,9 @@ export default { | ... | @@ -129,6 +129,9 @@ export default { |
| 129 | }, | 129 | }, |
| 130 | data () { | 130 | data () { |
| 131 | return { | 131 | return { |
| 132 | |||
| 133 | resultInfo: '', | ||
| 134 | |||
| 132 | titleName: 'sjmx', | 135 | titleName: 'sjmx', |
| 133 | 136 | ||
| 134 | dataReport: {}, | 137 | dataReport: {}, |
| ... | @@ -177,6 +180,11 @@ export default { | ... | @@ -177,6 +180,11 @@ export default { |
| 177 | this.editItem = this.loadView(this.activeName); | 180 | this.editItem = this.loadView(this.activeName); |
| 178 | } | 181 | } |
| 179 | }); | 182 | }); |
| 183 | // 获取xml | ||
| 184 | getXml(item.bizMsgid).then((res) => { | ||
| 185 | console.log(res); | ||
| 186 | this.resultInfo = res.message | ||
| 187 | }) | ||
| 180 | }, | 188 | }, |
| 181 | changeList (val) { | 189 | changeList (val) { |
| 182 | let _index = val.index; | 190 | let _index = val.index; | ... | ... |
-
Please register or sign in to post a comment