Commit 0c3230b5 by 李伟康

修改样式

1 parent 660e37f2
<template>
<div class="journey" v-loading="loading">
<div
class="journey"
v-loading="loading"
>
<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">切换为{{viewType == 1?'列表':'看板'}}视图</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"
>切换为{{viewType == 1?'列表':'看板'}}视图</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">
<div class="flex">
<div class="flex-default tabs">
<template v-if="stageList && stageList.length">
<template v-for="(i, index) in stageList">
<template>
<div :class="['tab', { active: searchForm.sopJourneyStage == i.label }]" :key="index" @click="changeTab(i.label)">
<div
:class="['tab', { active: searchForm.sopJourneyStage == i.label }]"
:key="index"
@click="changeTab(i.label)"
>
{{ i.label }}
</div>
</template>
</template>
</div>
</template>
</div>
</template>
</div>
<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>
......@@ -56,7 +90,7 @@ export default {
viewType: 1,
journeyList: [],
FormKey: Date.now(),
loading:false
loading: false
}
},
mounted () {
......@@ -81,7 +115,7 @@ export default {
})
},
getList () {
this.$apis.journeyConfig.byGroupIdSop({ groupId:this.$globalState.session.merchantId, pageNumber: 1 }).then(res => {
this.$apis.journeyConfig.byGroupIdSop({ groupId: this.$globalState.session.merchantId, pageNumber: 1 }).then(res => {
this.journeyList = res.list || []
this.journeyList.forEach(item => {
const stages = JSON.parse(item.instParam).stages
......@@ -170,18 +204,20 @@ export default {
border-bottom: none;
display: flex;
gap: 2px;
height: 40px;
.tab {
background: #fafafa;
border: 1px solid #e5e5e5 !important;
border: 1px solid #e5e5e5;
border-radius: 4px 4px 0 0;
border-bottom: 0;
height: 40px !important;
line-height: 40px !important;
border-bottom: none;
height: 40px;
line-height: 40px;
width: fit-content;
min-width: 86px;
padding: 0 20px !important;
padding: 0 20px;
text-align: center;
cursor: pointer;
box-sizing: border-box;
}
.active,
.tab:hover {
......
......@@ -291,6 +291,9 @@ export default {
align-items: center;
}
.journey-table {
padding: 20px;
border: 1px solid #e5e5e5;
border-radius: 0 4px 4px 4px;
/deep/.el-drawer__header {
margin-bottom: 0;
padding-top: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!