Browse Source

档案检索 参数修改

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

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

@ -67,14 +67,11 @@
</template>
<script>
// import pagination from '@crud/Pagination'
// import { crud } from '@crud/crud'
import detailDialog from './module/detailDialog.vue'
import { queryVagueArchives, archivesDetails, archivesMetadata } from '@/api/archivesManage/archivesSearch'
export default {
name: 'ArchivesSearch',
components: { detailDialog },
// mixins: [crud()],
data() {
return {
loading: false,
@ -109,27 +106,28 @@ export default {
handleDbClick(row) {
console.log(row, 'row')
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)
archivesDetails(params).then(res => {
console.log(res, 'res')
const rowData = {}
res.forEach(item => {
rowData[item.fieldName] = item.context
})
console.log(rowData, '=======')
this.$refs.detailDom.rowData = rowData
if (res) {
// console.log(res, 'res')
const rowData = {}
res.forEach(item => {
rowData[item.fieldName] = item.context
})
console.log(rowData, '=======')
this.$refs.detailDom.rowData = rowData
//
archivesMetadata(params).then(res => {
this.$refs.detailDom.xmlStr = res
})
this.$refs.detailDom.detailVisible = true
}
})
//
archivesMetadata(params).then(res => {
console.log(res, '元数据')
this.$refs.detailDom.xmlStr = res
})
this.$refs.detailDom.detailVisible = true
},
//
dimSearch() {
@ -192,10 +190,7 @@ export default {
margin-bottom: 30px;
}
}
// ::v-deep .input-prepend .el-input__inner{
// padding-left: 135px;
// height: 42px;
// }
.search-area {
height: 100%;
margin: 0;
@ -207,9 +202,6 @@ export default {
& .el-select .el-input {
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>
<div>
<el-dialog title="档案盒详情" :visible.sync="detailVisible">
<el-dialog title="档案盒详情" :visible.sync="detailVisible" @close="handleClose">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
@ -89,21 +89,15 @@ export default {
}
},
methods: {
handleClose() {
this.archivesTabIndex = 0
},
changeActiveTab(index) {
this.archivesTabIndex = index
if (this.archivesTabIndex === 2) {
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
showXml(str) {
var that = this

Loading…
Cancel
Save