|
@@ -12,7 +12,7 @@
|
|
|
>清空</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- :disabled="!canSave || isNormalTab"
|
|
|
+ :disabled="!canSave"
|
|
|
:loading="saving"
|
|
|
type="primary"
|
|
|
@click="toSave"
|
|
@@ -21,7 +21,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
:loading="scanStatus === 'SCAN'"
|
|
|
- :disabled="!canScan || isNormalTab"
|
|
|
+ :disabled="!canScan"
|
|
|
@click="toScan"
|
|
|
>
|
|
|
{{ statusDesc[scanStatus] }}
|
|
@@ -42,15 +42,15 @@
|
|
|
size="medium"
|
|
|
:type="curTab === 'error' ? 'danger' : 'default'"
|
|
|
@click="switchTab('error')"
|
|
|
- >异常
|
|
|
- <span class="color-danger">[{{ errorCount }}]</span></el-button
|
|
|
+ >异常 <span>[{{ errorCount }}]</span></el-button
|
|
|
>
|
|
|
</div>
|
|
|
- <div class="scan-result-table">
|
|
|
+ <div class="scan-result-body">
|
|
|
<scan-result-table
|
|
|
v-if="isNormalTab"
|
|
|
ref="scanResultTableRef"
|
|
|
:datas="scanStageList"
|
|
|
+ tab="normal"
|
|
|
@row-click="rowClickHandle"
|
|
|
@select-change="selectChange"
|
|
|
@delete-paper="deletePaperHandle"
|
|
@@ -59,6 +59,7 @@
|
|
|
v-else
|
|
|
ref="scanResultTableRef"
|
|
|
:datas="errorStageList"
|
|
|
+ tab="error"
|
|
|
@row-click="rowClickHandle"
|
|
|
@select-change="selectChange"
|
|
|
@delete-paper="deletePaperHandle"
|
|
@@ -201,6 +202,7 @@ export default {
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
this.stopLoopScaningFile();
|
|
|
+ this.clearFiles();
|
|
|
},
|
|
|
methods: {
|
|
|
initData() {
|
|
@@ -630,10 +632,10 @@ export default {
|
|
|
this.curPaperIndex = this.curPapers.indexOf(this.curPaper.url);
|
|
|
},
|
|
|
// image-preview
|
|
|
- rowClickHandle({ curPapers, curPagePaperIndex }) {
|
|
|
+ rowClickHandle({ curPapers, curPaperIndex }) {
|
|
|
this.curPapers = curPapers;
|
|
|
- this.curPaperIndex = curPagePaperIndex;
|
|
|
- this.setCurPaper(curPagePaperIndex);
|
|
|
+ this.curPaperIndex = curPaperIndex;
|
|
|
+ this.setCurPaper(curPaperIndex);
|
|
|
},
|
|
|
clearViewPapers() {
|
|
|
this.curPapers = [];
|
|
@@ -641,21 +643,21 @@ export default {
|
|
|
this.curPaper = { url: "" };
|
|
|
},
|
|
|
setCurPaper(index) {
|
|
|
- this.curPaper = { url: this.curPapers[index] };
|
|
|
+ this.curPaper = { url: `file:///${this.curPapers[index]}` };
|
|
|
},
|
|
|
toPrevPaper() {
|
|
|
if (this.curPaperIndex <= 0) {
|
|
|
this.$message.error("没有上一页了");
|
|
|
return;
|
|
|
}
|
|
|
- this.setCurPaper(this.curPaperIndex - 1);
|
|
|
+ this.setCurPaper(--this.curPaperIndex);
|
|
|
},
|
|
|
toNextPaper() {
|
|
|
if (this.curPaperIndex >= this.curPapers.length - 1) {
|
|
|
this.$message.error("没有下一页了");
|
|
|
return;
|
|
|
}
|
|
|
- this.setCurPaper(this.curPaperIndex + 1);
|
|
|
+ this.setCurPaper(++this.curPaperIndex);
|
|
|
},
|
|
|
},
|
|
|
};
|