From df85764203947543c0ced0a0cdf8b7299f6b40ff Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 28 五月 2024 13:28:22 +0800 Subject: [PATCH] 优化 --- src/views/quality/processInspect/index.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/quality/processInspect/index.vue b/src/views/quality/processInspect/index.vue index 2ccb642..a109bf1 100644 --- a/src/views/quality/processInspect/index.vue +++ b/src/views/quality/processInspect/index.vue @@ -2,7 +2,7 @@ <div class="content-main"> <div class="rawPage"> <basic-container> - <ttable + <ttable :table="table" @handleSelectionChange="handleSelectionChange" :prelang="prelang" @@ -90,7 +90,6 @@ }, { minWidth: '130', - width: '150', prop: 'specs', label: '瑙勬牸鍨嬪彿', sort: true, @@ -177,7 +176,7 @@ computed: { ...mapGetters(['permissions']) }, - created() { + created() { if(this.permissions.quality_processInspect_add){ this.table.toolbar.push({ text: '鏂板', @@ -224,10 +223,15 @@ this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") return } + let isAdd = true + if(!row) { + isAdd = false + } this.$router.push({ name: 'processInspectForm', query: { id: row == null ? null : row.id }, - params: { resultVal : row == null ? null : row.result } + params: { resultVal : row == null ? null : row.result }, + isAdd: isAdd }) }, formatResult(row, column, cellValue){ @@ -330,4 +334,4 @@ .rawPage .content-body { flex: 1; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.3