[Backend][區域選單設定] 選單設定顯示詳細資料只改取抓8段,不另外設定url
This commit is contained in:
parent
99d918e818
commit
29ff2a2919
@ -54,11 +54,9 @@
|
|||||||
<th>左邊預設頁面</th>
|
<th>左邊預設頁面</th>
|
||||||
<th>左邊是否顯示<br>平面圖</th>
|
<th>左邊是否顯示<br>平面圖</th>
|
||||||
<th>左邊昇位圖<br>詳細資料設定</th>
|
<th>左邊昇位圖<br>詳細資料設定</th>
|
||||||
<th>左邊昇位圖<br>詳細資料URL</th>
|
|
||||||
<th>右邊預設頁面</th>
|
<th>右邊預設頁面</th>
|
||||||
<th>右邊是否顯示<br>平面圖</th>
|
<th>右邊是否顯示<br>平面圖</th>
|
||||||
<th>右邊昇位圖<br>詳細資料設定</th>
|
<th>右邊昇位圖<br>詳細資料設定</th>
|
||||||
<th>右邊昇位圖<br>詳細資料URL</th>
|
|
||||||
@*<th>昇位圖URL</th>*@
|
@*<th>昇位圖URL</th>*@
|
||||||
<th>功能</th>
|
<th>功能</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -215,12 +213,12 @@
|
|||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
<input type="checkbox" class="custom-control-input" name="icon_click[]" id="icon_click_url" value="1">
|
<input type="checkbox" class="custom-control-input" name="icon_click[]" id="icon_click_url" value="1">
|
||||||
<label class="custom-control-label" for="icon_click_url">顯示詳細資料</label>
|
<label class="custom-control-label" for="icon_click_url">顯示詳細資料 - (抓取設備八段路徑呈現詳細資料)</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-12" id="build_menu_icon_click_url_modal_div" name="drawing_extend">
|
@*<div class="form-group col-12" id="build_menu_icon_click_url_modal_div" name="drawing_extend">
|
||||||
<label class="form-label" for="build_menu_icon_click_url_modal">詳細資料 URL</label><br>
|
<label class="form-label" for="build_menu_icon_click_url_modal">詳細資料 URL</label><br>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_building_tag', 'l')">+/[device_building_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_building_tag', 'l')">+/[device_building_tag]</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_system_tag', 'l')">+/[device_system_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_system_tag', 'l')">+/[device_system_tag]</button>
|
||||||
@ -229,7 +227,7 @@
|
|||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_serial_tag', 'l')">+/[device_serial_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_serial_tag', 'l')">+/[device_serial_tag]</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('tag_name', 'l')">+/[tag_name]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('tag_name', 'l')">+/[tag_name]</button>
|
||||||
<input type="text" id="build_menu_icon_click_url_modal" class="form-control">
|
<input type="text" id="build_menu_icon_click_url_modal" class="form-control">
|
||||||
</div>
|
</div>*@
|
||||||
<div class="form-group col-12" id="build_menu_icon_click_url_width_height_modal_div">
|
<div class="form-group col-12" id="build_menu_icon_click_url_width_height_modal_div">
|
||||||
<label class="form-label">詳細資料 顯示視窗設定</label><br>
|
<label class="form-label">詳細資料 顯示視窗設定</label><br>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -340,12 +338,12 @@
|
|||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
<input type="checkbox" class="custom-control-input" name="icon_click[]_r" id="icon_click_url_r" value="1">
|
<input type="checkbox" class="custom-control-input" name="icon_click[]_r" id="icon_click_url_r" value="1">
|
||||||
<label class="custom-control-label" for="icon_click_url_r">顯示詳細資料</label>
|
<label class="custom-control-label" for="icon_click_url_r">顯示詳細資料 - (抓取設備八段路徑呈現詳細資料)</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-12" id="build_menu_icon_click_url_modal_div_r" name="drawing_extend_r">
|
@*<div class="form-group col-12" id="build_menu_icon_click_url_modal_div_r" name="drawing_extend_r">
|
||||||
<label class="form-label" for="build_menu_icon_click_url_modal_r">詳細資料 URL</label><br>
|
<label class="form-label" for="build_menu_icon_click_url_modal_r">詳細資料 URL</label><br>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_building_tag')">+/[device_building_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_building_tag')">+/[device_building_tag]</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_system_tag')">+/[device_system_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_system_tag')">+/[device_system_tag]</button>
|
||||||
@ -354,7 +352,7 @@
|
|||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_serial_tag')">+/[device_serial_tag]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('device_serial_tag')">+/[device_serial_tag]</button>
|
||||||
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('tag_name')">+/[tag_name]</button>
|
<button type="button" class="btn btn-secondary waves-effect waves-themed mb-2" onclick="AddTagIntoClickUrl('tag_name')">+/[tag_name]</button>
|
||||||
<input type="text" id="build_menu_icon_click_url_modal_r" class="form-control">
|
<input type="text" id="build_menu_icon_click_url_modal_r" class="form-control">
|
||||||
</div>
|
</div>*@
|
||||||
<div class="form-group col-12" id="build_menu_icon_click_url_width_height_modal_div_r">
|
<div class="form-group col-12" id="build_menu_icon_click_url_width_height_modal_div_r">
|
||||||
<label class="form-label">詳細資料 顯示視窗設定</label><br>
|
<label class="form-label">詳細資料 顯示視窗設定</label><br>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -478,14 +476,14 @@
|
|||||||
str.push("點擊開關")
|
str.push("點擊開關")
|
||||||
}
|
}
|
||||||
if (1 & parseInt(data) > 0) {
|
if (1 & parseInt(data) > 0) {
|
||||||
str.push("顯示詳細資料")
|
str.push("顯示詳細資料 - (抓取設備八段路徑呈現詳細資料)")
|
||||||
}
|
}
|
||||||
return str.join(";");
|
return str.join(";");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
//{
|
||||||
"data": "left_icon_click_url"
|
// "data": "left_icon_click_url"
|
||||||
},
|
//},
|
||||||
{
|
{
|
||||||
"data": "right_drawing_name"
|
"data": "right_drawing_name"
|
||||||
},
|
},
|
||||||
@ -500,14 +498,14 @@
|
|||||||
str.push("點擊開關")
|
str.push("點擊開關")
|
||||||
}
|
}
|
||||||
if (1 & parseInt(data) > 0) {
|
if (1 & parseInt(data) > 0) {
|
||||||
str.push("顯示詳細資料")
|
str.push("顯示詳細資料 - (抓取設備八段路徑呈現詳細資料)")
|
||||||
}
|
}
|
||||||
return str.join(";");
|
return str.join(";");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
//{
|
||||||
"data": "right_icon_click_url"
|
// "data": "right_icon_click_url"
|
||||||
},
|
//},
|
||||||
{
|
{
|
||||||
"data": null,
|
"data": null,
|
||||||
"render": function (data, type, row, meta){
|
"render": function (data, type, row, meta){
|
||||||
@ -542,13 +540,13 @@
|
|||||||
$.each(this.data, function (k, rel) {
|
$.each(this.data, function (k, rel) {
|
||||||
rel.sub_system_guid_name = "<font color='#7c91df'>" + rel.sub_system_guid_name + "</font>"
|
rel.sub_system_guid_name = "<font color='#7c91df'>" + rel.sub_system_guid_name + "</font>"
|
||||||
if (rel.left_drawing == 2) {
|
if (rel.left_drawing == 2) {
|
||||||
rel.left_drawing_name = rel.left_drawing_name + "<br>" + '<a href = "' + rel.system_url + '" target="_blank" >點擊連結</a >'
|
rel.left_drawing_name = rel.left_drawing_name + "<br>" + '<a href = "' + rel.left_system_url + '" target="_blank" >點擊連結</a >'
|
||||||
}
|
}
|
||||||
if (rel.left_drawing == 1) {
|
if (rel.left_drawing == 1) {
|
||||||
rel.left_drawing_name = rel.left_drawing_name + "<br>" + '[' + rel.floor_guid_name + ']'
|
rel.left_drawing_name = rel.left_drawing_name + "<br>" + '[' + rel.floor_guid_name + ']'
|
||||||
}
|
}
|
||||||
if (rel.right_drawing == 2) {
|
if (rel.right_drawing == 2) {
|
||||||
rel.right_drawing_name = rel.right_drawing_name + "<br>" + '<a href = "' + rel.system_url + '" target="_blank" >點擊連結</a >'
|
rel.right_drawing_name = rel.right_drawing_name + "<br>" + '<a href = "' + rel.right_system_url + '" target="_blank" >點擊連結</a >'
|
||||||
}
|
}
|
||||||
if (rel.right_drawing == 1) {
|
if (rel.right_drawing == 1) {
|
||||||
rel.right_drawing_name = rel.right_drawing_name + "<br>" + '[' + rel.floor_guid_name + ']'
|
rel.right_drawing_name = rel.right_drawing_name + "<br>" + '[' + rel.floor_guid_name + ']'
|
||||||
@ -787,20 +785,20 @@
|
|||||||
//#endregion
|
//#endregion
|
||||||
$('#build_menu_icon_click_onoff_modal_div').on("click", "input[type=checkbox]", function () {
|
$('#build_menu_icon_click_onoff_modal_div').on("click", "input[type=checkbox]", function () {
|
||||||
if ($(this).prop("checked") && $(this).val() == 1) {
|
if ($(this).prop("checked") && $(this).val() == 1) {
|
||||||
$('#build_menu_icon_click_url_modal_div').show();
|
//$('#build_menu_icon_click_url_modal_div').show();
|
||||||
$('#build_menu_icon_click_url_width_height_modal_div').show();
|
$('#build_menu_icon_click_url_width_height_modal_div').show();
|
||||||
} else {
|
} else {
|
||||||
$('#build_menu_icon_click_url_modal_div').hide();
|
//$('#build_menu_icon_click_url_modal_div').hide();
|
||||||
$('#build_menu_icon_click_url_width_height_modal_div').hide();
|
$('#build_menu_icon_click_url_width_height_modal_div').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#build_menu_icon_click_onoff_modal_div_r').on("click", "input[type=checkbox]", function () {
|
$('#build_menu_icon_click_onoff_modal_div_r').on("click", "input[type=checkbox]", function () {
|
||||||
if ($(this).prop("checked") && $(this).val() == 1) {
|
if ($(this).prop("checked") && $(this).val() == 1) {
|
||||||
$('#build_menu_icon_click_url_modal_div_r').show();
|
//$('#build_menu_icon_click_url_modal_div_r').show();
|
||||||
$('#build_menu_icon_click_url_width_height_modal_div_r').show();
|
$('#build_menu_icon_click_url_width_height_modal_div_r').show();
|
||||||
} else {
|
} else {
|
||||||
$('#build_menu_icon_click_url_modal_div_r').hide();
|
//$('#build_menu_icon_click_url_modal_div_r').hide();
|
||||||
$('#build_menu_icon_click_url_width_height_modal_div_r').hide();
|
$('#build_menu_icon_click_url_width_height_modal_div_r').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -977,7 +975,7 @@
|
|||||||
let drawingParent = $(value).parents("[id^=build_menu_position]")
|
let drawingParent = $(value).parents("[id^=build_menu_position]")
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_onoff_modal_div]').hide();
|
$(drawingParent).find('[id^=build_menu_icon_click_onoff_modal_div]').hide();
|
||||||
$(drawingParent).find('[id^=build_menu_blankurl_modal_div]').hide();
|
$(drawingParent).find('[id^=build_menu_blankurl_modal_div]').hide();
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_url_modal_div]').hide();
|
//$(drawingParent).find('[id^=build_menu_icon_click_url_modal_div]').hide();
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_url_width_height_modal_div]').hide();
|
$(drawingParent).find('[id^=build_menu_icon_click_url_width_height_modal_div]').hide();
|
||||||
$(drawingParent).find('[id^=build_menu_planimetric_floor_modal_div]').hide();
|
$(drawingParent).find('[id^=build_menu_planimetric_floor_modal_div]').hide();
|
||||||
$(drawingParent).find('[id^=build_menu_systemurl_modal_div]').hide();
|
$(drawingParent).find('[id^=build_menu_systemurl_modal_div]').hide();
|
||||||
@ -989,7 +987,7 @@
|
|||||||
$(drawingParent).find('[id^="planimetric_click"]').attr("disabled", false);
|
$(drawingParent).find('[id^="planimetric_click"]').attr("disabled", false);
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_onoff_modal_div]').show();
|
$(drawingParent).find('[id^=build_menu_icon_click_onoff_modal_div]').show();
|
||||||
if ($(drawingParent).find("[id^=icon_click_url]").prop('checked')) {
|
if ($(drawingParent).find("[id^=icon_click_url]").prop('checked')) {
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_url_modal_div]').show();
|
//$(drawingParent).find('[id^=build_menu_icon_click_url_modal_div]').show();
|
||||||
$(drawingParent).find('[id^=build_menu_icon_click_url_width_height_modal_div]').show();
|
$(drawingParent).find('[id^=build_menu_icon_click_url_width_height_modal_div]').show();
|
||||||
}
|
}
|
||||||
} else if ($(value).val() == 1) {
|
} else if ($(value).val() == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user