|
@ -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; |
|
|
|
|
|
// } |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 补充不生效 |
|
|
// 补充不生效 |
|
|