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

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

上级 48274511
...@@ -110,6 +110,9 @@ ...@@ -110,6 +110,9 @@
"VMGroup53":[ "VMGroup53":[
{"tag":"ViewMsg52","position":"TOP","type":"ERROR"} {"tag":"ViewMsg52","position":"TOP","type":"ERROR"}
], ],
"VMGroup55":[
{"tag":"ViewMsg54","position":"TOP","type":"ERROR"}
],
"VMGroup26":[ "VMGroup26":[
{"tag":"ViewMsg25","position":"TOP","type":"ERROR"} {"tag":"ViewMsg25","position":"TOP","type":"ERROR"}
], ],
...@@ -155,10 +158,10 @@ ...@@ -155,10 +158,10 @@
"VMGroup20":[ "VMGroup20":[
{"tag":"ViewMsg19","position":"TOP","type":"ERROR"} {"tag":"ViewMsg19","position":"TOP","type":"ERROR"}
], ],
"VMGroup11":[
{"tag":"ViewMsg10","position":"TOP","type":"ERROR"}
],
"VMGroup15":[ "VMGroup15":[
{"tag":"ViewMsg14","position":"TOP","type":"ERROR"} {"tag":"ViewMsg14","position":"TOP","type":"ERROR"}
],
"VMGroup11":[
{"tag":"ViewMsg10","position":"TOP","type":"ERROR"}
] ]
} }
\ No newline at end of file
...@@ -38,6 +38,7 @@ export default { ...@@ -38,6 +38,7 @@ export default {
ibizappctrlid: "应用部件标识", ibizappctrlid: "应用部件标识",
ibizappctrlname: "应用部件名称", ibizappctrlname: "应用部件名称",
ibizappctrltype: "应用部件类型", ibizappctrltype: "应用部件类型",
documentaddress: "文档地址",
ctrldescription: "部件描述", ctrldescription: "部件描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
...@@ -51,6 +52,7 @@ export default { ...@@ -51,6 +52,7 @@ export default {
columns: { columns: {
ibizappctrlname: "应用部件名称", ibizappctrlname: "应用部件名称",
ibizappctrltype: "应用部件类型", ibizappctrltype: "应用部件类型",
documentaddress: "文档地址",
ctrldescription: "部件描述", ctrldescription: "部件描述",
}, },
nodata:"", nodata:"",
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
ibizappctrlid: "应用部件标识", ibizappctrlid: "应用部件标识",
ibizappctrlname: "应用部件名称", ibizappctrlname: "应用部件名称",
ibizappctrltype: "应用部件类型", ibizappctrltype: "应用部件类型",
documentaddress: "文档地址",
ctrldescription: "部件描述", ctrldescription: "部件描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
...@@ -50,6 +51,7 @@ export default { ...@@ -50,6 +51,7 @@ export default {
columns: { columns: {
ibizappctrlname: "应用部件名称", ibizappctrlname: "应用部件名称",
ibizappctrltype: "应用部件类型", ibizappctrltype: "应用部件类型",
documentaddress: "文档地址",
ctrldescription: "部件描述", ctrldescription: "部件描述",
}, },
nodata:"", nodata:"",
......
...@@ -40,6 +40,9 @@ export default { ...@@ -40,6 +40,9 @@ export default {
ibizappeditorid: "编辑器标识", ibizappeditorid: "编辑器标识",
ibizappeditorname: "编辑器名称", ibizappeditorname: "编辑器名称",
ibizappeditortype: "编辑器类型", ibizappeditortype: "编辑器类型",
documentaddress: "文档地址",
inbuilteditoramount: "内置编辑器数量",
expandeditoramount: "扩展编辑器数量",
rditordescription: "编辑器描述", rditordescription: "编辑器描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
...@@ -53,6 +56,8 @@ export default { ...@@ -53,6 +56,8 @@ export default {
columns: { columns: {
ibizappeditorname: "编辑器名称", ibizappeditorname: "编辑器名称",
ibizappeditortype: "编辑器类型", ibizappeditortype: "编辑器类型",
inbuilteditoramount: "内置编辑器数量",
expandeditoramount: "扩展编辑器数量",
rditordescription: "编辑器描述", rditordescription: "编辑器描述",
}, },
nodata:"", nodata:"",
......
...@@ -39,6 +39,9 @@ export default { ...@@ -39,6 +39,9 @@ export default {
ibizappeditorid: "编辑器标识", ibizappeditorid: "编辑器标识",
ibizappeditorname: "编辑器名称", ibizappeditorname: "编辑器名称",
ibizappeditortype: "编辑器类型", ibizappeditortype: "编辑器类型",
documentaddress: "文档地址",
inbuilteditoramount: "内置编辑器数量",
expandeditoramount: "扩展编辑器数量",
rditordescription: "编辑器描述", rditordescription: "编辑器描述",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
...@@ -52,6 +55,8 @@ export default { ...@@ -52,6 +55,8 @@ export default {
columns: { columns: {
ibizappeditorname: "编辑器名称", ibizappeditorname: "编辑器名称",
ibizappeditortype: "编辑器类型", ibizappeditortype: "编辑器类型",
inbuilteditoramount: "内置编辑器数量",
expandeditoramount: "扩展编辑器数量",
rditordescription: "编辑器描述", rditordescription: "编辑器描述",
}, },
nodata:"", nodata:"",
......
...@@ -47,6 +47,7 @@ export class MessageServiceRegister { ...@@ -47,6 +47,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg53', () => import('@/message/view-msg53/view-msg53-message')); this.allMessageService.set('ViewMsg53', () => import('@/message/view-msg53/view-msg53-message'));
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message')); this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg28', () => import('@/message/view-msg28/view-msg28-message')); this.allMessageService.set('ViewMsg28', () => import('@/message/view-msg28/view-msg28-message'));
this.allMessageService.set('ViewMsg54', () => import('@/message/view-msg54/view-msg54-message'));
this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message')); this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message'));
this.allMessageService.set('ViewMsg49', () => import('@/message/view-msg49/view-msg49-message')); this.allMessageService.set('ViewMsg49', () => import('@/message/view-msg49/view-msg49-message'));
this.allMessageService.set('ViewMsg7', () => import('@/message/view-msg7/view-msg7-message')); this.allMessageService.set('ViewMsg7', () => import('@/message/view-msg7/view-msg7-message'));
......
...@@ -28,7 +28,7 @@ export default class ViewMsg53MessageServiceBase extends ViewMessageService { ...@@ -28,7 +28,7 @@ export default class ViewMsg53MessageServiceBase extends ViewMessageService {
this.name = "树视图---静态节点"; this.name = "树视图---静态节点";
this.codename = "ViewMsg53"; this.codename = "ViewMsg53";
this.title = ""; this.title = "";
this.content = "本示例展示树视图静态节点类型界面呈现"; this.content = "本示例展示树视图静态节点类型界面呈现";
this.closeMode = 0; this.closeMode = 0;
this.position = "TOP"; this.position = "TOP";
this.type = "error"; this.type = "error";
......
import ViewMessageService from '../view-message-service';
/**
* 树视图---动态节点(代码表)视图消息服务对象基类
*
* @export
* @class ViewMsg54MessageServiceBase
*/
export default class ViewMsg54MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg54MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg54MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg54MessageServiceBase
*/
public initBasicParam(){
this.id = "682A8394-75AE-40B3-AC25-AF7722B20D4B";
this.name = "树视图---动态节点(代码表)";
this.codename = "ViewMsg54";
this.title = "";
this.content = "本示例展示树视图动态节点(代码表)节点类型界面呈现。";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg54MessageServiceBase
*/
public translateMessageTemp(target:any,context:any,viewparam:any,item?:any){
if(this.hasMessageTemp && Object.is(this.messageType,"HTML")){
Object.assign(target,{title:``});
Object.assign(target,{content:``});
}
if(this.hasMessageTemp && Object.is(this.messageType,"TEXT")){
Object.assign(target,{title:""});
Object.assign(target,{content:""});
}
}
}
\ No newline at end of file
import ViewMsg54MessageServiceBase from './view-msg54-message-base';
/**
* 树视图---动态节点(代码表)视图消息服务对象
*
* @export
* @class ViewMsg54MessageService
*/
export default class ViewMsg54MessageService extends ViewMsg54MessageServiceBase {
/**
* Creates an instance of ViewMsg54MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg54MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -1837,6 +1837,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1837,6 +1837,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup53":[ "VMGroup53":[
{"tag":"ViewMsg52","position":"TOP","type":"ERROR"} {"tag":"ViewMsg52","position":"TOP","type":"ERROR"}
], ],
"VMGroup55":[
{"tag":"ViewMsg54","position":"TOP","type":"ERROR"}
],
"VMGroup26":[ "VMGroup26":[
{"tag":"ViewMsg25","position":"TOP","type":"ERROR"} {"tag":"ViewMsg25","position":"TOP","type":"ERROR"}
], ],
...@@ -1882,11 +1885,11 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1882,11 +1885,11 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup20":[ "VMGroup20":[
{"tag":"ViewMsg19","position":"TOP","type":"ERROR"} {"tag":"ViewMsg19","position":"TOP","type":"ERROR"}
], ],
"VMGroup11":[
{"tag":"ViewMsg10","position":"TOP","type":"ERROR"}
],
"VMGroup15":[ "VMGroup15":[
{"tag":"ViewMsg14","position":"TOP","type":"ERROR"} {"tag":"ViewMsg14","position":"TOP","type":"ERROR"}
],
"VMGroup11":[
{"tag":"ViewMsg10","position":"TOP","type":"ERROR"}
] ]
}]; }];
}); });
\ No newline at end of file
<template> <template>
<div class='view-container detreeexpview ibizsample0003-f2-tree-exp-view'> <div class='view-container detreeexpview ibizsample0003-f2-tree-exp-view'>
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0003f2treeexpview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0003f2treeexpview"></app-studioaction>
<card class='view-card view-no-toolbar' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption view-no-toolbar' :dis-hover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup55' viewname='ibizsample0003f2treeexpview'></app-alert-group> </div>
<div class='content-container'> <div class='content-container'>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup55' viewname='ibizsample0003f2treeexpview'></app-alert-group> </div>
<view_treeexpbar <view_treeexpbar
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -27,7 +24,7 @@ ...@@ -27,7 +24,7 @@
</view_treeexpbar> </view_treeexpbar>
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup55' viewname='ibizsample0003f2treeexpview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
...@@ -49,6 +49,20 @@ ...@@ -49,6 +49,20 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.documentaddress.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='documentaddress' :itemRules="this.rules().documentaddress" class='' :caption="$t('entities.ibizappctrl.main_form.details.documentaddress')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.documentaddress.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.documentaddress"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.documentaddress.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.ctrldescription.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.ctrldescription.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='ctrldescription' :itemRules="this.rules().ctrldescription" class='' :caption="$t('entities.ibizappctrl.main_form.details.ctrldescription')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ctrldescription.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='ctrldescription' :itemRules="this.rules().ctrldescription" class='' :caption="$t('entities.ibizappctrl.main_form.details.ctrldescription')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ctrldescription.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -521,6 +535,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -521,6 +535,7 @@ export default class MainBase extends Vue implements ControlInterface {
ibizappctrlid: null, ibizappctrlid: null,
ibizappctrlname: null, ibizappctrlname: null,
ibizappctrltype: null, ibizappctrltype: null,
documentaddress: null,
ctrldescription: null, ctrldescription: null,
createman: null, createman: null,
createdate: null, createdate: null,
...@@ -585,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -585,6 +600,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.ibizappctrltype.required, type: 'string', message: '应用部件类型 值不能为空', trigger: 'change' }, { required: this.detailsModel.ibizappctrltype.required, type: 'string', message: '应用部件类型 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizappctrltype.required, type: 'string', message: '应用部件类型 值不能为空', trigger: 'blur' }, { required: this.detailsModel.ibizappctrltype.required, type: 'string', message: '应用部件类型 值不能为空', trigger: 'blur' },
], ],
documentaddress: [
{ required: this.detailsModel.documentaddress.required, type: 'string', message: '文档地址 值不能为空', trigger: 'change' },
{ required: this.detailsModel.documentaddress.required, type: 'string', message: '文档地址 值不能为空', trigger: 'blur' },
],
ctrldescription: [ ctrldescription: [
{ required: this.detailsModel.ctrldescription.required, type: 'string', message: '部件描述 值不能为空', trigger: 'change' }, { required: this.detailsModel.ctrldescription.required, type: 'string', message: '部件描述 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ctrldescription.required, type: 'string', message: '部件描述 值不能为空', trigger: 'blur' }, { required: this.detailsModel.ctrldescription.required, type: 'string', message: '部件描述 值不能为空', trigger: 'blur' },
...@@ -739,6 +758,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -739,6 +758,8 @@ export default class MainBase extends Vue implements ControlInterface {
ibizappctrlname: new FormItemModel({ caption: '应用部件名称', detailType: 'FORMITEM', name: 'ibizappctrlname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizappctrlname: new FormItemModel({ caption: '应用部件名称', detailType: 'FORMITEM', name: 'ibizappctrlname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ibizappctrltype: new FormItemModel({ caption: '应用部件类型', detailType: 'FORMITEM', name: 'ibizappctrltype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizappctrltype: new FormItemModel({ caption: '应用部件类型', detailType: 'FORMITEM', name: 'ibizappctrltype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
documentaddress: new FormItemModel({ caption: '文档地址', detailType: 'FORMITEM', name: 'documentaddress', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ctrldescription: new FormItemModel({ caption: '部件描述', detailType: 'FORMITEM', name: 'ctrldescription', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ctrldescription: new FormItemModel({ caption: '部件描述', detailType: 'FORMITEM', name: 'ctrldescription', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -885,6 +906,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -885,6 +906,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'ibizappctrltype', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'ibizappctrltype', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 documentaddress 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.documentaddress')
onDocumentaddressChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'documentaddress', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 ctrldescription 值 * 监控表单属性 ctrldescription 值
* *
...@@ -1017,6 +1050,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1017,6 +1050,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -70,6 +70,11 @@ export default class MainModel { ...@@ -70,6 +70,11 @@ export default class MainModel {
prop: 'ibizappctrltype', prop: 'ibizappctrltype',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'documentaddress',
prop: 'documentaddress',
dataType: 'TEXT',
},
{ {
name: 'ctrldescription', name: 'ctrldescription',
prop: 'ctrldescription', prop: 'ctrldescription',
......
...@@ -47,6 +47,18 @@ ...@@ -47,6 +47,18 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('documentaddress')">
<el-table-column show-overflow-tooltip :prop="'documentaddress'" :label="$t('entities.ibizappctrl.main_grid.columns.documentaddress')" :width="350" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizappctrl.main_grid.columns.documentaddress')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.documentaddress}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('ctrldescription')"> <template v-if="getColumnState('ctrldescription')">
<el-table-column show-overflow-tooltip :prop="'ctrldescription'" :label="$t('entities.ibizappctrl.main_grid.columns.ctrldescription')" :width="350" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'ctrldescription'" :label="$t('entities.ibizappctrl.main_grid.columns.ctrldescription')" :width="350" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
...@@ -634,6 +646,15 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -634,6 +646,15 @@ export default class MainBase extends Vue implements ControlInterface {
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'documentaddress',
label: '文档地址',
langtag: 'entities.ibizappctrl.main_grid.columns.documentaddress',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'ctrldescription', name: 'ctrldescription',
label: '部件描述', label: '部件描述',
...@@ -1337,7 +1358,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1337,7 +1358,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['ibizappctrlname','ibizappctrltype','ctrldescription']; let allColumns:Array<any> = ['ibizappctrlname','ibizappctrltype','documentaddress','ctrldescription'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1419,6 +1440,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1419,6 +1440,7 @@ export default class MainBase extends Vue implements ControlInterface {
group: group.label, group: group.label,
ibizappctrlname:'', ibizappctrlname:'',
ibizappctrltype:'', ibizappctrltype:'',
documentaddress:'',
ctrldescription:'', ctrldescription:'',
children: children children: children
} }
...@@ -1449,6 +1471,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1449,6 +1471,7 @@ export default class MainBase extends Vue implements ControlInterface {
group: this.$t('app.gridpage.other'), group: this.$t('app.gridpage.other'),
ibizappctrlname:'', ibizappctrlname:'',
ibizappctrltype:'', ibizappctrltype:'',
documentaddress:'',
ctrldescription:'', ctrldescription:'',
children: child children: child
} }
...@@ -1512,6 +1535,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1512,6 +1535,7 @@ export default class MainBase extends Vue implements ControlInterface {
group: group, group: group,
ibizappctrlname:'', ibizappctrlname:'',
ibizappctrltype:'', ibizappctrltype:'',
documentaddress:'',
ctrldescription:'', ctrldescription:'',
children: children, children: children,
} }
......
...@@ -36,6 +36,11 @@ export default class MainModel { ...@@ -36,6 +36,11 @@ export default class MainModel {
prop: 'ibizappctrlname', prop: 'ibizappctrlname',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'documentaddress',
prop: 'documentaddress',
dataType: 'TEXT',
},
{ {
name: 'ibizappctrlid', name: 'ibizappctrlid',
prop: 'ibizappctrlid', prop: 'ibizappctrlid',
......
...@@ -49,6 +49,48 @@ ...@@ -49,6 +49,48 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.documentaddress.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='documentaddress' :itemRules="this.rules().documentaddress" class='' :caption="$t('entities.ibizappeditor.main_form.details.documentaddress')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.documentaddress.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.documentaddress"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.documentaddress.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.inbuilteditoramount.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='inbuilteditoramount' :itemRules="this.rules().inbuilteditoramount" class='' :caption="$t('entities.ibizappeditor.main_form.details.inbuilteditoramount')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.inbuilteditoramount.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.inbuilteditoramount"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.inbuilteditoramount.disabled"
type='number'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.expandeditoramount.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='expandeditoramount' :itemRules="this.rules().expandeditoramount" class='' :caption="$t('entities.ibizappeditor.main_form.details.expandeditoramount')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.expandeditoramount.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.expandeditoramount"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.expandeditoramount.disabled"
type='number'
style="">
</input-box>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.rditordescription.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.rditordescription.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='rditordescription' :itemRules="this.rules().rditordescription" class='' :caption="$t('entities.ibizappeditor.main_form.details.rditordescription')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.rditordescription.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='rditordescription' :itemRules="this.rules().rditordescription" class='' :caption="$t('entities.ibizappeditor.main_form.details.rditordescription')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.rditordescription.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -521,6 +563,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -521,6 +563,9 @@ export default class MainBase extends Vue implements ControlInterface {
ibizappeditorid: null, ibizappeditorid: null,
ibizappeditorname: null, ibizappeditorname: null,
ibizappeditortype: null, ibizappeditortype: null,
documentaddress: null,
inbuilteditoramount: null,
expandeditoramount: null,
rditordescription: null, rditordescription: null,
createman: null, createman: null,
createdate: null, createdate: null,
...@@ -585,6 +630,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -585,6 +630,18 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.ibizappeditortype.required, type: 'string', message: '编辑器类型 值不能为空', trigger: 'change' }, { required: this.detailsModel.ibizappeditortype.required, type: 'string', message: '编辑器类型 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizappeditortype.required, type: 'string', message: '编辑器类型 值不能为空', trigger: 'blur' }, { required: this.detailsModel.ibizappeditortype.required, type: 'string', message: '编辑器类型 值不能为空', trigger: 'blur' },
], ],
documentaddress: [
{ required: this.detailsModel.documentaddress.required, type: 'string', message: '文档地址 值不能为空', trigger: 'change' },
{ required: this.detailsModel.documentaddress.required, type: 'string', message: '文档地址 值不能为空', trigger: 'blur' },
],
inbuilteditoramount: [
{ required: this.detailsModel.inbuilteditoramount.required, type: 'number', message: '内置编辑器数量 值不能为空', trigger: 'change' },
{ required: this.detailsModel.inbuilteditoramount.required, type: 'number', message: '内置编辑器数量 值不能为空', trigger: 'blur' },
],
expandeditoramount: [
{ required: this.detailsModel.expandeditoramount.required, type: 'number', message: '扩展编辑器数量 值不能为空', trigger: 'change' },
{ required: this.detailsModel.expandeditoramount.required, type: 'number', message: '扩展编辑器数量 值不能为空', trigger: 'blur' },
],
rditordescription: [ rditordescription: [
{ required: this.detailsModel.rditordescription.required, type: 'string', message: '编辑器描述 值不能为空', trigger: 'change' }, { required: this.detailsModel.rditordescription.required, type: 'string', message: '编辑器描述 值不能为空', trigger: 'change' },
{ required: this.detailsModel.rditordescription.required, type: 'string', message: '编辑器描述 值不能为空', trigger: 'blur' }, { required: this.detailsModel.rditordescription.required, type: 'string', message: '编辑器描述 值不能为空', trigger: 'blur' },
...@@ -739,6 +796,12 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -739,6 +796,12 @@ export default class MainBase extends Vue implements ControlInterface {
ibizappeditorname: new FormItemModel({ caption: '编辑器名称', detailType: 'FORMITEM', name: 'ibizappeditorname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizappeditorname: new FormItemModel({ caption: '编辑器名称', detailType: 'FORMITEM', name: 'ibizappeditorname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ibizappeditortype: new FormItemModel({ caption: '编辑器类型', detailType: 'FORMITEM', name: 'ibizappeditortype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizappeditortype: new FormItemModel({ caption: '编辑器类型', detailType: 'FORMITEM', name: 'ibizappeditortype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
documentaddress: new FormItemModel({ caption: '文档地址', detailType: 'FORMITEM', name: 'documentaddress', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
inbuilteditoramount: new FormItemModel({ caption: '内置编辑器数量', detailType: 'FORMITEM', name: 'inbuilteditoramount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
expandeditoramount: new FormItemModel({ caption: '扩展编辑器数量', detailType: 'FORMITEM', name: 'expandeditoramount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
rditordescription: new FormItemModel({ caption: '编辑器描述', detailType: 'FORMITEM', name: 'rditordescription', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) rditordescription: new FormItemModel({ caption: '编辑器描述', detailType: 'FORMITEM', name: 'rditordescription', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -885,6 +948,42 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -885,6 +948,42 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'ibizappeditortype', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'ibizappeditortype', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 documentaddress 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.documentaddress')
onDocumentaddressChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'documentaddress', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 inbuilteditoramount 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.inbuilteditoramount')
onInbuilteditoramountChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'inbuilteditoramount', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 expandeditoramount 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.expandeditoramount')
onExpandeditoramountChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'expandeditoramount', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 rditordescription 值 * 监控表单属性 rditordescription 值
* *
...@@ -1015,6 +1114,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1015,6 +1114,9 @@ export default class MainBase extends Vue implements ControlInterface {
......
...@@ -70,6 +70,21 @@ export default class MainModel { ...@@ -70,6 +70,21 @@ export default class MainModel {
prop: 'ibizappeditortype', prop: 'ibizappeditortype',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'documentaddress',
prop: 'documentaddress',
dataType: 'TEXT',
},
{
name: 'inbuilteditoramount',
prop: 'inbuilteditoramount',
dataType: 'INT',
},
{
name: 'expandeditoramount',
prop: 'expandeditoramount',
dataType: 'INT',
},
{ {
name: 'rditordescription', name: 'rditordescription',
prop: 'rditordescription', prop: 'rditordescription',
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column> <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template> </template>
<template v-if="getColumnState('ibizappeditorname')"> <template v-if="getColumnState('ibizappeditorname')">
<el-table-column show-overflow-tooltip :prop="'ibizappeditorname'" :label="$t('entities.ibizappeditor.main_grid.columns.ibizappeditorname')" :width="350" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'ibizappeditorname'" :label="$t('entities.ibizappeditor.main_grid.columns.ibizappeditorname')" :width="300" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizappeditor.main_grid.columns.ibizappeditorname')}} {{$t('entities.ibizappeditor.main_grid.columns.ibizappeditorname')}}
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('ibizappeditortype')"> <template v-if="getColumnState('ibizappeditortype')">
<el-table-column show-overflow-tooltip :prop="'ibizappeditortype'" :label="$t('entities.ibizappeditor.main_grid.columns.ibizappeditortype')" :width="350" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'ibizappeditortype'" :label="$t('entities.ibizappeditor.main_grid.columns.ibizappeditortype')" :width="300" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizappeditor.main_grid.columns.ibizappeditortype')}} {{$t('entities.ibizappeditor.main_grid.columns.ibizappeditortype')}}
...@@ -47,8 +47,32 @@ ...@@ -47,8 +47,32 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('inbuilteditoramount')">
<el-table-column show-overflow-tooltip :prop="'inbuilteditoramount'" :label="$t('entities.ibizappeditor.main_grid.columns.inbuilteditoramount')" :width="300" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizappeditor.main_grid.columns.inbuilteditoramount')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.inbuilteditoramount}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('expandeditoramount')">
<el-table-column show-overflow-tooltip :prop="'expandeditoramount'" :label="$t('entities.ibizappeditor.main_grid.columns.expandeditoramount')" :width="300" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizappeditor.main_grid.columns.expandeditoramount')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.expandeditoramount}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('rditordescription')"> <template v-if="getColumnState('rditordescription')">
<el-table-column show-overflow-tooltip :prop="'rditordescription'" :label="$t('entities.ibizappeditor.main_grid.columns.rditordescription')" :width="350" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'rditordescription'" :label="$t('entities.ibizappeditor.main_grid.columns.rditordescription')" :min-width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibizappeditor.main_grid.columns.rditordescription')}} {{$t('entities.ibizappeditor.main_grid.columns.rditordescription')}}
...@@ -634,12 +658,30 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -634,12 +658,30 @@ export default class MainBase extends Vue implements ControlInterface {
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'inbuilteditoramount',
label: '内置编辑器数量',
langtag: 'entities.ibizappeditor.main_grid.columns.inbuilteditoramount',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{
name: 'expandeditoramount',
label: '扩展编辑器数量',
langtag: 'entities.ibizappeditor.main_grid.columns.expandeditoramount',
show: true,
unit: 'PX',
isEnableRowEdit: false,
enableCond: 3 ,
},
{ {
name: 'rditordescription', name: 'rditordescription',
label: '编辑器描述', label: '编辑器描述',
langtag: 'entities.ibizappeditor.main_grid.columns.rditordescription', langtag: 'entities.ibizappeditor.main_grid.columns.rditordescription',
show: true, show: true,
unit: 'PX', unit: 'STAR',
isEnableRowEdit: false, isEnableRowEdit: false,
enableCond: 3 , enableCond: 3 ,
}, },
...@@ -1337,7 +1379,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1337,7 +1379,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['ibizappeditorname','ibizappeditortype','rditordescription']; let allColumns:Array<any> = ['ibizappeditorname','ibizappeditortype','inbuilteditoramount','expandeditoramount','rditordescription'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1419,6 +1461,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1419,6 +1461,8 @@ export default class MainBase extends Vue implements ControlInterface {
group: group.label, group: group.label,
ibizappeditorname:'', ibizappeditorname:'',
ibizappeditortype:'', ibizappeditortype:'',
inbuilteditoramount:'',
expandeditoramount:'',
rditordescription:'', rditordescription:'',
children: children children: children
} }
...@@ -1449,6 +1493,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1449,6 +1493,8 @@ export default class MainBase extends Vue implements ControlInterface {
group: this.$t('app.gridpage.other'), group: this.$t('app.gridpage.other'),
ibizappeditorname:'', ibizappeditorname:'',
ibizappeditortype:'', ibizappeditortype:'',
inbuilteditoramount:'',
expandeditoramount:'',
rditordescription:'', rditordescription:'',
children: child children: child
} }
...@@ -1512,6 +1558,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1512,6 +1558,8 @@ export default class MainBase extends Vue implements ControlInterface {
group: group, group: group,
ibizappeditorname:'', ibizappeditorname:'',
ibizappeditortype:'', ibizappeditortype:'',
inbuilteditoramount:'',
expandeditoramount:'',
rditordescription:'', rditordescription:'',
children: children, children: children,
} }
......
...@@ -26,6 +26,11 @@ export default class MainModel { ...@@ -26,6 +26,11 @@ export default class MainModel {
] ]
}else{ }else{
return [ return [
{
name: 'inbuilteditoramount',
prop: 'inbuilteditoramount',
dataType: 'INT',
},
{ {
name: 'ibizappeditorname', name: 'ibizappeditorname',
prop: 'ibizappeditorname', prop: 'ibizappeditorname',
...@@ -41,6 +46,11 @@ export default class MainModel { ...@@ -41,6 +46,11 @@ export default class MainModel {
prop: 'rditordescription', prop: 'rditordescription',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'expandeditoramount',
prop: 'expandeditoramount',
dataType: 'INT',
},
{ {
name: 'srfmajortext', name: 'srfmajortext',
prop: 'ibizappeditorname', prop: 'ibizappeditorname',
......
...@@ -237,14 +237,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -237,14 +237,6 @@ export default class UsrBase extends Vue implements ControlInterface {
}, },
labelField: 'text', labelField: 'text',
columns: [ columns: [
{
label: '归还日期',
value: 'returntime',
render: (task: any) => {
return this.getColumnValue(task, 'returntime')
},
width: 200,
},
{ {
label: '图书名称', label: '图书名称',
value: 'ibizbookname', value: 'ibizbookname',
...@@ -277,6 +269,14 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -277,6 +269,14 @@ export default class UsrBase extends Vue implements ControlInterface {
}, },
width: 200, width: 200,
}, },
{
label: '归还日期',
value: 'returntime',
render: (task: any) => {
return this.getColumnValue(task, 'returntime')
},
width: 200,
},
] ]
} }
}; };
......
...@@ -344,7 +344,7 @@ export default class F2TreeExpViewtreeexpbarBase extends Vue implements ControlI ...@@ -344,7 +344,7 @@ export default class F2TreeExpViewtreeexpbarBase extends Vue implements ControlI
if (Object.is(expmode, 'STATE')) { if (Object.is(expmode, 'STATE')) {
return { return {
viewname: 'ibizorder-grid-view', viewname: 'ibizorder-grid-view',
parentdata: {"n_orderstate_eq":"%NODEID%"}, parentdata: {},
deKeyField:'ibizorder' deKeyField:'ibizorder'
}; };
} }
......
...@@ -198,6 +198,7 @@ export default class Tree02Service extends ControlService { ...@@ -198,6 +198,7 @@ export default class Tree02Service extends ControlService {
strNodeId += this.TREENODE_SEPARATOR; strNodeId += this.TREENODE_SEPARATOR;
strNodeId += item.value; strNodeId += item.value;
Object.assign(item, { id: strNodeId }); Object.assign(item, { id: strNodeId });
Object.assign(item, { iconcls: 'fa fa-street-view' });
Object.assign(item, { expanded: filter.isautoexpand }); Object.assign(item, { expanded: filter.isautoexpand });
Object.assign(item, {navigateParams: {n_orderstate_eq:"%NODEID%"} }); Object.assign(item, {navigateParams: {n_orderstate_eq:"%NODEID%"} });
Object.assign(item, { nodeid: item.srfkey }); Object.assign(item, { nodeid: item.srfkey });
...@@ -216,6 +217,7 @@ export default class Tree02Service extends ControlService { ...@@ -216,6 +217,7 @@ export default class Tree02Service extends ControlService {
strNodeId += this.TREENODE_SEPARATOR; strNodeId += this.TREENODE_SEPARATOR;
strNodeId += item.value; strNodeId += item.value;
Object.assign(treeNode, { id: strNodeId }); Object.assign(treeNode, { id: strNodeId });
Object.assign(treeNode, { iconcls: 'fa fa-street-view' });
Object.assign(treeNode, { expanded: filter.isautoexpand }); Object.assign(treeNode, { expanded: filter.isautoexpand });
Object.assign(treeNode, { leaf: true }); Object.assign(treeNode, { leaf: true });
Object.assign(treeNode, {navigateParams: {n_orderstate_eq:"%NODEID%"} }); Object.assign(treeNode, {navigateParams: {n_orderstate_eq:"%NODEID%"} });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册