|
@@ -15,76 +15,91 @@ export default {
|
15
|
15
|
setup(props) {
|
16
|
16
|
// console.log(props.title)
|
17
|
17
|
const router = useRouter();
|
18
|
|
- const query_Obj = router.currentRoute.value.query
|
|
18
|
+ const query_Obj = '';
|
|
19
|
+ // const query_Obj = router.currentRoute.value.query
|
19
|
20
|
const url_st = ref()//企微地址,需要在企微环境中打开
|
|
21
|
+ console.log(router.currentRoute);
|
|
22
|
+ console.log(router.currentRoute.value.fullPath);
|
20
|
23
|
|
21
|
24
|
|
22
|
|
- const get_token_timestamp = () => {
|
23
|
|
- axios.get('/api/radar/traceLinkGet', {
|
24
|
|
- params: {
|
25
|
|
- corpid: query_Obj.corpid,
|
26
|
|
- radar_id: query_Obj.radar_id,
|
27
|
|
- user_id: query_Obj.user_id,
|
28
|
|
- rule_id: query_Obj.rule_id,
|
29
|
|
- channel: query_Obj.channel,
|
30
|
|
- state: query_Obj.state
|
31
|
|
- }
|
32
|
|
- }).then((res) => {
|
33
|
|
- url_st.value = res.data.rst
|
34
|
|
- }).catch((err) => {
|
35
|
|
- console.log(err)
|
36
|
|
- })
|
37
|
|
- }
|
38
|
|
- get_token_timestamp()
|
|
25
|
+ // const get_token_timestamp = () => {
|
|
26
|
+ // axios.get('/api/radar/traceLinkGet', {
|
|
27
|
+ // params: {
|
|
28
|
+ // corpid: query_Obj.corpid,
|
|
29
|
+ // radar_id: query_Obj.radar_id,
|
|
30
|
+ // user_id: query_Obj.user_id,
|
|
31
|
+ // rule_id: query_Obj.rule_id,
|
|
32
|
+ // channel: query_Obj.channel,
|
|
33
|
+ // state: query_Obj.state
|
|
34
|
+ // }
|
|
35
|
+ // }).then((res) => {
|
|
36
|
+ // url_st.value = res.data.rst
|
|
37
|
+ // }).catch((err) => {
|
|
38
|
+ // console.log(err)
|
|
39
|
+ // })
|
|
40
|
+ // }
|
|
41
|
+ // get_token_timestamp()
|
39
|
42
|
|
40
|
|
- const getUserInfo = () => {
|
41
|
|
- axios.get('/api/oauth2/userInfo', {
|
42
|
|
- params: {
|
43
|
|
- corpid: query_Obj.corpid,
|
44
|
|
- code: query_Obj,
|
45
|
|
- state: query_Obj
|
46
|
|
- }
|
47
|
|
- }).then((res) => {
|
48
|
|
-
|
49
|
|
- }).catch((err) => {
|
50
|
|
- console.log(err)
|
51
|
|
- })
|
52
|
|
- }
|
|
43
|
+ // const getUserInfo = () => {
|
|
44
|
+ // axios.get('/api/oauth2/userInfo', {
|
|
45
|
+ // params: {
|
|
46
|
+ // corpid: query_Obj.corpid,
|
|
47
|
+ // code: query_Obj.code,
|
|
48
|
+ // state: query_Obj.state
|
|
49
|
+ // }
|
|
50
|
+ // }).then((res) => {
|
|
51
|
+ // let now_res=res.data.rst
|
|
52
|
+ // behaviorReport(now_res)
|
|
53
|
+ //
|
|
54
|
+ // }).catch((err) => {
|
|
55
|
+ // console.log(err)
|
|
56
|
+ // })
|
|
57
|
+ // }
|
53
|
58
|
// getUserInfo()
|
54
|
59
|
|
55
|
|
- const getRadarDetial = () => {
|
56
|
|
- axios.get('/api/radarPage/detail', {
|
57
|
|
- params: {
|
58
|
|
- corpid: query_Obj.corpid,
|
59
|
|
- radar_id: query_Obj.radar_id,
|
60
|
|
- user_id: query_Obj.user_id,
|
61
|
|
- token:'',
|
62
|
|
- timestamp:''
|
63
|
|
- }
|
64
|
|
- }).then((res) => {
|
65
|
|
-
|
66
|
|
- }).catch((err) => {
|
67
|
|
- console.log(err)
|
68
|
|
- })
|
69
|
|
- }
|
|
60
|
+ // const getRadarDetial = () => {
|
|
61
|
+ // axios.get('/api/radarPage/detail', {
|
|
62
|
+ // params: {
|
|
63
|
+ // corpid: query_Obj.corpid,
|
|
64
|
+ // radar_id: query_Obj.radar_id,
|
|
65
|
+ // user_id: query_Obj.user_id,
|
|
66
|
+ // token:query_Obj.token,
|
|
67
|
+ // timestamp:query_Obj.timestamp,
|
|
68
|
+ //
|
|
69
|
+ // }
|
|
70
|
+ // }).then((res) => {
|
|
71
|
+ //
|
|
72
|
+ // }).catch((err) => {
|
|
73
|
+ // console.log(err)
|
|
74
|
+ // })
|
|
75
|
+ // }
|
70
|
76
|
// getRadarDetial()
|
|
77
|
+ // const behaviorReport = (now_res) => {
|
|
78
|
+ // axios.get('/api/radarPage/report', {
|
|
79
|
+ // params: {
|
|
80
|
+ // corpid: query_Obj.corpid,
|
|
81
|
+ // radar_id: query_Obj.radar_id,
|
|
82
|
+ // user_id: query_Obj.user_id,
|
|
83
|
+ // token:query_Obj.token,
|
|
84
|
+ // timestamp:query_Obj.timestamp,
|
|
85
|
+ // rule_id: query_Obj.rule_id,
|
|
86
|
+ // channel: query_Obj.channel,
|
|
87
|
+ // state: query_Obj.state,
|
|
88
|
+ //
|
|
89
|
+ // external_userid:now_res.external_userid,
|
|
90
|
+ // openid:now_res.openid,
|
|
91
|
+ // device_id:now_res.device_id
|
|
92
|
+ //
|
|
93
|
+ // }
|
|
94
|
+ // }).then((res) => {
|
|
95
|
+ //
|
|
96
|
+ // }).catch((err) => {
|
|
97
|
+ // console.log(err)
|
|
98
|
+ // })
|
|
99
|
+ // }
|
71
|
100
|
|
72
|
|
- const behaviorReport = () => {
|
73
|
|
-
|
74
|
|
- axios.get('/api/radarPage/report', {
|
75
|
|
- params: {
|
76
|
|
- corpid: query_Obj.corpid,
|
77
|
|
- code: query_Obj,
|
78
|
|
- state: query_Obj
|
79
|
|
- }
|
80
|
|
- }).then((res) => {
|
81
|
|
-
|
82
|
|
- }).catch((err) => {
|
83
|
|
- console.log(err)
|
84
|
|
- })
|
85
|
|
- }
|
86
|
|
- // behaviorReport()
|
87
|
|
- return {getUserInfo,getRadarDetial,behaviorReport,url_st,router}
|
|
101
|
+ //getUserInfo,getRadarDetial,behaviorReport,
|
|
102
|
+ return {url_st,router}
|
88
|
103
|
}
|
89
|
104
|
}
|
90
|
105
|
</script>
|