埋点数据检查添加项目名

This commit is contained in:
罗松柏 2022-03-03 17:41:46 +08:00
parent 72a827a53d
commit 27dade435c
3 changed files with 24 additions and 7 deletions

View File

@ -17,10 +17,13 @@
</div>
<form class="layui-form layui-form-pane" action="" lay-filter="datacheckexample">
<div class="datacheck-from-box">
<!-- <div class="datacheck-input-box">
<div class="datacheck-input-box select-datacheck-box">
<p>游戏名</p>
<input name="game" autocomplete="off" class="layui-input"/>
</div> -->
<!-- <input name="game" autocomplete="off" class="layui-input"/> -->
<select name="game" class="eventattr-select select-datacheck-list-box" lay-filter="eventattr_filter">
<!-- <option value="">请选择游戏名</option> -->
</select>
</div>
<div class="datacheck-input-box">
<p>数据库名</p>
@ -165,6 +168,13 @@
</div>
</div>
<script id="select-datacheck-list-box-dot" type="text/html">
<option value="">请选择游戏名</option>
{{# layui.each(d, function(index, item){ }}
<option value="{{item.game}}">{{item.name}}</option>
{{# }); }}
</script>
<script id="eventattr-box-dot" type="text/html">
{{# layui.each(d, function(index, item){ }}
<div class="datacheck-tab-condition-box">

View File

@ -3,7 +3,11 @@
init : function(parms){
var me = this;
layui.form.render();
X.api("project/","get",{},function(d){
X.laytpldata('#select-datacheck-list-box-dot',d,'.select-datacheck-list-box',function(){
layui.form.render();
});
})
// 事件属性添加
var eventarr = [];
@ -169,7 +173,7 @@
}
var data={
// 'game': fromdata.game,
'game': fromdata.game,
'db_name':fromdata.db_name,
'event_name':fromdata.eventname,
'is_unique':is_unique,
@ -218,7 +222,7 @@
conditionarr = conditionData;
modeltitle = data.title;
layui.form.val('datacheckexample',{
// 'game':data['game'],
'game':data['game'],
'db_name':data['check']['db_name'],
'eventname':data['check']['event_name'],
'only':data['check']['is_unique'],
@ -251,6 +255,7 @@
}
var data={
'game': fromdata.game,
'db_name':fromdata.db_name,
'event_name':fromdata.eventname,
'is_unique':is_unique,

View File

@ -939,3 +939,5 @@ label:not(.form-check-label):not(.custom-file-label) { font-weight: 400; }
.datarightsedit-tj { background-color: #009688; color: #fff; }
.datarightsedit-txt-box { align-items: center;}
.select-datacheck-box i{ right: -26px !important;}