forked from xxhjsb/hbt-prevention-ui
feat:隐患流程bug修复
parent
955a74b2e3
commit
61f4d667f0
|
@ -8,7 +8,7 @@ export default class integralFlowService extends BaseService<any>{
|
||||||
|
|
||||||
//创建
|
//创建
|
||||||
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/createProcess';
|
const url = this.prefix.bpm+'/operate/createProcess';
|
||||||
return this.post(url,params,{},true)
|
return this.post(url,params,{},true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,13 +19,13 @@ export default class integralFlowService extends BaseService<any>{
|
||||||
|
|
||||||
//设置审批人
|
//设置审批人
|
||||||
public taskCandidateSet(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public taskCandidateSet(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/candidateset';
|
const url = this.prefix.bpm+'/operate/candidateset';
|
||||||
return this.post(url,params,{},true)
|
return this.post(url,params,{},true)
|
||||||
}
|
}
|
||||||
|
|
||||||
//处理任务
|
//处理任务
|
||||||
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/taskHandle';
|
const url = this.prefix.bpm+'/operate/taskHandle';
|
||||||
return this.post(url,params,{},true)
|
return this.post(url,params,{},true)
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,17 +8,17 @@ export default class WorkFlowService extends BaseService<any>{
|
||||||
|
|
||||||
//创建流程
|
//创建流程
|
||||||
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public startWorkFlow(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/createProcess';
|
const url = this.prefix.bpm+'/operate/createProcess';
|
||||||
return this.post(url,params)
|
return this.post(url,params)
|
||||||
}
|
}
|
||||||
|
|
||||||
public again(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public again(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/candidate/set';
|
const url = this.prefix.bpm+'/operate/candidate/set';
|
||||||
return this.post(url,params,{},true)
|
return this.post(url,params,{},true)
|
||||||
}
|
}
|
||||||
//处理流程
|
//处理流程
|
||||||
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
public taskHandle(params,showLoading?:boolean): Promise<AxiosResponse<ActionResult<any>>>{
|
||||||
const url = this.prefix.bpm+'/task/taskHandle';
|
const url = this.prefix.bpm+'/operate/taskHandle';
|
||||||
return this.post(url,params,{},true)
|
return this.post(url,params,{},true)
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -90,7 +90,7 @@
|
||||||
|
|
||||||
.el-dialog__headerbtn .el-dialog__close {
|
.el-dialog__headerbtn .el-dialog__close {
|
||||||
color: rgb(0 0 0 / 60%);
|
color: rgb(0 0 0 / 60%);
|
||||||
font-size: 28px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__headerbtn {
|
.el-dialog__headerbtn {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
:full-btn="false" @change="change" btn-position="end"></FormComponent>
|
:full-btn="false" @change="change" btn-position="end"></FormComponent>
|
||||||
</div>
|
</div>
|
||||||
<div class="publicReportTable">
|
<div class="publicReportTable">
|
||||||
<el-table v-if="reportTable.detail.length" :data="reportTable.detail" border style="width: 100%"
|
<el-table v-if="summary" :data="reportTable.detail" border style="width: 100%"
|
||||||
height="90%" show-summary :summary-method="publicSummaryMethod" :row-class-name="rowClass"
|
height="90%" show-summary :summary-method="publicSummaryMethod" :row-class-name="rowClass"
|
||||||
ref="publicReportTable">
|
ref="publicReportTable">
|
||||||
<el-table-column label="序号" width="60">
|
<el-table-column label="序号" width="60">
|
||||||
|
|
|
@ -39,11 +39,13 @@ export default class PublicityResumption extends BaseRecordComponent<any> {
|
||||||
public updateParams = {} as any;
|
public updateParams = {} as any;
|
||||||
|
|
||||||
public reportTable = {
|
public reportTable = {
|
||||||
detail:[]
|
detail: []
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
public selectData = [];
|
public selectData = [];
|
||||||
|
|
||||||
|
public summary = false;
|
||||||
|
|
||||||
public isReadonly = false;
|
public isReadonly = false;
|
||||||
|
|
||||||
public hideOperate = true;
|
public hideOperate = true;
|
||||||
|
@ -160,7 +162,7 @@ export default class PublicityResumption extends BaseRecordComponent<any> {
|
||||||
|
|
||||||
public callback(data, type) {
|
public callback(data, type) {
|
||||||
if (type) {
|
if (type) {
|
||||||
if (type === 'pageSize' || type === 'pageNum') {
|
if (type === 'pageSize' || type === 'pageNum') {
|
||||||
this.params[type] = data;
|
this.params[type] = data;
|
||||||
}
|
}
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
@ -194,7 +196,7 @@ export default class PublicityResumption extends BaseRecordComponent<any> {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.reportTable = res.data as any;
|
this.reportTable = res.data as any;
|
||||||
}
|
}
|
||||||
|
this.summary = true;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 重置数据
|
// 重置数据
|
||||||
|
|
|
@ -124,7 +124,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
}, {
|
}, {
|
||||||
name: "我发起的",
|
name: "我发起的",
|
||||||
value: 3
|
value: 3
|
||||||
}, { name: "作废", value: 4 },
|
}, { name: "作废", value: 4 },
|
||||||
{ name: "全部", value: 5 }]
|
{ name: "全部", value: 5 }]
|
||||||
|
|
||||||
public updateActions = [] as any;
|
public updateActions = [] as any;
|
||||||
|
@ -688,9 +688,9 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
name: '当前节点', width: "100", render: (data) => {
|
name: '当前节点', width: "100", render: (data) => {
|
||||||
if (data.taskInfo.processStatus === 2) {
|
if (data.taskInfo.processStatus === 2) {
|
||||||
return `<span class="color_0">中断</span></span>`
|
return `<span class="color_0">中断</span></span>`
|
||||||
} else if(data.taskInfo.processStatus === 3){
|
} else if (data.taskInfo.processStatus === 3) {
|
||||||
return `<span class="color_6">作废</span></span>`
|
return `<span class="color_6">作废</span></span>`
|
||||||
} else if(data.taskInfo.processStatus === 4){
|
} else if (data.taskInfo.processStatus === 4) {
|
||||||
return `<span class="color_1">结束</span>`
|
return `<span class="color_1">结束</span>`
|
||||||
} else {
|
} else {
|
||||||
return `<span class="color_2">${this.statusMap[data.status]}</span>`
|
return `<span class="color_2">${this.statusMap[data.status]}</span>`
|
||||||
|
@ -705,7 +705,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
this.tableColumn.push({ name: '上报时间', width: "120", key: "reportTime", render: (data) => data.reportTime || "--" });
|
this.tableColumn.push({ name: '上报时间', width: "120", key: "reportTime", render: (data) => data.reportTime || "--" });
|
||||||
this.tableColumn.push({
|
this.tableColumn.push({
|
||||||
name: '隐患标题', width: "150", render: (data) => {
|
name: '隐患标题', width: "150", render: (data) => {
|
||||||
if (this.params.type === 1 ) {
|
if (this.params.type === 1) {
|
||||||
return `<span class="link">${data.title || '未命名'}</span>`
|
return `<span class="link">${data.title || '未命名'}</span>`
|
||||||
} else {
|
} else {
|
||||||
return data.title
|
return data.title
|
||||||
|
@ -750,7 +750,6 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
}, data)
|
}, data)
|
||||||
}
|
}
|
||||||
this.showUpdateModel(data)
|
this.showUpdateModel(data)
|
||||||
this.getTableCallback()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -849,7 +848,6 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
this.updateParams.verifyUserName = this.$store.getters.user_map[data]
|
this.updateParams.verifyUserName = this.$store.getters.user_map[data]
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getPickerOptions(start?, end?) {
|
public getPickerOptions(start?, end?) {
|
||||||
|
@ -940,10 +938,10 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
occurNodeName: this.$store.getters.prevention_occur_step_map[row.occurNode],
|
occurNodeName: this.$store.getters.prevention_occur_step_map[row.occurNode],
|
||||||
professionClassifyName: this.$store.getters.prevention_major_type_map[row.professionClassify],
|
professionClassifyName: this.$store.getters.prevention_major_type_map[row.professionClassify],
|
||||||
reformModeName: this.reformModeMap[row.reformMode],
|
reformModeName: this.reformModeMap[row.reformMode],
|
||||||
|
majorHazard: null
|
||||||
}, row);
|
}, row);
|
||||||
this.updateParams.majorHazard = this.updateParams.majorHazard ? +this.updateParams.majorHazard : 0
|
this.updateParams.majorHazard = this.updateParams.majorHazard ? +this.updateParams.majorHazard : 0
|
||||||
this.updateParams.majorHazardName = !this.updateParams.majorHazard ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
this.updateParams.majorHazardName = !this.updateParams.majorHazard ? '不涉及' : this.$store.getters.prevention_risk_source_map[this.updateParams.majorHazard]
|
||||||
this.getTableCallback()
|
|
||||||
// 获取url
|
// 获取url
|
||||||
if (row.resourceId) {
|
if (row.resourceId) {
|
||||||
this.tableService.getFileUrls({ ids: row.resourceId.split(",") }).then((photos: any) => {
|
this.tableService.getFileUrls({ ids: row.resourceId.split(",") }).then((photos: any) => {
|
||||||
|
@ -1001,6 +999,7 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
|
||||||
this.getTableCallback()
|
this.getTableCallback()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.getTableCallback()
|
||||||
this.showUpdate = true
|
this.showUpdate = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue