提交 3ef47200 编写于 作者: JunZai's avatar JunZai

update

上级 c8a6d0dc
......@@ -110,9 +110,10 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
*/
get showTree() {
if(!Object.is(this.viewData.srforgid, this.viewParam.srforgid)) {
return true;
if(this.viewParam.hasfilter && Object.is(this.viewData.srforgid, this.viewParam.filtervalue)) {
return false;
}
return true;
}
/**
......@@ -144,7 +145,7 @@ export default class IBizGroupPicker extends Vue {
if(this.showTree) {
this.loadTree();
} else {
this.loadGroupData(this.viewParam.srforgid);
this.loadGroupData(this.viewParam.filtervalue);
}
}
......@@ -155,7 +156,8 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
*/
public loadTree() {
let get = Http.getInstance().get(`/ibzorganizations/450000/suborg/ibzdepartments/picker`, true);
let orgid = this.viewParam.hasfilter ? this.viewParam.filtervalue : '450000';
let get = Http.getInstance().get(`/ibzorganizations/${orgid}/suborg/ibzdepartments/picker`, true);
get.then((response: any) => {
if(response.status === 200) {
this.treeItems = response.data;
......
......@@ -62,7 +62,7 @@ export default class IBizGroupSelect extends Vue {
* @type {*}
* @memberof IBizGroupSelect
*/
@Prop({default: 'orgid'}) filter?: string;
@Prop() filter?: string;
/**
* 是否启用
......@@ -157,9 +157,9 @@ export default class IBizGroupSelect extends Vue {
})
const context: any = JSON.parse(JSON.stringify(this.context));
const param: any = {};
let orgid: any = this.filter;
Object.assign(param, {
orgid: this.data[orgid],
hasfilter: this.filter ? true : false,
filtervalue: this.filter ? this.data[this.filter] : '',
multiple: this.multiple,
selects: sels
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册