|
@@ -83,6 +83,17 @@
|
|
|
>上传</el-button
|
|
|
>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="el-icon-upload"
|
|
|
+ @click="fileReadFolder"
|
|
|
+ size="mini"
|
|
|
+ v-hasPermi="['supervise:pcsj:read:folder']"
|
|
|
+ >文件批量处理</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -309,6 +320,38 @@
|
|
|
<div class="el-upload__tip" slot="tip">只能上传zip文件</div>
|
|
|
</el-upload>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="文件批量处理"
|
|
|
+ :visible.sync="fileReadFolderDiv"
|
|
|
+ width="450px"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ :model="fileReadFolderParams"
|
|
|
+ ref="fileReadFolderForm"
|
|
|
+ size="small"
|
|
|
+ :inline="true"
|
|
|
+ label-width="130px"
|
|
|
+ >
|
|
|
+ <el-form-item label="批量处理文件路径">
|
|
|
+ <el-input
|
|
|
+ v-model="fileReadFolderForm.folder"
|
|
|
+ placeholder="请批量处理文件路径"
|
|
|
+ clearable
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="fileReadFolderClick"
|
|
|
+ >执行</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -322,6 +365,7 @@ import {
|
|
|
tiffUpload,
|
|
|
listDept,
|
|
|
downloadPcsjUrl,
|
|
|
+ getReadFoldert,
|
|
|
} from "@/api/supervise/pcsj";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -366,6 +410,9 @@ export default {
|
|
|
beginTime: "", //录入时间
|
|
|
endTime: "", //处理时间
|
|
|
},
|
|
|
+ fileReadFolderForm:{
|
|
|
+ folder:"d:/上传下载文件包"
|
|
|
+ },
|
|
|
// 表单参数
|
|
|
form: {
|
|
|
name: "1",
|
|
@@ -387,6 +434,7 @@ export default {
|
|
|
rules: {},
|
|
|
fileList: [],
|
|
|
fileUploadDiv: false, //文件上传弹窗
|
|
|
+ fileReadFolderDiv: false,
|
|
|
loading2: null,
|
|
|
uploadFileUrl: process.env.VUE_APP_BASE_API + "/file/uploadSpotZip",
|
|
|
uploadingCount: 0, // 正在上传的文件数量
|
|
@@ -453,6 +501,27 @@ export default {
|
|
|
this.uploadingFileFail=[];
|
|
|
this.fileUploadDiv = true;
|
|
|
},
|
|
|
+ fileReadFolder() {
|
|
|
+ this.fileReadFolderForm = {
|
|
|
+ folder:"d:/上传下载文件包"
|
|
|
+ };
|
|
|
+ this.fileReadFolderDiv = true;
|
|
|
+ },
|
|
|
+ fileReadFolderClick(){
|
|
|
+ let queryParams = {
|
|
|
+ folder: this.fileReadFolderForm.folder,
|
|
|
+ };
|
|
|
+ getReadFoldert(queryParams).then((response) => {
|
|
|
+ if (response.statuscode==200){
|
|
|
+ this.fileReadFolderDiv = false;
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: response.message,
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
handleBeforeUpload(file) {
|
|
|
this.$modal.loading("正在上传文件,请稍候...");
|
|
|
return true;
|