forked from xxhjsb/hbt-prevention-ui
feat:重大危险源名称bug
parent
f78252cd50
commit
444a52ef1a
|
@ -693,8 +693,8 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
|
|||
professionClassifyName: this.$store.getters.prevention_major_type_map[row.professionClassify],
|
||||
reformModeName: this.reformModeMap[row.reformMode],
|
||||
}, row);
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
this.updateParams.majorHazard = +this.updateParams.majorHazard
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
this.getTableCallback()
|
||||
// 获取url
|
||||
if (row.resourceId) {
|
||||
|
|
|
@ -856,7 +856,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
if (!end) {
|
||||
return time.getTime() < moment(start).subtract(1, 'day').toDate().getTime();
|
||||
} else {
|
||||
return time.getTime() < moment(start).subtract(1, 'day').toDate().getTime() || time.getTime() > moment(end).subtract(1, 'day').toDate().getTime();
|
||||
return time.getTime() < moment(start).subtract(1, 'day').toDate().getTime() || time.getTime() > moment(end).toDate().getTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -934,8 +934,8 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
|||
professionClassifyName: this.$store.getters.prevention_major_type_map[row.professionClassify],
|
||||
reformModeName: this.reformModeMap[row.reformMode],
|
||||
}, row);
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
this.updateParams.majorHazard = +this.updateParams.majorHazard
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
this.getTableCallback()
|
||||
// 获取url
|
||||
if (row.resourceId) {
|
||||
|
|
|
@ -538,9 +538,7 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
this.updateParams.resourceName = this.photoList.map(item => item.name).join(",")
|
||||
this.updateParams.resourceOtherId = this.fileList.map(item => item.id).join(",")
|
||||
this.updateParams.resourceOtherName = this.fileList.map(item => item.name).join(",")
|
||||
if (this.updateParams.majorHazard && this.updateParams.majorHazard !== 0) {
|
||||
this.updateParams.majorHazard = this.updateParams.majorHazard.toString()
|
||||
}
|
||||
this.updateParams.majorHazard = this.updateParams.majorHazard.toString()
|
||||
this.tableService.addOrUpdate(this.updateParams, !this.updateParams.id).then((res: any) => {
|
||||
this.$message.success(!this.updateParams.id ? "新增成功!" : "编辑成功");
|
||||
this.handleClose();
|
||||
|
@ -681,8 +679,8 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
professionClassifyName: this.$store.getters.prevention_major_type_map[row.professionClassify],
|
||||
reformModeName: this.reformModeMap[row.reformMode],
|
||||
}, row)
|
||||
this.updateParams.majorHazard = parseInt(this.updateParams.majorHazard)
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard || this.updateParams.majorHazard === 0 ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
this.updateParams.majorHazard = +this.updateParams.majorHazard;
|
||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||
|
||||
// 获取url
|
||||
if (row.resourceId) {
|
||||
|
|
|
@ -46,6 +46,7 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
|
|||
|
||||
public subIsReadonly = false;
|
||||
|
||||
public subUpdateActions = [] as any;
|
||||
|
||||
public fileList = [] as any;
|
||||
|
||||
|
|
|
@ -60,6 +60,8 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
|
|||
|
||||
public subShowUpdate = false;
|
||||
|
||||
public subUpdateActions = [] as any;
|
||||
|
||||
public formActions = [{
|
||||
name: "查询",
|
||||
value: "search",
|
||||
|
|
|
@ -65,6 +65,7 @@ export default class Programme extends BaseRecordComponent<any> {
|
|||
|
||||
public subShowUpdate = false;
|
||||
|
||||
public subUpdateActions = [] as any;
|
||||
public formActions = [{
|
||||
name: "查询",
|
||||
value: "search",
|
||||
|
|
Loading…
Reference in New Issue