更新+修复媒体管理修改

This commit is contained in:
tyt 2024-06-15 16:03:35 +08:00
parent 047d46950d
commit 9840085703
11 changed files with 6644 additions and 170 deletions

View File

@ -165,6 +165,13 @@
<span>2024.05.30</span> <span>2024.05.30</span>
</li> </li>
</ul> </ul>
<ul>
<li>
<a href="https://ledok.cn:8443/download/R56S Datasheet-V1.1.pdf" target="_blank" title="R56S Datasheet-V1.1">R56S Datasheet-V1.1.pdf</a>
<span>规格书</span>
<span>2024.05.30</span>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>

View File

@ -164,7 +164,14 @@
<div class="document-ul-box"> <div class="document-ul-box">
<ul> <ul>
<li> <li>
<a href="https://ledok.cn:8443/download/RS5A规格书-V1.2.pdf" target="_blank" title="RS5A规格书-V1.3">RS5A规格书-V1.2.pdf</a> <a href="https://ledok.cn:8443/download/RS5A规格书-V1.3.pdf" target="_blank" title="RS5A规格书-V1.3">RS5A规格书-V1.3.pdf</a>
<span>规格书</span>
<span>2024.05.30</span>
</li>
</ul>
<ul>
<li>
<a href="https://ledok.cn:8443/download/RS5A Datasheet-V1.3.pdf" target="_blank" title="RS5A Datasheet-V1.3">RS5A Datasheet-V1.3.pdf</a>
<span>规格书</span> <span>规格书</span>
<span>2024.05.30</span> <span>2024.05.30</span>
</li> </li>

View File

@ -175,6 +175,13 @@
<span>2024.05.30</span> <span>2024.05.30</span>
</li> </li>
</ul> </ul>
<ul>
<li>
<a href="https://ledok.cn:8443/download/RS5S Datasheet-V1.3.pdf" target="_blank" title="RS5S Datasheet-V1.3">RS5S Datasheet-V1.3.pdf</a>
<span>规格书</span>
<span>2024.05.30</span>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>

View File

@ -189,7 +189,7 @@
<div class="document-ul-box"> <div class="document-ul-box">
<ul> <ul>
<li> <li>
<a href="https://ledok.cn:8443/download/ST40规格书-V1.1.pdf" target="_blank" title="ST40规格书-V1.1.pdf">ST40规格书-V1.1.pdf</a> <a href="https://ledok.cn:8443/download/ST40规格书-V1.2.pdf" target="_blank" title="ST40规格书-V1.2.pdf">ST40规格书-V1.2.pdf</a>
<span>规格书</span> <span>规格书</span>
<span>2024.03.13</span> <span>2024.03.13</span>
</li> </li>

View File

