| | |
| | | <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> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | |
| | | optList: () => { |
| | | return this.getThreeLevelClassification() |
| | | } |
| | | }, |
| | | }, |
| | | // 规格 |
| | | { |
| | | minWidth: '140', |
| | |
| | | searchInfoType: 'text' |
| | | } */ |
| | | ], |
| | | toolbar: [ |
| | | // { |
| | | // text: '大标签', |
| | | // type: 'primary', |
| | | // fun: this.printLabel, |
| | | // loading: false |
| | | // } |
| | | ], |
| | | toolbar: [], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | |
| | | 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 = [ |
| | | { |