diff --git a/src/api/cpd.js b/src/api/cpd.js
index 3c1aa098..7038c9b0 100644
--- a/src/api/cpd.js
+++ b/src/api/cpd.js
@@ -2,36 +2,11 @@ import axios from '@/utils/request'
import config from '@/common/config'
-let base = config.getMallmBasePath();
+let base = config.getSysBasePath();
//export const getNoticeMsg = params => { return axios.get(`${base}/mallm/cpd/index/toHandleOrdersCount`, { params: params }); };
-export const getNoticeMsg = params => {
- if(process.env.CONTEXT=='mallm'){
- return axios.get(`${base}/mallm/cpd/index/toHandleOrdersCount`, { params: params });
- }else{
- return new Promise((resolve, reject) => {
- var res={
- data:{
- tips:{
- isOk:true,
- msg:'请求成功'
- },
- data:{
- toPayNum:0,
- toSendNum:0,
- toReceNum:0,
- toApprovaNum:0,
- hadApprovaNum:0,
- hadFinishNum:0,
- hadCloseNum:0,
- hadCancelNum:0,
- totalNum:0,
- }
- }
- }
- resolve(res)
- })
- }
+export const getNoticeMsg = params => {
+ return axios.get(`${base}/sys/notifyMsg/list`, { params: params });
};
diff --git a/src/components/NoticeMsgBar/index.vue b/src/components/NoticeMsgBar/index.vue
index 110d46a0..0d3178a6 100644
--- a/src/components/NoticeMsgBar/index.vue
+++ b/src/components/NoticeMsgBar/index.vue
@@ -17,12 +17,10 @@
-->
-
@@ -40,68 +34,23 @@ import {listArchive} from '@/api/mdp/arc/archive'
import archive from "./archive"
import prichatIm from "./prichatIm"
import groupIm from "./groupIm"
+import notifyMsg from "./notifyMsg"
export default {
components:{
- archive,prichatIm,groupIm
+ archive,prichatIm,groupIm,notifyMsg,
},
data() {
return {
- currentType: 1,
- messageData: [
- {
- type: '审批消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
- {
- type: '系统消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
- {
- type: '审批消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
- {
- type: '审批消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
- {
- type: '审批消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
- {
- type: '审批消息',
- time: '2022-04-26 12:00:00',
- text: '李孝基发起申请领用办公电脑,因工作要求,自己没有电脑所以申请使用公司现有的huaWei办公电脑'
- },
-
- ],
-
- arcArchives:[],
+ currentType: 4,
}
},
- methods:{
- searcArchives(){
- var params={archiveType:'3'}
- listArchive({}).then(res=>{
- this.arcArchives=res.data.data;
- })
- },
- goToArchive(item){
- var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net
- window.open(curlDomain+"/api/"+process.env.VERSION+"/arc/arc/archive/showArchive?id="+item.id)
- }
+ methods:{
},
- mounted() {
- this.searcArchives();
+ mounted() {
}
}
diff --git a/src/views/myWork/message/notifyMsg.vue b/src/views/myWork/message/notifyMsg.vue
new file mode 100644
index 00000000..4c9709f8
--- /dev/null
+++ b/src/views/myWork/message/notifyMsg.vue
@@ -0,0 +1,113 @@
+
+
+
+
+
{{item.sendUsername}}
+
{{item.opTime}}
+
{{item.msg}}
+
+
+
+
+
+
暂无消息
+
+
+
+
+
+
\ No newline at end of file