From b3e77e218df41d05bb5d5039e6e4c7cd0fb4c5c5 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 06 三月 2025 14:23:29 +0800 Subject: [PATCH] 业务流程添加按钮权限 --- src/views/business/inspectionTask/index.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/business/inspectionTask/index.vue b/src/views/business/inspectionTask/index.vue index d9ded15..01fc535 100644 --- a/src/views/business/inspectionTask/index.vue +++ b/src/views/business/inspectionTask/index.vue @@ -376,6 +376,9 @@ formatData: (params) => { return this.urgencyLevel.find((m) => m.value == params).label; }, + formatType: (params) => { + return this.urgencyLevel.find((m) => m.value == params).type; + }, }, { label: "妫�楠岀被鍨�", @@ -394,8 +397,7 @@ prop: "insState", dataType: "tag", formatData: (params) => { - return this.inspectionTaskState.find((m) => m.value == params) - .label; + return this.inspectionTaskState.find((m) => m.value == params).label; }, formatType: (params) => { return this.inspectionTaskState.find((m) => m.value == params).type; @@ -426,9 +428,7 @@ this.editInspection(row); }, disabled: (row) => { - return ( - row.userName == null || row.insState == 3 || row.insState == 5 - ); + return (row.userName == null || row.insState == 3 || row.insState == 5) && this.checkPermi(['update:product:onPlan']) }, }, { @@ -566,7 +566,7 @@ // 鏁版嵁鏌ョ湅鐩稿叧瀛楁---缁撴潫 }; }, - created() { + mounted() { this.getAuthorizedPerson(); this.currentTime = getYearAndMonthAndDays(); this.getDicts("urgency_level").then((response) => { @@ -576,8 +576,6 @@ this.inspectionTaskState = this.dictToValue(response.data); }); this.refreshTable(); - }, - mounted() { this.queryParams.userId = this.userId; }, activated() { -- Gitblit v1.9.3