样式调整

master
wanglei 2 years ago
parent a9ee346ed0
commit de3c1aef6e

@ -212,7 +212,6 @@ import { listBookshelf } from "@/api/dangan/bookshelf";
import { collectSaves, collectRecongnize } from "@/api/dangan/collection"; import { collectSaves, collectRecongnize } from "@/api/dangan/collection";
import '@/utils/WebScan'; import '@/utils/WebScan';
import axios from 'axios' import axios from 'axios'
import qs from 'qs'
export default { export default {
name: "Collection", name: "Collection",
@ -588,12 +587,19 @@ export default {
} }
}) })
if(arr.length>0){ if(arr.length>0){
this.percentage = 0;
this.openProgress = true; this.openProgress = true;
collectRecongnize(arr).then(response => { collectRecongnize(arr).then(response => {
this.pictureRecard = []; console.log(3232,response);
if(response.fails&&response.fails.length>0){
this.pictureRecard = response.fails
}else {
this.pictureRecard = [];
}
this.checkAll = false;
clearInterval(this.Interval); clearInterval(this.Interval);
this.openProgress = false; this.openProgress = false;
this.$modal.msgSuccess("操作成功"); this.$modal.msgSuccess(response.msg);
}).catch(()=>{ }).catch(()=>{
clearInterval(this.Interval); clearInterval(this.Interval);
this.openProgress = false; this.openProgress = false;

@ -110,16 +110,16 @@
<el-table v-loading="loading" :data="pictureRecardList" @selection-change="handleSelectionChange" border> <el-table v-loading="loading" :data="pictureRecardList" @selection-change="handleSelectionChange" border>
<el-table-column type="selection" width="50" align="center" fixed/> <el-table-column type="selection" width="50" align="center" fixed/>
<el-table-column label="档案目录ID" align="center" prop="muId" fixed min-width="80"/> <el-table-column label="档案目录ID" align="center" prop="muId" fixed min-width="90"/>
<el-table-column label="业务类型" align="center" prop="ywType" min-width="100" show-overflow-tooltip> <el-table-column label="业务类型" align="center" prop="ywType" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.yw_type" :value="scope.row.ywType"/> <dict-tag :options="dict.type.yw_type" :value="scope.row.ywType"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="档案目录路径" align="center" prop="muPath" min-width="120" show-overflow-tooltip/> <el-table-column label="档案目录路径" align="center" prop="muPath" min-width="120" show-overflow-tooltip/>
<el-table-column label="物理书架ID" align="center" prop="wlsjId" min-width="80"/> <el-table-column label="物理书架ID" align="center" prop="wlsjId" min-width="90"/>
<el-table-column label="物理书架路径" align="center" prop="wlsjPath" min-width="100" show-overflow-tooltip/> <el-table-column label="物理书架路径" align="center" prop="wlsjPath" min-width="100" show-overflow-tooltip/>
<el-table-column label="是否已经识别" align="center" prop="recognize" > <el-table-column label="是否已经识别" align="center" prop="recognize" min-width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.recognize" :value="scope.row.recognize"/> <dict-tag :options="dict.type.recognize" :value="scope.row.recognize"/>
</template> </template>
@ -268,6 +268,8 @@ export default {
arr.push(item); arr.push(item);
}) })
if(arr.length>0){ if(arr.length>0){
this.percentage = 0;
this.openProgress = true;
collectRecongnize(arr).then(response => { collectRecongnize(arr).then(response => {
this.selectionList = []; this.selectionList = [];
clearInterval(this.Interval); clearInterval(this.Interval);
@ -313,7 +315,7 @@ export default {
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'
} }
}).then(function (response) { }).then((response)=>{
this.percentage = Math.round((response.data.file_counts/this.selectionList.length)*100) this.percentage = Math.round((response.data.file_counts/this.selectionList.length)*100)
}).catch(function (error) { }).catch(function (error) {
// //

Loading…
Cancel
Save