修复:课程管理修改文件列表抖动

main
hcj 4 months ago
parent 146e23af91
commit d7a2821d19
  1. 8
      src/components/FileUpload/index.vue
  2. 4
      src/views/trainService/attendanceList.vue
  3. 7
      src/views/trainService/courseManage.vue

@ -28,11 +28,12 @@
</div>
</el-upload>
<!-- 文件列表 -->
<transition-group
<!-- <transition-group
class="upload-file-list el-upload-list el-upload-list--text"
name="el-fade-in-linear"
tag="ul"
>
> -->
<div class="upload-file-list el-upload-list el-upload-list--text">
<li
:key="file.uid + ''"
class="el-upload-list__item ele-upload-list__item-content"
@ -45,7 +46,8 @@
<el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link>
</div>
</li>
</transition-group>
</div>
<!-- </transition-group> -->
</div>
</template>

@ -1,9 +1,7 @@
<template>
<div class="singInWrapper">
<div class="expBtn">
<el-button icon="el-icon-download" type="warning" size="small" style="margin-bottom:20px" @click="excelExport"
>导出为excel</el-button
>
<el-button icon="el-icon-download" type="warning" size="small" style="margin-bottom:20px" @click="excelExport">导出为excel</el-button>
</div>
<el-table v-loading="loading" :data="signinList">
<el-table-column label="序号" type="index" />

@ -238,7 +238,6 @@ export default {
},
downLoadSource(params) {
const url = params.filePath
console.log(url)
if (!url) {
return
}
@ -279,7 +278,6 @@ export default {
},
//
submitto() {
console.log(this.courseForm)
this.$refs['form'].validate((valid) => {
if (valid) {
this.submit()
@ -310,16 +308,15 @@ export default {
},
openDia() {
if (this.optionType === 'motify') {
console.log('motify');
this.$refs.fileUpload?.fileInit(this.courseForm.attachments)
}
console.log('dialog open ~~~')
},
//
closeDia() {
this.$refs['form']?.resetFields()
Object.keys(this.courseForm).forEach((item, index) => {
Object.keys(this.courseForm).forEach((item) => {
if (Array.isArray(this.courseForm[item])) {
this.courseForm[item] = []
} else {
this.courseForm[item] = ''
}

Loading…
Cancel
Save