Commit ab6a5f57 by 李伟康

修复BUG

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