fit:修复bug

dev
kongyeqing 2023-09-05 18:10:23 +08:00
parent 3ebce122b1
commit 9c275101e1
1 changed files with 13 additions and 10 deletions

View File

@ -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 = [{
@ -304,8 +306,8 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
this.subTableColumn.push({ name: '序号', key: "index", }); this.subTableColumn.push({ name: '序号', key: "index", });
this.subTableColumn.push({ name: '姓名', key: "userName",}); this.subTableColumn.push({ name: '姓名', key: "userName", });
this.subTableColumn.push({ name: '单位', key: "deptName",}); this.subTableColumn.push({ name: '单位', key: "deptName", });
this.subTableColumn.push({ name: '职务', key: "duty", }); this.subTableColumn.push({ name: '职务', key: "duty", });
this.subTableColumn.push({ name: '联系方式', key: "phone" }); this.subTableColumn.push({ name: '联系方式', key: "phone" });
this.subTableColumn.push({ name: '职责描述', key: "description", width: "250px", showTip: true, }); this.subTableColumn.push({ name: '职责描述', key: "description", width: "250px", showTip: true, });
@ -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()
@ -622,11 +625,11 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
// //
public previewFile(url,file) { public previewFile(url, file) {
if (file.type.indexOf("png") >= 0 || file.type.indexOf("jp") >= 0) { if (file.type.indexOf("png") >= 0 || file.type.indexOf("jp") >= 0) {
this.currentUrl = file.url; this.currentUrl = file.url;
this.showFile = true; this.showFile = true;
} else{ } else {
window.open('http://119.45.186.133:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)), "_blank") window.open('http://119.45.186.133:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)), "_blank")
} }
} }