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 source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
.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 source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
size="medium" size="medium"
type="primary" type="primary"
@click="handleSplitClick" @click="handleSplitClick"
:disabled="startSplit"
> >
分割 分割
</el-button> </el-button>
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
uploadURL: 'Word/SplitRevisionDoc', uploadURL: 'Word/SplitRevisionDoc',
fileList: [], fileList: [],
showDownload:false, showDownload:false,
startSplit: false,
form: { form: {
applyType: '1', applyType: '1',
split: 'splitAccording', split: 'splitAccording',
...@@ -105,7 +107,6 @@ export default { ...@@ -105,7 +107,6 @@ export default {
4: false 4: false
}, },
showPage: false, showPage: false,
inpFields: [ inpFields: [
{ {
label: 'ABST', label: 'ABST',
...@@ -152,6 +153,7 @@ export default { ...@@ -152,6 +153,7 @@ export default {
} }
}, },
async handleSplitClick() { async handleSplitClick() {
this.startSplit = true
if (this.fileList.length <= 0) { if (this.fileList.length <= 0) {
this.$message.error('请先选择需要上传的文件!') this.$message.error('请先选择需要上传的文件!')
return false return false
...@@ -168,6 +170,7 @@ export default { ...@@ -168,6 +170,7 @@ export default {
if (this.response.status === 200) { if (this.response.status === 200) {
this.showDownload = true this.showDownload = true
} }
this.startSplit = false
}, },
// 點擊下載按鈕 // 點擊下載按鈕
handleDownloadClick() { handleDownloadClick() {
...@@ -176,6 +179,7 @@ export default { ...@@ -176,6 +179,7 @@ export default {
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
const zipFileName = this.response.data const zipFileName = this.response.data
this.downloadFile(zipFileName) this.downloadFile(zipFileName)
this.showDownload = false
} else { } else {
this.$refs.upload.abort() this.$refs.upload.abort()
this.$message.error('下载档案失败!') 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