zouyu
2023-12-21 a48ded866d223f581944ea9043df1b296b3425e3
src/views/technology/structure/index.vue
@@ -231,14 +231,7 @@
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ],
        operator: null,
        operatorConfig: {
          fixed: 'right',
          label: '操作',
@@ -298,6 +291,16 @@
    this.getData()
  },
  created() {
    if(this.permissions.technology_structure_del){
      this.table.operator = [
          {
            text: '删除',
            type: 'text',
            size: 'small',
            fun: this.deleteHandle
          }
        ]
    }
    this.uploadInfo.isShow = this.permissions.technology_structure_upload
    this.table.column.find((e) => e.label === '已同步至ERP').isTrue = false
    this.getBomTypeDbOptions()
@@ -329,10 +332,6 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_structure_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除ID为' + row.id, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',