1、视频圈:增加修改点赞、评论、置顶功能
2、调整菜单栏消息提示逻辑 3、增加人工朗读公共方法speechReminder
This commit is contained in:
parent
25759f98b3
commit
e433696bbf
Binary file not shown.
|
@ -0,0 +1,20 @@
|
||||||
|
export function speak(text, options = {}) {
|
||||||
|
// 检查浏览器是否支持 speech synthesis
|
||||||
|
if ('speechSynthesis' in window) {
|
||||||
|
const utterance = new SpeechSynthesisUtterance();
|
||||||
|
|
||||||
|
// 设置传递过来的文本
|
||||||
|
utterance.text = text;
|
||||||
|
|
||||||
|
// 可选参数:语言、音量、语速、音调等
|
||||||
|
utterance.lang = options.lang || 'zh-CN'; // 默认语言为中文
|
||||||
|
utterance.volume = options.volume || 1; // 音量,默认值为1(范围0到1)
|
||||||
|
utterance.rate = options.rate || 1.5; // 语速,默认值为1(范围0.1到10)
|
||||||
|
utterance.pitch = options.pitch || 1; // 音调,默认值为1(范围0到2)
|
||||||
|
|
||||||
|
// 开始朗读
|
||||||
|
window.speechSynthesis.speak(utterance);
|
||||||
|
} else {
|
||||||
|
console.log('您的浏览器不支持语音合成');
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,10 +3,7 @@
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<div style="display: inline-block">
|
<div style="display: inline-block">
|
||||||
<span>状态:</span>
|
<span>状态:</span>
|
||||||
<el-select
|
<el-select clearable v-model="status" style="width: 150px;">
|
||||||
clearable
|
|
||||||
v-model="status"
|
|
||||||
style="width: 150px;">
|
|
||||||
<el-option value="" label="全部"></el-option>
|
<el-option value="" label="全部"></el-option>
|
||||||
<el-option value="0" label="待审批"></el-option>
|
<el-option value="0" label="待审批"></el-option>
|
||||||
<el-option value="1" label="已通过"></el-option>
|
<el-option value="1" label="已通过"></el-option>
|
||||||
|
@ -15,184 +12,119 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left:10px;display: inline-block">
|
<div style="margin-left:10px;display: inline-block">
|
||||||
<span>姓名:</span>
|
<span>姓名:</span>
|
||||||
<el-input
|
<el-input style="width: 200px" placeholder="请输入技师姓名" v-model="name">
|
||||||
style="width: 200px"
|
|
||||||
placeholder="请输入技师姓名"
|
|
||||||
v-model="name">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
<el-button
|
<div style="display: inline-block">
|
||||||
style="margin-left: 10px"
|
<span>置顶:</span>
|
||||||
size="mini"
|
<el-select clearable v-model="isTop" style="width: 150px;">
|
||||||
type="primary"
|
<el-option value="" label="全部"></el-option>
|
||||||
icon="document"
|
<el-option value="1" label="已置顶"></el-option>
|
||||||
@click="handleSelect"
|
<el-option value="0" label="未置顶"></el-option>
|
||||||
>查询
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<el-button style="margin-left: 10px" size="mini" type="primary" icon="document" @click="handleSelect">查询
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button style="margin-left: 10px" size="mini" type="primary" icon="document" @click="handleClear">重置
|
||||||
style="margin-left: 10px"
|
|
||||||
size="mini"
|
|
||||||
type="primary"
|
|
||||||
icon="document"
|
|
||||||
@click="handleClear"
|
|
||||||
>重置
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
||||||
<el-table-column
|
<el-table-column prop="id" label="编号" width="80">
|
||||||
prop="id"
|
|
||||||
label="编号"
|
|
||||||
width="80"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="artificerImg" label="头像" width="80">
|
<el-table-column prop="artificerImg" label="头像" width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img v-if="scope.row.artificerImg && scope.row.artificerImg != ''" :src="scope.row.artificerImg"
|
||||||
v-if="scope.row.artificerImg && scope.row.artificerImg != ''"
|
width="40" height="40" />
|
||||||
:src="scope.row.artificerImg"
|
|
||||||
width="40"
|
|
||||||
height="40"
|
|
||||||
/>
|
|
||||||
<span v-else>暂无图片</span>
|
<span v-else>暂无图片</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="artificerName" label="姓名" width="120">
|
||||||
prop="artificerName"
|
|
||||||
label="姓名"
|
|
||||||
width="120"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="picPath" label="视频" width="120" >
|
<el-table-column prop="picPath" label="视频" width="120">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img v-if="scope.row.picPath && scope.row.picPath != ''" :src="scope.row.picPath" width="120"
|
||||||
v-if="scope.row.picPath && scope.row.picPath != ''"
|
height="120" @click="showVideo(scope.row)" />
|
||||||
:src="scope.row.picPath"
|
|
||||||
width="120"
|
|
||||||
height="120"
|
|
||||||
@click="showVideo(scope.row)"
|
|
||||||
/>
|
|
||||||
<span v-else>暂无视频</span>
|
<span v-else>暂无视频</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="createTime" label="申请时间" width="150">
|
||||||
prop="createTime"
|
|
||||||
label="申请时间"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="content" label="内容" width="220">
|
||||||
prop="content"
|
|
||||||
label="内容"
|
|
||||||
width="220"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="dzs" label="点赞数" width="120">
|
||||||
prop="dzs"
|
<template slot-scope="scope">
|
||||||
label="点赞数"
|
<el-button type="text" @click="setDzs(scope.row)">{{ scope.row.dzs }}</el-button>
|
||||||
width="120"
|
</template>
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="pls" label="评论数" width="120">
|
||||||
prop="pls"
|
<template slot-scope="scope">
|
||||||
label="评论数"
|
<el-button type="text" @click="handlePl(scope.row)">{{ scope.row.pls }}</el-button>
|
||||||
width="120"
|
</template>
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="status" label="状态" width="120">
|
||||||
prop="status"
|
|
||||||
label="状态"
|
|
||||||
width="120"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.status == 0">待审批</span>
|
<span v-if="scope.row.status == 0">待审批</span>
|
||||||
<span v-if="scope.row.status == 1">已通过</span>
|
<span v-if="scope.row.status == 1">已通过</span>
|
||||||
<span v-if="scope.row.status == 2">已拒绝</span>
|
<span v-if="scope.row.status == 2">已拒绝</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="opinion" label="意见" width="150">
|
||||||
prop="opinion"
|
|
||||||
label="意见"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" prop="id" width="300" fixed="right">
|
<el-table-column prop="topSort" label="置顶" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-if="scope.row.status == 0"
|
<span v-if="scope.row.topSort == 0" style="color:#909399">未置顶</span>
|
||||||
size="mini"
|
<span v-else style="color:#67C23A">已置顶({{scope.row.topSort}})</span>
|
||||||
type="primary"
|
</template>
|
||||||
style="margin: 5px"
|
</el-table-column>
|
||||||
@click="handleDelete(scope.row)"
|
<el-table-column label="操作" prop="id" width="230" fixed="right">
|
||||||
>删除
|
<template slot-scope="scope">
|
||||||
|
<el-button v-if="scope.row.status == 0" size="mini" type="primary" style="margin: 5px"
|
||||||
|
@click="handleDelete(scope.row)">删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status == 0"
|
<el-button v-if="scope.row.status == 0" size="mini" type="primary" style="margin: 5px"
|
||||||
size="mini"
|
@click="handleApply(scope.row)">审批
|
||||||
type="primary"
|
|
||||||
style="margin: 5px"
|
|
||||||
@click="handleApply(scope.row)"
|
|
||||||
>审批
|
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
<el-button size="mini" type="primary"
|
||||||
size="mini"
|
style="margin: 5px" @click="handleToTop(scope.row,true)">
|
||||||
type="primary"
|
{{ scope.row.topSort == 0 ? '置顶' : '置顶顺序'}}
|
||||||
style="margin: 5px"
|
</el-button>
|
||||||
@click="handleCancelApply(scope.row)"
|
<el-button v-if="scope.row.topSort > 0 " size="mini" type="primary"
|
||||||
>取消审批
|
style="margin: 5px" @click="handleToTop(scope.row,false)">取消置顶
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="scope.row.status == 1 || scope.row.status == 2" size="mini" type="primary"
|
||||||
|
style="margin: 5px" @click="handleCancelApply(scope.row)">取消审批
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div style="text-align: center; margin-top: 10px">
|
<div style="text-align: center; margin-top: 10px">
|
||||||
<el-pagination
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
||||||
@size-change="handleSizeChange"
|
:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
|
||||||
@current-change="handleCurrentChange"
|
layout="total,sizes, prev, pager, next,jumper" :total="tableData.totalCount">
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
|
||||||
:page-size="limit"
|
|
||||||
:current-page="page"
|
|
||||||
layout="total,sizes, prev, pager, next,jumper"
|
|
||||||
:total="tableData.totalCount"
|
|
||||||
>
|
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<!-- 审批 -->
|
<!-- 审批 -->
|
||||||
<el-dialog :title="titles" :visible.sync="dialogApproveFormVisible" center @close="closeApply">
|
<el-dialog :title="titles" :visible.sync="dialogApproveFormVisible" center @close="closeApply">
|
||||||
<div style="margin-bottom: 10px; display: flex">
|
<div style="margin-bottom: 10px; display: flex">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right">头像:</span>
|
<span style="width: 200px; display: inline-block; text-align: right">头像:</span>
|
||||||
<div
|
<div style="
|
||||||
style="
|
|
||||||
width: 148px;
|
width: 148px;
|
||||||
height: 148px;
|
height: 148px;
|
||||||
border: 1px dashed #c0ccda;
|
border: 1px dashed #c0ccda;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 148px;
|
line-height: 148px;
|
||||||
"
|
">
|
||||||
>
|
<img :src="artificerImg" class="avatar" style="border-radius: 6px; width: 148px; height: 148px" />
|
||||||
<img
|
|
||||||
:src="artificerImg"
|
|
||||||
class="avatar"
|
|
||||||
style="border-radius: 6px; width: 148px; height: 148px"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right">姓名:</span>
|
<span style="width: 200px; display: inline-block; text-align: right">姓名:</span>
|
||||||
<el-input
|
<el-input style="width: 50%" v-model="artificerName" :disabled="true"></el-input>
|
||||||
style="width: 50%"
|
|
||||||
v-model="artificerName"
|
|
||||||
:disabled="true"
|
|
||||||
></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right"
|
<span style="width: 200px; display: inline-block; text-align: right">内容:</span>
|
||||||
>内容:</span
|
<el-input style="width: 50%" v-model="content" type="textarea" :rows="4" :disabled="true">
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
style="width: 50%"
|
|
||||||
v-model="content"
|
|
||||||
type="textarea"
|
|
||||||
:rows="4"
|
|
||||||
:disabled="true"
|
|
||||||
>
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
|
@ -204,13 +136,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom: 10px">
|
<div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right">审批意见:</span>
|
<span style="width: 200px; display: inline-block; text-align: right">审批意见:</span>
|
||||||
<el-input
|
<el-input style="width: 50%" v-model="opinion" type="textarea" :rows="4" placeholder="请输入审批意见">
|
||||||
style="width: 50%"
|
|
||||||
v-model="opinion"
|
|
||||||
type="textarea"
|
|
||||||
:rows="4"
|
|
||||||
placeholder="请输入审批意见"
|
|
||||||
>
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
@ -227,6 +153,39 @@
|
||||||
<el-button @click="dialogVideoFormVisible = false">关闭</el-button>
|
<el-button @click="dialogVideoFormVisible = false">关闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 评论管理 -->
|
||||||
|
<el-dialog :title="'评论管理'" :visible.sync="plDialogVisible" @close="changePlDialog(false)">
|
||||||
|
<el-table height="500" :data="plTableData" border style="width: 100%;" >
|
||||||
|
<el-table-column prop="userPhoto" label="头像" width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<img v-if="scope.row.userPhoto && scope.row.userPhoto != ''" :src="scope.row.userPhoto"
|
||||||
|
width="40" height="40" />
|
||||||
|
<span v-else>暂无图片</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="userName" label="姓名" width="120">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="createTime" label="日期" width="170">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="content" label="内容" >
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" size="small" @click="deletePl(scope.row)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div style="margin-top: 20px">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="22">
|
||||||
|
<el-input type="textarea" placeholder="请输入评价..." v-model="plContent"></el-input>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1">
|
||||||
|
<el-button type="primary" @click="releasePl">发 布</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -243,6 +202,7 @@ export default {
|
||||||
id: "",
|
id: "",
|
||||||
name: "",
|
name: "",
|
||||||
status: "",
|
status: "",
|
||||||
|
isTop:"",
|
||||||
artificerImg: "",
|
artificerImg: "",
|
||||||
artificerName: "",
|
artificerName: "",
|
||||||
content: "",
|
content: "",
|
||||||
|
@ -252,10 +212,134 @@ export default {
|
||||||
dialogApproveFormVisible: false,
|
dialogApproveFormVisible: false,
|
||||||
videoUrl: "",
|
videoUrl: "",
|
||||||
dialogVideoFormVisible: false,
|
dialogVideoFormVisible: false,
|
||||||
videoPlayer: null
|
videoPlayer: null,
|
||||||
|
plDialogVisible:false,//评论管理开关
|
||||||
|
plTableData: [],//评论管理列表数据
|
||||||
|
plContent:'',//评论内容,只在评论管理弹窗中使用
|
||||||
|
pl_shipinquanId:'',//当前操作的视频的id
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//发布评论
|
||||||
|
releasePl(){
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("/app/shipinquan/addContent"),
|
||||||
|
method: "post",
|
||||||
|
params: {
|
||||||
|
createBy: null,
|
||||||
|
content: this.plContent,
|
||||||
|
shipinquanId: this.pl_shipinquanId,
|
||||||
|
}
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data.code == 0) {
|
||||||
|
this.handlePl({ id: this.pl_shipinquanId })
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//关闭评论管理
|
||||||
|
changePlDialog(sign){
|
||||||
|
this.plDialogVisible = sign
|
||||||
|
if(!sign){
|
||||||
|
//刷新列表
|
||||||
|
this.handleSelect();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//删除评论
|
||||||
|
deletePl(row){
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("/bl/shipinquanPinglun/delete"),
|
||||||
|
method: "post",
|
||||||
|
params: {
|
||||||
|
id: row.id,
|
||||||
|
shipinquanId:this.pl_shipinquanId
|
||||||
|
}
|
||||||
|
}).then(({ data }) => {
|
||||||
|
this.handlePl({ id: this.pl_shipinquanId })
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//打开评论
|
||||||
|
handlePl(row) {
|
||||||
|
this.plContent = ''
|
||||||
|
this.pl_shipinquanId = ''
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("/app/shipinquan/contentlist"),
|
||||||
|
method: "get",
|
||||||
|
params: {
|
||||||
|
page: 1,
|
||||||
|
limit: 310,
|
||||||
|
shipinquanId: row.id
|
||||||
|
}
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if(data.code == 0) this.plTableData = data.data.records
|
||||||
|
this.pl_shipinquanId = row.id
|
||||||
|
this.changePlDialog(true)
|
||||||
|
}).catch(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//设置点赞数
|
||||||
|
setDzs(row) {
|
||||||
|
this.$prompt('当前为:' + row.dzs, '设置点赞数', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
inputPattern: /^(0|[1-9]\d*)$/,
|
||||||
|
inputErrorMessage: '请输入正整数'
|
||||||
|
}).then(({ value }) => {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("bl/shipinquan/modify"),
|
||||||
|
method: "post",
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
id: row.id,
|
||||||
|
dzs: value,
|
||||||
|
}),
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data.code == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: "设置成功",
|
||||||
|
type: "success",
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.handleSelect();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
// 获取列表数据
|
// 获取列表数据
|
||||||
handleSelect() {
|
handleSelect() {
|
||||||
this.tableDataLoading = true;
|
this.tableDataLoading = true;
|
||||||
|
@ -266,12 +350,12 @@ export default {
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
artificerName: this.name,
|
artificerName: this.name,
|
||||||
status: this.status
|
status: this.status,
|
||||||
|
isTop:this.isTop
|
||||||
}),
|
}),
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
this.tableData = data.data;
|
this.tableData = data.data;
|
||||||
console.log(this.tableData);
|
|
||||||
} else {
|
} else {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: "提示",
|
title: "提示",
|
||||||
|
@ -287,6 +371,7 @@ export default {
|
||||||
handleClear() {
|
handleClear() {
|
||||||
this.name = "";
|
this.name = "";
|
||||||
this.status = "";
|
this.status = "";
|
||||||
|
this.isTop = "";
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.handleSelect();
|
this.handleSelect();
|
||||||
},
|
},
|
||||||
|
@ -400,6 +485,72 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//取消置顶 isTop true/false
|
||||||
|
handleToTop(row,isTop){
|
||||||
|
if (isTop) {
|
||||||
|
this.$prompt('请输入置顶排序,值越大排名越靠前:', '置顶设置', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
inputPattern: /^(0|[1-9]\d*)$/,
|
||||||
|
inputErrorMessage: '请输入正整数'
|
||||||
|
}).then(({ value }) => {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("bl/shipinquan/modify"),
|
||||||
|
method: "post",
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
id: row.id,
|
||||||
|
topSort: value,
|
||||||
|
}),
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data.code == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: "置顶成功",
|
||||||
|
type: "success",
|
||||||
|
onClose: () => {
|
||||||
|
this.handleSelect();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
//取消置顶操作
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl("bl/shipinquan/modify"),
|
||||||
|
method: "post",
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
id: row.id,
|
||||||
|
topSort: 0,
|
||||||
|
}),
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data.code == 0) {
|
||||||
|
this.$message({
|
||||||
|
message: "取消置顶成功",
|
||||||
|
type: "success",
|
||||||
|
onClose: () => {
|
||||||
|
this.handleSelect();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: "warning",
|
||||||
|
onClose: () => {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
//取消授权
|
//取消授权
|
||||||
handleCancelApply(row){
|
handleCancelApply(row){
|
||||||
let id = row.id;
|
let id = row.id;
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
<div><audio ref="audioPlayer" :src="require('@/assets/mp3/tip.mp3')" autoplay></audio>
|
||||||
|
<el-button id="aaaaaaaaaa" @click="playAudio">播放</el-button>
|
||||||
|
</div>
|
||||||
<div class="site-navbar__body clearfix">
|
<div class="site-navbar__body clearfix">
|
||||||
<el-menu class="site-navbar__menu" mode="horizontal">
|
<el-menu class="site-navbar__menu" mode="horizontal">
|
||||||
<el-menu-item class="site-navbar__switch" index="0" @click="sidebarFold = !sidebarFold">
|
<el-menu-item class="site-navbar__switch" index="0" @click="sidebarFold = !sidebarFold">
|
||||||
|
@ -69,6 +72,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UpdatePassword from './main-navbar-update-password'
|
import UpdatePassword from './main-navbar-update-password'
|
||||||
|
import tipmap3 from '@/assets/mp3/tip.mp3';
|
||||||
import {
|
import {
|
||||||
clearLoginInfo
|
clearLoginInfo
|
||||||
} from '@/utils'
|
} from '@/utils'
|
||||||
|
@ -82,6 +86,7 @@ export default {
|
||||||
isshow: false,
|
isshow: false,
|
||||||
chatNum: 0,
|
chatNum: 0,
|
||||||
chatNumJl: 0,
|
chatNumJl: 0,
|
||||||
|
chatNumSpq:0,
|
||||||
chatNumQy: 0,
|
chatNumQy: 0,
|
||||||
chatNumJjqz: 0,
|
chatNumJjqz: 0,
|
||||||
chatNumYh: 0,
|
chatNumYh: 0,
|
||||||
|
@ -155,6 +160,7 @@ export default {
|
||||||
this.$cookie.set('numberCs', '')
|
this.$cookie.set('numberCs', '')
|
||||||
this.$cookie.set('numberJg', '')
|
this.$cookie.set('numberJg', '')
|
||||||
this.$cookie.set('numberLts', '')
|
this.$cookie.set('numberLts', '')
|
||||||
|
this.$cookie.set('numberSpq', '')
|
||||||
sessionStorage.clear()
|
sessionStorage.clear()
|
||||||
//router.options.isAddDynamicMenuRoutes = false;
|
//router.options.isAddDynamicMenuRoutes = false;
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
@ -382,6 +388,21 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
playAudio(){
|
||||||
|
this.$refs.audioPlayer.play()
|
||||||
|
},
|
||||||
|
// 获取视频圈未审核数据
|
||||||
|
dataSelectSpq() {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/bl/shipinquan/dataSelectSpq'),
|
||||||
|
method: 'get',
|
||||||
|
}).then(({ data }) => {
|
||||||
|
if (data.data >= 0) {
|
||||||
|
this.$cookie.set('numberSpq', data.data)
|
||||||
|
document.getElementById('aaaaaaaaaa').click()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取聊天室数据
|
// 获取聊天室数据
|
||||||
dataSelectLts() {
|
dataSelectLts() {
|
||||||
this.$http({
|
this.$http({
|
||||||
|
@ -533,6 +554,7 @@ export default {
|
||||||
this.dataSelectJjqz()
|
this.dataSelectJjqz()
|
||||||
this.dataSelectYh()
|
this.dataSelectYh()
|
||||||
this.dataSelectLts()
|
this.dataSelectLts()
|
||||||
|
this.dataSelectSpq()
|
||||||
if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) {
|
if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) {
|
||||||
this.dataSelectJg()
|
this.dataSelectJg()
|
||||||
this.dataSelectCs()
|
this.dataSelectCs()
|
||||||
|
@ -542,17 +564,28 @@ export default {
|
||||||
this.userId = window.localStorage.getItem('userId');
|
this.userId = window.localStorage.getItem('userId');
|
||||||
this.ringOrderId = window.localStorage.getItem('ringOrderId');
|
this.ringOrderId = window.localStorage.getItem('ringOrderId');
|
||||||
|
|
||||||
//生产需替换
|
//生产需替换
|
||||||
|
//互动管理菜单 - 每8秒检查一个功能下是否有未处理信息 单个重复检测时间为60秒
|
||||||
|
//紧急求助
|
||||||
|
// this.chatNumJjqz = setInterval(() => {
|
||||||
|
// this.dataSelectJjqz()
|
||||||
|
// }, 60000)
|
||||||
|
// //视频圈
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.chatNumSpq = setInterval(() => {
|
||||||
|
// this.dataSelectSpq()
|
||||||
|
// }, 60000)
|
||||||
|
// }, 8000);
|
||||||
|
// //投诉中心
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.chatNumQy = setInterval(() => {
|
||||||
|
// this.dataSelectPy()
|
||||||
|
// }, 60000)
|
||||||
|
// }, 8000);
|
||||||
|
// //实名认证
|
||||||
// this.chatNumJl = setInterval(() => {
|
// this.chatNumJl = setInterval(() => {
|
||||||
// this.dataSelect()
|
// this.dataSelect()
|
||||||
// }, 6000)
|
// }, 6000)
|
||||||
// this.chatNumQy = setInterval(() => {
|
|
||||||
// this.dataSelectPy()
|
|
||||||
// }, 6000)
|
|
||||||
// this.chatNumJjqz = setInterval(() => {
|
|
||||||
// this.dataSelectJjqz()
|
|
||||||
// }, 6000)
|
|
||||||
//
|
|
||||||
// this.chatNumYh = setInterval(() => {
|
// this.chatNumYh = setInterval(() => {
|
||||||
// this.dataSelectYh()
|
// this.dataSelectYh()
|
||||||
// }, 6000)
|
// }, 6000)
|
||||||
|
@ -579,6 +612,7 @@ export default {
|
||||||
// clearInterval(this.chatNumJg);
|
// clearInterval(this.chatNumJg);
|
||||||
// clearInterval(this.chatNumCs);
|
// clearInterval(this.chatNumCs);
|
||||||
// clearInterval(this.chatNumXdd);
|
// clearInterval(this.chatNumXdd);
|
||||||
|
// clearInterval(this.chatNumSpq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
<icon-svg :name="menu.icon || ''" class="site-sidebar__menu-icon"></icon-svg>
|
<icon-svg :name="menu.icon || ''" class="site-sidebar__menu-icon"></icon-svg>
|
||||||
<span>{{ menu.name }}</span>
|
<span>{{ menu.name }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
<el-badge class="item" v-if="menu.menuId==311&&havaMsg(311)" is-dot>
|
||||||
|
<span> </span>
|
||||||
|
</el-badge>
|
||||||
<el-badge class="item" v-if="menu.menuId==129&&chatNumLts!=0" is-dot>
|
<el-badge class="item" v-if="menu.menuId==129&&chatNumLts!=0" is-dot>
|
||||||
<span> </span>
|
<span> </span>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
|
@ -43,7 +46,9 @@
|
||||||
<el-badge class="item" v-if="menu.menuId==224&&chatNumFwz!=0" :value="chatNumFwz">
|
<el-badge class="item" v-if="menu.menuId==224&&chatNumFwz!=0" :value="chatNumFwz">
|
||||||
<span> </span>
|
<span> </span>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
|
<el-badge class="item" v-if="menu.menuId==314&&chatNumSpq!=0" :value="chatNumSpq">
|
||||||
|
<span> </span>
|
||||||
|
</el-badge>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -59,6 +64,7 @@ export default {
|
||||||
chatNumJjqz:0,
|
chatNumJjqz:0,
|
||||||
chatNumFwz:0,
|
chatNumFwz:0,
|
||||||
chatNumLts:0,
|
chatNumLts:0,
|
||||||
|
chatNumSpq:0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -90,6 +96,13 @@ export default {
|
||||||
name: route[0].name
|
name: route[0].name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
//检测菜单下是否有消息
|
||||||
|
havaMsg(index){
|
||||||
|
if(index == 311){
|
||||||
|
return this.chatNumDrz != 0 || this.chatNumDts != 0 || this.chatNumJjqz != 0 || this.chatNumDsm != 0 || this.chatNumFwz != 0 || this.chatNumLts != 0 || this.chatNumSpq != 0
|
||||||
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -113,6 +126,9 @@ export default {
|
||||||
if(this.$cookie.get('numberLts')){
|
if(this.$cookie.get('numberLts')){
|
||||||
this.chatNumLts = this.$cookie.get('numberLts')
|
this.chatNumLts = this.$cookie.get('numberLts')
|
||||||
}
|
}
|
||||||
|
if(this.$cookie.get('numberSpq')){
|
||||||
|
this.chatNumSpq = this.$cookie.get('numberSpq')
|
||||||
|
}
|
||||||
|
|
||||||
}, 1000)
|
}, 1000)
|
||||||
// this.chatNum2 = setInterval(() => {
|
// this.chatNum2 = setInterval(() => {
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -304,7 +304,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:updatejb')" v-if="scope.row.consortiaId"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:updatejb')" v-if="scope.row.consortiaId"
|
||||||
@click="jiebanguser(scope.row)" plain>解绑商家</el-button>
|
@click="jiebanguser(scope.row)" plain>解绑商家</el-button>
|
||||||
|
@ -461,7 +461,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -616,7 +616,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -771,7 +771,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -926,7 +926,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -1082,7 +1082,7 @@
|
||||||
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
<el-button size="mini" type="primary" @click="updateJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication!=2">设置师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
<el-button size="mini" type="primary" @click="quxiaoJs(scope.row)" :disabled="!isAuth('userList:updateJs')" v-if="scope.row.isAuthentication==2" plain>取消师傅</el-button>
|
||||||
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
<el-button size="mini" type="primary" @click="updates(scope.row)">用户详情</el-button>
|
||||||
<el-button size="mini" type="warning" @click="updateVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
<el-button size="mini" type="warning" @click="changehyDialog(scope.row,true)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member!=1">设置会员</el-button>
|
||||||
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
<el-button size="mini" type="warning" @click="quxiaoVip(scope.row)" :disabled="!isAuth('userList:updateVip')" v-if="scope.row.member==1" plain>取消会员</el-button>
|
||||||
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
|
||||||
@click="deleteuser(scope.row)">删除用户</el-button>
|
@click="deleteuser(scope.row)">删除用户</el-button>
|
||||||
|
@ -1236,6 +1236,28 @@
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
<el-dialog :title="'会员配置'" width="20%" :visible.sync="hyDialogVisible" @close="changehyDialog(null,false)">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-select v-model="hyType" placeholder="请选择会员类型" style="width: 100%;">
|
||||||
|
<el-option
|
||||||
|
v-for="item in hylxOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="margin-top: 10px;">
|
||||||
|
<el-col :span="24">
|
||||||
|
<div style="float: right;">
|
||||||
|
<el-button type="info" @click="changehyDialog(null,false)">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="updateVip(optionUser)">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1244,6 +1266,9 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
hyType:null,//会员类型 【0】月度-30天 【1】季度-90天 【2】年度-365天
|
||||||
|
optionUser:null,//当前操作会员的用户
|
||||||
|
hyDialogVisible:false,//会员配置弹窗
|
||||||
uploadUrl: serverPaths.uploadUrl,
|
uploadUrl: serverPaths.uploadUrl,
|
||||||
uploadWatermarkUrl: serverPaths.uploadWatermarkUrl,
|
uploadWatermarkUrl: serverPaths.uploadWatermarkUrl,
|
||||||
openValue: 1,
|
openValue: 1,
|
||||||
|
@ -1353,6 +1378,16 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
isAuthentication:'',
|
isAuthentication:'',
|
||||||
|
hylxOptions:[{
|
||||||
|
value: 0,
|
||||||
|
label: '月会员'
|
||||||
|
}, {
|
||||||
|
value: 1,
|
||||||
|
label: '季会员'
|
||||||
|
}, {
|
||||||
|
value: 2,
|
||||||
|
label: '年会员'
|
||||||
|
}],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -2031,15 +2066,31 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 会员类型确认窗口显隐
|
||||||
|
changehyDialog(row,sign){
|
||||||
|
if(!sign){
|
||||||
|
this.hyDialogVisible = sign
|
||||||
|
} else{
|
||||||
|
this.optionUser = row
|
||||||
|
this.hyDialogVisible = sign
|
||||||
|
}
|
||||||
|
},
|
||||||
// 设置会员
|
// 设置会员
|
||||||
updateVip(row){
|
updateVip(row){
|
||||||
|
if(this.hyType!=0 && this.hyType!=1 && this.hyType!=2){
|
||||||
|
this.$message({
|
||||||
|
message: '未设置会员类型',
|
||||||
|
type: 'warning',
|
||||||
|
duration: 1500,
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('user/giveUserVip'),
|
url: this.$http.adornUrl('user/giveUserVip'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
'userId':row.userId,
|
'userId':row.userId,
|
||||||
'day':30
|
'type':this.hyType
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
@ -2050,6 +2101,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
this.hyDialogVisible = false
|
||||||
this.dataSelect()
|
this.dataSelect()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -2059,6 +2111,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
this.hyDialogVisible = false
|
||||||
this.dataSelect()
|
this.dataSelect()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<div class="left-item-time">
|
<div class="left-item-time">
|
||||||
<div class="left-item-time-time" v-if="item.messageTime == null"></div>
|
<div class="left-item-time-time" v-if="item.messageTime == null"></div>
|
||||||
<div class="left-item-time-time" v-else>
|
<div class="left-item-time-time" v-else>
|
||||||
{{ item.messageTime.substring(11, 16) }}
|
{{ item.messageTime.substring(0, 16) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="left-item-time-number" style="position: absolute; left: 59px; top: 8px"
|
<div class="left-item-time-number" style="position: absolute; left: 59px; top: 8px"
|
||||||
v-if="item.storeCount">
|
v-if="item.storeCount">
|
||||||
|
|
Loading…
Reference in New Issue