档案扫描

master
wanglei 2 years ago
parent bfeb55db82
commit f76f756ba6

@ -64,7 +64,7 @@
</el-row> </el-row>
<el-dialog title="档案文件上传" :visible.sync="upload.open" width="700px" append-to-body> <el-dialog title="档案文件上传" :visible.sync="upload.open" width="700px" append-to-body>
<div style="margin-bottom: 30px;display: flex;min-height: 250px"> <div style="margin-bottom: 30px;display: flex;min-height: 250px" v-loading="upload.loading">
<div style="width:250px;border: 1px solid #eee; padding: 10px;"> <div style="width:250px;border: 1px solid #eee; padding: 10px;">
<div style="margin-bottom: 5px;">物理书架</div> <div style="margin-bottom: 5px;">物理书架</div>
<el-tree <el-tree
@ -120,7 +120,7 @@
</el-dialog> </el-dialog>
<el-dialog title="扫描文件上传" :visible.sync="smwj.open" width="900px" append-to-body> <el-dialog title="扫描文件上传" :visible.sync="smwj.open" width="900px" append-to-body>
<div style="margin-bottom: 30px;display: flex;align-items:start;min-height: 250px"> <div style="margin-bottom: 30px;display: flex;align-items:start;min-height: 250px" v-loading="smwj.loading">
<div style="width:250px;border: 1px solid #eee; padding: 10px;"> <div style="width:250px;border: 1px solid #eee; padding: 10px;">
<div style="margin-bottom: 5px;">物理书架</div> <div style="margin-bottom: 5px;">物理书架</div>
<el-tree <el-tree
@ -194,6 +194,7 @@ export default {
}, },
// //
upload: { upload: {
loading: false,
// //
open: false, open: false,
shelfId: undefined, shelfId: undefined,
@ -206,6 +207,7 @@ export default {
checkAll: false, checkAll: false,
// //
smwj: { smwj: {
loading: false,
// //
open: false, open: false,
shelfId: undefined, shelfId: undefined,
@ -410,9 +412,13 @@ export default {
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)],{ type: 'application/json', })); formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)],{ type: 'application/json', }));
this.smwj.loading = true;
collectSaves(formData).then(response => { collectSaves(formData).then(response => {
this.pictureRecard = response.data; this.pictureRecard = response.data;
this.smwj.open = false; this.smwj.open = false;
this.smwj.loading = false;
}).catch(err=>{
this.smwj.loading = false;
}); });
}else { }else {
this.$alert(`请先开始扫描!`, `提示`, { this.$alert(`请先开始扫描!`, `提示`, {
@ -435,9 +441,13 @@ export default {
formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)],{ type: 'application/json', })); formData.append('picRecard', new Blob([JSON.stringify(DaPicturesRecard)],{ type: 'application/json', }));
this.upload.loading = true;
collectSaves(formData).then(response => { collectSaves(formData).then(response => {
this.pictureRecard = response.data; this.pictureRecard = response.data;
this.upload.open = false; this.upload.open = false;
this.upload.loading = false;
}).catch(err=>{
this.upload.loading = false;
}); });
}else { }else {
this.$alert(`请先上传图片!`, `提示`, { this.$alert(`请先上传图片!`, `提示`, {

Loading…
Cancel
Save