Commit 5e956f1c authored by erichsieh's avatar erichsieh

refactor : 加入分割中狀態

parent 4c653689
Pipeline #3660 failed with stages
in 3 seconds
<meta charset="utf-8">
<title>index demo</title>
<script src="./index.umd.js"></script>
<link rel="stylesheet" href="./index.css">
<script>
console.log(index)
</script>
This diff is collapsed.
This diff is collapsed.
.p-link-default[data-v-30dd6ef1]{color:#606266}.p-link-primary[data-v-30dd6ef1]{color:#409eff}.el-form .el-form-item[data-v-442676bc]{margin:10px 0}.el-form .el-form-item .el-radio-group[data-v-442676bc]{margin-left:20px}.el-form .el-form-item input[data-v-442676bc]{width:126px;margin-left:10px;outline:none;border:0;background:#c6c6c6}.choose-box[data-v-442676bc]{margin-left:200px;border:1px solid #000;width:220px}.choose-box div>span[data-v-442676bc]{display:inline-block;width:56px;text-align:center;margin:10px 5px;border:1px solid #000}input[data-v-442676bc]::-webkit-input-placeholder{font-size:12px;opacity:.8}[data-v-442676bc] .el-form-item__content{line-height:1.5!important}.excel-upload-input[data-v-77bf1e84]{display:none;z-index:-9999}.drop[data-v-77bf1e84]{border:2px dashed #bbb;width:600px;height:160px;line-height:160px;margin:0 auto;font-size:24px;border-radius:5px;text-align:center;color:#bbb;position:relative}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -50,6 +50,7 @@
size="medium"
type="primary"
@click="handleSplitClick"
:disabled="startSplit"
>
分割
</el-button>
......@@ -90,6 +91,7 @@ export default {
uploadURL: 'Word/SplitRevisionDoc',
fileList: [],
showDownload:false,
startSplit: false,
form: {
applyType: '1',
split: 'splitAccording',
......@@ -105,7 +107,6 @@ export default {
4: false
},
showPage: false,
inpFields: [
{
label: 'ABST',
......@@ -152,6 +153,7 @@ export default {
}
},
async handleSplitClick() {
this.startSplit = true
if (this.fileList.length <= 0) {
this.$message.error('请先选择需要上传的文件!')
return false
......@@ -168,6 +170,7 @@ export default {
if (this.response.status === 200) {
this.showDownload = true
}
this.startSplit = false
},
// 點擊下載按鈕
handleDownloadClick() {
......@@ -176,6 +179,7 @@ export default {
this.$refs.upload.clearFiles()
const zipFileName = this.response.data
this.downloadFile(zipFileName)
this.showDownload = false
} else {
this.$refs.upload.abort()
this.$message.error('下载档案失败!')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment