| | |
| | | multiple |
| | | :http-request="requestUploadm" |
| | | :file-list="fileList" |
| | | :on-change="handleChange1" |
| | | :auto-upload="false" |
| | | ref="upload" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{ file }"> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | uploadFileList: [], |
| | | uploadFileList1: [], |
| | | // 遮罩层 |
| | | disabled: false, |
| | | |
| | |
| | | // 弹出层标题 |
| | | title: "", |
| | | |
| | | // open:true, |
| | | open:false, |
| | | // 是否显示弹出层(数据权限) |
| | | openDataScope: false, |
| | | menuExpand: false, |
| | |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | |
| | | fileList1:[], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | { |
| | | if(this.fileListOther[i].url==file.url) |
| | | { |
| | | this.$delete(this.fileListOther,i); |
| | | this.$delete(this.uploadFileList1,i); |
| | | } |
| | | } |
| | | }, |
| | | handleRemove(file) { |
| | | for(let i = 0; i < this.fileList.length; i++) |
| | | { |
| | | if(this.fileList[i].url==file.url) |
| | | { |
| | | this.$delete(this.fileList,i); |
| | | this.$delete(this.uploadFileList,i); |
| | | } |
| | | } |
| | | }, |
| | | handleChange1(file, fileList1) { |
| | | //定义一个全局数组uploadFileList来做存储 |
| | | |
| | | // this.uploadFileList.push(file.raw); |
| | | console.log("=========5555=========") |
| | | console.log(file) |
| | | // console.log(this.uploadFileList) |
| | | // this.fileList = fileList |
| | | //alert(file) |
| | | this.uploadFileList.push(file.raw); |
| | | this.fileList.push({name:file.name,url:file.url}) |
| | | //alert(fileList1.length) |
| | | }, |
| | | |
| | | |
| | | |
| | | // 取消按钮 |
| | | cancelData() { |
| | | alert(23) |
| | | // alert(23) |
| | | this.dialogVisible.open = false; |
| | | this.dialogVisible.relation1 = false; |
| | | this.dialogVisible.certificate =false; |
| | |
| | | this.dialogVisible.autobiography=false; |
| | | this.isEdit1 = false; |
| | | this.reset(); |
| | | alert(32) |
| | | // alert(32) |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | |
| | | |
| | | addNote(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.getList(); |
| | | this.open = false; |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | |
| | | }, |
| | | cancelDataPer() |
| | | { |
| | | this.open = false |
| | | this.open = false; |
| | | |
| | | // alert(123) |
| | | // alert(this.open) |
| | | }, |
| | | |
| | | /** 查询自传信息 */ |
| | |
| | | _this.dialogVisible.open = false; |
| | | addExperience(_this.formDat).then(response => { |
| | | _this.$modal.msgSuccess("新增成功"); |
| | | |
| | | |
| | | _this.getList(); |
| | | }); |
| | | } |
| | |
| | | this.dialogVisible.relation1 = false; |
| | | addRelation(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | |
| | | |
| | | this.getList(); |
| | | }); |
| | | } |
| | |
| | | }, |
| | | //修改后的保存 |
| | | |
| | | |
| | | |
| | | //主要经历 |
| | | saveRowExperienceList(row) { |
| | | // this.$refs['elForm'].validate(valid => { |