2024-01-14 22:38:04 +08:00
|
|
|
<!-- index.html -->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Hello</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-01-15 23:48:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
<div class="layui-row" style="height: 1.8rem; line-height: 1.8rem; padding: 2px; font-size: 0.8rem;">
|
|
|
|
<div class="layui-col-xs1 ">
|
|
|
|
<div class="grid-demo grid-demo-bg1" style="margin:0 4px ;text-align: center;border-radius: 2px;">
|
|
|
|
<button type="button" class="layui-btn layui-btn-normal"
|
|
|
|
style=" max-width:4rem; height: 1.8rem; line-height: 1.8rem; padding: 0 0.8rem;width: 90%;margin:0 auto;">导入模板</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-col-xs1 ">
|
|
|
|
<div class="grid-demo grid-demo-bg1" style="margin:0 4px ;text-align: center;border-radius: 2px;">
|
|
|
|
<button type="button" class="layui-btn layui-btn-normal"
|
|
|
|
style=" max-width:4rem; height: 1.8rem; line-height: 1.8rem; padding: 0 0.8rem;width: 90%;margin:0 auto;">设为模板</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-03-12 17:04:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
<div class="layui-colla-item">
|
|
|
|
<div class="layui-colla-title" style="height: 1.8rem; line-height: 1.8rem; display: flex;flex-wrap: nowrap;">
|
|
|
|
<span style="height:100%; min-width:2rem" class="task_index_span">
|
|
|
|
(task_info_size - 1)
|
|
|
|
</span>
|
|
|
|
<input type="text" class="layui-input task_alias_input"
|
|
|
|
style="height: 1.8rem; line-height: 1.8rem; padding-left:0px; border:none;background-color:rgb(0,0,0,0)"
|
|
|
|
task_id=taskid value=task_show_alias>
|
|
|
|
</div>
|
|
|
|
<div class="layui-colla-content layui-show">
|
|
|
|
<p>
|
|
|
|
[ task_info.TaskID : task_info.TaskName ]
|
|
|
|
task_info.TaskBrief
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2024-01-14 22:38:04 +08:00
|
|
|
<h1>Hello world</h1>
|
|
|
|
<button id="but_id" onClick="buttonClick()">Click me</button>
|
|
|
|
<input id="select_dir_id" disabled="disabled" style="width: 400px" placeholder="显示选择的目录">
|
|
|
|
<script>
|
|
|
|
window.addEventListener('pywebviewready', function() {
|
|
|
|
console.log('pywebview is ready');
|
|
|
|
})
|
|
|
|
function buttonClick(){
|
|
|
|
console.log('dddddd');
|
|
|
|
pywebview.api.button_click().then((response)=>{
|
|
|
|
document.getElementById('select_dir_id').value=response
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|