【fix】处理文件上传组件,删除文件时候的bug
This commit is contained in:
@@ -186,7 +186,7 @@
|
|||||||
path = ''
|
path = ''
|
||||||
}
|
}
|
||||||
let arr = [];
|
let arr = [];
|
||||||
if(!this.isMultiple){
|
if(!this.isMultiple && uploadFiles && uploadFiles.length > 0){
|
||||||
arr.push(uploadFiles[uploadFiles.length-1].url)
|
arr.push(uploadFiles[uploadFiles.length-1].url)
|
||||||
}else{
|
}else{
|
||||||
for(let a=0;a<uploadFiles.length;a++){
|
for(let a=0;a<uploadFiles.length;a++){
|
||||||
|
|||||||
@@ -51,13 +51,13 @@
|
|||||||
import DeptUserInfo from './modules/DeptUserInfo'
|
import DeptUserInfo from './modules/DeptUserInfo'
|
||||||
import { queryMyDepartTreeList, searchByKeywords } from '@/api/api'
|
import { queryMyDepartTreeList, searchByKeywords } from '@/api/api'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import DeptRoleInfo from './modules/DeptRoleInfo'
|
// import DeptRoleInfo from './modules/DeptRoleInfo'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DepartUserList',
|
name: 'DepartUserList',
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
components: {
|
components: {
|
||||||
DeptRoleInfo,
|
// DeptRoleInfo,
|
||||||
DeptBaseInfo,
|
DeptBaseInfo,
|
||||||
DeptUserInfo,
|
DeptUserInfo,
|
||||||
},
|
},
|
||||||
@@ -106,13 +106,13 @@
|
|||||||
loadData() {
|
loadData() {
|
||||||
this.refresh();
|
this.refresh();
|
||||||
},
|
},
|
||||||
// clearSelectedDepartKeys() {
|
clearSelectedDepartKeys() {
|
||||||
// this.checkedKeys = [];
|
this.checkedKeys = [];
|
||||||
// this.selectedKeys = [];
|
this.selectedKeys = [];
|
||||||
// this.currentDeptId = '';
|
this.currentDeptId = '';
|
||||||
// this.$refs.DeptUserInfo.currentDeptId='';
|
this.$refs.DeptUserInfo.currentDeptId='';
|
||||||
// this.$refs.DeptRoleInfo.currentDeptId='';
|
// this.$refs.DeptRoleInfo.currentDeptId='';
|
||||||
// },
|
},
|
||||||
loadTree() {
|
loadTree() {
|
||||||
var that = this
|
var that = this
|
||||||
that.treeData = []
|
that.treeData = []
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
|
|
||||||
this.$refs.DeptBaseInfo.open(record);
|
this.$refs.DeptBaseInfo.open(record);
|
||||||
this.$refs.DeptUserInfo.open(record);
|
this.$refs.DeptUserInfo.open(record);
|
||||||
this.$refs.DeptRoleInfo.open(record);
|
// this.$refs.DeptRoleInfo.open(record);
|
||||||
// }
|
// }
|
||||||
// else {
|
// else {
|
||||||
// this.checkedKeys = [];
|
// this.checkedKeys = [];
|
||||||
@@ -205,8 +205,8 @@
|
|||||||
this.$refs.DeptBaseInfo.open(record);
|
this.$refs.DeptBaseInfo.open(record);
|
||||||
this.$refs.DeptUserInfo.onClearSelected();
|
this.$refs.DeptUserInfo.onClearSelected();
|
||||||
this.$refs.DeptUserInfo.open(record);
|
this.$refs.DeptUserInfo.open(record);
|
||||||
this.$refs.DeptRoleInfo.onClearSelected();
|
// this.$refs.DeptRoleInfo.onClearSelected();
|
||||||
this.$refs.DeptRoleInfo.open(record);
|
// this.$refs.DeptRoleInfo.open(record);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
text="上传"
|
text="上传"
|
||||||
v-model="model.avatar"
|
v-model="model.avatar"
|
||||||
:disabled="disableSubmit"
|
:disabled="disableSubmit"
|
||||||
number=1
|
:number=1
|
||||||
accept='.png,.PNG,.jpg,.JPG'></j-image-upload>
|
accept='.png,.PNG,.jpg,.JPG'></j-image-upload>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user