Browse Source

feat: [模板管理] yp005

luojie
memorylkf 4 weeks ago
parent
commit
52f96d632b
1 changed files with 4 additions and 9 deletions
  1. +4
    -9
      src/views/business/comps/template/comps/yp/YP005.vue

+ 4
- 9
src/views/business/comps/template/comps/yp/YP005.vue View File

@ -193,17 +193,16 @@ export default {
methods: { methods: {
// //
handleClickButton(key,rowIndex,colIndex,e,data){ handleClickButton(key,rowIndex,colIndex,e,data){
let content = this.getFilledFormData();
let tableList = content.stepTableFormData
let qxsj = tableList[rowIndex].qxsj
let timeArr = qxsj?qxsj.split('~'):['','']
if(key === "exportBtn"){ if(key === "exportBtn"){
this.currentRowIndex = rowIndex; this.currentRowIndex = rowIndex;
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 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 timeArr[0] = startTime
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
qxsj: timeArr.join('~'), qxsj: timeArr.join('~'),
@ -222,10 +221,6 @@ export default {
if(key === "endBtn"){ if(key === "endBtn"){
debugger debugger
let endTime = moment().format("YYYY/MM/DD HH:mm") 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 timeArr[1] = endTime
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{ this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
qxsj: timeArr.join('~'), qxsj: timeArr.join('~'),

Loading…
Cancel
Save