前端问题修改

This commit is contained in:
cwchen 2025-01-22 13:41:14 +08:00
parent 1bb7cdc10d
commit 484400b568
3 changed files with 13 additions and 11 deletions

View File

@ -146,18 +146,20 @@ function submitApply() {
let dataList = checkbarNodes.filter(item => {
return item.level != '1';
})
if (dataList.length === 0) {
/* if (dataList.length === 0) {
return layer.msg('未添加供应商用户', { icon: 7 });
} */
if(dataList.length > 0){
$.each(dataList, function (index, item) {
idArr.push(item.nodeId);
nameArr.push(item.context);
})
}
$.each(dataList, function (index, item) {
idArr.push(item.nodeId);
nameArr.push(item.context);
})
console.error(idArr);
let data = {
id: objParam.id,
userId: idArr.join(','),
userName: nameArr.join(','),
userId: idArr.length > 0 ? idArr.join(',') : '',
userName: nameArr.length > 0 ? nameArr.join(',') : '',
supId: objParam.id,
};
console.error(data);

View File

@ -121,9 +121,9 @@ function initTable() {
sort:true,
templet: function (d) {
if (d.status === '已生效') {
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:14px'>●</span>" + "生效中";
return "<span style='color:#19BE6B;margin:0 5px 0 5px;font-size:14px'>●</span>"+d.status+"";
} else {
return "<span style='color:#F56C6C;margin:0 5px 0 5px;font-size:14px'>●</span>" + "已失效";
return "<span style='color:#F56C6C;margin:0 5px 0 5px;font-size:14px'>●</span>"+d.status+"";
}
}
},

View File

@ -56,8 +56,8 @@
<div class="layui-input-inline" style="width: 200px;">
<select class="layui-select" id="status">
<option value="">请选择合同状态</option>
<option value="0">生效</option>
<option value="1">失效</option>
<option value="1">生效</option>
<option value="0">失效</option>
</select>
</div>
</div>