Authored by 王涛

Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'

告警消除页面增加props.amId



See merge request !489
... ... @@ -28,7 +28,7 @@
<div class="info-content-body">
<div class="content-body-info">
<div class="info-item">
同类型告警处理过程:monitor_xjic
同类型告警处理过程:{{processingData[0]}} <i class="el-icon-more"></i>
</div>
</div>
</div>
... ...
... ... @@ -13,11 +13,34 @@ export default {
},
setup(props, {attrs, slots, emit}) {
const {proxy} = Vue.getCurrentInstance();
//获取统计信息
let statisticsData=Vue.ref('');
let getStatisticsData=()=>{
proxy.$http.post(`/api-web/bAlarmManage/alarm/statis`, {alarmId:props.alarmId}, function (res) {
proxy.$http.get(`/api-web/bAlarmManage/alarm/statis`, {alarmId:props.alarmId}, function (res) {
if (res && res.code == 0) {
if(res.object){
statisticsData.value=res.object
}
}else{
proxy.$global.showMsg(res.msg, 'warning');
}
})
}
//获取同类型告警处理过程
let processingData=Vue.ref('');
let getProcessing=()=>{
proxy.$http.get(`/api-web/bAlarmManage/alarm/course`, {alarmId:props.alarmId}, function (res) {
if (res && res.code == 0) {
if(res.data){
let arr=res.data;
let processArr=[];
arr.map(item=>{
processArr.push({
})
})
processingData.value=res.data
}
}else{
proxy.$global.showMsg(res.msg, 'warning');
}
... ... @@ -27,11 +50,14 @@ export default {
* 挂载完
*/
Vue.onMounted(() => {
getStatisticsData();
getProcessing();
})
return {
getStatisticsData,
statisticsData
statisticsData,
getProcessing,
processingData
}
}
}
... ...
... ... @@ -82,12 +82,12 @@ export default {
}
//禁用编辑功能
let setDisabled=(val)=>{
let value=true;
if(val==0){
value=false;
}else{
value=true;
}
// let value=true;
// if(val==0){
// value=false;
// }else{
// value=true;
// }
elemText.value.attr('contenteditable',value)
}
... ...
... ... @@ -88,9 +88,10 @@
<el-tooltip :content="'是否入知识库'" placement="top" v-if="!isExamine">
<el-switch
v-model="repositoryInto"
active-value="1"
inactive-value="0"
/>
<!-- active-value="1"
inactive-value="0"-->
</el-tooltip>
</div>
<div class="scheme-title">
... ... @@ -126,7 +127,7 @@
placeholder="此处输入审核意见"
/>
</div>
<div class="alarmsClearTag" v-if="repositoryInto==1 && !isExamine">
<div class="alarmsClearTag" v-if="repositoryInto && !isExamine">
<div class="tag-keyword">
关键字:
<el-tag
... ... @@ -156,7 +157,7 @@
</div>
<div class="alarmsCover" v-if="repositoryId && repositoryInto==1 && !isExamine">
<div class="alarmsCover" v-if="repositoryId && repositoryInto && !isExamine">
<span class="radioLabel">引用是否覆盖:</span>
<el-radio-group v-model="citeCover">
<el-radio :label="true"></el-radio>
... ...
... ... @@ -7,6 +7,10 @@ export default {
type: Boolean,
default: false
},
amId:{
type: String,
default: ''
}
},
data () {
return {
... ... @@ -37,7 +41,7 @@ export default {
detailText.value=val;
}
//保存富文本内容
let repositoryInto=Vue.ref('1');//是否入知识库
let repositoryInto=Vue.ref(true);//是否入知识库
let repositoryId=Vue.ref('');//知识库id
let citeCover=Vue.ref(false);//是否覆盖
let reason=Vue.ref('');//简要说明
... ... @@ -46,25 +50,24 @@ export default {
let saveDetail=(val)=>{
let dynamicTagsStr=dynamicTags.value.join(',');
let pcontent=detail.value;
if(repositoryInto.value==0){
if(!repositoryInto.value){
pcontent='';
detailText.value=''
}
let params={
alarmId:alarmInfo.id,
alarmId:alarmInfo.value.id,//告警id
pcontent:pcontent,//富文本详情
status:val,//存储状态 0 草稿,1 审批中 2已审批 3驳回
approver:approverName.value,//审批人
// dateTime:dateTime.value,//当前时间
keyword:dynamicTagsStr,//关键字
aralmid:alarmInfo.id,//告警id
// manageTime:dateTime.value,//处理时间
// manageName:loginName.value,//处理人
repositoryInto:repositoryInto.value,//是否入知识库 1入,0不入
citeCover:citeCover.value?1:0,//引用是否覆盖 0 未覆盖 1已覆盖
managetime:dateTime.value,//处理时间
managename:loginName.value,//处理人
repositoryinto:repositoryInto.value?1:0,//是否入知识库 1入,0不入
citecover:citeCover.value?1:0,//引用是否覆盖 0 未覆盖 1已覆盖
reason:reason.value,//消除原因
noticeFlag:noticeFlag.value?1:0,//是否通知
alarmType:alarmInfo.alarmTypeCustom,//告警类型,active活动告警,his历史告警
alarmType:alarmInfo.value.alarmTypeCustom,//告警类型,active活动告警,his历史告警
}
if(opinion.value){
... ...