@ -96,42 +96,33 @@
font-size: .8333vw; font-size: .8333vw;
} }
.form-group .form-control,
.form-group .form-select {
width: 200px;
height: 28px;
line-height: 28px;
padding-left: 8px;
.form-group .form-control,
.form-group .form-file,
.form-group select {
padding-left: 8px;
padding: 8px 30px 8px 14px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 0.2vw; border-radius: 0.2vw;
font-size: 0.8333vw; font-size: 0.8333vw;
box-sizing: border-box; box-sizing: border-box;
} }
.form-group .form-select option { .form-group .form-file {
width: 200px;
height: 28px;
line-height: 28px;
padding-left: 8px;
border: 1px solid #ccc;
border-radius: 0.2vw;
font-size: 0.8333vw; font-size: 0.8333vw;
box-sizing: border-box; }
.form-group select {
margin-right: 0.6333vw;
} }
.form-group button { .form-group button {
width: 40px;
background-color: lightsteelblue; background-color: lightsteelblue;
color: #fff; color: #fff;
border: none; border: none;
cursor: pointer; cursor: pointer;
font-size: 0.8333vw; font-size: 0.8333vw;
width: 40px; padding: 8px 12px;
height: 28px;
line-height: 28px;
padding: auto;
border-radius: 2px; border-radius: 2px;
} }
@ -169,14 +160,40 @@
.layui-table td, .layui-table td,
.layui-table th { .layui-table th {
position: relative; position: relative;
height: 28px; height: 35px;
line-height: 28px; line-height: 35px;
} }
.layui-table td, .layui-table td,
.layui-table th { .layui-table th {
padding: 0px; padding: 0px;
} }
/* @media screen and (max-width: 460px) {
.form-group>div {
font-size:16px;
}
.form-group .form-control,
.form-group .form-file,
.form-group select {
font-size:16px;
}
.form-group .form-file {
font-size:16px;
}
.form-group button {
font-size:16px;
}
.layui-table tbody th,
.layui-table tbody td {
font-size: 16px;
}
} */
</style> </style>
<body> <body>
@ -335,7 +352,7 @@
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<div class="form-group"> <div class="form-group">
<div>请选择分辨率:</div> <div>请选择分辨率:</div>
<select class="form-select" id="selectResolutionRatio" onchange="searchFile()"> <select id="selectResolutionRatio" onchange="searchFile()">
<option value="64_16">64_16</option> <option value="64_16">64_16</option>
<option value="64_32">64_32</option> <option value="64_32">64_32</option>
<option value="64_64">64_64</option> <option value="64_64">64_64</option>
@ -350,9 +367,8 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<input type="file" id="file" style="border: none;"> <input class="form-file" type="file" id="file" style="border: none;">
<button type="button" id="btnUpload" style="width: 80px;" <button type="button" id="btnUpload" onclick="uploadFile()">上传文件</button>
onclick="uploadFile()">上传文件</button>
</div> </div>
</form> </form>
<div id="fileTable"> <div id="fileTable">
@ -486,7 +502,8 @@
}); });
html += "</tbody></table>" html += "</tbody></table>"
$("#fileTable").html(html); $("#fileTable").html(html);
} else { } else {
console.log('打印测试')
var html = "<table border=1><thead><tr><td>文件名称</td><td>操作</td></tr></thead><tbody><tr><td colspan=2>暂无数据</td></tr></tbody><table>"; var html = "<table border=1><thead><tr><td>文件名称</td><td>操作</td></tr></thead><tbody><tr><td colspan=2>暂无数据</td></tr></tbody><table>";
$("#fileTable").html(html); $("#fileTable").html(html);
} }

View File

@ -297,6 +297,51 @@
<h5>RS5S规格书-V1.3.pdf</h5> <h5>RS5S规格书-V1.3.pdf</h5>
</a> </a>
</div> </div>
<div class="box">
<a href="https://ledok.cn:8443/download/RS5S Datasheet-V1.3.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>RS5S Datasheet-V1.3.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/RS5A规格书-V1.3.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>RS5A规格书-V1.3.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/RS5A Datasheet-V1.3.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>RS5A Datasheet-V1.3.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/R56S规格书-V1.1.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>R56S规格书-V1.1.pdf</h5>
</a>
</div>
<div class="box">
<a href="https://ledok.cn:8443/download/R56S Datasheet-V1.1.pdf" class="left"
target="_blank">
<div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" />
</div>
<h5>R56S Datasheet-V1.1.pdf</h5>
</a>
</div>
<div class="box"> <div class="box">
<a href="https://ledok.cn:8443/download/RLB1规格书-V1.2.pdf" class="left" <a href="https://ledok.cn:8443/download/RLB1规格书-V1.2.pdf" class="left"
target="_blank"> target="_blank">

View File

@ -236,12 +236,12 @@
</a> </a>
</div> </div>
<div class="box"> <div class="box">
<a href="https://ledok.cn:8443/download/ST40规格书-V1.1.pdf" class="left" <a href="https://ledok.cn:8443/download/ST40规格书-V1.2.pdf" class="left"
target="_blank"> target="_blank">
<div class="TextIcon"> <div class="TextIcon">
<img src="/static/image/pdfDownload.png" alt="" /> <img src="/static/image/pdfDownload.png" alt="" />
</div> </div>
<h5>ST40规格书-V1.1.pdf</h5> <h5>ST40规格书-V1.2.pdf</h5>
</a> </a>
</div> </div>
</div> </div>

View File

