Browse Source

20250731

master
xuhuajiao 1 month ago
parent
commit
dbd2143d34
  1. 1
      package.json
  2. 30
      src/views/fourTestReport/index.vue

1
package.json

@ -113,6 +113,7 @@
"@babel/parser": "^7.7.4", "@babel/parser": "^7.7.4",
"@babel/register": "7.0.0", "@babel/register": "7.0.0",
"@vue/babel-plugin-transform-vue-jsx": "^1.2.1", "@vue/babel-plugin-transform-vue-jsx": "^1.2.1",
"@vue/babel-preset-app": "^5.0.8",
"@vue/cli-plugin-babel": "3.5.3", "@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-plugin-unit-jest": "3.5.3",

30
src/views/fourTestReport/index.vue

@ -10,12 +10,6 @@
<div class="main-content"> <div class="main-content">
<div class="content-list"> <div class="content-list">
<h4 class="arc-title">文件名称</h4> <h4 class="arc-title">文件名称</h4>
<!-- <ul v-if="allFileTables.length!==0" class="file-list">
<li v-for="(item,index) in allFileTables" :key="index" :class="{'active-file': item.id == fileCurrent.id}" @click="selectFile(item)">
<span>{{ item.file_name }}</span>
<i class="iconfont icon-attachment" />
</li>
</ul> -->
<div style="height: calc(100vh - 120px); overflow-y: scroll;"> <div style="height: calc(100vh - 120px); overflow-y: scroll;">
<el-tree <el-tree
v-if="allFileTables.length!==0" v-if="allFileTables.length!==0"
@ -60,18 +54,18 @@
<span>档案档号</span> <span>档案档号</span>
{{ {{
(currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0)) (currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0))
? reportData.parent?.archivesNo ?? ''
? (reportData.parent && reportData.parent.archivesNo) || ''
: (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0) : (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0)
? getArchivesSubet(currentReportInfo.archivesId)?.archivesNo ?? ''
? (getArchivesSubet(currentReportInfo.archivesId) && getArchivesSubet(currentReportInfo.archivesId).archivesNo) || ''
: '' : ''
}} }}
</li> </li>
<li><span>档案题名</span> <li><span>档案题名</span>
{{ {{
(currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0)) (currentReportInfo.categoryLevel === 2 || (currentReportInfo.categoryLevel === 3 && reportData.subset.length === 0))
? reportData.parent?.archivesName ?? ''
? (reportData.parent && reportData.parent.archivesName) || ''
: (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0) : (currentReportInfo.categoryLevel === 3 && reportData.subset.length !== 0)
? getArchivesSubet(currentReportInfo.archivesId)?.archivesName ?? ''
? (getArchivesSubet(currentReportInfo.archivesId) && getArchivesSubet(currentReportInfo.archivesId).archivesName) || ''
: '' : ''
}} }}
</li> </li>
@ -90,7 +84,7 @@
<div v-if="currentReportInfo && currentReportInfo.categoryLevel === 3" class="report-table-all"> <div v-if="currentReportInfo && currentReportInfo.categoryLevel === 3" class="report-table-all">
<div class="report-checkItem"> <div class="report-checkItem">
<div class="report-title"><span>真实性检测</span></div> <div class="report-title"><span>真实性检测</span></div>
<el-table ref="table" class="fixed-table" :data="checkItemAllData.authenticity" style="width: 100%;">
<el-table class="fixed-table" :data="checkItemAllData.authenticity" style="width: 100%;">
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" /> <el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" />
<el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" /> <el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" />
@ -121,7 +115,7 @@
</div> </div>
<div class="report-checkItem"> <div class="report-checkItem">
<div class="report-title"><span>完整性检测</span></div> <div class="report-title"><span>完整性检测</span></div>
<el-table ref="table" class="fixed-table" :data="checkItemAllData.integrity">
<el-table class="fixed-table" :data="checkItemAllData.integrity">
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" /> <el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" />
<el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" /> <el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" />
@ -152,7 +146,7 @@
</div> </div>
<div class="report-checkItem"> <div class="report-checkItem">
<div class="report-title"><span>可用性检测</span></div> <div class="report-title"><span>可用性检测</span></div>
<el-table ref="table" class="fixed-table" :data="checkItemAllData.usability">
<el-table class="fixed-table" :data="checkItemAllData.usability">
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" /> <el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" />
<el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" /> <el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" />
@ -183,7 +177,7 @@
</div> </div>
<div class="report-checkItem"> <div class="report-checkItem">
<div class="report-title"><span>安全性检测</span></div> <div class="report-title"><span>安全性检测</span></div>
<el-table ref="table" class="fixed-table" :data="checkItemAllData.safety">
<el-table class="fixed-table" :data="checkItemAllData.safety">
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" /> <el-table-column :show-overflow-tooltip="true" prop="secondaryClassId" label="分类" min-width="150" />
<el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" /> <el-table-column :show-overflow-tooltip="true" prop="detectionCode" label="检测编号" min-width="100" />
@ -252,19 +246,13 @@ export default {
previewPrintBtnLabel: '预览结束,开始打印', previewPrintBtnLabel: '预览结束,开始打印',
zIndex: 20002, // z-index20002 zIndex: 20002, // z-index20002
extraCss: '', // css extraCss: '', // css
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>,<style> #printArea { height: auto !important; } <style>', //
extraHead: '<meta http-equiv="Content-Language" content="zh-cn" />,<style> #printArea { height: auto !important; } </style>', //
previewBeforeOpenCallback() { console.log('正在加载预览窗口!') }, // callback previewBeforeOpenCallback() { console.log('正在加载预览窗口!') }, // callback
previewOpenCallback() { console.log('已经加载完预览窗口,预览打开了!') }, // callback previewOpenCallback() { console.log('已经加载完预览窗口,预览打开了!') }, // callback
beforeOpenCallback() { console.log('开始打印之前!') }, // callback beforeOpenCallback() { console.log('开始打印之前!') }, // callback
openCallback() { console.log('执行打印了!') }, // callback openCallback() { console.log('执行打印了!') }, // callback
closeCallback() { console.log('关闭了打印工具!') }, // callback(or) closeCallback() { console.log('关闭了打印工具!') }, // callback(or)
clickMounted() { console.log('点击v-print绑定的按钮了!') }, clickMounted() { console.log('点击v-print绑定的按钮了!') },
// url: 'http://192.168.99.67:11100/downloadFile/category/AE8B188F0C0314F9BE31B8/82FBCAE96CBC9F50809838/7f3df862-f36d-4061-9c3e-e81556420742.pdf', // URL
// asyncUrl (reslove) {
// setTimeout(() => {
// reslove('http://localhost:8080/')
// }, 2000)
// },
standard: '', standard: '',
extarCss: '' extarCss: ''
} }

Loading…
Cancel
Save