update
This commit is contained in:
@@ -134,6 +134,7 @@ import { deptTreeSelect } from "@/api/system/user";
|
||||
import docDetail from "@/views/document/detail";
|
||||
import toolDetail from "@/views/tool/toolDetail";
|
||||
import { getUserMsgCount } from "@/api/message/message"
|
||||
import store from '@/store'
|
||||
|
||||
export default {
|
||||
name: "Document",
|
||||
@@ -255,9 +256,7 @@ export default {
|
||||
self.$set(formData, "states", 2)
|
||||
updateMessage(formData).then(response => {
|
||||
self.$modal.msgSuccess(response?.msg || '操作成功')
|
||||
getUserMsgCount(self.$store.getters.userId).then(res => {
|
||||
self.$store.commit("SET_UNREAD_MSG_NUMBER", res.data);
|
||||
});
|
||||
store.dispatch('GetUserMsgCount').then(() => { })
|
||||
self.getList();
|
||||
})
|
||||
}).catch((err) => {console.error(err)});
|
||||
@@ -279,11 +278,7 @@ export default {
|
||||
}
|
||||
allMarkedRead(formData).then(response => {
|
||||
self.$modal.msgSuccess(response?.msg || '操作成功')
|
||||
|
||||
getUserMsgCount(self .$store.getters.userId).then(res => {
|
||||
self.$store.commit("SET_UNREAD_MSG_NUMBER", res.data);
|
||||
});
|
||||
|
||||
store.dispatch('GetUserMsgCount').then(() => { })
|
||||
self.getList();
|
||||
})
|
||||
}).catch((err) => {console.error(err)});
|
||||
|
||||
@@ -338,6 +338,7 @@ import ToolSelector from '@/components/tool-selector/index.vue'
|
||||
import uploadVue from '@/components/FileUpload/optimizeToolUpload.vue'
|
||||
import { addCount } from "@/api/tool/downloadCount";
|
||||
import previewUtil from '@/components/PreviewUtil/previewUtil.vue'
|
||||
import store from '@/store'
|
||||
|
||||
// PDF本地文件预览
|
||||
export default {
|
||||
@@ -834,10 +835,6 @@ export default {
|
||||
this.$set(formData,'attachmentList',_this.attachmentList)
|
||||
addTool(formData).then((res) => {
|
||||
if (res.code===200) {
|
||||
/* if(formData.recordStatus == 'done'){
|
||||
console.info("2222222222222222", _this.$store.state.user.unreadMsgNumber+1)
|
||||
store.commit('SET_UNREAD_MSG_NUMBER', _this.$store.state.user.unreadMsgNumber+1);
|
||||
} */
|
||||
_this.$message({
|
||||
message: '流程提交成功',//提示的信息
|
||||
type:'success', //类型是成功
|
||||
@@ -849,6 +846,8 @@ export default {
|
||||
_this.close();
|
||||
}
|
||||
});
|
||||
|
||||
store.dispatch('GetUserMsgCount').then(() => { })
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -621,9 +621,6 @@ export default {
|
||||
formData.editStatus = _this.editStatus
|
||||
addApply(formData).then((res) => {
|
||||
if (res.code===200) {
|
||||
if(formData.recordStatus == 'done'){
|
||||
store.commit('SET_UNREAD_MSG_NUMBER', _this.$store.state.user.unreadMsgNumber+1);
|
||||
}
|
||||
_this.$message({
|
||||
message: '流程提交成功',//提示的信息
|
||||
type:'success', //类型是成功
|
||||
@@ -635,6 +632,8 @@ export default {
|
||||
_this.close();
|
||||
}
|
||||
});
|
||||
|
||||
store.dispatch('GetUserMsgCount').then(() => { })
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user