@ -124,16 +124,36 @@
width: 100%; width: 100%;
height: 62%; height: 62%;
} }
.consumerBottom{
width: 100%; .consumerBottom {
height: 45px; width: 100%;
margin-right: 10px; height: 50px;
position: absolute; margin-right: 10px;
bottom: 0px; position: absolute;
display: flex; bottom: 0px;
justify-content: flex-end; display: flex;
align-items: center; justify-content: flex-end;
align-items: center;
} }
.consumerBottom button {
background-color: lightsteelblue;
color: #fff;
border: none;
cursor: pointer;
font-size: 0.8333vw;
padding: 8px 12px;
border-radius: 2px;
}
.bgRed {
background-color: #d35c5d;
}
.bgBlue {
background-color: lightsteelblue;
}
.form-group { .form-group {
display: flex; display: flex;
align-items: center; align-items: center;
@ -145,70 +165,124 @@ align-items: center;
font-size: .8333vw; font-size: .8333vw;
} }
.form-group .form-control,
.form-group .form-select {
width: 200px;
height: 28px;
line-height: 28px;
padding-left: 8px;
.form-group .form-control,
.form-group .form-file,
.form-group select {
padding-left: 8px;
padding: 8px 30px 8px 14px;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 0.2vw; border-radius: 0.2vw;
font-size: 0.8333vw; font-size: 0.8333vw;
box-sizing: border-box; box-sizing: border-box;
} }
.form-group .form-select option { .form-group .form-file {
width: 200px;
height: 28px;
line-height: 28px;
padding-left: 8px;
border: 1px solid #ccc;
border-radius: 0.2vw;
font-size: 0.8333vw; font-size: 0.8333vw;
box-sizing: border-box; }
.form-group select {
margin-right: 0.6333vw;
} }
.form-group button { .form-group button {
width: 40px;
background-color: lightsteelblue; background-color: lightsteelblue;
color: #fff; color: #fff;
border: none; border: none;
cursor: pointer; cursor: pointer;
font-size: 0.8333vw; font-size: 0.8333vw;
width: 40px; padding: 8px 12px;
height: 28px;
line-height: 28px;
padding: auto;
border-radius: 2px; border-radius: 2px;
} }
.btns { .btns {
width: 40px;
background-color: lightsteelblue; background-color: lightsteelblue;
color: #fff; color: #fff;
border: none; border: none;
cursor: pointer; cursor: pointer;
font-size: 0.8333vw; font-size: 0.8333vw;
width: 40px; padding: 8px 12px;
height: 28px;
line-height: 28px;
padding: auto;
border-radius: 2px; border-radius: 2px;
} }
@media screen and (max-width: 750px) { .layui-table {
.form-group { width: 100%;
display: block; margin: 0px;
} }
.form-group>div{
margin-bottom: 5px; .layui-table thead th,
} .layui-table thead td {
.form-group .form-control{ text-align: center;
width: 80%; }
}
} .layui-table thead th {
background-color: #9dc9ff;
font-size: 0.9375vw;
font-weight: 700;
}
.layui-table tbody th,
.layui-table tbody td {
font-size: 0.8333vw;
}
.layui-table td,
.layui-table th {
position: relative;
height: 35px;
line-height: 35px;
}
.layui-table td,
.layui-table th {
padding: 0px;
}
@media screen and (max-width: 460px) {
.form-group {
display: block;
}
.form-group>div {
font-size: 16px;
margin-bottom: 5px;
display: none;
}
.form-group .form-control {
width: 80%;
}
.form-group .form-control,
.form-group .form-file,
.form-group select {
font-size: 16px;
}
.form-group .form-file {
font-size: 16px;
}
.form-group button {
font-size: 16px;
}
.layui-table tbody th,
.layui-table tbody td {
font-size: 16px;
}
.consumerContent {
width: 80%;
height: 40%;
}
.consumerBottom button {
font-size: 16px;
}
}
</style> </style>
@ -376,10 +450,10 @@ align-items: center;
</div> </div>
</form> </form>
</div> </div>
<div class="consumerBottom" > <div class="consumerBottom">
<button type="button" onclick="consumerClose()" <button type="button" onclick="consumerClose()"
style="background-color:lightsteelblue ;margin-right: 15px;" class="btns btn-default">取消</button> style="background-color:lightsteelblue ;margin-right: 15px;" class="btn-default">取消</button>
<button type="button" onclick="consumerConfirm()" class="btns btn-primary" <button type="button" onclick="consumerConfirm()" class="btn-primary"
style="background-color:lightsteelblue ;margin-right: 10px;">确定</button> style="background-color:lightsteelblue ;margin-right: 10px;">确定</button>
</div> </div>
</div> </div>

