This commit is contained in:
2024-10-09 08:48:45 +08:00
parent 875a84cfb2
commit f95a5c0af2
5 changed files with 144 additions and 64 deletions
@@ -2,8 +2,8 @@
layout("/layouts/platform.html"){
#-->
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0 5%">
<div class="platform" id="app" v-cloak>
<guava padding="0 5%" ref="guava">
<template>
<el-card shadow="never">
<div class="btn-group tool-button mr10">
@@ -17,65 +17,71 @@ layout("/layouts/platform.html"){
</div>
<div class="btn-group tool-button mr10">
<el-input placeholder="请输入活动名称" clearable v-model="pageForm.title"
<el-input @keyup.enter.native="doSearch" clearable placeholder="请输入活动名称"
style="width: 100%"
@keyup.enter.native="doSearch">
v-model="pageForm.title">
</el-input>
</div>
<div class="btn-group tool-button mt5 mr10">
<el-checkbox-group v-model="pageForm.sendTypes" @change="doSearch">
<el-checkbox-button label="msg" border>短信发送</el-checkbox-button>
<el-checkbox-button label="WeChat" border>微信发送</el-checkbox-button>
<el-checkbox-group @change="doSearch" v-model="pageForm.sendTypes">
<el-checkbox-button border label="msg">短信发送</el-checkbox-button>
<el-checkbox-button border label="WeChat">微信发送</el-checkbox-button>
</el-checkbox-group>
</div>
<div class="btn-group tool-button ">
<el-button type="primary" icon="el-icon-search" @click="doSearch">搜索</el-button>
<el-button @click="doSearch" icon="el-icon-search" type="primary">搜索</el-button>
</div>
</el-card>
<el-card class="mt10" shadow="never">
<table-tool label="消息列表" :app="this">
<table-tool :app="this" label="消息列表">
<template #func>
</template>
</table-tool>
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
v-loading="tableLoading" :size="tableSize" class="vi-table">
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
class="vi-table"
row-key="id" style="width: 100%" v-loading="tableLoading">
<el-table-column align="center" header-align="center" type="index" :index="indexMethod" label="序号"
<el-table-column :index="indexMethod" align="center" header-align="center"
label="序号" type="index"
width="80px"></el-table-column>
<el-table-column
show-overflow-tooltip
align="center"
header-align="center"
v-for="column in tableColumns"
:label="column.label"
:prop="column.prop"
:sortable="column.sortable"
:width="column.width"
align="center"
header-align="center"
min-width="50"
show-overflow-tooltip
v-for="column in tableColumns"
>
<template v-if="column.prop==='module'" scope="{row}">
<template scope="{row}" v-if="column.prop==='module'">
{{row.module=='hy'?'会员模块':'教代会模块'}}
</template>
<template v-else-if="column.prop==='teacherMeetingName'" scope="{row}">
<template scope="{row}" v-else-if="column.prop==='teacherMeetingName'">
{{!row.teacherMeetingId?'暂无':row.jdhallname}}
</template>
<template v-else-if="column.prop==='type'" scope="{row}">
<template scope="{row}" v-else-if="column.prop==='type'">
{{row.type=='system'?'预设团体':row.type=='user'?'自定义人员':'活动设置人员'}}
</template>
<template v-else-if="column.prop==='hold'" scope="{row}">
<template scope="{row}" v-else-if="column.prop==='hold'">
{{row.hold?'已发送':'未发送'}}
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" fixed="right">
<el-table-column align="center" fixed="right" header-align="center" label="操作">
<template scope="{row}">
<el-button @click="doSend(row)" size="mini" type="success" v-if="!row.hold">发送</el-button>
<el-button @click="openView(row)" size="mini" v-if="row.hold">查看</el-button>
<el-button size="mini" type="primary" @click="openEdit(row)" v-if="!row.hold">编辑</el-button>
<el-button size="mini" type="danger" @click="doDelete(row.id)">删除</el-button>
<el-button @click="doSend(row)" size="mini" type="success">发送
</el-button>
<el-button @click="openView(row)" size="mini" v-if="row.hold">查看
</el-button>
<el-button @click="openEdit(row)" size="mini" type="primary">编辑
</el-button>
<el-button @click="doDelete(row.id)" size="mini" type="danger">删除
</el-button>
</template>
</el-table-column>
@@ -217,4 +223,4 @@ layout("/layouts/platform.html"){
<!--#
}
#-->
#-->