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

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

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

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

Loading…
Cancel
Save