|
|
@ -178,7 +178,7 @@ export default { |
|
|
bodyThirdFillType:"actFill", |
|
|
bodyThirdFillType:"actFill", |
|
|
width: 280, |
|
|
width: 280, |
|
|
bodyDisabled:true, |
|
|
bodyDisabled:true, |
|
|
bodySubDisabled:false, |
|
|
|
|
|
|
|
|
bodySubDisabled:this.fillType !== 'actFill', |
|
|
}] |
|
|
}] |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
@ -198,8 +198,37 @@ export default { |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
this.$refs.ImportExcelDialog.show() |
|
|
} |
|
|
} |
|
|
if(key === "startBtn"){ |
|
|
if(key === "startBtn"){ |
|
|
|
|
|
debugger |
|
|
|
|
|
let startTime = moment().format("YYYY/MM/DD HH:mm") |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
|
|
|
let tableList = content.stepTableFormData |
|
|
|
|
|
let qxsj = tableList[rowIndex].qxsj |
|
|
|
|
|
let timeArr = qxsj?qxsj.split('~'):['',''] |
|
|
|
|
|
timeArr[0] = startTime |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ |
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ |
|
|
qxsj: moment().format("YYYY/MM/DD HH:mm"), |
|
|
|
|
|
|
|
|
qxsj: timeArr.join('~'), |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
|
// //通知后端保存数据 |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// type: "fieldChanged", |
|
|
|
|
|
// newRecord: null, |
|
|
|
|
|
// resourceList: null, |
|
|
|
|
|
// } |
|
|
|
|
|
// EventBus.$emit('onModifyRecord', params,) |
|
|
|
|
|
// }) |
|
|
|
|
|
} |
|
|
|
|
|
if(key === "endBtn"){ |
|
|
|
|
|
debugger |
|
|
|
|
|
let endTime = moment().format("YYYY/MM/DD HH:mm") |
|
|
|
|
|
let content = this.getFilledFormData(); |
|
|
|
|
|
let tableList = content.stepTableFormData |
|
|
|
|
|
let qxsj = tableList[rowIndex].qxsj |
|
|
|
|
|
let timeArr = qxsj?qxsj.split('~'):['',''] |
|
|
|
|
|
timeArr[1] = endTime |
|
|
|
|
|
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ |
|
|
|
|
|
qxsj: timeArr.join('~'), |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// this.$nextTick(() => { |
|
|
// this.$nextTick(() => { |
|
|
|