|
|
|
@ -69,15 +69,13 @@ export default {
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
single: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
multiple: true,
|
|
|
|
|
multiple: false,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
showSearch: true,
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
// BOM产品表格数据
|
|
|
|
|
itemList: null,
|
|
|
|
|
// 树选项
|
|
|
|
|
itemTypeOptions: undefined,
|
|
|
|
|
//树名称
|
|
|
|
|
bomCode: undefined,
|
|
|
|
|
defaultProps: {
|
|
|
|
@ -122,13 +120,6 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 筛选节点
|
|
|
|
|
filterNode(value, data) {
|
|
|
|
|
console.log(value, data);
|
|
|
|
|
if (!value) return true;
|
|
|
|
|
return data.label.indexOf(value) !== -1;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
@ -144,11 +135,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleBomSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map(item => item.component);
|
|
|
|
|
this.idsName = selection.map(item => item.componentName);
|
|
|
|
|
this.single = selection.length!==1;
|
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
|
console.log("多选框",this.ids);
|
|
|
|
|
if(selection.length>1){
|
|
|
|
|
this.$modal.msgSuccess("只能选一个");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.ids = selection[0].component;
|
|
|
|
|
this.idsName = selection[0].componentName;
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|