Commit da5b227f by 杨明

1

1 parent 605e8952
......@@ -2,54 +2,27 @@
<div class="journey">
<div class="container">
<div class="sticky">
<GLCombiForm
ref="showSearch"
:rowNumber="2"
:formObj="searchForm"
:formData="searchFormData"
:searchSelectObj="searchSelectObj"
@handleOk="handleSearch"
@handleRest="handleReset"
:key="FormKey"
></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="searchFormData" :searchSelectObj="searchSelectObj" @handleOk="handleSearch" @handleRest="handleReset" :key="FormKey"></GLCombiForm>
<div :class="['sticky-btns', { hiddenExport: viewType == 1 }]">
<div class="btns">
<el-button
type="default"
@click="refreshInst"
plain
>状态刷新</el-button>
<el-button
type="default"
@click="changeViewType"
>切换为看板视图</el-button>
<el-button
type="default"
@click="handleExport"
>导出</el-button>
<el-button type="default" @click="refreshInst" plain>状态刷新</el-button>
<el-button type="default" @click="changeViewType">切换为看板视图</el-button>
<el-button type="default" @click="handleExport">导出</el-button>
</div>
</div>
</div>
<template v-if="viewType == 1">
<div class="journey-data-view">
<data-view
:params="tableSearchForm"
ref="dataView"
:stageList="stageList"
></data-view>
<data-view :params="tableSearchForm" ref="dataView" :stageList="stageList"></data-view>
</div>
</template>
<template v-else>
<template v-if="stageList && stageList.length">
<div class="flex">
<div class="flex-default tabs">
<template v-for="(i,index) in stageList">
<template v-for="(i, index) in stageList">
<template>
<div
:class="['tab',{'active':searchForm.sopJourneyStage == i.value}]"
:key="index"
@click="changeTab(i.value)"
>
<div :class="['tab', { active: searchForm.sopJourneyStage == i.label }]" :key="index" @click="changeTab(i.label)">
{{ i.label }}
</div>
</template>
......@@ -58,11 +31,7 @@
</div>
</template>
<div class="journey-table">
<journey-table
ref="table"
:params="tableSearchForm"
:stageList="stageList"
></journey-table>
<journey-table ref="table" :params="tableSearchForm" :stageList="stageList"></journey-table>
</div>
</template>
</div>
......@@ -123,7 +92,7 @@ export default {
for (let k in stages) {
item.journeyItem.push({
label: stages[k].value,
value: k,
value: stages[k].value, // 后台要求改成label值 20230927
})
}
})
......@@ -134,6 +103,7 @@ export default {
})
},
changeTab (val) {
console.log(val)
this.searchForm.sopJourneyStage = val
this.handleSearch()
},
......
......@@ -5,10 +5,10 @@ const defaultFormData = {
import * as dayjs from 'dayjs'
export default {
created () {
created() {
_this = this
},
data () {
data() {
return {
refreshTime: '',
searchForm: {
......@@ -62,7 +62,7 @@ export default {
name: 'wechatNickname'
}
],
handleSelectChange (value) {
handleSelectChange(value) {
_this.searchSelectObj.keyword.value = ''
}
},
......@@ -82,7 +82,7 @@ export default {
labelWidth: 72,
isClear: true,
customPickerOptions: {
disabledDate (val) {
disabledDate(val) {
let disabled = true,
startTime = dayjs().subtract(1, 'year'),
endTime = dayjs(),
......@@ -107,7 +107,7 @@ export default {
// console.log(newval)
// }
// },
'searchForm.a' (newval) {
'searchForm.a'(newval) {
//清空旅程阶段并调用旅程阶段接口
console.log(newval, 'a')
}
......@@ -118,13 +118,15 @@ export default {
// }
// },
methods: {
getStage (e) {
getStage(e) {
console.log(_this.searchFormData)
const step = _this.searchFormData.find(i => i.name === 'sopJourneyStage')
let optionList = _this.journeyList.find(i => i.instId == e).journeyItem
step.optionList = optionList
this.stageList = step.optionList
console.log(this.stageList)
},
getSelectInputParams () {
getSelectInputParams() {
const list = Object.keys(this.searchSelectObj)
var params = {}
list.forEach(i => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!