Commit 47002d9b by cen

fiix:埋点

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