|
@@ -323,7 +323,8 @@
|
|
</template>
|
|
</template>
|
|
</HcTable>
|
|
</HcTable>
|
|
|
|
|
|
- <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'" :ishowFile="checkId.length>0?true:false"/>
|
|
|
|
|
|
+ <!-- <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'" :ishowFile="checkId.length>0?true:false"/> -->
|
|
|
|
+ <MetaTable :loading="cscmetaTableLoading" v-if="tabTypeKey === 'tab5'" :metaDataTable="cscmetaDataTabledata" :ishowFile="checkId.length>0?true:false"/>
|
|
|
|
|
|
<HcTable :column="cscTableColumn5" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
|
|
<HcTable :column="cscTableColumn5" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
|
|
|
|
|
|
@@ -346,7 +347,7 @@
|
|
|
|
|
|
<!--使用弹窗查看数据-->
|
|
<!--使用弹窗查看数据-->
|
|
<HcDialog :show="cscTableDataModal" :title="cscTableDataTitle" widths="1080px" isTable :footer="false" @close="cscTableDataModalClose">
|
|
<HcDialog :show="cscTableDataModal" :title="cscTableDataTitle" widths="1080px" isTable :footer="false" @close="cscTableDataModalClose">
|
|
- <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'"/>
|
|
|
|
|
|
+ <MetaTable :loading="cscmetaTableLoading" v-if="tabTypeKey === 'tab5'" :metaDataTable="cscmetaDataTabledata" :ishowFile="checkId.length>0?true:false"/>
|
|
<HcTable :column="cscTableColumn51" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
|
|
<HcTable :column="cscTableColumn51" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
|
|
</HcDialog>
|
|
</HcDialog>
|
|
|
|
|
|
@@ -974,6 +975,7 @@ const tableFileSelection = (rows) => {
|
|
|
|
|
|
//表格行被点击
|
|
//表格行被点击
|
|
const tableFileShow = ref(false)
|
|
const tableFileShow = ref(false)
|
|
|
|
+const checkmetaFileId=ref('')
|
|
const tableRowClick = ({row}) => {
|
|
const tableRowClick = ({row}) => {
|
|
tableAllShow.value = true;
|
|
tableAllShow.value = true;
|
|
tableFileShow.value = true;
|
|
tableFileShow.value = true;
|
|
@@ -1021,6 +1023,10 @@ const consultFileClick =async (row,type) => {
|
|
if(type===1){
|
|
if(type===1){
|
|
cscTableData1.value=row.approvalFileList
|
|
cscTableData1.value=row.approvalFileList
|
|
fileInfo.value=row
|
|
fileInfo.value=row
|
|
|
|
+ if(cscTableData1.value.length>0){
|
|
|
|
+ checkmetaFileId.value= cscTableData1.value[0].id
|
|
|
|
+ }
|
|
|
|
+
|
|
// fileInfo.value.pageN=row['approvalFileList'].length||0
|
|
// fileInfo.value.pageN=row['approvalFileList'].length||0
|
|
// fileInfo.value.pageNumber=row['approvalFileList'].length||0
|
|
// fileInfo.value.pageNumber=row['approvalFileList'].length||0
|
|
}else if(type==2){
|
|
}else if(type==2){
|
|
@@ -1055,6 +1061,7 @@ const changePdf=(row)=>{
|
|
console.log(row,'row');
|
|
console.log(row,'row');
|
|
pdfUrl.value=row['pdfFileUrl']||''
|
|
pdfUrl.value=row['pdfFileUrl']||''
|
|
checkId.value=row.id
|
|
checkId.value=row.id
|
|
|
|
+ checkmetaFileId.value=row.id
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1070,6 +1077,9 @@ const tabTypeTab = ref([
|
|
]);
|
|
]);
|
|
const tabTypeChange = ({key}) => {
|
|
const tabTypeChange = ({key}) => {
|
|
tabTypeKey.value = key
|
|
tabTypeKey.value = key
|
|
|
|
+ if(key==='tab5'){
|
|
|
|
+ getmetaInfo()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
const cscTableLoading = ref(false)
|
|
const cscTableLoading = ref(false)
|
|
@@ -1150,6 +1160,7 @@ const cscTableDataModalShow = () => {
|
|
const key = tabTypeKey.value;
|
|
const key = tabTypeKey.value;
|
|
if (key === 'tab5') {
|
|
if (key === 'tab5') {
|
|
cscTableDataTitle.value = '元数据'
|
|
cscTableDataTitle.value = '元数据'
|
|
|
|
+ getmetaInfo()
|
|
} else if (key === 'tab6') {
|
|
} else if (key === 'tab6') {
|
|
cscTableDataTitle.value = '验签包'
|
|
cscTableDataTitle.value = '验签包'
|
|
}
|
|
}
|
|
@@ -1165,6 +1176,7 @@ const cscTableDataModalClose = () => {
|
|
const onCarrySpotChecksDrawerClose = () => {
|
|
const onCarrySpotChecksDrawerClose = () => {
|
|
isCarrySpotChecksDrawer.value = false
|
|
isCarrySpotChecksDrawer.value = false
|
|
pdfUrl.value=''
|
|
pdfUrl.value=''
|
|
|
|
+ tabTypeKey.value='tab1'
|
|
}
|
|
}
|
|
|
|
|
|
//tab数据和相关处理
|
|
//tab数据和相关处理
|
|
@@ -1435,6 +1447,25 @@ const guiInfoData = ref([])
|
|
const guiFileInfo = (item) => {
|
|
const guiFileInfo = (item) => {
|
|
guiInfoCurKey.value = item
|
|
guiInfoCurKey.value = item
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//获取元数据
|
|
|
|
+const cscmetaTableLoading=ref(false)
|
|
|
|
+const cscmetaDataTabledata=ref([])
|
|
|
|
+//获取元数据信息
|
|
|
|
+
|
|
|
|
+const getmetaInfo=async(fileId)=>{
|
|
|
|
+
|
|
|
|
+ cscmetaTableLoading.value = true
|
|
|
|
+ const {error, code, data} = await tuningApi.getMetadataFileByid({
|
|
|
|
+ fileId: checkmetaFileId.value,
|
|
|
|
+ })
|
|
|
|
+ cscmetaTableLoading.value = false
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ cscmetaDataTabledata.value=getArrValue(data)
|
|
|
|
+ } else {
|
|
|
|
+ cscmetaDataTabledata.value=[]
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|