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