提交 2059ca65 编写于 作者: lyf's avatar lyf

修改红点展示

上级 811eb6ac
......@@ -66,7 +66,7 @@ export default {
},
mounted() {
setTimeout( function () {
bindDragHeader('.c-header', '.chat-wrap');
bindDragHeader('.c-header', '.chat-wrap','.wenzenbox');
}, 1000)
},
......
......@@ -6,6 +6,7 @@ export default {
// 改变原数据
changeRawCurrentCalList(state,obj){
// console.log("obj",obj)
let index = state.RawCurrentCalList.findIndex(val=>{
return val.status==obj.status
})
......@@ -13,7 +14,9 @@ export default {
state.RawCurrentCalList[index]=obj
state.currentCalList[index].is_dot=false
}
},
clearRawCurrentCalList(state){
state.RawCurrentCalList=[]
},
updateCurrentCalList(state, obj) {
let NewData=obj
......
......@@ -816,7 +816,7 @@ const change = (num) => {
}
return num;
}
// 拖拽
export const bindDragHeader = (classname,content) =>{
const dragDom = document.querySelector(classname);
const con = document.querySelector(content);
......
......@@ -93,7 +93,7 @@ export default {
returnStatus: s ? s.returnStatus : 1,
};
this.searchParam = p;
this.inquirySearch();
this.inquirySearch('clear');
}
},
},
......@@ -150,13 +150,13 @@ export default {
const s = this.searchParam;
s.returnStatus = val;
this.searchParam = s;
this.inquirySearch();
this.inquirySearch('tab');
},
changeDatetime(val) {
const s = this.searchParam;
s.dateTime = val.format("yyyy-MM-dd");
this.searchParam = s;
this.inquirySearch();
this.inquirySearch('clear');
},
handleSizeChange(val) {
const s = this.searchParam;
......@@ -169,20 +169,23 @@ export default {
this.searchParam = s;
this.inquirySearch();
},
inquirySearch() {
inquirySearch(type) {
const p = this.searchParam;
if(type=='clear'){
this.$store.commit("clearRawCurrentCalList")
}
this.POST("/diagnose/socket/condition/update", p).then((res) => {
if (res.code == "000000") {
this.$store.commit("updateSoketQuest", p);
if(type=='tab'){
const returnStatus=p.returnStatus
const RespList=res.data.list[0].recordResp.countRespList.filter(val=>{
return val.status==returnStatus
})
this.$store.commit("changeRawCurrentCalList",RespList[0])
}
} else {
this.$message({
message: res.message,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册