zouyu
2024-02-29 6c7397a96a7101be110952605793fbb9d19acc2f
零件同步bug修改
已修改1个文件
25 ■■■■■ 文件已修改
src/views/basic/part/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 = [
          {