...
|
...
|
@@ -10,6 +10,11 @@ export default { |
|
|
amId:{
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
//0-草稿
|
|
|
amStatus:{
|
|
|
type:Number,
|
|
|
default:1
|
|
|
}
|
|
|
},
|
|
|
data () {
|
...
|
...
|
@@ -61,8 +66,6 @@ export default { |
|
|
approver:approverName.value,//审批人
|
|
|
// dateTime:dateTime.value,//当前时间
|
|
|
keyword:dynamicTagsStr,//关键字
|
|
|
managetime:dateTime.value,//处理时间
|
|
|
managename:loginName.value,//处理人
|
|
|
repositoryinto:repositoryInto.value?1:0,//是否入知识库 1入,0不入
|
|
|
citecover:citeCover.value?1:0,//引用是否覆盖 0 未覆盖 1已覆盖
|
|
|
reason:reason.value,//消除原因
|
...
|
...
|
@@ -70,6 +73,14 @@ export default { |
|
|
alarmType:alarmInfo.value.alarmTypeCustom,//告警类型,active活动告警,his历史告警
|
|
|
|
|
|
}
|
|
|
if(val==2 || val==3){
|
|
|
params.id=props.amId;
|
|
|
params.managetime=alarmInfo.managetime;//处理时间
|
|
|
params.managename=alarmInfo.managename;//处理人
|
|
|
}else{
|
|
|
params.managetime=dateTime.value;
|
|
|
params.managename=loginName.value;
|
|
|
}
|
|
|
if(opinion.value){
|
|
|
params.opinion=opinion.value;//审批意见
|
|
|
}
|
...
|
...
|
@@ -88,7 +99,11 @@ export default { |
|
|
}
|
|
|
//取消按钮
|
|
|
let cancleBtn=()=>{
|
|
|
window.parent.layer.closeAll();
|
|
|
if(props.isExamine){
|
|
|
emit('saveback',false)
|
|
|
}else {
|
|
|
window.parent.layer.closeAll();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//关键字标签
|
...
|
...
|
@@ -193,6 +208,7 @@ export default { |
|
|
}
|
|
|
|
|
|
proxy.userList.push({
|
|
|
nickname:v.nickname,
|
|
|
value: v.username,
|
|
|
type:'USER',
|
|
|
desc: `${desc.join(' / ')}`,
|
...
|
...
|
@@ -204,42 +220,16 @@ export default { |
|
|
},function (){},false)
|
|
|
}
|
|
|
let getCheckedFile = () => {
|
|
|
let arr = dataList.value.filter(function (v) {
|
|
|
if (v.checked != undefined && v.checked == true) {
|
|
|
return v;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
if (arr.length == 0) {
|
|
|
proxy.$global.showMsg('请选择需要操作的文档!', 'warning');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (arr.length == 1) {
|
|
|
// 查询文件的权限
|
|
|
proxy.$http.get(`/inspection-report/file/auth/getGrant`, {docId: arr[0].id}, function (res) {
|
|
|
if (res && res.code == 0) {
|
|
|
let map = res.map;
|
|
|
if (map) {
|
|
|
let all = map.allIds;
|
|
|
userFileRight.value = all;
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
// 多文件不查询权限
|
|
|
if(alarmInfo.approver){
|
|
|
userFileRight.value = [alarmInfo.approver];
|
|
|
}else{
|
|
|
userFileRight.value = [];
|
|
|
}
|
|
|
return arr;
|
|
|
}
|
|
|
// 用户授权弹框
|
|
|
let showUserDialog = (flg) => {
|
|
|
if (flg) {
|
|
|
// let arr = getCheckedFile();
|
|
|
// if (arr && arr.length > 0) {
|
|
|
// showUserDialogVisible.value = flg;
|
|
|
// }
|
|
|
// getUserList();
|
|
|
getCheckedFile();
|
|
|
showUserDialogVisible.value = flg;
|
|
|
|
|
|
} else {
|
...
|
...
|
@@ -276,11 +266,19 @@ export default { |
|
|
let getAlarmInfo=()=>{
|
|
|
if(props.isExamine){
|
|
|
//审核告警消除
|
|
|
// if(props.amId){
|
|
|
if(props.amStatus){
|
|
|
//草稿
|
|
|
}else{
|
|
|
// getAlarmStatis();
|
|
|
}
|
|
|
getAlarmStatis();
|
|
|
// }
|
|
|
}else {
|
|
|
alarmInfo.value=proxy.$route.query;
|
|
|
getUserByToken();
|
|
|
getUser();
|
|
|
}
|
|
|
getUserByToken();
|
|
|
getUser();
|
|
|
}
|
|
|
//级联选择器
|
|
|
const cascaderValue = Vue.ref([])
|
...
|
...
|
@@ -420,6 +418,26 @@ export default { |
|
|
},1000);
|
|
|
getAlarmInfo();
|
|
|
})
|
|
|
//知识库获取详情
|
|
|
let getAlarmStatis=()=>{
|
|
|
proxy.$http.get(`/api-web/bAlarmManage/alarm/getAlarmStatisByamId`, {amId:props.amId}, function (res) {
|
|
|
if (res && res.code == 0) {
|
|
|
let data=res.object;
|
|
|
if(data){
|
|
|
alarmInfo.value=data;
|
|
|
if( alarmInfo.value.approver){
|
|
|
approverName.value=alarmInfo.value.approver;
|
|
|
userList.value.map(item=>{
|
|
|
if(item.userName== alarmInfo.value.approver){
|
|
|
approverLabel.value=item.nickname;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
Vue.onUnmounted(()=>{
|
|
|
timer.value=null;
|
|
|
})
|
...
|
...
|
@@ -430,7 +448,7 @@ export default { |
|
|
title, dialogVisible, height, dataList, columns, closeDetail,okfunc, getPage,selectionChange,dynamicTagsAppend,
|
|
|
showUserDialog,showUserDialogVisible,userFileRight,userList,selectUser,getUserList,titles,
|
|
|
getAlarmInfo,alarmInfo,cascaderValue,propsTrigger,handleChange,cascaderOptions,noticeFlag,
|
|
|
getUserByToken,getUser,cancleBtn,repositoryInfo,repositoryId,opinion
|
|
|
getUserByToken,getUser,cancleBtn,repositoryInfo,repositoryId,opinion,getAlarmStatis
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|