提交 8c19b4a8 编写于 作者: ibizdev's avatar ibizdev

lab_qyk 发布系统代码

上级 41286403
...@@ -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
}); });
......
...@@ -85,10 +85,18 @@ ...@@ -85,10 +85,18 @@
</i-col> </i-col>
<i-col v-show="detailsModel.leadername.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.leadername.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='leadername' :itemRules="this.rules.leadername" class='' :caption="$t('entities.ibzdepartment.main_form.details.leadername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.leadername.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='leadername' :itemRules="this.rules.leadername" class='' :caption="$t('entities.ibzdepartment.main_form.details.leadername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.leadername.error" :isEmptyCaption="false" labelPos="LEFT">
!!!!模版产生代码错误:---- <ibiz-group-select
FTL stack trace ("~" means nesting-related): name="leadername"
- Failed at: ${editor.getEditorParam("FILTER")} [in template "TEMPLCODE_zh_CN" at line 137, column 56] :value='data.leadername'
---- valueitem="leaderid"
:multiple="true"
:disabled="detailsModel.leadername.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</ibiz-group-select>
</app-form-item> </app-form-item>
</i-col> </i-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册