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

修改红点展示

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