Commit 47002d9b by cen

fiix:埋点

1 parent c3ff5a24
......@@ -63,6 +63,7 @@
type="primary"
@click="exportTemplate"
v-if="formData.activityCycleResponses"
data-event-code="activity_management_export"
>
导出名单
</el-button>
......
......@@ -87,7 +87,6 @@
type="text"
@click="handleAccountConfirm(scope.scope)"
v-if="scope.scope.status != 2"
data-event-code="activity_management_import"
>
导入名单
</el-button>
......@@ -461,6 +460,7 @@ export default {
})
},
mounted() {
this.onPageShow()
// this.getServiceStore()
},
methods: {
......@@ -548,10 +548,12 @@ export default {
},
// 上传文件,转码为base64
importFile(e) {
console.log(e.target.files[0], "上传文件,转码为base64")
this.fileForm.errorFileUrl = ""
const size = e.target.files[0].size / 1024 / 1024
if (size < 5) {
this.$set(this.fileForm, "fileName", e.target.files[0].name)
console.log(this.fileForm, "this.fileForm")
// // 转码base64
const reader = new FileReader()
reader.readAsDataURL(e.target.files[0])
......@@ -565,6 +567,7 @@ export default {
"@" +
arrBase64[1]
document.getElementById("fileUpload").value = ""
console.log(this.fileInfo, "this.fileInfo")
this.$refs.fileRuleForm.validateField("fileName")
}
} else {
......@@ -625,7 +628,10 @@ export default {
this.fileForm = { ...this.fileForm, ...res }
} else {
this.fileVisible = false
this.fileForm = {}
this.fileForm = {
fileName: "",
currentPeriod: ""
}
this.$refs.table.refreshTable()
}
})
......@@ -633,7 +639,8 @@ export default {
})
},
removeFile() {
this.fileForm = {}
this.fileForm.fileName = null
this.fileInfo = null
},
exportError(errorFileUrl) {
errorFileUrl && window.open(errorFileUrl)
......
......@@ -276,6 +276,9 @@ export default {
align-items: center;
.status-box-text {
margin-right: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.flex-1 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!