View File

@ -222,7 +222,7 @@
<form> <form>
<div class="form-group"> <div class="form-group">
<button type="button" onclick="consumerUploadShow()" <button type="button" onclick="consumerUploadShow()"
style="margin-right: 10px;width: 80px;">添加素材</button> style="margin-right: 10px;">添加素材</button>
<select class="form-select" id="consumerSelectResolutionRatio" onchange="consumerList()"> <select class="form-select" id="consumerSelectResolutionRatio" onchange="consumerList()">
<option value="">请选择分辨率</option> <option value="">请选择分辨率</option>
@ -288,8 +288,8 @@
<div class="consumerBottom"> <div class="consumerBottom">
<button type="button" onclick="consumerClose()" <button type="button" onclick="consumerClose()"
style="background-color:lightsteelblue ;margin-right: 15px;" style="background-color:lightsteelblue ;margin-right: 15px;"
class="btns btn-default">取消</button> class="btn-default">取消</button>
<button type="button" onclick="consumerUpload()" class="btns btn-primary" <button type="button" onclick="consumerUpload()" class="btn-primary"
style="background-color:lightsteelblue ;margin-right: 10px;">确定</button> style="background-color:lightsteelblue ;margin-right: 10px;">确定</button>
</div> </div>
</div> </div>
@ -301,7 +301,7 @@
<div class="form-group"> <div class="form-group">
<div>请输入像素:</div> <div>请输入像素:</div>
<input id="resolutionInput" class="form-control" style="margin-right: 10px;" type="text"> <input id="resolutionInput" class="form-control" style="margin-right: 10px;" type="text">
<button type="button" onclick="consumerResolutionAdd()" class="btn btn-primary">添加</button> <button type="button" onclick="consumerResolutionAdd()" class="btn-primary">添加</button>
</div> </div>
</form> </form>
<div id="consumerResolutionTable"> <div id="consumerResolutionTable">
@ -315,7 +315,7 @@
<div class="form-group"> <div class="form-group">
<div>请输入公司名:</div> <div>请输入公司名:</div>
<input id="companyInput" class="form-control" style="margin-right: 10px;" type="text"> <input id="companyInput" class="form-control" style="margin-right: 10px;" type="text">
<button type="button" onclick="consumerCompanyAdd()" class="btn btn-primary">添加</button> <button type="button" onclick="consumerCompanyAdd()" class="btn-primary">添加</button>
</div> </div>
</form> </form>
<div id="consumerCompanyTable"> <div id="consumerCompanyTable">
@ -475,87 +475,64 @@
transition: all 0.3s; transition: all 0.3s;
} }
.bgRed { .bgRed {
background-color: #d35c5d; background-color: #d35c5d;
} }
.bgBlue { .bgBlue {
background-color: lightsteelblue; background-color: lightsteelblue;
} }
.bgRed { .form-group {
background-color: #d35c5d; display: flex;
} align-items: center;
margin-bottom: 0.6333vw;
}
.bgBlue { .form-group>div {
background-color: lightsteelblue; margin-right: 0.6333vw;
} font-size: .8333vw;
}
.form-group {
display: flex;
align-items: center;
margin-bottom: 0.6333vw;
}
.form-group>div { .form-group .form-control,
margin-right: 0.6333vw; .form-group .form-file,
font-size: .8333vw; .form-group select {
} padding-left: 8px;
padding: 8px 30px 8px 14px;
border: 1px solid #ccc;
border-radius: 0.2vw;
font-size: 0.8333vw;
box-sizing: border-box;
}
.form-group .form-control, .form-group .form-file {
.form-group .form-select { font-size: 0.8333vw;
width: 200px; }
height: 28px;
line-height: 28px;
padding-left: 8px;
border: 1px solid #ccc; .form-group select {
border-radius: 0.2vw; margin-right: 0.6333vw;
font-size: 0.8333vw; }
box-sizing: border-box;
}
.form-group .form-select option { .form-group button {
width: 200px; background-color: lightsteelblue;
height: 28px; color: #fff;
line-height: 28px; border: none;
padding-left: 8px; cursor: pointer;
font-size: 0.8333vw;
padding: 8px 12px;
border-radius: 2px;
}
border: 1px solid #ccc; .btns {
border-radius: 0.2vw; background-color: lightsteelblue;
font-size: 0.8333vw; color: #fff;
box-sizing: border-box; border: none;
} cursor: pointer;
font-size: 0.8333vw;
.form-group button { padding: 8px 12px;
width: 40px; border-radius: 2px;
background-color: lightsteelblue; }
color: #fff;
border: none;
cursor: pointer;
font-size: 0.8333vw;
width: 40px;
height: 28px;
line-height: 28px;
padding: auto;
border-radius: 2px;
}
.btns {
width: 40px;
background-color: lightsteelblue;
color: #fff;
border: none;
cursor: pointer;
font-size: 0.8333vw;
width: 40px;
height: 28px;
line-height: 28px;
padding: auto;
border-radius: 2px;
}
.layui-table { .layui-table {
width: 100%; width: 100%;
@ -580,8 +557,8 @@
.layui-table td, .layui-table td,
.layui-table th { .layui-table th {
position: relative; position: relative;
height: 28px; height: 35px;
line-height: 28px; line-height: 35px;
} }
.layui-table td, .layui-table td,
@ -621,7 +598,7 @@
z-index: 10000; z-index: 10000;
background-color: #ffffff; background-color: #ffffff;
width: 30%; width: 30%;
height: 30%; height: 35%;
margin-top: 10%; margin-top: 10%;
border-radius: 2%; border-radius: 2%;
} }
@ -644,7 +621,7 @@
} }
.consumerBottom{ .consumerBottom{
width: 100%; width: 100%;
height: 45px; height: 50px;
margin-right: 10px; margin-right: 10px;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
@ -652,30 +629,68 @@
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }
.consumerBottom button{
background-color: lightsteelblue;
color: #fff;
border: none;
cursor: pointer;
font-size: 0.8333vw;
padding: 8px 12px;
border-radius: 2px;
}
@media screen and (max-width: 750px) { @media screen and (max-width: 460px) {
.tab-content{
overflow: scroll;
}
.tab-links li a{
font-size: 16px;
}
.pager ul li{
font-size: 12px;
}
.form-group { .form-group {
display: block; display: block;
} }
.form-group>div { .form-group>div {
font-size: 16px;
margin-bottom: 5px; margin-bottom: 5px;
display: none;
} }
.form-group .form-control { .form-group .form-control {
width: 80%; width: 80%;
} }
}
@media screen and (max-width: 600px) { .form-group .form-control,
.form-group .form-file,
.form-group select {
.layui-table td, font-size: 16px;
.layui-table th { }
position: relative;
height: 24px; .form-group .form-file {
line-height: 24px; font-size: 16px;
}
.form-group button {
font-size: 16px;
}
.layui-table tbody th,
.layui-table tbody td {
font-size: 12px; font-size: 12px;
} }
.consumerContent {
width: 80%;
height: 40%;
}
.consumerBottom button {
font-size: 16px;
}
} }
</style> </style>
<script> <script>

View File

@ -7684,7 +7684,7 @@ pre code {
color: #bababa; color: #bababa;
} }
select { /* select {
border: .0521vw solid #ccc; border: .0521vw solid #ccc;
background: #fff; background: #fff;
-webkit-border-radius: .2604vw; -webkit-border-radius: .2604vw;
@ -7697,7 +7697,7 @@ select {
margin-right: .5208vw; margin-right: .5208vw;
-webkit-box-shadow: 0 0 .2604vw #eee; -webkit-box-shadow: 0 0 .2604vw #eee;
box-shadow: 0 0 .2604vw #eee; box-shadow: 0 0 .2604vw #eee;
} } */
select:disabled { select:disabled {
background-color: #eef1f6; background-color: #eef1f6;

File diff suppressed because one or more lines are too long