forked from xxhjsb/hbt-prevention-ui
fit:修复bug
parent
3ebce122b1
commit
9c275101e1
|
@ -103,12 +103,14 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
||||||
type: "text",
|
type: "text",
|
||||||
}, {
|
}, {
|
||||||
name: "负责人",
|
name: "负责人",
|
||||||
key: "chargeUserName",
|
key: "chargeUserId",
|
||||||
type: "text",
|
type: "select",
|
||||||
|
datas: this.$store.state.userList,
|
||||||
}, {
|
}, {
|
||||||
name: "成立时间",
|
name: "成立时间",
|
||||||
key: "establishTime",
|
key: "establishTime",
|
||||||
type: "date",
|
type: "date",
|
||||||
|
format: "yyyy-MM-dd"
|
||||||
}];
|
}];
|
||||||
|
|
||||||
public subActions = [{
|
public subActions = [{
|
||||||
|
@ -366,6 +368,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
} as any;
|
} as any;
|
||||||
|
this.getTableData()
|
||||||
}
|
}
|
||||||
|
|
||||||
public doSave(goOn?) {
|
public doSave(goOn?) {
|
||||||
|
@ -394,7 +397,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
||||||
} as any
|
} as any
|
||||||
this.showUpdate = !!goOn;
|
this.showUpdate = !!goOn;
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
this.fileList = [];
|
||||||
if (goOn === true) {
|
if (goOn === true) {
|
||||||
this.getFormNumber()
|
this.getFormNumber()
|
||||||
}
|
}
|
||||||
|
@ -461,7 +464,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public onRemove(file, fileList) {
|
public onRemove(file, fileList) {
|
||||||
this.fileList.splice(this.fileList.findIndex(item => item.id === file.response.data.id), 1)
|
this.fileList.splice(this.fileList.findIndex(item => item.id === file.id), 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
public showModal(row, isReadonly) {
|
public showModal(row, isReadonly) {
|
||||||
|
@ -587,10 +590,10 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
||||||
public showSubModal(row, isReadonly) {
|
public showSubModal(row, isReadonly) {
|
||||||
if (isReadonly) {
|
if (isReadonly) {
|
||||||
this.subIsReadonly = true
|
this.subIsReadonly = true
|
||||||
this.subUpdateParams = row
|
this.subUpdateParams = JSON.parse(JSON.stringify(row))
|
||||||
} else {
|
} else {
|
||||||
this.subIsReadonly = false
|
this.subIsReadonly = false
|
||||||
this.subUpdateParams = row
|
this.subUpdateParams = JSON.parse(JSON.stringify(row))
|
||||||
}
|
}
|
||||||
this.subShowUpdate = true
|
this.subShowUpdate = true
|
||||||
this.buildSubForm()
|
this.buildSubForm()
|
||||||
|
|
Loading…
Reference in New Issue