| | |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <template v-if="item.corner"> |
| | | <uni-badge :text="item.cornerCount" style="z-index: 99 !important;" type="error" :max-num="99" size="normal" absolute |
| | | <uni-badge :text="item.cornerCount" style="z-index: 99 !important;" type="error" :max-num="99" size="normal" |
| | | absolute="rightTop" |
| | | :offset="[7, 7]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | |
| | | "text": "模具保养任务", |
| | | "url": "/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport", |
| | | "id": 25, |
| | |
| | | "text": "模具维修任务", |
| | | "url": "/pages/MJGL/Sc_MouldRepairTaskReport/Sc_MouldRepairTaskReport", |
| | | "id": 27, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备待点检任务", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckTaskReport/Sb_EquipDotCheckTaskReport", |
| | | "id": 29, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具待点检任务", |
| | | "url": "/pages/MJGL/Sc_MouldDotCheckTaskReport/Sc_MouldDotCheckTaskReport", |
| | | "id": 30, |
| | | "hidden": false |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备点检任务", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckTaskReport/Sb_EquipDotCheckTaskReport", |
| | | "id": 29, |
| | | "text": "设备故障登记跟踪", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckTaskReport/Sb_EquipRepairCheckTaskReport", |
| | | "id": 31, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具点检任务", |
| | | "url": "/pages/MJGL/Sc_MouldDotCheckTaskReport/Sc_MouldDotCheckTaskReport", |
| | | "id": 30, |
| | | "text": "模具故障登记跟踪", |
| | | "url": "/pages/MJGL/Sc_MouldRepairCheckTaskReport/Sc_MouldRepairCheckTaskReport", |
| | | "id": 32, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "待上模查询", |
| | | "url": "/pages/MJGL/Sc_MouldUpperAwaitQuery/Sc_MouldUpperAwaitQuery", |
| | | "id": 33, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "待开工查询", |
| | | "url": "/pages/Cj_StationInBillAwaitQuery/Cj_StationInBillAwaitQuery", |
| | | "id": 34, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "待下模查询", |
| | | "url": "/pages/MJGL/Sc_MouldLowerBillAwaitQuery/Sc_MouldLowerBillAwaitQuery", |
| | | "id": 35, |
| | | "hidden": false |
| | | } |
| | | ] |
| | |
| | | |
| | | return |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if (MessageIdentifier.data[e.text]) { |
| | | if (MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | |
| | | |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | | async onReady() { |
| | | let MessageIdentifier = await this.getMessageIdentifierCount(this.menuListName) |
| | | if (MessageIdentifier.code == 0) { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | | message: MessageIdentifier.msg |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if (MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | | }) |
| | | |
| | | this.$forceUpdate() |
| | | }, |
| | | methods: { |
| | | judgeHidden() { |
| | |
| | | Array.from(data).forEach((e, index) => { |
| | | if (index < this.itemData.length) { |
| | | if (MessageIdentifier.data[this.itemData[e["HIndex"]].text]) { |
| | | this.itemData[e["HIndex"]]["corner"] = true, |
| | | this.itemData[e["HIndex"]]["cornerCount"] = MessageIdentifier.data[this |
| | | .itemData[e["HIndex"]].text] |
| | | // 使用$set 添加响应式数据 |
| | | this.$set(this.itemData[e["HIndex"]], "corner", true) |
| | | this.$set(this.itemData[e["HIndex"]], "cornerCount", MessageIdentifier.data[this.itemData[e["HIndex"]].text]) |
| | | |
| | | } |
| | | } |
| | | }) |
| | |
| | | moduleName: menuListName |
| | | } |
| | | }) |
| | | console.log('common module: ', res); |
| | | let { |
| | | data, |
| | | count, |