修改 用户事件详情 bug
This commit is contained in:
parent
fef3c0f6ba
commit
8704234228
@ -72,7 +72,7 @@ CREATE TABLE `gm_role` (
|
|||||||
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`id`) USING BTREE
|
PRIMARY KEY (`id`) USING BTREE
|
||||||
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
|
||||||
INSERT INTO `gm_role` VALUES (1, 'admin', '超级管理员', '[{\"path\":\"/behavior-analysis\",\"component\":\"layout\",\"redirect\":\"/behavior-analysis/index\",\"alwaysShow\":false,\"meta\":{\"title\":\"行为分析\",\"icon\":\"el-icon-link\"},\"children\":[{\"path\":\"event/:id\",\"component\":\"views/behavior-analysis/event\",\"name\":\"event\",\"meta\":{\"title\":\"事件分析\",\"dynamic\":true,\"icon\":\"el-icon-data-line\"}},{\"path\":\"retention/:id\",\"component\":\"views/behavior-analysis/retention\",\"name\":\"retention\",\"meta\":{\"title\":\"留存分析\",\"dynamic\":true,\"icon\":\"el-icon-data-analysis\"}},{\"path\":\"funnel/:id\",\"component\":\"views/behavior-analysis/funnel\",\"name\":\"funnel\",\"meta\":{\"title\":\"漏斗分析\",\"dynamic\":true,\"icon\":\"el-icon-data-board\"}},{\"path\":\"trace/:id\",\"component\":\"views/behavior-analysis/trace\",\"name\":\"trace\",\"meta\":{\"title\":\"路径分析\",\"dynamic\":true,\"icon\":\"el-icon-bicycle\"}}]},{\"path\":\"/user-analysis\",\"component\":\"layout\",\"redirect\":\"/user-analysis/attr\",\"alwaysShow\":false,\"meta\":{\"title\":\"用户分析\",\"icon\":\"el-icon-pie-chart\"},\"children\":[{\"path\":\"/user-analysis/attr/:id\",\"component\":\"views/user-analysis/index\",\"name\":\"attr\",\"meta\":{\"title\":\"用户属性分析\",\"dynamic\":true,\"icon\":\"el-icon-pie-chart\"}}]},{\"path\":\"/manager\",\"component\":\"layout\",\"redirect\":\"/manager/event\",\"alwaysShow\":false,\"meta\":{\"title\":\"数据管理\",\"icon\":\"el-icon-edit\"},\"children\":[{\"path\":\"event\",\"component\":\"views/manager/event\",\"name\":\"event\",\"meta\":{\"title\":\"事件管理\",\"icon\":\"el-icon-s-management\"}},{\"path\":\"log\",\"component\":\"views/manager/log\",\"name\":\"log\",\"meta\":{\"title\":\"埋点管理\",\"icon\":\"el-icon-notebook-1\"}}]},{\"path\":\"/permission\",\"component\":\"layout\",\"redirect\":\"/permission/role\",\"alwaysShow\":true,\"meta\":{\"title\":\"权限\",\"icon\":\"el-icon-user-solid\"},\"children\":[{\"path\":\"role\",\"component\":\"views/permission/role\",\"name\":\"RolePermission\",\"meta\":{\"title\":\"角色管理\",\"icon\":\"el-icon-s-check\"}},{\"path\":\"user\",\"component\":\"views/permission/user\",\"name\":\"user\",\"meta\":{\"title\":\"用户管理\",\"icon\":\"el-icon-user\"}},{\"path\":\"operater_log\",\"component\":\"views/permission/operater_log\",\"name\":\"operater_log\",\"meta\":{\"title\":\"操作日志列表\",\"icon\":\"el-icon-s-order\"}}]},{\"path\":\"/app\",\"component\":\"layout\",\"children\":[{\"path\":\"/app/app\",\"component\":\"views/app/index\",\"name\":\"index\",\"meta\":{\"title\":\"应用管理\",\"icon\":\"el-icon-s-goods\"}}]}]', '2022-01-07 14:56:23', '2022-01-07 14:56:23');
|
INSERT INTO `gm_role` VALUES (1, 'admin', '超级管理员', '[{\"path\":\"/behavior-analysis\",\"component\":\"layout\",\"redirect\":\"/behavior-analysis/index\",\"alwaysShow\":false,\"meta\":{\"title\":\"行为分析\",\"icon\":\"el-icon-link\"},\"children\":[{\"path\":\"event/:id\",\"component\":\"views/behavior-analysis/event\",\"name\":\"event\",\"meta\":{\"title\":\"事件分析\",\"dynamic\":true,\"icon\":\"el-icon-data-line\"}},{\"path\":\"retention/:id\",\"component\":\"views/behavior-analysis/retention\",\"name\":\"retention\",\"meta\":{\"title\":\"留存分析\",\"dynamic\":true,\"icon\":\"el-icon-data-analysis\"}},{\"path\":\"funnel/:id\",\"component\":\"views/behavior-analysis/funnel\",\"name\":\"funnel\",\"meta\":{\"title\":\"漏斗分析\",\"dynamic\":true,\"icon\":\"el-icon-data-board\"}},{\"path\":\"trace/:id\",\"component\":\"views/behavior-analysis/trace\",\"name\":\"trace\",\"meta\":{\"title\":\"智能路径分析\",\"dynamic\":true,\"icon\":\"el-icon-bicycle\"}}]},{\"path\":\"/user-analysis\",\"component\":\"layout\",\"redirect\":\"/user-analysis/attr\",\"alwaysShow\":false,\"meta\":{\"title\":\"用户分析\",\"icon\":\"el-icon-pie-chart\"},\"children\":[{\"path\":\"attr/:id\",\"component\":\"views/user-analysis/index\",\"name\":\"attr\",\"meta\":{\"title\":\"用户属性分析\",\"dynamic\":true,\"icon\":\"el-icon-s-custom\"}},{\"path\":\"group\",\"component\":\"views/user-analysis/group\",\"name\":\"group\",\"meta\":{\"title\":\"用户分群\",\"icon\":\"el-icon-user\"}},{\"isInside\":true,\"path\":\"user_list\",\"component\":\"views/user-analysis/user_list\",\"name\":\"user_list\",\"meta\":{\"title\":\"用户列表\",\"icon\":\"el-icon-user-solid\"}},{\"isInside\":true,\"path\":\"user_info/:uid/:index\",\"component\":\"views/user-analysis/user_info\",\"name\":\"user_info\",\"meta\":{\"title\":\"用户事件详情\",\"dynamic\":true,\"icon\":\"el-icon-s-custom\"}}]},{\"path\":\"/manager\",\"component\":\"layout\",\"redirect\":\"/manager/event\",\"alwaysShow\":false,\"meta\":{\"title\":\"数据管理\",\"icon\":\"el-icon-edit\"},\"children\":[{\"path\":\"event\",\"component\":\"views/manager/event\",\"name\":\"event\",\"meta\":{\"title\":\"事件管理\",\"icon\":\"el-icon-s-management\"}},{\"path\":\"log\",\"component\":\"views/manager/log\",\"name\":\"log\",\"meta\":{\"title\":\"埋点管理\",\"icon\":\"el-icon-notebook-1\"}}]},{\"path\":\"/permission\",\"component\":\"layout\",\"redirect\":\"/permission/role\",\"alwaysShow\":true,\"meta\":{\"title\":\"权限\",\"icon\":\"el-icon-user-solid\"},\"children\":[{\"path\":\"role\",\"component\":\"views/permission/role\",\"name\":\"RolePermission\",\"meta\":{\"title\":\"角色管理\",\"icon\":\"el-icon-s-check\"}},{\"path\":\"user\",\"component\":\"views/permission/user\",\"name\":\"user\",\"meta\":{\"title\":\"用户管理\",\"icon\":\"el-icon-user\"}},{\"path\":\"operater_log\",\"component\":\"views/permission/operater_log\",\"name\":\"operater_log\",\"meta\":{\"title\":\"操作日志列表\",\"icon\":\"el-icon-s-order\"}}]},{\"path\":\"/app\",\"component\":\"layout\",\"children\":[{\"path\":\"/app/app\",\"component\":\"views/app/index\",\"name\":\"index\",\"meta\":{\"title\":\"应用管理\",\"icon\":\"el-icon-s-goods\"}}]}]', '2022-02-24 21:03:07', '2022-01-07 14:56:23');
|
||||||
DROP TABLE IF EXISTS `gm_user`;
|
DROP TABLE IF EXISTS `gm_user`;
|
||||||
CREATE TABLE `gm_user` (
|
CREATE TABLE `gm_user` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"flag"
|
|
||||||
"fmt"
|
|
||||||
"github.com/1340691923/xwl_bi/application"
|
|
||||||
"log"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
|
||||||
configFileDir string
|
|
||||||
configFileName string
|
|
||||||
configFileExt string
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
flag.StringVar(&configFileDir, "configFileDir", "config", "配置文件夹名")
|
|
||||||
flag.StringVar(&configFileName, "configFileName", "config", "配置文件名")
|
|
||||||
flag.StringVar(&configFileExt, "configFileExt", "json", "配置文件后缀")
|
|
||||||
flag.Parse()
|
|
||||||
}
|
|
||||||
|
|
||||||
func init(){
|
|
||||||
app := application.NewApp(
|
|
||||||
"init_app",
|
|
||||||
application.WithConfigFileDir(configFileDir),
|
|
||||||
application.WithConfigFileName(configFileName),
|
|
||||||
application.WithConfigFileExt(configFileExt),
|
|
||||||
application.RegisterInitFnObserver(application.InitLogs),
|
|
||||||
application.RegisterInitFnObserver(application.InitRedisPool),
|
|
||||||
)
|
|
||||||
|
|
||||||
err := app.InitConfig().
|
|
||||||
NotifyInitFnObservers().
|
|
||||||
Error()
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
log.Println(fmt.Sprintf("初始化失败%s",err.Error()))
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func main(){
|
|
||||||
chExit := make(chan int,1)
|
|
||||||
go func() {
|
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
chExit <- 1
|
|
||||||
time.Sleep(5 * time.Second)
|
|
||||||
close(chExit)
|
|
||||||
}()
|
|
||||||
|
|
||||||
for {
|
|
||||||
select {
|
|
||||||
case v, ok := <-chExit:
|
|
||||||
if !ok {
|
|
||||||
fmt.Println("close channel 2", v)
|
|
||||||
goto EXIT2
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Println("ch2 val =", v)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
EXIT2:
|
|
||||||
fmt.Println("exit testSelectFor2")
|
|
||||||
select {
|
|
||||||
default:
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -107,11 +107,7 @@
|
|||||||
<el-divider style="margin-bottom: 60px;">
|
<el-divider style="margin-bottom: 60px;">
|
||||||
<el-button v-loading="loadingMore" icon="el-icon-arrow-down" type="primary" @click="more">加载更多</el-button>
|
<el-button v-loading="loadingMore" icon="el-icon-arrow-down" type="primary" @click="more">加载更多</el-button>
|
||||||
</el-divider>
|
</el-divider>
|
||||||
<!--<a href="#top">
|
|
||||||
<div class="el-backtop" style="bottom: 40px;right: 40px">
|
|
||||||
<i class="el-icon-caret-top" ></i>
|
|
||||||
</div>
|
|
||||||
</a>-->
|
|
||||||
<el-backtop target=".right_res" :bottom="100" :right="100">
|
<el-backtop target=".right_res" :bottom="100" :right="100">
|
||||||
<div
|
<div
|
||||||
style="{
|
style="{
|
||||||
@ -228,6 +224,9 @@ export default {
|
|||||||
},
|
},
|
||||||
async more() {
|
async more() {
|
||||||
this.loadingMore = true
|
this.loadingMore = true
|
||||||
|
if(this.page == 1){
|
||||||
|
this.page = this.page + 1
|
||||||
|
}
|
||||||
const status = await this.getDescList()
|
const status = await this.getDescList()
|
||||||
this.loadingMore = false
|
this.loadingMore = false
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
@ -335,6 +334,7 @@ export default {
|
|||||||
this.refreshPage()
|
this.refreshPage()
|
||||||
},
|
},
|
||||||
changeLockEvent() {
|
changeLockEvent() {
|
||||||
|
this.page = 1
|
||||||
this.getDescList(true)
|
this.getDescList(true)
|
||||||
},
|
},
|
||||||
async changeOrderBy(orderBy) {
|
async changeOrderBy(orderBy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user