mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
添加事件
This commit is contained in:
@@ -48,6 +48,8 @@
|
||||
<script>
|
||||
import apiFeedback from '@/api/modules/feedback.js'
|
||||
import apiUser from '@/api/system/user.js'
|
||||
import apiStat from '@/api/phase2/stat.js'
|
||||
import { mapGetters } from 'vuex';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -62,7 +64,9 @@
|
||||
index: 0
|
||||
}
|
||||
},
|
||||
|
||||
computed:{
|
||||
...mapGetters(['userInfo']),
|
||||
},
|
||||
methods: {
|
||||
isClick(type) {
|
||||
this.info.type = type;
|
||||
@@ -89,6 +93,20 @@
|
||||
// uni.redirectTo({
|
||||
// url:'/pages/resource/qaDetail?id='+rs.result.id
|
||||
// })
|
||||
let event = {
|
||||
key: "Feedback",//后台的事件key
|
||||
title: "意见反馈",//事件的标题
|
||||
parameters:"",//用户自定义参数 name:value,name:value
|
||||
content: '意见反馈',//事件的内容
|
||||
objId: rs.result.id,//关联的id
|
||||
objType:'99',//关联的类型
|
||||
objInfo: "意见反馈",
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 ,//状态,直接写1
|
||||
source:2,
|
||||
}
|
||||
apiStat.sendEvent(event);
|
||||
}else{
|
||||
this.$refs.messager.show({message:rs.message,type:'error'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user