Browse Source

档案检索 参数修改

master
x_ying 3 years ago
parent
commit
79a7680a10
  1. 26
      src/views/archivesManage/archivesSearch/index.vue
  2. 14
      src/views/archivesManage/archivesSearch/module/detailDialog.vue

26
src/views/archivesManage/archivesSearch/index.vue

@ -67,14 +67,11 @@
</template> </template>
<script> <script>
// import pagination from '@crud/Pagination'
// import { crud } from '@crud/crud'
import detailDialog from './module/detailDialog.vue' import detailDialog from './module/detailDialog.vue'
import { queryVagueArchives, archivesDetails, archivesMetadata } from '@/api/archivesManage/archivesSearch' import { queryVagueArchives, archivesDetails, archivesMetadata } from '@/api/archivesManage/archivesSearch'
export default { export default {
name: 'ArchivesSearch', name: 'ArchivesSearch',
components: { detailDialog }, components: { detailDialog },
// mixins: [crud()],
data() { data() {
return { return {
loading: false, loading: false,
@ -109,27 +106,28 @@ export default {
handleDbClick(row) { handleDbClick(row) {
console.log(row, 'row') console.log(row, 'row')
const params = { const params = {
// 'categoryId': row.category_id,
// 'archivesId': row.archives_id
'categoryId': '5EB3DE8FF78BBC64729E43',
'archivesId': 'D63A2DFA58C02E09CB196C'
'categoryId': row.category_id,
'archivesId': row.archives_id
// 'categoryId': '5EB3DE8FF78BBC64729E43',
// 'archivesId': 'D63A2DFA58C02E09CB196C'
} }
console.log(params) console.log(params)
archivesDetails(params).then(res => { archivesDetails(params).then(res => {
console.log(res, 'res')
if (res) {
// console.log(res, 'res')
const rowData = {} const rowData = {}
res.forEach(item => { res.forEach(item => {
rowData[item.fieldName] = item.context rowData[item.fieldName] = item.context
}) })
console.log(rowData, '=======') console.log(rowData, '=======')
this.$refs.detailDom.rowData = rowData this.$refs.detailDom.rowData = rowData
})
// //
archivesMetadata(params).then(res => { archivesMetadata(params).then(res => {
console.log(res, '元数据')
this.$refs.detailDom.xmlStr = res this.$refs.detailDom.xmlStr = res
}) })
this.$refs.detailDom.detailVisible = true this.$refs.detailDom.detailVisible = true
}
})
}, },
// //
dimSearch() { dimSearch() {
@ -192,10 +190,7 @@ export default {
margin-bottom: 30px; margin-bottom: 30px;
} }
} }
// ::v-deep .input-prepend .el-input__inner{
// padding-left: 135px;
// height: 42px;
// }
.search-area { .search-area {
height: 100%; height: 100%;
margin: 0; margin: 0;
@ -207,9 +202,6 @@ export default {
& .el-select .el-input { & .el-select .el-input {
width: 130px; width: 130px;
} }
// & ::v-deep .input-with-select ::v-deep .el-input-group__prepend {
// background-color: #fff;
// }
} }
} }
// //

14
src/views/archivesManage/archivesSearch/module/detailDialog.vue

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<el-dialog title="档案盒详情" :visible.sync="detailVisible">
<el-dialog title="档案盒详情" :visible.sync="detailVisible" @close="handleClose">
<span class="dialog-right-top" /> <span class="dialog-right-top" />
<span class="dialog-left-bottom" /> <span class="dialog-left-bottom" />
<div class="setting-dialog"> <div class="setting-dialog">
@ -89,21 +89,15 @@ export default {
} }
}, },
methods: { methods: {
handleClose() {
this.archivesTabIndex = 0
},
changeActiveTab(index) { changeActiveTab(index) {
this.archivesTabIndex = index this.archivesTabIndex = index
if (this.archivesTabIndex === 2) { if (this.archivesTabIndex === 2) {
this.xml_show = this.showXml(this.xmlStr) this.xml_show = this.showXml(this.xmlStr)
console.log(this.xml_show)
} }
}, },
// setXml() {
// // const xmlstr = this.archivesDetailsMetadata
// // console.log('xmlstr:', xmlstr)
// // console.log('xmljson:', this.$x2js.xml2js(xmlstr))
// // console.log('jsonxml:', this.$x2js.js2xml(this.$x2js.xml2js(xmlstr)))
// // this.xml_show = vkbeautify.xml(xmlstr)
// this.xml_show = this.showXml(this.xmlstr)
// },
// xml // xml
showXml(str) { showXml(str) {
var that = this var that = this

Loading…
Cancel
Save