From 03be129c50068164b8cc4186d4d4e5b860503476 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期三, 03 一月 2024 14:35:58 +0800 Subject: [PATCH] 包装检验-默认检验项目 --- src/views/quality/processconfiguration/index.vue | 48 ++++++++++++++++++++++-------------------------- 1 files changed, 22 insertions(+), 26 deletions(-) diff --git a/src/views/quality/processconfiguration/index.vue b/src/views/quality/processconfiguration/index.vue index 41372ea..b364506 100644 --- a/src/views/quality/processconfiguration/index.vue +++ b/src/views/quality/processconfiguration/index.vue @@ -266,32 +266,13 @@ ], toolbar: [ - { - text: '瀵煎嚭', - type: 'primary', - fun: this.handleExport - }, - ], - operator: [ // { - // text: '鍒犻櫎', - // type: 'text', - // size: 'small', - // fun: this.deleteHandle + // text: '瀵煎嚭', + // type: 'primary', + // fun: this.handleExport // }, - { - text: '鎻愪氦瀹℃牳', - type: 'text', - size: 'small', - fun: this.Submitreview - }, - { - text: '瀹℃牳缁撴灉', - type: 'text', - size: 'small', - fun: this.AuditResult - } ], + operator: null, operatorConfig: { fixed: 'right', label: '鎿嶄綔', @@ -314,6 +295,24 @@ }, created() { // this.getType() + let arr = [] + if(this.permissions.quality_processconfiguration_submit){ + arr.push({ + text: '鎻愪氦瀹℃牳', + type: 'text', + size: 'small', + fun: this.Submitreview + }) + } + if(this.permissions.quality_processconfiguration_result){ + arr.push({ + text: '瀹℃牳缁撴灉', + type: 'text', + size: 'small', + fun: this.AuditResult + }) + } + this.table.operator = arr.length>0 ? arr : null }, methods: { getQueryParam(data){ @@ -321,7 +320,6 @@ }, handleExport(){ exportData(this.queryParam).then(res=>{ - console.log(res) this.downloadFun(res) }).catch(error=>{ console.log(error); @@ -367,9 +365,7 @@ }, //鎻愪氦瀹℃牳 Submitreview(row){ - console.log(row.id); pullInsUnapi({id:row.id}).then(res =>{ - console.log(res); this.$refs.processconfiguration.refreshData() }) }, -- Gitblit v1.9.3