zss
2024-03-01 d3a486a2f3ae5e76b7bbf9e3d6a8c1e36ed73de7
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',
@@ -436,6 +436,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 = [
          {