From 7e807f771796a68e799826ae4a5598ddb2eec0d8 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 11 三月 2024 15:55:11 +0800 Subject: [PATCH] 质检:附件上传 --- src/views/quality/packageinspect/index.vue | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/views/quality/packageinspect/index.vue b/src/views/quality/packageinspect/index.vue index 1e7783d..e6093cd 100644 --- a/src/views/quality/packageinspect/index.vue +++ b/src/views/quality/packageinspect/index.vue @@ -17,7 +17,7 @@ <template> <div class="mod-config"> <basic-container> - <ttable + <ttable :table="table" :resultData="resultData" @handleSelectionChange="handleSelectionChange" @@ -121,7 +121,7 @@ isTrue: true, sort: true, isSearch: true, - searchInfoType: 'text', + searchInfoType: 'date', formatter: this.formatDateTime, }, { @@ -141,20 +141,8 @@ searchInfoType: 'text' }, ], - toolbar: [ - // { - // text: '鏂板', - // type: 'primary', - // fun: this.addOrUpdateHandle - // }, - ], - operator: [ - { - text: '浣滃簾', - type: 'text', - size: 'small', - fun: this.deleteHandle - }], + toolbar: [], + operator: null, operatorConfig: { fixed: 'right', label: '鎿嶄綔', @@ -167,7 +155,16 @@ components: { ttable, }, - created() { }, + created() { + if(this.permissions.quality_packageinspect_del){ + this.table.operator = [{ + text: '浣滃簾', + type: 'text', + size: 'small', + fun: this.deleteHandle + }] + } + }, computed: { ...mapGetters(['permissions']) }, @@ -199,12 +196,16 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.quality_packageinspect_edit && row.id!=null){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$router.push({ name: 'packageInspectForm', - query: { + query: { id: row == null ? null : row.id }, - params:{resultVal : row == null ? null : row.result} + params:{resultVal : row.result=='' ? null : row.result} }) }, formatResult(row, column, cellValue){ @@ -228,4 +229,3 @@ } } </script> - \ No newline at end of file -- Gitblit v1.9.3