Authored by 鲁尚清

weblogic列表增加扩展字段,字段类型修改;

故障诊断基础资源卡片列表默认图标
... ... @@ -2979,6 +2979,14 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
layer.close(subtips);
});
//lsq T3和IOP点击修改删除 2022-08-04
let fsTypeEl=$('.edit-delete-tpl');
if(fsTypeEl && fsTypeEl.length>0){
fsTypeEl.map((index,item)=>{
if($(item).data('fieldsourcetype')=='text'){
$(item).removeAttr('lay-tips')
}
})
}
$('.edit-delete-tpl').unbind('click').on('click',function (){
var $T3Dom = $(this);
//判断是字段类型T3/IOP
... ... @@ -2991,16 +2999,17 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
let expandId=$T3Dom.data('expandid');
//获取字段为输入框或者下拉选择 0 输入框 1下拉选择
let fieldSourceType=$T3Dom.data('fieldsourcetype');
if(fieldSourceType!='text'){
//获取下拉选择值
let fieldList=$T3Dom.data('list');
let url='/api-web/resource/expand/saveOrUpdate';
//判断类型是输入框还是下拉列表
let titleName='';
let promptHtml='';
if(fieldSourceType == '0'){
if(fieldSourceType == 'input'){
titleName='请输入';
promptHtml=`<input type="text" id="promptInput" name="promptInput" autocomplete="off" class="layui-input">`
}else if(fieldSourceType== '1'){
}else if(fieldSourceType== 'select'){
titleName='请选择';
promptHtml=`<select id="promptInput" style="width:80%;cursor:pointer;" class="layui-select" lay-filter="promptInput">`
if(fieldList){
... ... @@ -3011,7 +3020,8 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
}
promptHtml+=`</select>`;
}else{
promptHtml=``
titleName='请查看';
promptHtml=`<span style="border: 1px solid #d2d2d2;flex: 1;padding: 10px;" id="promptInput">`+old_T3Dom+`</span>`
}
let html_tpl=`<div class="T3-IOP-prompt">`+promptHtml+`</div>`;
layer.open({
... ... @@ -3083,7 +3093,10 @@ layui.define(['soulTable', 'commonDetail', 'common', 'laytpl', 'view', 'admin',
}
},
});
}
})
//end lsq T3和IOP点击修改/删除 2022-08-04
function showTips(id, message, state) {
subtips = layer.tips(state + "失败原因:" + message,
... ...
... ... @@ -811,14 +811,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
});
//start lsq 根据资源类型resType获取动态添加的列表字段 2022-08-05
admin.req({
url: this.domainName + "/api-web/resource/expand/list?resType=" + resType
url: common.domainName + "/api-web/resource/expand/list?resType=" + resType
, done: function (res) {
if (res && res.data ) {
let arr=res.data;
//lsq 资源管理增加扩展字段 待验证 2022-08-12
// if(this.fieldExpandArr.indexOf(resType)!=-1){
// }else{
// this.fieldExpandArr.push(resType);
if(arr.length>0){
arr.map(item=>{
let listStr='';
... ... @@ -833,7 +829,6 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
</div></div>`})
})
}
// }
} else {
console.log(res.msg);
}
... ... @@ -1133,6 +1128,14 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
resTopo();
//lsq T3和IOP点击修改删除 2022-08-04
let fsTypeEl=$('.edit-delete-tpl');
if(fsTypeEl && fsTypeEl.length>0){
fsTypeEl.map((index,item)=>{
if($(item).data('fieldsourcetype')=='text'){
$(item).removeAttr('lay-tips')
}
})
}
$('.edit-delete-tpl').unbind('click').on('click',function (){
var $T3Dom = $(this);
//判断是字段类型T3/IOP
... ... @@ -1145,16 +1148,17 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
let expandId=$T3Dom.data('expandid');
//获取字段为输入框或者下拉选择 0 输入框 1下拉选择
let fieldSourceType=$T3Dom.data('fieldsourcetype');
if(fieldSourceType!='text'){
//获取下拉选择值
let fieldList=$T3Dom.data('list');
let url='/api-web/resource/expand/saveOrUpdate';
//判断类型是输入框还是下拉列表
let titleName='';
let promptHtml='';
if(fieldSourceType == '0'){
if(fieldSourceType == 'input'){
titleName='请输入';
promptHtml=`<input type="text" id="promptInput" name="promptInput" autocomplete="off" class="layui-input">`
}else if(fieldSourceType== '1'){
}else if(fieldSourceType== 'select'){
titleName='请选择';
promptHtml=`<select id="promptInput" style="width:80%;cursor:pointer;" class="layui-select" lay-filter="promptInput">`
if(fieldList){
... ... @@ -1165,7 +1169,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
}
promptHtml+=`</select>`;
}else{
promptHtml=``
titleName='请查看';
promptHtml=`<span style="border: 1px solid #d2d2d2;flex: 1;padding: 10px;" id="promptInput">`+old_T3Dom+`</span>`
}
let html_tpl=`<div class="T3-IOP-prompt">`+promptHtml+`</div>`;
layer.open({
... ... @@ -1237,6 +1242,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'upload', 'admin', 'form',
}
},
});
}
})
//end lsq T3和IOP点击修改/删除 2022-08-04
}
... ...
... ... @@ -61,7 +61,7 @@
<template #content>
{{item.resTypeName}}
</template>
<img :src="'../src/style/img/fault/base/base-'+item.resClass+'-'+item.health+'.png'">
<img :src="'../src/style/img/fault/base/base-'+item.resClass+'-'+(item.health?item.health:'no')+'.png'">
</el-tooltip>
</el-col>
<el-col :span="16" style="color: #666666;">
... ...