查看联系人
This commit is contained in:
parent
c8fe1bb3ea
commit
afd240b117
|
@ -77,4 +77,10 @@ export function exportConsumer(query) {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
export function unbindConsumer(id) {
|
||||||
|
return request({
|
||||||
|
url: `/crm/consumer/${id}/unbind`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
}
|
}
|
|
@ -63,3 +63,5 @@ export function deleteUser(id, data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
<span>{{ scope.row.create_time }}</span>
|
<span>{{ scope.row.create_time }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="操作" fixed="right">
|
<el-table-column align="center" label="操作" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -150,6 +150,13 @@
|
||||||
:disabled="!checkPermission(['consumer_delete'])"
|
:disabled="!checkPermission(['consumer_delete'])"
|
||||||
v-if="!scope.row.is_superconsumer"
|
v-if="!scope.row.is_superconsumer"
|
||||||
></el-button>
|
></el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
@click="handleUnbind(scope)"
|
||||||
|
:disabled="!checkPermission(['consumer_unbind'])"
|
||||||
|
v-if="scope.row.username&&scope.row.openid"
|
||||||
|
>解绑微信</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -231,7 +238,8 @@ import {
|
||||||
updateConsumer,
|
updateConsumer,
|
||||||
importConsumer,
|
importConsumer,
|
||||||
exportConsumer,
|
exportConsumer,
|
||||||
deleteConsumers
|
deleteConsumers,
|
||||||
|
unbindConsumer
|
||||||
} from "@/api/crm";
|
} from "@/api/crm";
|
||||||
import { getSubjectAll } from "@/api/question";
|
import { getSubjectAll } from "@/api/question";
|
||||||
import { getWorkScopeAll } from "@/api/examtest";
|
import { getWorkScopeAll } from "@/api/examtest";
|
||||||
|
@ -399,6 +407,19 @@ export default {
|
||||||
this.$refs["consumerForm"].clearValidate();
|
this.$refs["consumerForm"].clearValidate();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleUnbind(scope) {
|
||||||
|
unbindConsumer(scope.row.id).then(res => {
|
||||||
|
if(res.code>=200){
|
||||||
|
this.$message({
|
||||||
|
type: "success",
|
||||||
|
message: "解绑成功!"
|
||||||
|
});
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
console.error(err)
|
||||||
|
})
|
||||||
|
},
|
||||||
handleDelete(scope) {
|
handleDelete(scope) {
|
||||||
this.$confirm("确认删除该用户吗?将丢失数据!", "警告", {
|
this.$confirm("确认删除该用户吗?将丢失数据!", "警告", {
|
||||||
confirmButtonText: "确认",
|
confirmButtonText: "确认",
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<el-table-column align="left" label="更新时间">
|
<el-table-column align="left" label="更新时间">
|
||||||
<template slot-scope="scope">{{ scope.row.update_time }}</template>
|
<template slot-scope="scope">{{ scope.row.update_time }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="操作">
|
<el-table-column align="center" label="操作" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
v-show="scope.row.is_top"
|
v-show="scope.row.is_top"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="page__bd">
|
<view class="page__bd">
|
||||||
<view class="weui-article">
|
<view class="weui-article">
|
||||||
<parser html="{{content}}" domain="{{domain}}"/>
|
<parser html="{{content}}" domain="{{domain}}" selectable/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<!-- 题量: {{tm_index+1}}/{{tmtotal}} -->
|
题量: {{tm_index+1}}/{{tmtotal}}
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y="true" style="height: {{scrollHeight}}px;">
|
<scroll-view scroll-y="true" style="height: {{scrollHeight}}px;">
|
||||||
<view class="weui-article">
|
<view class="weui-article">
|
||||||
|
|
|
@ -17,7 +17,7 @@ Page({
|
||||||
nowWork:null,
|
nowWork:null,
|
||||||
msgList: [
|
msgList: [
|
||||||
{ title: "欢迎使用中科辐射学堂!" },
|
{ title: "欢迎使用中科辐射学堂!" },
|
||||||
{ title: "如有疑问,请致电课程顾问师老师:18355135390" },]
|
{ title: "如有疑问,请致电课程顾问" },]
|
||||||
},
|
},
|
||||||
imgH: function (e) {
|
imgH: function (e) {
|
||||||
let winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
|
let winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
|
||||||
|
@ -107,10 +107,17 @@ Page({
|
||||||
url: '/pages/lianxi/index',
|
url: '/pages/lianxi/index',
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
wx.showToast({
|
wx.showModal({
|
||||||
title: '未开通权限\r\n请致电18355135390',
|
title: '暂未开通权限!',
|
||||||
icon: 'none',
|
content: '查看各地区课程顾问联系方式。',
|
||||||
duration: 2000
|
confirmText: '查看',
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/article/detail?id=6',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -166,10 +173,17 @@ Page({
|
||||||
url: '/pages/yati/index',
|
url: '/pages/yati/index',
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
wx.showToast({
|
wx.showModal({
|
||||||
title: '未开通权限\r\n请联系课程顾问',
|
title: '暂未开通权限!',
|
||||||
icon: 'none',
|
content: '查看各地区课程顾问联系方式。',
|
||||||
duration: 2000
|
confirmText: '查看',
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/article/detail?id=6',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="weui-footer weui-footer_fixed-bottom">
|
<view class="weui-footer weui-footer_fixed-bottom">
|
||||||
<!-- <view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view> -->
|
<!-- <view class="weui-footer__text" bindtap="intro">点击下载系统/小程序文档介绍</view> -->
|
||||||
<view class="weui-footer__text">更多服务请联系课程顾问师老师:18355135390</view>
|
<view class="weui-footer__text">更多服务请联系课程顾问</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue