forked from github/dataease
refactor: 模版管理预览列表带入过滤条件查询
This commit is contained in:
parent
18cfe958ff
commit
067b8bc383
@ -17,7 +17,7 @@
|
|||||||
<el-icon class="custom-back-icon hover-icon" @click="previewModel = 'full'"
|
<el-icon class="custom-back-icon hover-icon" @click="previewModel = 'full'"
|
||||||
><ArrowLeft
|
><ArrowLeft
|
||||||
/></el-icon>
|
/></el-icon>
|
||||||
<span>{{ state.curTemplate.title }} </span>
|
<span>{{ state.curTemplate.title }}1 </span>
|
||||||
<el-row class="head-right">
|
<el-row class="head-right">
|
||||||
<el-button :disabled="state.curTemplateIndex === 0" style="float: right" @click="preOne"
|
<el-button :disabled="state.curTemplateIndex === 0" style="float: right" @click="preOne"
|
||||||
>上一个</el-button
|
>上一个</el-button
|
||||||
@ -480,8 +480,10 @@ const templatePreview = previewId => {
|
|||||||
} else {
|
} else {
|
||||||
state.curTemplateShowFilter =
|
state.curTemplateShowFilter =
|
||||||
state.marketActiveTab === '推荐'
|
state.marketActiveTab === '推荐'
|
||||||
? state.currentMarketTemplateShowList
|
? state.currentMarketTemplateShowList.filter(ele => ele.showFlag)
|
||||||
: state.currentMarketTemplateShowList.filter(ele => ele.showFlag)
|
: state.currentMarketTemplateShowList.filter(
|
||||||
|
ele => ele.showFlag && ele.categoryNames?.includes(state.marketActiveTab)
|
||||||
|
)
|
||||||
state.curTemplateIndex = state.curTemplateShowFilter.findIndex(temp => temp.id === previewId)
|
state.curTemplateIndex = state.curTemplateShowFilter.findIndex(temp => temp.id === previewId)
|
||||||
state.curTemplate = state.curTemplateShowFilter[state.curTemplateIndex]
|
state.curTemplate = state.curTemplateShowFilter[state.curTemplateIndex]
|
||||||
previewModel.value = 'createPreview'
|
previewModel.value = 'createPreview'
|
||||||
|
Loading…
Reference in New Issue
Block a user