|
@@ -141,8 +141,8 @@ function editItem(item,activePage){
|
|
|
<div class="itemMsgInfoBox"><span class="itemMsgLab">质控条目名称:</span> <span class="itemInfoRight"> ${itemCpoy.name}</span></div>
|
|
|
<div class="itemMsgInfoBox"><span class="itemMsgLab">提示信息:</span> <span class="itemInfoRight"> <input class="itemTipMsg" value=${itemCpoy.msg} /></span></div>
|
|
|
<div class="itemMsgInfoBox"><span class="itemMsgLab">分值:</span> <span class="itemInfoRight"> <input class="itemScore" type="number" value=${itemCpoy.score} /></span></div>
|
|
|
- <div class="itemMsgInfoBox"><span class="itemMsgLab">单项否决:</span><span class="itemInfoRight itemReject">${itemCpoy.isReject}</span></div>
|
|
|
- <div class="itemMsgInfoBox"><span class="itemMsgLab">启用:</span><span class=" temInfoRight itemUsed">${itemCpoy.isUsed}</span></div>
|
|
|
+ <div class="itemMsgInfoBox"><span class="itemMsgLab">单项否决:</span><span class="itemInfoRight itemReject">${item.isReject == '1' ? `<img class="switchImg" src=${switchIconOpen} />`:`<img class="switchImg" src=${switchIconClose} />`}</span></div>
|
|
|
+ <div class="itemMsgInfoBox"><span class="itemMsgLab">启用:</span><span class=" temInfoRight itemUsed">${item.isUsed == '1' ? `<img class="switchImg" src=${switchIconOpen} />`:`<img class="switchImg" src=${switchIconClose} />`}</span></div>
|
|
|
</div>
|
|
|
|
|
|
<div class="confirmEditBox"><span class="confirmEdit">保存</span></div>
|
|
@@ -151,6 +151,9 @@ function editItem(item,activePage){
|
|
|
|
|
|
`
|
|
|
$("#mainBox", parent.document).append(str)
|
|
|
+ $("#mainBox .itemMsgBox .iconClose", parent.document).on("click", function(e){
|
|
|
+ $("#mainBox .itemMsgBox", parent.document).remove()
|
|
|
+ })
|
|
|
$("#mainBox .itemMsgBox .itemTipMsg", parent.document).on("input", function(e){
|
|
|
const val = $(this).val()
|
|
|
console.log('val', val)
|
|
@@ -257,7 +260,7 @@ function bindUsedSelect(){
|
|
|
|
|
|
//分页渲染
|
|
|
function renderPagination(totalPage,activePage,totalNum){
|
|
|
- let str = `<span class="totalSum">共${totalPage}页/${totalNum}条数据</span><span class="prePage"><img class="arrowPage" src=${arrowLeft}/></span>`
|
|
|
+ let str = `<span class="totalSum">共${totalPage}页/${totalNum}条数据</span><span class="prePage"><img class="arrowPage" src=${arrowLeft} /></span>`
|
|
|
if(totalPage <= 6){
|
|
|
for(let i = 1; i <= totalPage; i++){
|
|
|
str += `<span class="pageNum ${'page'+i}" data-page=${i}>${i}</span>`
|
|
@@ -288,7 +291,7 @@ function renderPagination(totalPage,activePage,totalNum){
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- str += `<span class="nextPage"><img class="arrowPage" src=${arrowRight}/></span>`
|
|
|
+ str += `<span class="nextPage"><img class="arrowPage" src=${arrowRight} /></span>`
|
|
|
$('.pagination').html(str)
|
|
|
$('.page' + activePage).addClass('activePage')
|
|
|
$(".pageNum").on("click", function(e){
|