Commit ab6a5f57 by 李伟康

修复BUG

1 parent 4ceb4178
......@@ -49,7 +49,7 @@
<template v-for="(i, index) in stageList">
<template>
<div
:class="['tab', { active: searchForm.sopJourneyStage == i.label }]"
:class="['tab', { active: searchForm.sopJourneyStage == i.value }]"
:key="index"
@click="changeTab(i.value)"
>
......@@ -156,6 +156,7 @@ export default {
...searchForm,
...tempParams
}
if(!searchForm.sopJourneyId) return
this.$nextTick(() => {
el.refreshTable()
})
......@@ -168,7 +169,6 @@ export default {
sopJourneyId: journeyList[0].instId
}
this.searchSelectObj = this.$options.data.call(this).searchSelectObj
// this.searchFormData = this.$options.data.call(this).searchFormData
this.FormKey = Date.now()
this.handleSearch()
},
......@@ -185,6 +185,7 @@ export default {
async refreshInst () {
const { sopJourneyId } = this.tableSearchForm,
{ refreshTime } = this
if(!sopJourneyId) return
if (refreshTime && Date.now() - refreshTime < 1e4) return this.$message('数据正在刷新中,请勿频繁提交')
try {
this.loading = true
......
......@@ -138,7 +138,6 @@ export default {
},
methods: {
async refreshTable () {
console.log(dayjs)
function splitArrayIntoChunks (arr, chunkSize) {
const weight = 1 / arr.length
return arr.reduce((result, item, index) => {
......
......@@ -230,14 +230,6 @@ export default {
this.refreshTable()
},
methods: {
// beforeSearchFn () {
// return new Promise(resolve => {
// console.log(JSON.parse(JSON.stringify(this.params)))
// this.tableSearchForm = this.params
// // delete this.tableSearchForm.createDate
// resolve()
// })
// },
refreshTable () {
this.$nextTick(() => {
const params = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!