BUG 29306
This commit is contained in:
@@ -7,8 +7,9 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<div class="flex fill">
|
<div class="flex fill">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<div class="title">宣传板块<span><el-button type="text"
|
<div class="title">宣传板块
|
||||||
@click="addType(0, typeList.length+1, '')">添加</el-button></span>
|
<span>
|
||||||
|
<el-button type="text" @click="addType(0, typeList.length+1, '')">添加</el-button></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="item" v-for="(item, index) in typeList" :key="index"
|
<div class="item" v-for="(item, index) in typeList" :key="index"
|
||||||
@@ -36,30 +37,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ai-search-bar>
|
<template v-if="typeList.length && miniTypeList.length">
|
||||||
<template #right>
|
<ai-search-bar>
|
||||||
<el-input size="small" placeholder="请输入标题" v-model="search.title" clearable
|
<template #left>
|
||||||
@change="page.current=1,getTableData()"/>
|
<el-button type="primary" icon="iconfont iconAdd" @click="showEdit('')">添加</el-button>
|
||||||
</template>
|
<!-- <el-button icon="iconfont iconDelete" :disabled="!ids.length" @click="handleDelete(ids)">删除</el-button> -->
|
||||||
</ai-search-bar>
|
|
||||||
<ai-search-bar>
|
|
||||||
<template #left>
|
|
||||||
<el-button type="primary" icon="iconfont iconAdd" @click="showEdit('')"
|
|
||||||
v-if="typeList.length && miniTypeList.length">添加
|
|
||||||
</el-button>
|
|
||||||
<!-- <el-button icon="iconfont iconDelete" :disabled="!ids.length" @click="handleDelete(ids)">删除</el-button> -->
|
|
||||||
</template>
|
|
||||||
</ai-search-bar>
|
|
||||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
|
||||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict"
|
|
||||||
@selection-change="v=>ids=v.map(e=>e.id)">
|
|
||||||
<el-table-column slot="options" label="操作" fixed="right" align="center" width='150px'>
|
|
||||||
<template slot-scope="{row}">
|
|
||||||
<el-button type="text" @click="showEdit(row.id)">编辑</el-button>
|
|
||||||
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
<template #right>
|
||||||
</ai-table>
|
<el-input size="small" placeholder="请输入标题" v-model="search.title" clearable
|
||||||
|
@change="page.current=1,getTableData()"/>
|
||||||
|
</template>
|
||||||
|
</ai-search-bar>
|
||||||
|
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||||
|
@getList="getTableData" :col-configs="colConfigs" :dict="dict"
|
||||||
|
@selection-change="v=>ids=v.map(e=>e.id)">
|
||||||
|
<el-table-column slot="options" label="操作" fixed="right" align="center" width='150px'>
|
||||||
|
<template slot-scope="{row}">
|
||||||
|
<el-button type="text" @click="showEdit(row.id)">编辑</el-button>
|
||||||
|
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</ai-table>
|
||||||
|
</template>
|
||||||
|
<ai-empty v-else>请选择或者添加模块</ai-empty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user