Commit 68344a42 authored by 赵茹林's avatar 赵茹林

update

parent a6758f51
......@@ -22,7 +22,7 @@
<div>
标签:
<el-tag v-if="tag.length" v-for="item in tag">{{}}</el-tag>
<el-tag v-if="tag.length" v-for="item in tag">{{item.label_name}}</el-tag>
<el-button size="small" plain>编辑标签</el-button>
</div>
......@@ -30,7 +30,7 @@
</template>
<script>
import {getUserTagApi} from "@/service/api";
import {getUserTagApi, getCallBackApi} from "@/service/api";
export default {
name: "CallBack",
......@@ -55,7 +55,7 @@
getTag() {
if (this.callbackObj.id) {
getUserTagApi(this.callbackObj.id).then(res => {
console.log(res)
this.tag = res
})
}
......
......@@ -62,10 +62,26 @@ const postUserTransferUrl = `${_baseUrl}api/admin/user/data/transfer`;
export const postUserTransferApi = function (json) {
return Vue.prototype.$post(postUserTransferUrl, json)
};
// 获取回访信息
export const getCallBackApi = function (json) {
return Vue.prototype.$fetch(`${_baseUrl}/api/admin/user/visit/${json.user_id}/${json.periods_id}`, json)
};
// 添加回访信息
export const postCallBackApi = function (json) {
return Vue.prototype.$post(`${_baseUrl}api/admin/user/visit/${json.user_id}/${json.teacher_id}`, json)
};
// 获取用户标签
export const getUserTagApi = function (id) {
return Vue.prototype.$fetch(`${_baseUrl}api/admin/user/label/${id}`)
};
// 用户添加标签
export const postUserTagApi = function (json) {
return Vue.prototype.$post(`${_baseUrl}api/admin/user/bind/label`, json)
};
// 删除用户标签
export const delUserTagApi = function (id) {
return Vue.prototype.$del(`${_baseUrl}api/admin/user/label/${id}`)
};
//获取教师列表
const getTeacherListUrl = `${_baseUrl}api/admin/teacher/list`;
export const getTeacherListApi = function (json) {
......@@ -1068,7 +1084,7 @@ const updateContactUrl = `/api/admin/other/order/user/status`;
export const updateContactApi = function (json) {
return Vue.prototype.$put(`${updateContactUrl}`, json)
};
// 外部渠道批量指派订单老师
// 外部渠道批量指派订单老师api/admin/user/label/{id}
const adsTeacherUrl = `/api/admin/ads/teacher/`;
export const adsTeacherApi = function (id, json) {
return Vue.prototype.$put(`${adsTeacherUrl}${id}`, json)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment