From 6c7397a96a7101be110952605793fbb9d19acc2f Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 29 二月 2024 17:15:32 +0800
Subject: [PATCH] 零件同步bug修改
---
src/views/basic/part/index.vue | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue
index b462e35..6a78b64 100644
--- a/src/views/basic/part/index.vue
+++ b/src/views/basic/part/index.vue
@@ -15,8 +15,8 @@
<template #toolbar>
<!-- <el-button type="primary" @click="addOrUpdateHandle"
v-if="permissions.basic_part_add">鏂板</el-button> -->
- <el-button type="primary" @click="() => (this.syncDateVisible = true)"
- v-if="permissions.basic_part_mdm">鍚屾MDM</el-button>
+ <!-- <el-button text="鍚屾MDM" type="primary" @click=""
+ v-if="permissions.basic_part_mdm">鍚屾MDM</el-button> -->
</template>
</ttable>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
@@ -235,7 +235,7 @@
optList: () => {
return this.getThreeLevelClassification()
}
- },
+ },
// 瑙勬牸
{
minWidth: '140',
@@ -398,14 +398,7 @@
searchInfoType: 'text'
} */
],
- toolbar: [
- // {
- // text: '澶ф爣绛�',
- // type: 'primary',
- // fun: this.printLabel,
- // loading: false
- // }
- ],
+ toolbar: [],
operator: null,
operatorConfig: {
fixed: 'right',
@@ -436,6 +429,16 @@
PrintLabelForm
},
created() {
+ if(this.permissions.basic_part_mdm){
+ this.table.toolbar.push(
+ {
+ text: '鍚屾MDM',
+ type: 'primary',
+ fun: () => this.syncDateVisible = true,
+ loading: false
+ }
+ )
+ }
if(this.permissions.basic_part_del){
this.table.operator = [
{
--
Gitblit v1.9.3