diff --git a/src/components/prompt/api.js b/src/components/prompt/api.js index dbf6d200..30e22f05 100644 --- a/src/components/prompt/api.js +++ b/src/components/prompt/api.js @@ -2,7 +2,7 @@ import axios from '@/utils/request' // 查询分页数据: export const iengineerlogList = (arg) => { return axios.request({ - url: '/iproductionplan/querywarn', + url: '/iwarn/list', method: 'get', params: arg, dataType: 'json', diff --git a/src/components/prompt/index.vue b/src/components/prompt/index.vue index 70d13730..b20603d7 100644 --- a/src/components/prompt/index.vue +++ b/src/components/prompt/index.vue @@ -15,57 +15,58 @@ const state = reactive({ arr: [], }); onMounted(() => { - proxy.$getsystemdict('purpose_expenses').then((res) => { - if (res.length > 0) { - iengineerlogList({ day: res[0].value }).then((res) => { - if (res.code == 200) { - res.data.slice(0, 3).map((item) => { - setTimeout(() => { - notify.value[item.id] = ElNotification({ - title: "进度预警提示", - zIndex: 999999999999, - duration: 10000, - position: "bottom-right", - message: h("div", [ - h( - "p", - {}, - "有" + - item.planName + - "的计划已滞后"+"需要您查看。" - ), + iengineerlogList().then((res) => { + if (res.code == 200) { + res.data.list.map((item) => { + setTimeout(() => { + notify.value[item.id] = ElNotification({ + title: "进度预警提示", + zIndex: 999999999999, + duration: 10000, + position: "bottom-right", + message: h("div", [ + h( + "p", + {}, + "有" + + item.planName + + "的计划已滞后" + "需要您查看。" + ), + h( + "p", + { + style: "display: flex;justify-content: space-between;", + }, + [ h( - "p", + "div", { - style: "display: flex;justify-content: space-between;", + style: + "color: #409EFF;cursor: pointer;text-align: right;margin-top: 10px;", + onClick: function () { + router.push({ + path: "/constructionScheduling/progressAlert" + }) + }, }, - [ - h( - "div", - { - style: - "color: #409EFF;cursor: pointer;text-align: right;margin-top: 10px;", - onClick: function () { - router.push({ - path:"/constructionScheduling/progressAlert" - }) - }, - }, - // "已了解,不再提醒" - "去查看" - ), - ] + // "已了解,不再提醒" + "去查看" ), - ]), - type: "warning", - }); - }, 10); - }) - - } + ] + ), + ]), + type: "warning", + }); + }, 10); }) + } }) + // proxy.$getsystemdict('purpose_expenses').then((res) => { + // if (res.length > 0) { + + // } + // }) }); diff --git a/src/views/constructionScheduling/progress-alert/api.js b/src/views/constructionScheduling/progress-alert/api.js index eb52b01f..86b0c427 100644 --- a/src/views/constructionScheduling/progress-alert/api.js +++ b/src/views/constructionScheduling/progress-alert/api.js @@ -8,15 +8,7 @@ export const iwarnlist = (arg) => { dataType: 'json', }) } -export const iengineerlogList = (arg) => { - return axios.request({ - url: '/iproductionplan/querywarn', - method: 'get', - params: arg, - dataType: 'json', - - }) -} + // 查询详情数据: export const iengineerlogGetById = (arg) => { return axios.request({ diff --git a/src/views/constructionScheduling/progress-alert/index.vue b/src/views/constructionScheduling/progress-alert/index.vue index 68658a58..8536f4bf 100644 --- a/src/views/constructionScheduling/progress-alert/index.vue +++ b/src/views/constructionScheduling/progress-alert/index.vue @@ -1,6 +1,6 @@ diff --git a/src/views/large-screen/api.js b/src/views/large-screen/api.js index 19895da6..0ed97656 100644 --- a/src/views/large-screen/api.js +++ b/src/views/large-screen/api.js @@ -24,15 +24,7 @@ export const iengineerlogList = (arg) => { dataType: 'json' }) } -// 进度预警 -export const querywarn = (arg) => { - return axios.request({ - url: '/iproductionplan/querywarn', - method: 'get', - params: arg, - dataType: 'json' - }) -} + // 工种统计 export const iuserworkerType = (arg) => { return axios.request({ diff --git a/src/views/large-screen/index.vue b/src/views/large-screen/index.vue index 349c112f..186add08 100644 --- a/src/views/large-screen/index.vue +++ b/src/views/large-screen/index.vue @@ -165,16 +165,19 @@