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",
|
||||
}, {
|
||||
name: "负责人",
|
||||
key: "chargeUserName",
|
||||
type: "text",
|
||||
key: "chargeUserId",
|
||||
type: "select",
|
||||
datas: this.$store.state.userList,
|
||||
}, {
|
||||
name: "成立时间",
|
||||
key: "establishTime",
|
||||
type: "date",
|
||||
format: "yyyy-MM-dd"
|
||||
}];
|
||||
|
||||
public subActions = [{
|
||||
|
@ -304,8 +306,8 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
|
||||
|
||||
this.subTableColumn.push({ name: '序号', key: "index", });
|
||||
this.subTableColumn.push({ name: '姓名', key: "userName",});
|
||||
this.subTableColumn.push({ name: '单位', key: "deptName",});
|
||||
this.subTableColumn.push({ name: '姓名', key: "userName", });
|
||||
this.subTableColumn.push({ name: '单位', key: "deptName", });
|
||||
this.subTableColumn.push({ name: '职务', key: "duty", });
|
||||
this.subTableColumn.push({ name: '联系方式', key: "phone" });
|
||||
this.subTableColumn.push({ name: '职责描述', key: "description", width: "250px", showTip: true, });
|
||||
|
@ -366,6 +368,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
} as any;
|
||||
this.getTableData()
|
||||
}
|
||||
|
||||
public doSave(goOn?) {
|
||||
|
@ -394,7 +397,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
} as any
|
||||
this.showUpdate = !!goOn;
|
||||
this.getTableData();
|
||||
|
||||
this.fileList = [];
|
||||
if (goOn === true) {
|
||||
this.getFormNumber()
|
||||
}
|
||||
|
@ -461,7 +464,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
@ -587,10 +590,10 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
public showSubModal(row, isReadonly) {
|
||||
if (isReadonly) {
|
||||
this.subIsReadonly = true
|
||||
this.subUpdateParams = row
|
||||
this.subUpdateParams = JSON.parse(JSON.stringify(row))
|
||||
} else {
|
||||
this.subIsReadonly = false
|
||||
this.subUpdateParams = row
|
||||
this.subUpdateParams = JSON.parse(JSON.stringify(row))
|
||||
}
|
||||
this.subShowUpdate = true
|
||||
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) {
|
||||
this.currentUrl = file.url;
|
||||
this.showFile = true;
|
||||
} else{
|
||||
} else {
|
||||
window.open('http://119.45.186.133:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url)), "_blank")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue