提交 78ca53a5 编写于 作者: ibizdev's avatar ibizdev

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 830118e0
......@@ -55,12 +55,12 @@ export default {
},
main4_form: {
details: {
grouppanel7: "分组面板",
grouppanel3: "选择控件",
grouppanel2: "时间控件",
grouppanel1: "数据选择",
grouppanel4: "自动填充",
grouppanel5: "其他",
grouppanel6: "部门人员选择器",
group1: "编辑器",
formpage1: "基本信息",
srfupdatedate: "更新时间",
......@@ -72,9 +72,15 @@ export default {
srfdeid: "",
srfsourcekey: "",
f1: "文本框",
field2: "数值框",
f2: "密码框",
formitem1: "步进器",
formitem2: "开关控件",
formitem3: "滑动输入条",
formitem4: "评分器",
f3: "多行输入框",
f4: "多行输入框(10行)",
f34: "HTML编辑框",
f5: "IP地址输入框",
f6: "直接内容",
f7: "标签",
......@@ -105,18 +111,9 @@ export default {
f31: "自动填充(只能选择)",
f32: "自动填充(无按钮)",
f33: "自动填充(只能选择、无按钮)",
f34: "HTML编辑框",
f35: "代码编辑器",
f36: "图片控件",
f37: "文件上传控件",
f38: "部门人员选择(单选)",
f39: "部门人员选择(多选)",
f40: "单位人员选择(单选)",
f41: "单位人员选择(多选)",
f43: "指定单位及所有下级单位人员(单选)",
f44: "指定单位及所有下级单位人员(多选)",
f45: "指定部门及所有下级部门人员(单选)",
f46: "指定部门及所有下级部门人员(多选)",
ibizsample0001id: "IBIZSAMPLE0001标识",
},
uiactions: {
......
......@@ -54,12 +54,12 @@ export default {
},
main4_form: {
details: {
grouppanel7: "分组面板",
grouppanel3: "选择控件",
grouppanel2: "时间控件",
grouppanel1: "数据选择",
grouppanel4: "自动填充",
grouppanel5: "其他",
grouppanel6: "部门人员选择器",
group1: "编辑器",
formpage1: "基本信息",
srfupdatedate: "更新时间",
......@@ -71,9 +71,15 @@ export default {
srfdeid: "",
srfsourcekey: "",
f1: "文本框",
field2: "数值框",
f2: "密码框",
formitem1: "步进器",
formitem2: "开关控件",
formitem3: "滑动输入条",
formitem4: "评分器",
f3: "多行输入框",
f4: "多行输入框(10行)",
f34: "HTML编辑框",
f5: "IP地址输入框",
f6: "直接内容",
f7: "标签",
......@@ -104,18 +110,9 @@ export default {
f31: "自动填充(只能选择)",
f32: "自动填充(无按钮)",
f33: "自动填充(只能选择、无按钮)",
f34: "HTML编辑框",
f35: "代码编辑器",
f36: "图片控件",
f37: "文件上传控件",
f38: "部门人员选择(单选)",
f39: "部门人员选择(多选)",
f40: "单位人员选择(单选)",
f41: "单位人员选择(多选)",
f43: "指定单位及所有下级单位人员(单选)",
f44: "指定单位及所有下级单位人员(多选)",
f45: "指定部门及所有下级部门人员(单选)",
f46: "指定部门及所有下级部门人员(多选)",
ibizsample0001id: "IBIZSAMPLE0001标识",
},
uiactions: {
......
......@@ -1854,6 +1854,17 @@ export default class Main4Base extends Vue implements ControlInterface {
}
const values = data.map((item:any) => Number(item[column.property]));
if (!values.every((value:any) => isNaN(value))) {
if(Object.is(column.property,'booknumber')){
let tempData = values.reduce((prev:any, curr:any) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
} else {
return prev;
}
}, 0);
sums[index] = tempData.toFixed(3);
}
} else {
sums[index] = '';
}
......
......@@ -1868,6 +1868,12 @@ export default class Main5Base extends Vue implements ControlInterface {
return;
}else{
sums[index] = '';
if(Object.is(column.property,'booknumber')){
const value = Number(this.remoteData.booknumber);
if (!isNaN(value)) {
sums[index] = value;
}
}
}
});
return sums;
......
......@@ -5,7 +5,10 @@
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group1.manageContainerStatus" :isManageContainer="detailsModel.group1.isManageContainer" @managecontainerclick="manageContainerClick('group1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main4_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.f1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.grouppanel7.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel7.manageContainerStatus" :isManageContainer="detailsModel.grouppanel7.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel7')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel7.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main4_form.details.grouppanel7')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.f1.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='f1' :itemRules="this.rules().f1" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f1.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.f1"
......@@ -19,6 +22,22 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.field2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='field2' :itemRules="this.rules().field2" class='' :caption="$t('entities.ibizsample0001.main4_form.details.field2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.field2.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.field2"
@enter="onEnter($event)"
:disabled="detailsModel.field2.disabled"
type='number'
:precision="2"
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f2' :itemRules="this.rules().f2" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f2.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -26,6 +45,40 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem1' :itemRules="this.rules().formitem1" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem1.error" :isEmptyCaption="false" labelPos="LEFT">
<app-stepper name='formitem1' :value="this.data.formitem1" @change="onFormItemValueChange" :disabled="detailsModel.formitem1.disabled" style=""></app-stepper>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT">
<app-switch name='formitem2' :value="this.data.formitem2" @change="($event)=>{this.data.formitem2 = $event} " :disabled="detailsModel.formitem2.disabled" style=""></app-switch>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem3' :itemRules="this.rules().formitem3" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem3')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem3.error" :isEmptyCaption="false" labelPos="LEFT">
<app-slider name='formitem3' :value="this.data.formitem3" @change="onFormItemValueChange" :disabled="detailsModel.formitem3.disabled" style=""></app-slider>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem4.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='formitem4' :itemRules="this.rules().formitem4" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem4')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem4.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rate
name='formitem4'
:value="this.data.formitem4"
@change="($event)=>{this.data.formitem4 = $event} "
:disabled="detailsModel.formitem4.disabled"
style="">
</app-rate>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f3' :itemRules="this.rules().f3" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f3')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f3.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -40,6 +93,13 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f34.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f34' :itemRules="this.rules().f34" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f34')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f34.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rich-text-editor :formState="formState" :value="data.f34" @change="(val) =>{this.data.f34 =val}" :disabled="detailsModel.f34.disabled" :data="JSON.stringify(this.data)" name="f34" :uploadparams='{}' :exportparams='{}' style=""></app-rich-text-editor>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f5.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f5' :itemRules="this.rules().f5" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f5')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f5.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -69,6 +129,11 @@
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel3.manageContainerStatus" :isManageContainer="detailsModel.grouppanel3.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel3')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel3.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main4_form.details.grouppanel3')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
......@@ -442,14 +507,7 @@
<i-col v-show="detailsModel.grouppanel5.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel5.manageContainerStatus" :isManageContainer="detailsModel.grouppanel5.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel5')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel5.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main4_form.details.grouppanel5')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.f34.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f34' :itemRules="this.rules().f34" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f34')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f34.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rich-text-editor :formState="formState" :value="data.f34" @change="(val) =>{this.data.f34 =val}" :disabled="detailsModel.f34.disabled" :data="JSON.stringify(this.data)" name="f34" :uploadparams='{}' :exportparams='{}' style=""></app-rich-text-editor>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f35.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.f35.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f35' :itemRules="this.rules().f35" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f35')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f35.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.f35"
......@@ -482,190 +540,6 @@
</row>
</app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel6.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel6.manageContainerStatus" :isManageContainer="detailsModel.grouppanel6.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel6')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel6.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizsample0001.main4_form.details.grouppanel6')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.f38.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f38' :itemRules="this.rules().f38" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f38')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f38.error" :isEmptyCaption="false" labelPos="LEFT">
<app-department-personnel
name="f38"
:value='data.f38'
valueitem=""
url="/ibzdepartments/{deptId}/emp"
:multiple="false"
filter="srfsdept"
:fillmap="{'id':'','label':'f38'}"
:disabled="detailsModel.f38.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-department-personnel>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f39.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f39' :itemRules="this.rules().f39" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f39')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f39.error" :isEmptyCaption="false" labelPos="LEFT">
<app-department-personnel
name="f39"
:value='data.f39'
valueitem=""
url="/ibzdepartments/{deptId}/emp"
:multiple="true"
filter="srfsdept"
:fillmap="{'id':'','label':'f39'}"
:disabled="detailsModel.f39.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-department-personnel>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f40.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f40' :itemRules="this.rules().f40" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f40')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f40.error" :isEmptyCaption="false" labelPos="LEFT">
<app-group-select
name="f40"
:value='data.f40'
valueitem=""
url="/ibzorganizations/${selected-orgid}/ibzemployees/picker"
:multiple="false"
filter="srforgid"
:fillmap="{'id':'','label':'f40'}"
:disabled="detailsModel.f40.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-group-select>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f41.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f41' :itemRules="this.rules().f41" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f41')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f41.error" :isEmptyCaption="false" labelPos="LEFT">
<app-group-select
name="f41"
:value='data.f41'
valueitem=""
url="/ibzorganizations/${selected-orgid}/ibzemployees/picker"
:multiple="true"
filter="srforgid"
:fillmap="{'id':'','label':'f41'}"
:disabled="detailsModel.f41.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-group-select>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f43.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f43' :itemRules="this.rules().f43" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f43')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f43.error" :isEmptyCaption="false" labelPos="LEFT">
<app-group-select
name="f43"
:value='data.f43'
valueitem=""
url="/ibzorganizations/${selected-orgid}/ibzemployees/picker"
treeurl="/ibzorganizations/${orgid}/suborg/picker"
:multiple="false"
filter="srforgid"
:fillmap="{'id':'','label':'f43'}"
:disabled="detailsModel.f43.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-group-select>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f44.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f44' :itemRules="this.rules().f44" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f44')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f44.error" :isEmptyCaption="false" labelPos="LEFT">
<app-group-select
name="f44"
:value='data.f44'
valueitem=""
url="/ibzorganizations/${selected-orgid}/ibzemployees/picker"
treeurl="/ibzorganizations/${orgid}/suborg/picker"
:multiple="true"
filter="srforgid"
:fillmap="{'id':'','label':'f44'}"
:disabled="detailsModel.f44.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-group-select>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f45.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f45' :itemRules="this.rules().f45" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f45')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f45.error" :isEmptyCaption="false" labelPos="LEFT">
<app-department-personnel
name="f45"
:value='data.f45'
valueitem=""
url="/ibzdepartments/{deptId}/subemp"
:multiple="false"
filter="srfsdept"
:fillmap="{'id':'','label':'f45'}"
:disabled="detailsModel.f45.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-department-personnel>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.f46.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='f46' :itemRules="this.rules().f46" class='' :caption="$t('entities.ibizsample0001.main4_form.details.f46')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.f46.error" :isEmptyCaption="false" labelPos="LEFT">
<app-department-personnel
name="f46"
:value='data.f46'
valueitem=""
url="/ibzdepartments/{deptId}/subemp"
:multiple="true"
filter="srfsdept"
:fillmap="{'id':'','label':'f46'}"
:disabled="detailsModel.f46.disabled"
:data="data"
:context="context"
@formitemvaluechange="onFormItemValueChange">
</app-department-personnel>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
......@@ -1068,9 +942,15 @@ export default class Main4Base extends Vue implements ControlInterface {
srfdeid: null,
srfsourcekey: null,
f1: null,
field2: null,
f2: null,
formitem1: null,
formitem2: null,
formitem3: null,
formitem4: null,
f3: null,
f4: null,
f34: null,
f5: null,
f6: null,
f7: null,
......@@ -1101,18 +981,9 @@ export default class Main4Base extends Vue implements ControlInterface {
f31: null,
f32: null,
f33: null,
f34: null,
f35: null,
f36: null,
f37: null,
f38: null,
f39: null,
f40: null,
f41: null,
f43: null,
f44: null,
f45: null,
f46: null,
ibizsample0001id: null,
ibizsample0001:null,
};
......@@ -1169,10 +1040,30 @@ export default class Main4Base extends Vue implements ControlInterface {
{ required: this.detailsModel.f1.required, type: 'string', message: '文本框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f1.required, type: 'string', message: '文本框 值不能为空', trigger: 'blur' },
],
field2: [
{ required: this.detailsModel.field2.required, type: 'number', message: '数值框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.field2.required, type: 'number', message: '数值框 值不能为空', trigger: 'blur' },
],
f2: [
{ required: this.detailsModel.f2.required, type: 'string', message: '密码框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f2.required, type: 'string', message: '密码框 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '步进器 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '步进器 值不能为空', trigger: 'blur' },
],
formitem2: [
{ required: this.detailsModel.formitem2.required, type: 'string', message: '开关控件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '开关控件 值不能为空', trigger: 'blur' },
],
formitem3: [
{ required: this.detailsModel.formitem3.required, type: 'string', message: '滑动输入条 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem3.required, type: 'string', message: '滑动输入条 值不能为空', trigger: 'blur' },
],
formitem4: [
{ required: this.detailsModel.formitem4.required, type: 'string', message: '评分器 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem4.required, type: 'string', message: '评分器 值不能为空', trigger: 'blur' },
],
f3: [
{ required: this.detailsModel.f3.required, type: 'string', message: '多行输入框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f3.required, type: 'string', message: '多行输入框 值不能为空', trigger: 'blur' },
......@@ -1181,6 +1072,10 @@ export default class Main4Base extends Vue implements ControlInterface {
{ required: this.detailsModel.f4.required, type: 'string', message: '多行输入框(10行) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f4.required, type: 'string', message: '多行输入框(10行) 值不能为空', trigger: 'blur' },
],
f34: [
{ required: this.detailsModel.f34.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f34.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'blur' },
],
f5: [
{ required: this.detailsModel.f5.required, type: 'string', message: 'IP地址输入框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f5.required, type: 'string', message: 'IP地址输入框 值不能为空', trigger: 'blur' },
......@@ -1285,10 +1180,6 @@ export default class Main4Base extends Vue implements ControlInterface {
{ required: this.detailsModel.f30.required, type: 'string', message: '自动填充 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f30.required, type: 'string', message: '自动填充 值不能为空', trigger: 'blur' },
],
f34: [
{ required: this.detailsModel.f34.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f34.required, type: 'string', message: 'HTML编辑框 值不能为空', trigger: 'blur' },
],
f35: [
{ required: this.detailsModel.f35.required, type: 'string', message: '代码编辑器 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f35.required, type: 'string', message: '代码编辑器 值不能为空', trigger: 'blur' },
......@@ -1301,38 +1192,6 @@ export default class Main4Base extends Vue implements ControlInterface {
{ required: this.detailsModel.f37.required, type: 'string', message: '文件上传控件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f37.required, type: 'string', message: '文件上传控件 值不能为空', trigger: 'blur' },
],
f38: [
{ required: this.detailsModel.f38.required, type: 'string', message: '部门人员选择(单选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f38.required, type: 'string', message: '部门人员选择(单选) 值不能为空', trigger: 'blur' },
],
f39: [
{ required: this.detailsModel.f39.required, type: 'string', message: '部门人员选择(多选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f39.required, type: 'string', message: '部门人员选择(多选) 值不能为空', trigger: 'blur' },
],
f40: [
{ required: this.detailsModel.f40.required, type: 'string', message: '单位人员选择(单选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f40.required, type: 'string', message: '单位人员选择(单选) 值不能为空', trigger: 'blur' },
],
f41: [
{ required: this.detailsModel.f41.required, type: 'string', message: '单位人员选择(多选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f41.required, type: 'string', message: '单位人员选择(多选) 值不能为空', trigger: 'blur' },
],
f43: [
{ required: this.detailsModel.f43.required, type: 'string', message: '指定单位及所有下级单位人员(单选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f43.required, type: 'string', message: '指定单位及所有下级单位人员(单选) 值不能为空', trigger: 'blur' },
],
f44: [
{ required: this.detailsModel.f44.required, type: 'string', message: '指定单位及所有下级单位人员(多选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f44.required, type: 'string', message: '指定单位及所有下级单位人员(多选) 值不能为空', trigger: 'blur' },
],
f45: [
{ required: this.detailsModel.f45.required, type: 'string', message: '指定部门及所有下级部门人员(单选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f45.required, type: 'string', message: '指定部门及所有下级部门人员(单选) 值不能为空', trigger: 'blur' },
],
f46: [
{ required: this.detailsModel.f46.required, type: 'string', message: '指定部门及所有下级部门人员(多选) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f46.required, type: 'string', message: '指定部门及所有下级部门人员(多选) 值不能为空', trigger: 'blur' },
],
}
}
......@@ -1438,6 +1297,8 @@ export default class Main4Base extends Vue implements ControlInterface {
* @memberof Main4Base
*/
public detailsModel: any = {
grouppanel7: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel7', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel3: new FormGroupPanelModel({ caption: '选择控件', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel2: new FormGroupPanelModel({ caption: '时间控件', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
......@@ -1447,8 +1308,6 @@ export default class Main4Base extends Vue implements ControlInterface {
grouppanel4: new FormGroupPanelModel({ caption: '自动填充', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel5: new FormGroupPanelModel({ caption: '其他', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel6: new FormGroupPanelModel({ caption: '部门人员选择器', detailType: 'GROUPPANEL', name: 'grouppanel6', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
group1: new FormGroupPanelModel({ caption: '编辑器', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizsample0001.main4_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
......@@ -1471,12 +1330,24 @@ export default class Main4Base extends Vue implements ControlInterface {
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f1: new FormItemModel({ caption: '文本框', detailType: 'FORMITEM', name: 'f1', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
field2: new FormItemModel({ caption: '数值框', detailType: 'FORMITEM', name: 'field2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f2: new FormItemModel({ caption: '密码框', detailType: 'FORMITEM', name: 'f2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '步进器', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '开关控件', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '滑动输入条', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: '评分器', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f3: new FormItemModel({ caption: '多行输入框', detailType: 'FORMITEM', name: 'f3', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f4: new FormItemModel({ caption: '多行输入框(10行)', detailType: 'FORMITEM', name: 'f4', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f34: new FormItemModel({ caption: 'HTML编辑框', detailType: 'FORMITEM', name: 'f34', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f5: new FormItemModel({ caption: 'IP地址输入框', detailType: 'FORMITEM', name: 'f5', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -1537,30 +1408,12 @@ export default class Main4Base extends Vue implements ControlInterface {
f32: new FormItemModel({ caption: '自动填充(无按钮)', detailType: 'FORMITEM', name: 'f32', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f33: new FormItemModel({ caption: '自动填充(只能选择、无按钮)', detailType: 'FORMITEM', name: 'f33', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f34: new FormItemModel({ caption: 'HTML编辑框', detailType: 'FORMITEM', name: 'f34', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f35: new FormItemModel({ caption: '代码编辑器', detailType: 'FORMITEM', name: 'f35', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f36: new FormItemModel({ caption: '图片控件', detailType: 'FORMITEM', name: 'f36', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f37: new FormItemModel({ caption: '文件上传控件', detailType: 'FORMITEM', name: 'f37', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f38: new FormItemModel({ caption: '部门人员选择(单选)', detailType: 'FORMITEM', name: 'f38', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f39: new FormItemModel({ caption: '部门人员选择(多选)', detailType: 'FORMITEM', name: 'f39', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f40: new FormItemModel({ caption: '单位人员选择(单选)', detailType: 'FORMITEM', name: 'f40', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f41: new FormItemModel({ caption: '单位人员选择(多选)', detailType: 'FORMITEM', name: 'f41', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f43: new FormItemModel({ caption: '指定单位及所有下级单位人员(单选)', detailType: 'FORMITEM', name: 'f43', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f44: new FormItemModel({ caption: '指定单位及所有下级单位人员(多选)', detailType: 'FORMITEM', name: 'f44', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f45: new FormItemModel({ caption: '指定部门及所有下级部门人员(单选)', detailType: 'FORMITEM', name: 'f45', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f46: new FormItemModel({ caption: '指定部门及所有下级部门人员(多选)', detailType: 'FORMITEM', name: 'f46', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0001id: new FormItemModel({ caption: 'IBIZSAMPLE0001标识', detailType: 'FORMITEM', name: 'ibizsample0001id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -1674,6 +1527,18 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 field2 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.field2')
onField2Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'field2', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f2 值
*
......@@ -1686,6 +1551,54 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f2', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem1 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem1')
onFormitem1Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem2 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem2')
onFormitem2Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem2', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem3 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem3')
onFormitem3Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem3', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem4 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem4')
onFormitem4Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem4', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f3 值
*
......@@ -1710,6 +1623,18 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f4', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f34 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f34')
onF34Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f34', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f5 值
*
......@@ -2070,18 +1995,6 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f33', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f34 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f34')
onF34Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f34', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f35 值
*
......@@ -2118,102 +2031,6 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f37', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f38 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f38')
onF38Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f38', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f39 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f39')
onF39Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f39', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f40 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f40')
onF40Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f40', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f41 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f41')
onF41Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f41', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f43 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f43')
onF43Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f43', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f44 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f44')
onF44Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f44', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f45 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f45')
onF45Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f45', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 f46 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.f46')
onF46Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'f46', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizsample0001id 值
*
......@@ -2336,9 +2153,6 @@ export default class Main4Base extends Vue implements ControlInterface {
......
......@@ -59,10 +59,31 @@ export default class Main4Model {
name: 'f1',
dataType:'FORMITEM',
},
{
name: 'field2',
prop: 'field2',
dataType: 'BIGDECIMAL',
},
{
name: 'f2',
dataType:'FORMITEM',
},
{
name: 'formitem1',
dataType:'FORMITEM',
},
{
name: 'formitem2',
dataType:'FORMITEM',
},
{
name: 'formitem3',
dataType:'FORMITEM',
},
{
name: 'formitem4',
dataType:'FORMITEM',
},
{
name: 'f3',
dataType:'FORMITEM',
......@@ -71,6 +92,10 @@ export default class Main4Model {
name: 'f4',
dataType:'FORMITEM',
},
{
name: 'f34',
dataType:'FORMITEM',
},
{
name: 'f5',
dataType:'FORMITEM',
......@@ -193,10 +218,6 @@ export default class Main4Model {
{
name: 'f33',
},
{
name: 'f34',
dataType:'FORMITEM',
},
{
name: 'f35',
dataType:'FORMITEM',
......@@ -209,38 +230,6 @@ export default class Main4Model {
name: 'f37',
dataType:'FORMITEM',
},
{
name: 'f38',
dataType:'FORMITEM',
},
{
name: 'f39',
dataType:'FORMITEM',
},
{
name: 'f40',
dataType:'FORMITEM',
},
{
name: 'f41',
dataType:'FORMITEM',
},
{
name: 'f43',
dataType:'FORMITEM',
},
{
name: 'f44',
dataType:'FORMITEM',
},
{
name: 'f45',
dataType:'FORMITEM',
},
{
name: 'f46',
dataType:'FORMITEM',
},
{
name: 'ibizsample0001id',
prop: 'ibizsample0001id',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册