Commit 367c7b6c by xinlaa

引流码,素材中心,群发消息,应用工具页面

1 parent f12c058d
<style lang="scss" scoped>
.el-card-inner {
h4 {
margin: 12px 0 24px;
}
p {
font-size: 14px;
color: #606266 !important;
margin-bottom: 13px;
padding: 0;
margin: 1em 0;
}
.upload-desc {
align-items: start;
}
}
</style>
<template>
<div>
<el-card shadow="never">
<div class="el-card-inner">
<h4>创建自建应用并设置应用主页</h4>
<p>
请在企业微信官方后台“应用管理-自建应用”(
<el-link
type="primary"
href="https://work.weixin.qq.com/wework_admin/loginpage_wx?redirect_uri=https://work.weixin.qq.com/wework_admin/frame#apps"
target="_blank"
>官方后台链接</el-link>)创建自建应用用于聊天工具栏。
</p>
<p>
然后在“客户联系-配置-聊天工具栏管理”(
<el-link
type="primary"
href="https://work.weixin.qq.com/wework_admin/loginpage_wx?redirect_uri=https://work.weixin.qq.com/wework_admin/frame#apps"
target="_blank"
>官方后台链接</el-link>)的配置应用页面,选择该应用并将以下网址链接复制并设置为自定义应用主页。
<el-button type="text">查看图示讲解</el-button>
</p>
<span>访问地址</span>
<el-input v-model="jio" disabled style="width: 350px; margin: 0px 15px;" placeholder></el-input>
<el-button type="primary">复制链接地址</el-button>
<p>请将该链接设置为聊天工具栏应用主页,用于聊天工具栏页面访问。否则无法正常使用聊天工具栏</p>
</div>
</el-card>
<el-card shadow="never">
<div class="el-card-inner">
<h4>设置应用可信域名</h4>
<p>
请在企业微信官方后台“应用管理-自建应用”(
<el-link
type="primary"
href="https://work.weixin.qq.com/wework_admin/loginpage_wx?redirect_uri=https://work.weixin.qq.com/wework_admin/frame#apps"
target="_blank"
>官方后台链接</el-link>),打开用于聊天工具栏的应用设置页,将qw.wshoto.com设置为可信域名,并下载校验文件保存到电脑本地后,在此处上传。
<button
type="button"
class="el-button el-button--text el-button--medium"
>
<!---->
<!---->
<span>查看图示讲解</span>
</button>
</p>
<p class="upload-desc flex">
<span style="float: left;">上传校验文件:</span>
<el-upload
action
on-preview
on-remove
before-remove
multiple
limit="3"
on-exceed
:file-list="[{name: 'name', url: 'url'}]"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">请上传txt格式的校验文件,用于完成域名归属验证。否则无法正常使用聊天工具栏</div>
</el-upload>
</p>
</div>
</el-card>
<div class="ac">
<el-checkbox v-model="d" >已配置好聊天工具栏应用主页和应用可信域名</el-checkbox>
<div><el-button type="primary">完成配置,去抓取素材</el-button></div>
</div>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.section-box {
margin-top: 32px;
&:first-of-type {
margin-top: 0;
}
.section-step {
height: 22px;
line-height: 22px;
padding: 0 7px;
text-align: center;
color: #fff;
background-color: #faad14;
display: inline-block;
font-size: 14px;
margin-bottom: 12px;
}
.message {
font-size: 14px;
color: #606266;
line-height: 22px;
font-weight: 400;
}
}
</style>
<template>
<div class="main-page">
<el-card shadow="never">
<div class="section-box">
<div class="section-step">什么是聊天工具栏?</div>
<div class="message">
企业微信3.0.16版本更新原聊天侧边栏升级为聊天工具栏。升级后:1.可以配置小程序了;2.入口更浅,交互体验更好;3.可配置第三方应用的页面了。
<br />企业可以把CRM页面、商品页面、知识库等挂接到聊天工具栏,方便员工和在客户聊天时,快速查看和编辑客户信息、快速给客户发东西、快速查找回答等。
</div>
</div>
<div class="section-box">
<div class="section-step">员工视角:聊天工具栏</div>
<div class="message">员工在与客户单聊或者外部群聊的时候,点击右上角的图标,对话框上方即可出现工具栏。</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/1.png"
class="image"
style="width: 818px; height: 495px;"
/>
</div>
<div class="section-box">
<div class="section-step">员工视角:电脑端外部群及单聊聊天侧边栏界面</div>
<div class="message">员工在与客户单聊或者外部群聊的时候,点击右上角的图标,对话框上方即可出现工具栏。</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/2.png"
class="image"
style="width: 818px; height: 494px;"
/>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/3.png"
class="image"
style="width: 818px; height: 483px;"
/>
<div
class="message"
style="margin-top: 32px;"
>聊天侧边栏的素材支持文本、网页、图文视频及文件,售前售后在客户服务过程中选择需要的素材直接即可发送。</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/4.png"
class="image"
style="width: 984px; height: 572px;"
/>
</div>
<div class="section-box">
<div class="section-step">如何配置聊天工具栏?</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/5.png"
class="image"
style="width: 1154px; height: 639px;"
/>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/6.png"
class="image"
style="width: 550px; height: 634px;"
/>
</div>
<div class="section-box">
<div class="section-step">聊天工具栏的内容是如何维护的?</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/7.png"
class="image"
style="width: 1176px; height: 629px;"
/>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/8.png"
class="image"
style="width: 555px; height: 634px;"
/>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/9.png"
class="image"
style="width: 797px; height: 387px;"
/>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/siber/10.png"
class="image"
style="width: 797px; height: 387px;"
/>
</div>
</el-card>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.chat-preview {
border-radius: 4px;
position: relative;
margin-left: 40px;
display: inline-block;
width: 150px;
min-height: 263px;
background-repeat: no-repeat;
background-size: cover;
top: 15px;
.logo {
width: 40px;
height: 40px;
position: absolute;
top: 18px;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
}
.company-name {
font-size: 12px;
position: absolute;
top: 70px;
text-align: center;
color: #ffe7be;
width: 100%;
}
}
</style>
<template>
<div>
<div>
配置聊天工具栏,方便成员在外部会话中查看和使用,提高服务效率。
<el-button type="text" @click="$router.push('/appTool/explain')">图文详解</el-button>
<el-button type="text" @click="$router.push('/appTool/config')">查看已配置信息</el-button>
</div>
<div>
<span>抓取快捷回复素材</span> 素材抓取后,即可在聊天工具栏使用
</div>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="素材类型" align="center" prop="operId" />
<el-table-column label="聊天工具栏名称" align="center" prop="title" />
<el-table-column label="已抓取素材数量" align="center" prop="businessType" :formatter="typeFormat" />
<el-table-column label="是否启用" align="center" prop="operTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.operTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" prop="operId">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
>抓取素材</el-button>
</template>
</el-table-column>
</el-table>
<el-card shadow="never" header="红包工具栏">
<!-- <div slot="header"></div> -->
<el-row :gutter="10">
<el-col :span="10">
<div>
<div>
发红包权限人
<el-button type="text">修改</el-button>
</div>
<el-tag type="info" effect="plain">
<i class="el-icon-user-solid"></i> 深肤色
</el-tag>
<el-tag type="info" effect="plain">
<i class="el-icon-user-solid"></i>深肤色
</el-tag>
<el-tag type="info" effect="plain">
<i class="el-icon-user-solid"></i>深肤色
</el-tag>
</div>
<el-form ref="form" :model="form" label-width="100px">
<el-form-item label="企业logo">
<el-upload action :show-file-list="false" :on-success="d" :before-upload="d">
<img v-if="imageUrl" :src="imageUrl" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<div>上传企业logo,建议112*112</div>
</el-form-item>
<el-form-item label="企业名称">
<el-input v-model="model"></el-input>
</el-form-item>
<el-form-item label="红包应用ID">
<el-input v-model="model"></el-input>
</el-form-item>
</el-form>
</el-col>
<el-col :span="10">
<div
class="chat-preview"
style="background-image: url(&quot;https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/red-packet.png&quot;);"
>
<div class="el-image logo" style>
<div class="el-image__error">加载失败</div>
<!---->
</div>
<el-image class="logo" :src="url" :fit="fit"></el-image>
<div class="company-name">脑白金</div>
</div>
</el-col>
</el-row>
</el-card>
<el-dialog
title="抓取文本类型素材库"
:visible.sync="dialogVisible"
:before-close="dialogBeforeClose"
>
<el-row :gutter="10">
<el-col :span="6">
<el-tree :data="d" :props="d" @node-click="d"></el-tree>
</el-col>
<el-col :span="18">
<div class="fxbw">
素材库更新本分类素材后,自动同步到聊天工具栏
<div class="filter-right">
<i class="el-icon-arrow-left"></i> 1/1
<i class="el-icon-arrow-right"></i>
</div>
</div>
<el-table :data="data" style="width: 100%">
<el-table-column type="selection" width="55" align="center" />
<el-table-column prop="prop" label="文本内容" width="width"></el-table-column>
<el-table-column prop="prop" label="时间" width="width"></el-table-column>
</el-table>
</el-col>
</el-row>
<div slot="footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {
dialogVisible: true,
};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.preview {
width: 260px;
height: 500px;
background: #eee;
border-radius: 8px;
padding: 10px;
}
</style>
<template>
<div>
<el-card shadow="never">
<el-row type="flex" justify="center" :gutter="50">
<el-col :span="10">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="公司名称">
<el-input v-model="model"></el-input>
</el-form-item>
<el-form-item label="背景图片">
<el-upload action :show-file-list="false" :on-success="d" :before-upload="d">
<img v-if="imageUrl" :src="imageUrl" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" size="small">提交</el-button>
</el-form-item>
</el-form>
</el-col>
<el-col :span="10">
<div class="preview">
<div class="top">房管局会</div>
</div>
</el-col>
</el-row>
</el-card>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.section-box {
margin-top: 32px;
&:first-of-type {
margin-top: 0;
}
.section-step {
height: 22px;
line-height: 22px;
padding: 0 7px;
text-align: center;
color: #fff;
background-color: #faad14;
display: inline-block;
font-size: 14px;
margin-bottom: 12px;
}
.message {
font-size: 14px;
color: #606266;
line-height: 22px;
font-weight: 400;
}
}
</style>
<template>
<div>
<div class="el-card__body">
<div class="section-box">
<div class="section-step">第一步</div>
<div class="message">管理员登录企业微信管理后台,在我的企业——通讯录管理——成员资料显示——对外资料显示,点击修改;</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/moment/1.png"
class="image"
style="width: 882px; height: 277px;"
/>
<div class="message">点击添加自定义信息,选择网页,名称填写朋友圈,确定保存后,员工对外资料页就会出现朋友圈这一项信息。</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/moment/2.png"
class="image"
style="width: 750px; height: 817px;"
/>
</div>
<div class="section-box">
<div class="section-step">第二步</div>
<div
class="message"
>完成修改后,返回企业微信手机端,打开对外信息显示,填写朋友圈网页信息;该栏需要输入网页名称,建议填写“查看朋友圈”;</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/moment/3.png"
class="image"
style="width: 439px; height: 526px;"
/>
</div>
<div class="section-box">
<div class="section-step">第三步</div>
<div class="message">
获取朋友圈地址。后台管理员可一键发送、导出、复制员工的朋友圈地址。
<br />员工将朋友圈链接粘贴到对外信息显示的朋友圈列表内,这样客户打开员工的对外资料,就能看到员工发布的朋友圈。
</div>
<img
src="https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/moment/4.png"
class="image"
style="width: 561px; height: 577px;"
/>
</div>
</div>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
</style>
<template>
<div>
<el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="朋友圈动态" name="1">
<div>
* 该朋友圈为展示在企业成员对外资料显示中的企业朋友圈,
<!-- <el-button type="primary">查看功能介绍</el-button> -->
<el-link type="primary" href="/appTool/friendIntroduce">查看功能介绍</el-link>
</div>
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="100px">
<el-form-item label="关键词" prop="title">
<el-input
v-model="queryParams.title"
placeholder="请输入"
clearable
style="width: 240px;"
size="small"
/>
</el-form-item>
<el-form-item label="发布时间">
<el-date-picker
v-model="dateRange"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label>
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
</el-form-item>
</el-form>
<div class="ar">
<el-button type="primary">发布动态</el-button>
</div>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="所选成员" align="center" prop="operId" />
<el-table-column label="发布内容" align="center" prop="title" />
<el-table-column label="创建人" align="center" prop="businessType" />
<el-table-column label="发布时间" align="center" prop="operTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.operTime) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>下载</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>复制链接</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>查看详情</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>编辑</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改参数配置对话框 -->
<el-dialog title="编辑图片" :visible.sync="open" width="600px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="图片名称">
<el-input v-model="sd" placeholder></el-input>
</el-form-item>
<el-form-item label="图片文案">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
</el-form-item>
<el-form-item label="图片">
<el-upload action :show-file-list="false" :on-success="d" :before-upload="d">
<img v-if="imageUrl" :src="imageUrl" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<div>支持JPG,PNG格式,图片大小不超过2M,建议上传宽高1:1的图片</div>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
</el-tab-pane>
<el-tab-pane label="设置" name="2">
<div class="ar">
<el-input
placeholder="请输入内容"
prefix-icon="el-icon-search"
style="width: 240px;"
v-model="input2"
></el-input>
<el-button @click="$router.push('/appTool/friendBackground')">设置默认背景图片</el-button>
<el-button type="primary">一键设置朋友圈地址</el-button>
</div>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column label="员工" align="center" prop="operId" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>编辑头像背景</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row,scope.index)"
v-hasPermi="['monitor:operlog:query']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {
queryParams: {},
form: {},
activeName: "1",
};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.content-wrap {
height: 500px;
align-items: stretch;
justify-content: space-between;
padding-right: 6%;
.el-tabs,
.preview {
width: 60%;
background: #eee;
border-radius: 8px;
padding: 10px;
}
.preview {
width: 260px;
}
}
</style>
<template>
<div class="app-container">
<el-card shadow="never" :body-style="{padding: '40px 20px 20px'}">
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="选择员工" prop="postCode">
<el-button type="primary" size="mini">选择</el-button>
</el-form-item>
<el-form-item label="朋友圈内容">
<div class="flex content-wrap">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-button class="fr" type="primary" size="mini">新建素材</el-button>
<el-tab-pane name="first">
<span slot="label">
<i class="el-icon-date"></i> 文本
</span>
<el-upload action="#" list-type="picture-card" :auto-upload="false">
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt />
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleDownload(file)"
>
<i class="el-icon-download"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i>
</span>
</span>
</div>
</el-upload>
</el-tab-pane>
<el-tab-pane label="角色管理" name="third">
<span slot="label">
<i class="el-icon-date"></i> 图片
</span>
角色管理
</el-tab-pane>
<el-tab-pane label="定时任务补偿" name="fourth">
<span slot="label">
<i class="el-icon-date"></i> 视频
</span>
定时任务补偿
</el-tab-pane>
</el-tabs>
<div class="preview">
<div class="top">房管局会</div>
</div>
</div>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" size="small">提交</el-button>
</el-form-item>
</el-form>
</el-card>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {
// 表单参数
form: {},
statusOptions: [
{ label: "发送给客户", value: "" },
{ label: "发送给客户群", value: "" },
],
activeName: "second",
};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
},
};
</script>
......@@ -9,6 +9,7 @@ export default {
dialogVisible: false,
dialogVisible1: false,
form: { id: "", welcomeMsgTplType: "", welcomeMsg: "" },
imageUrl: "",
};
},
watch: {},
......@@ -25,6 +26,23 @@ export default {
insertName() {
this.form.welcomeMsg += "#客户昵称#";
},
uploadSuccess(res, file) {
debugger;
this.imageUrl = URL.createObjectURL(file.raw);
},
beforeUpload(file) {
debugger;
const isJPG = file.type === "image/jpeg";
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isJPG) {
this.$message.error("上传头像图片只能是 JPG 格式!");
}
if (!isLt2M) {
this.$message.error("上传头像图片大小不能超过 2MB!");
}
return isJPG && isLt2M;
},
},
};
</script>
......@@ -54,17 +72,18 @@ export default {
>插入客户昵称</el-button>
</div>
<el-divider></el-divider>
<img v-if="imageUrl" :src="imageUrl" />
<el-popover placement="top-start" trigger="hover">
<div class="flex">
<el-upload
class="mr10"
action
:show-file-list="false"
:on-success="on-success"
:before-upload="before-upload"
:on-success="uploadSuccess"
:before-upload="beforeUpload"
>
<img v-if="imageUrl" :src="imageUrl" />
<el-button v-else>
<el-button>
<i class="el-icon-picture-outline"></i>
<p>图片</p>
</el-button>
......@@ -79,7 +98,7 @@ export default {
<p>小程序</p>
</el-button>-->
</div>
<el-button slot="reference" icon="el-icon-plus" size="mini" @click="resetQuery">添加图片/网页</el-button>
<el-button slot="reference" icon="el-icon-plus" size="mini">添加图片/网页</el-button>
</el-popover>
</el-card>
</el-form-item>
......@@ -99,12 +118,7 @@ export default {
</div>
</div>
<el-dialog
title="添加网页消息"
:visible.sync="dialogVisible"
width="width"
:before-close="dialogBeforeClose"
>
<el-dialog title="添加网页消息" :visible.sync="dialogVisible" width="width">
<el-form :model="form" inline>
<el-form-item label="添加网页消息" label-width="200">
<el-input style="width: 400px;" v-model="j" placeholder="以http或https开头"></el-input>
......@@ -116,11 +130,10 @@ export default {
</div>
</el-dialog>
<el-dialog
<!-- <el-dialog
title="添加小程序消息"
:visible.sync="dialogVisible1"
width="width"
:before-close="dialogBeforeClose"
>
<div class="flex filter-wrap">
<el-select v-model="model" placeholder="请选择分组">
......@@ -152,7 +165,7 @@ export default {
<el-button @click="dialogVisible1 = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible1 = false">确 定</el-button>
</div>
</el-dialog>
</el-dialog>-->
</div>
</template>
......
<style lang="scss" scoped>
.content-wrap {
height: 500px;
align-items: stretch;
justify-content: space-between;
padding-right: 6%;
.el-tabs,
.preview {
width: 60%;
background: #eee;
border-radius: 8px;
padding: 10px;
}
.preview {
width: 260px;
}
}
</style>
<template>
<div class="app-container">
<el-card shadow="never" :body-style="{padding: '40px 20px 20px'}">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="群发类型" prop="postName">
<el-radio-group v-model="form.status">
<el-radio
v-for="dict in statusOptions"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="发送范围" prop="postCode">
<el-button type="primary" size="mini">选择发送客户</el-button>
</el-form-item>
<el-form-item label="发送时间" prop="postSort">
<el-date-picker
v-model="form.status"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="datetime"
placeholder="开始日期"
></el-date-picker>
<span>设置时间定时发送,不设置立即发送</span>
</el-form-item>
<el-form-item label=" ">
<div class="flex content-wrap">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-button class="fr" type="primary" size="mini">新建素材</el-button>
<el-tab-pane name="first">
<span slot="label">
<i class="el-icon-date"></i> 文本
</span>
<el-upload action="#" list-type="picture-card" :auto-upload="false">
<i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt />
<span class="el-upload-list__item-actions">
<span
class="el-upload-list__item-preview"
@click="handlePictureCardPreview(file)"
>
<i class="el-icon-zoom-in"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleDownload(file)"
>
<i class="el-icon-download"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i>
</span>
</span>
</div>
</el-upload>
</el-tab-pane>
<el-tab-pane label="配置管理" name="second">
<span slot="label">
<i class="el-icon-date"></i> 网页
</span>
配置管理
</el-tab-pane>
<el-tab-pane label="角色管理" name="third">
<span slot="label">
<i class="el-icon-date"></i> 图片
</span>
角色管理
</el-tab-pane>
<el-tab-pane label="定时任务补偿" name="fourth">
<span slot="label">
<i class="el-icon-date"></i> 海报
</span>
定时任务补偿
</el-tab-pane>
<el-tab-pane label="定时任务补偿" name="fourth">
<span slot="label">
<i class="el-icon-date"></i> 小程序
</span>
定时任务补偿
</el-tab-pane>
</el-tabs>
<div class="preview">
<div class="top">房管局会</div>
</div>
</div>
</el-form-item>
<el-form-item label=" ">
<el-button type="primary" size="mini" icon="el-icon-search">通知成员发送</el-button>
<span>通知成员,向选中的客户发送以上企业消息</span>
<i class="el-icon-edit"></i>
</el-form-item>
</el-form>
</el-card>
</div>
</template>
<script>
export default {
components: {},
props: {},
data() {
return {
// 表单参数
form: {},
statusOptions: [
{ label: "发送给客户", value: "" },
{ label: "发送给客户群", value: "" },
],
activeName: "second",
};
},
watch: {},
computed: {},
created() {},
mounted() {},
methods: {
handleClick(tab, event) {
console.log(tab, event);
},
},
};
</script>
<style lang="scss" scoped>
.mid-action {
display: flex;
justify-content: space-between;
margin: 10px 0;
align-items: center;
.total {
background-color: rgba(65, 133, 244, 0.1);
border: 1px solid rgba(65, 133, 244, 0.2);
border-radius: 3px;
font-size: 14px;
min-height: 32px;
line-height: 32px;
padding: 0 12px;
color: #606266;
}
.num {
color: #00f;
}
}
</style>
<template>
<div class="app-container">
<el-card shadow="never" :body-style="{padding: '20px 0 0'}">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-form-item label="创建人" prop="title">
<el-input
v-model="queryParams.title"
placeholder="请输入"
clearable
style="width: 240px;"
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="内容消息" prop="operName">
<el-input
v-model="queryParams.operName"
placeholder="请输入"
clearable
style="width: 240px;"
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="群发类型">
<el-select v-model="form.region" placeholder="请选择" size="small" style="width: 240px;">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item label="创建日期">
<el-date-picker
v-model="dateRange"
size="small"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label=" ">
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
</el-card>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="消息内容" align="center" prop="operId" />
<el-table-column label="群发类型" align="center" prop="title" />
<el-table-column label="创建人" align="center" prop="businessType" :formatter="typeFormat" />
<el-table-column label="创建时间" align="center" prop="operTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.operTime) }}</span>
</template>
</el-table-column>
<el-table-column label="发送情况" align="center" prop="operId">
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
export default {
name: "Operlog",
data() {
return {
// 遮罩层
loading: false,
// 选中数组
ids: [],
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 表格数据
list: [],
// 是否显示弹出层
open: false,
// 类型数据字典
typeOptions: [],
// 类型数据字典
statusOptions: [],
// 日期范围
dateRange: [],
// 表单参数
form: {},
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
title: undefined,
operName: undefined,
businessType: undefined,
status: undefined,
},
};
},
created() {
this.getList();
this.getDicts("sys_oper_type").then((response) => {
this.typeOptions = response.data;
});
this.getDicts("sys_common_status").then((response) => {
this.statusOptions = response.data;
});
},
methods: {
/** 查询登录日志 */
getList() {
this.loading = false;
list(this.addDateRange(this.queryParams, this.dateRange)).then(
(response) => {
this.list = response.rows;
this.total = response.total;
this.loading = false;
}
);
},
// 操作日志状态字典翻译
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
// 操作日志类型字典翻译
typeFormat(row, column) {
return this.selectDictLabel(this.typeOptions, row.businessType);
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.dateRange = [];
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.operId);
this.multiple = !selection.length;
},
/** 详细按钮操作 */
handleView(row) {
this.open = true;
this.form = row;
},
/** 删除按钮操作 */
handleDelete(row) {
const operIds = row.operId || this.ids;
this.$confirm(
'是否确认删除日志编号为"' + operIds + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return delOperlog(operIds);
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
})
.catch(function () {});
},
/** 清空按钮操作 */
handleClean() {
this.$confirm("是否确认清空所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return cleanOperlog();
})
.then(() => {
this.getList();
this.msgSuccess("清空成功");
})
.catch(function () {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有操作日志数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return exportOperlog(queryParams);
})
.then((response) => {
this.download(response.msg);
})
.catch(function () {});
},
},
};
</script>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!