前端问题修改
This commit is contained in:
parent
1bb7cdc10d
commit
484400b568
|
|
@ -146,18 +146,20 @@ function submitApply() {
|
||||||
let dataList = checkbarNodes.filter(item => {
|
let dataList = checkbarNodes.filter(item => {
|
||||||
return item.level != '1';
|
return item.level != '1';
|
||||||
})
|
})
|
||||||
if (dataList.length === 0) {
|
/* if (dataList.length === 0) {
|
||||||
return layer.msg('未添加供应商用户', { icon: 7 });
|
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);
|
console.error(idArr);
|
||||||
let data = {
|
let data = {
|
||||||
id: objParam.id,
|
id: objParam.id,
|
||||||
userId: idArr.join(','),
|
userId: idArr.length > 0 ? idArr.join(',') : '',
|
||||||
userName: nameArr.join(','),
|
userName: nameArr.length > 0 ? nameArr.join(',') : '',
|
||||||
supId: objParam.id,
|
supId: objParam.id,
|
||||||
};
|
};
|
||||||
console.error(data);
|
console.error(data);
|
||||||
|
|
|
||||||
|
|
@ -121,9 +121,9 @@ function initTable() {
|
||||||
sort:true,
|
sort:true,
|
||||||
templet: function (d) {
|
templet: function (d) {
|
||||||
if (d.status === '已生效') {
|
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 {
|
} 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+"";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,8 @@
|
||||||
<div class="layui-input-inline" style="width: 200px;">
|
<div class="layui-input-inline" style="width: 200px;">
|
||||||
<select class="layui-select" id="status">
|
<select class="layui-select" id="status">
|
||||||
<option value="">请选择合同状态</option>
|
<option value="">请选择合同状态</option>
|
||||||
<option value="0">生效</option>
|
<option value="1">生效</option>
|
||||||
<option value="1">失效</option>
|
<option value="0">失效</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue