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

update

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