Commit eaf35745 by 杨明

监听

1 parent 91a68f45
This diff could not be displayed because it is too large.
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
}, },
"dependencies": { "dependencies": {
"@toast-ui/calendar": "^2.1.3", "@toast-ui/calendar": "^2.1.3",
"@websee/core": "^4.0.2",
"@websee/performance": "^4.0.2",
"@websee/recordscreen": "^4.0.2",
"axios": "^0.21.1", "axios": "^0.21.1",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"core-js": "^3.4.4", "core-js": "^3.4.4",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-08-13 14:12:11 * @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-20 10:49:23 * @LastEditTime: 2023-08-15 10:25:05
* @FilePath: \scrm\scrm-sub-blog\src\main.js * @FilePath: \scrm\scrm-sub-blog\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13 * @Date: 2022-07-22 18:15:13
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 12:04:30 * @LastEditTime: 2023-08-15 10:25:30
* @FilePath: \scrm-micro-home\src\setup\qiankun.js * @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -10,6 +10,9 @@ import Vue from 'vue' ...@@ -10,6 +10,9 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js' // import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import webSee from '@websee/core'
import performance from '@websee/performance'
import recordscreen from '@websee/recordscreen'
import { GLButton, GLTable, GLFull, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLFull, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import GLEditor from 'glsx-components/src/packages/Editor' import GLEditor from 'glsx-components/src/packages/Editor'
...@@ -19,6 +22,29 @@ Vue.use(GLTable) ...@@ -19,6 +22,29 @@ Vue.use(GLTable)
Vue.use(GLEditor) Vue.use(GLEditor)
Vue.use(GLFull) Vue.use(GLFull)
Vue.use(GLDialog) Vue.use(GLDialog)
Vue.use(webSee, {
dsn: 'http://localhost:8083/reportData', // 上报的地址
apikey: 'project_home', // 项目唯一的id
userId: '897578', // 用户id
repeatCodeError: true, // 开启错误上报去重,重复的代码错误只上报一次
silentWhiteScreen: true, // 开启白屏检测
skeletonProject: true, // 项目是否有骨架屏
handleHttpStatus(data) {
// 自定义hook, 根据接口返回的 response 判断请求是否正确
let { url, response } = data
let { code } = typeof response === 'string' ? JSON.parse(response) : response
if (url.includes('/getErrorList')) {
return code === 200 ? true : false
} else {
return true
}
}
})
// 注册性能检测插件
webSee.use(performance)
// 注册页面录屏插件,设置单次录屏时长为20s,默认是10s
webSee.use(recordscreen, { recordScreentime: 20 })
// import GLTable from '@/components/glsx-table/index' // import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable) // Vue.component('GLTable', GLTable)
// import 'glsx-components/src/theme/theme.scss' // import 'glsx-components/src/theme/theme.scss'
......
...@@ -187,10 +187,12 @@ export default { ...@@ -187,10 +187,12 @@ export default {
this.$router.push('/home/ai/detail?id=' + scope.id) this.$router.push('/home/ai/detail?id=' + scope.id)
}, },
handleAdd(scope) { handleAdd(scope) {
this.isEdit = !!scope const a = null
console.log(this.isEdit) console.log(a.length)
this.editTaskId = scope && scope.id // this.isEdit = !!scope
this.dialogVisibleTask = true // console.log(this.isEdit)
// this.editTaskId = scope && scope.id
// this.dialogVisibleTask = true
}, },
dialogClose() { dialogClose() {
this.dialogVisibleTask = false this.dialogVisibleTask = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!