|
|
|
@ -18,7 +18,8 @@
|
|
|
|
|
@current-change="currentChange"
|
|
|
|
|
>
|
|
|
|
|
<template slot="menuLeft">
|
|
|
|
|
<el-button type="success" icon="el-icon-upload" size="small" @click="dialogFormVisible=true">批量导入</el-button>
|
|
|
|
|
<el-button type="success" icon="el-icon-upload" size="small" @click="dialogFormVisible=true">批量导入
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot="status" slot-scope="scope">
|
|
|
|
@ -49,7 +50,13 @@
|
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
|
<div class="el-upload__tip" slot="tip">只能上传 json 格式文件,批量导入过程比较耗时,需要耐心等待,请勿切换其他页面!</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
<el-progress class="upload-progress" :percentage="loadProgress" :text-inside="true" :stroke-width="15" :status="progressStatus"></el-progress>
|
|
|
|
|
<el-progress class="upload-progress"
|
|
|
|
|
:percentage="loadProgress.toFixed(2)"
|
|
|
|
|
:text-inside="true"
|
|
|
|
|
:stroke-width="15"
|
|
|
|
|
:status="progressStatus"
|
|
|
|
|
>
|
|
|
|
|
</el-progress>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</el-col>
|
|
|
|
@ -315,7 +322,7 @@
|
|
|
|
|
clearInterval(interval);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
that.loadProgress += +step.toFixed(2);
|
|
|
|
|
that.loadProgress += step;
|
|
|
|
|
}, 500);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|