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

lab_gzf 发布系统代码

上级 fd26d041
......@@ -1170,6 +1170,53 @@
}
]
},
{
"srfkey": "Connectionrole__ComponentState",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "已删除",
"text": "已删除",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "3",
"label": "已删除未发布内容",
"text": "已删除未发布内容",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "0",
"label": "已发布",
"text": "已发布",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
, {
"id": "1",
"label": "未发布",
"text": "未发布",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "YesNo",
"emptytext": "未定义",
......@@ -1418,6 +1465,33 @@
}
]
},
{
"srfkey": "Connectionrole__StateCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
]
},
{
"srfkey": "Productsubstitute__Direction",
"emptytext": "未定义",
......@@ -1975,6 +2049,33 @@
}
]
},
{
"srfkey": "Connectionrole__StatusCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "Salesorder__StatusCode",
"emptytext": "未定义",
......@@ -2826,6 +2927,93 @@
}
]
},
{
"srfkey": "Connectionrole__Category",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "业务",
"text": "业务",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "5",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Item_5",
"value": "5",
"disabled": false
}
, {
"id": "1000",
"label": "利益干系人",
"text": "利益干系人",
"data":"",
"codename":"Item_1000",
"value": "1000",
"disabled": false
}
, {
"id": "2",
"label": "家庭",
"text": "家庭",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1002",
"label": "服务",
"text": "服务",
"data":"",
"codename":"Item_1002",
"value": "1002",
"disabled": false
}
, {
"id": "3",
"label": "社团组织",
"text": "社团组织",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "4",
"label": "销售",
"text": "销售",
"data":"",
"codename":"Item_4",
"value": "4",
"disabled": false
}
, {
"id": "1001",
"label": "销售团队",
"text": "销售团队",
"data":"",
"codename":"Item_1001",
"value": "1001",
"disabled": false
}
]
},
{
"srfkey": "Lead__IndustryCode",
"emptytext": "未定义",
......
......@@ -162,6 +162,13 @@ export default {
"8": "需要审阅",
"empty": ""
},
Connectionrole__ComponentState: {
"2": "已删除",
"3": "已删除未发布内容",
"0": "已发布",
"1": "未发布",
"empty": ""
},
YesNo: {
"1": "是",
"0": "否",
......@@ -196,6 +203,11 @@ export default {
"5": "邮递",
"empty": ""
},
Connectionrole__StateCode: {
"1": "停用",
"0": "可用",
"empty": ""
},
Productsubstitute__Direction: {
"0": "单向",
"1": "双向",
......@@ -277,6 +289,11 @@ export default {
"2": "未知",
"empty": ""
},
Connectionrole__StatusCode: {
"2": "停用",
"1": "可用",
"empty": ""
},
Salesorder__StatusCode: {
"100001": "完成",
"100003": "已开发票",
......@@ -369,6 +386,17 @@ export default {
"2038": "2038 财年",
"empty": ""
},
Connectionrole__Category: {
"1": "业务",
"5": "其他",
"1000": "利益干系人",
"2": "家庭",
"1002": "服务",
"3": "社团组织",
"4": "销售",
"1001": "销售团队",
"empty": ""
},
Lead__IndustryCode: {
"1": "Accounting",
"2": "Agriculture and Non-petrol Natural Resource Extraction",
......
......@@ -162,6 +162,13 @@ export default {
"8": "需要审阅",
"empty": "",
},
Connectionrole__ComponentState: {
"2": "已删除",
"3": "已删除未发布内容",
"0": "已发布",
"1": "未发布",
"empty": "",
},
YesNo: {
"1": "是",
"0": "否",
......@@ -196,6 +203,11 @@ export default {
"5": "邮递",
"empty": "",
},
Connectionrole__StateCode: {
"1": "停用",
"0": "可用",
"empty": "",
},
Productsubstitute__Direction: {
"0": "单向",
"1": "双向",
......@@ -277,6 +289,11 @@ export default {
"2": "未知",
"empty": "",
},
Connectionrole__StatusCode: {
"2": "停用",
"1": "可用",
"empty": "",
},
Salesorder__StatusCode: {
"100001": "完成",
"100003": "已开发票",
......@@ -369,6 +386,17 @@ export default {
"2038": "2038 财年",
"empty": "",
},
Connectionrole__Category: {
"1": "业务",
"5": "其他",
"1000": "利益干系人",
"2": "家庭",
"1002": "服务",
"3": "社团组织",
"4": "销售",
"1001": "销售团队",
"empty": "",
},
Lead__IndustryCode: {
"1": "Accounting",
"2": "Agriculture and Non-petrol Natural Resource Extraction",
......
......@@ -47,6 +47,12 @@ export default {
srfdeid: "",
srfsourcekey: "",
connectionrolename: "关联角色名称",
category: "连接角色类别",
componentstate: "组件状态",
managed: "状态",
statuscode: "状态描述",
statecode: "状态",
description: "说明",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
......@@ -59,8 +65,12 @@ export default {
main_grid: {
columns: {
connectionrolename: "关联角色名称",
updateman: "更新人",
updatedate: "更新时间",
category: "连接角色类别",
componentstate: "组件状态",
managed: "状态",
statecode: "状态",
statuscode: "状态描述",
description: "说明",
},
uiactions: {
},
......
......@@ -46,6 +46,12 @@ export default {
srfdeid: "",
srfsourcekey: "",
connectionrolename: "关联角色名称",
category: "连接角色类别",
componentstate: "组件状态",
managed: "状态",
statuscode: "状态描述",
statecode: "状态",
description: "说明",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
......@@ -58,8 +64,12 @@ export default {
main_grid: {
columns: {
connectionrolename: "关联角色名称",
updateman: "更新人",
updatedate: "更新时间",
category: "连接角色类别",
componentstate: "组件状态",
managed: "状态",
statecode: "状态",
statuscode: "状态描述",
description: "说明",
},
uiactions: {
},
......
......@@ -1178,6 +1178,53 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connectionrole__ComponentState",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "已删除",
text: "已删除",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "3",
label: "已删除未发布内容",
text: "已删除未发布内容",
"data":"",
"codename":"Item_3",
value: "3",
disabled: false,
},
{
id: "0",
label: "已发布",
text: "已发布",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false,
},
{
id: "1",
label: "未发布",
text: "未发布",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "YesNo",
emptytext: "未定义",
......@@ -1426,6 +1473,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connectionrole__StateCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "0",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false,
},
]
},
{
srfkey: "Productsubstitute__Direction",
emptytext: "未定义",
......@@ -1983,6 +2057,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connectionrole__StatusCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "Salesorder__StatusCode",
emptytext: "未定义",
......@@ -2834,6 +2935,93 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connectionrole__Category",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "业务",
text: "业务",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "5",
label: "其他",
text: "其他",
"data":"",
"codename":"Item_5",
value: "5",
disabled: false,
},
{
id: "1000",
label: "利益干系人",
text: "利益干系人",
"data":"",
"codename":"Item_1000",
value: "1000",
disabled: false,
},
{
id: "2",
label: "家庭",
text: "家庭",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1002",
label: "服务",
text: "服务",
"data":"",
"codename":"Item_1002",
value: "1002",
disabled: false,
},
{
id: "3",
label: "社团组织",
text: "社团组织",
"data":"",
"codename":"Item_3",
value: "3",
disabled: false,
},
{
id: "4",
label: "销售",
text: "销售",
"data":"",
"codename":"Item_4",
value: "4",
disabled: false,
},
{
id: "1001",
label: "销售团队",
text: "销售团队",
"data":"",
"codename":"Item_1001",
value: "1001",
disabled: false,
},
]
},
{
srfkey: "Lead__IndustryCode",
emptytext: "未定义",
......
......@@ -6,14 +6,14 @@
<app-form-group layoutType="FLEX" titleStyle="" class=' text-center' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.account.datapanel_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<div style="height: 100%;display: flex;justify-content: space-between;">
<div v-show="detailsModel.industrycode.visible" :style="{}">
<app-form-item name='industrycode' :itemRules="this.rules.industrycode" class='datapanel-style' :caption="$t('entities.account.datapanel_form.details.industrycode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.industrycode.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-form-item name='industrycode' :itemRules="this.rules.industrycode" class='datapanel-style' labelStyle="datapanel-label-style" :caption="$t('entities.account.datapanel_form.details.industrycode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.industrycode.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='industrycode' :value="data.industrycode" tag='Account__IndustryCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</div>
<div v-show="detailsModel.telephone1.visible" :style="{}">
<app-form-item name='telephone1' :itemRules="this.rules.telephone1" class='datapanel-style' :caption="$t('entities.account.datapanel_form.details.telephone1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.telephone1.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-form-item name='telephone1' :itemRules="this.rules.telephone1" class='datapanel-style' labelStyle="datapanel-label-style" :caption="$t('entities.account.datapanel_form.details.telephone1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.telephone1.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='telephone1' :value="data.telephone1" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
......
......@@ -6,3 +6,7 @@
color:rgba(209, 196, 233, 1);font-size:16px;font-weight:bold
}
.datapanel-label-style {
color:rgba(4, 4, 4, 1);font-size:12px
}
......@@ -65,6 +65,12 @@ export class MainEditFormBase extends EditFormControlBase {
srfdeid: null,
srfsourcekey: null,
connectionrolename: null,
category: null,
componentstate: null,
managed: null,
statuscode: null,
statecode: null,
description: null,
createman: null,
createdate: null,
updateman: null,
......@@ -84,6 +90,18 @@ export class MainEditFormBase extends EditFormControlBase {
{ required: true, type: 'string', message: '关联角色名称 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '关联角色名称 值不能为空', trigger: 'blur' },
],
componentstate: [
{ required: true, type: 'string', message: '组件状态 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '组件状态 值不能为空', trigger: 'blur' },
],
managed: [
{ required: true, type: 'number', message: '状态 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '状态 值不能为空', trigger: 'blur' },
],
statecode: [
{ required: true, type: 'number', message: '状态 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '状态 值不能为空', trigger: 'blur' },
],
}
/**
......@@ -119,6 +137,18 @@ export class MainEditFormBase extends EditFormControlBase {
connectionrolename: new FormItemModel({ caption: '关联角色名称', detailType: 'FORMITEM', name: 'connectionrolename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
category: new FormItemModel({ caption: '连接角色类别', detailType: 'FORMITEM', name: 'category', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
componentstate: new FormItemModel({ caption: '组件状态', detailType: 'FORMITEM', name: 'componentstate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
managed: new FormItemModel({ caption: '状态', detailType: 'FORMITEM', name: 'managed', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
statuscode: new FormItemModel({ caption: '状态描述', detailType: 'FORMITEM', name: 'statuscode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
statecode: new FormItemModel({ caption: '状态', detailType: 'FORMITEM', name: 'statecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 2 }),
description: new FormItemModel({ caption: '说明', detailType: 'FORMITEM', name: 'description', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
......
......@@ -60,6 +60,36 @@ export default class MainModel {
prop: 'connectionrolename',
dataType: 'TEXT',
},
{
name: 'category',
prop: 'category',
dataType: 'SSCODELIST',
},
{
name: 'componentstate',
prop: 'componentstate',
dataType: 'SSCODELIST',
},
{
name: 'managed',
prop: 'managed',
dataType: 'YESNO',
},
{
name: 'statuscode',
prop: 'statuscode',
dataType: 'NSCODELIST',
},
{
name: 'statecode',
prop: 'statecode',
dataType: 'NSCODELIST',
},
{
name: 'description',
prop: 'description',
dataType: 'TEXT',
},
{
name: 'createman',
prop: 'createman',
......
......@@ -15,11 +15,108 @@
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.connectionrole.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.connectionrolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.connectionrolename.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='connectionrolename' :itemRules="this.rules.connectionrolename" class='' :caption="$t('entities.connectionrole.main_form.details.connectionrolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.connectionrolename.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.connectionrolename" @enter="onEnter($event)" unit="" :disabled="detailsModel.connectionrolename.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.category.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='category' :itemRules="this.rules.category" class='' :caption="$t('entities.connectionrole.main_form.details.category')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.category.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.category"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.category.disabled"
tag='Connectionrole__Category'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.componentstate.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='componentstate' :itemRules="this.rules.componentstate" class='' :caption="$t('entities.connectionrole.main_form.details.componentstate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.componentstate.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.componentstate"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.componentstate.disabled"
tag='Connectionrole__ComponentState'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.managed.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='managed' :itemRules="this.rules.managed" class='' :caption="$t('entities.connectionrole.main_form.details.managed')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.managed.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.managed"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.managed.disabled"
style="width:100px;width: 100px;"
tag='YesNo'
codelistType='STATIC'
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.statuscode.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='statuscode' :itemRules="this.rules.statuscode" class='' :caption="$t('entities.connectionrole.main_form.details.statuscode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.statuscode.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.statuscode"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.statuscode.disabled"
tag='Connectionrole__StatusCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.statecode.visible" :style="{}" :md="{ span: 13, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='statecode' :itemRules="this.rules.statecode" class='' :caption="$t('entities.connectionrole.main_form.details.statecode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.statecode.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.statecode"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.statecode.disabled"
tag='Connectionrole__StateCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.description.visible" :style="{}" :md="{ span: 24, offset: 0 }" :lg="{ span: 24, offset: 0 }" :xl="{ span: 24, offset: 0 }">
<app-form-item name='description' :itemRules="this.rules.description" class='' :caption="$t('entities.connectionrole.main_form.details.description')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.description.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.description" @enter="onEnter($event)" unit="" :disabled="detailsModel.description.disabled" type='text' style="height:80px;"></input-box>
</app-form-item>
</i-col>
</row>
......
......@@ -73,19 +73,47 @@ export class MainGridBase extends GridControllerBase {
util: 'PX'
},
{
name: 'updateman',
label: '更新人',
langtag: 'entities.connectionrole.main_grid.columns.updateman',
name: 'category',
label: '连接角色类别',
langtag: 'entities.connectionrole.main_grid.columns.category',
show: true,
util: 'PX'
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.connectionrole.main_grid.columns.updatedate',
name: 'componentstate',
label: '组件状态',
langtag: 'entities.connectionrole.main_grid.columns.componentstate',
show: true,
util: 'PX'
},
{
name: 'managed',
label: '状态',
langtag: 'entities.connectionrole.main_grid.columns.managed',
show: true,
util: 'PX'
},
{
name: 'statecode',
label: '状态',
langtag: 'entities.connectionrole.main_grid.columns.statecode',
show: true,
util: 'PX'
},
{
name: 'statuscode',
label: '状态描述',
langtag: 'entities.connectionrole.main_grid.columns.statuscode',
show: true,
util: 'PX'
},
{
name: 'description',
label: '说明',
langtag: 'entities.connectionrole.main_grid.columns.description',
show: true,
util: 'STAR'
},
]
/**
......@@ -121,8 +149,12 @@ export class MainGridBase extends GridControllerBase {
*/
public hasRowEdit: any = {
'connectionrolename':false,
'updateman':false,
'updatedate':false,
'category':false,
'componentstate':false,
'managed':false,
'statecode':false,
'statuscode':false,
'description':false,
};
/**
......@@ -149,9 +181,41 @@ export class MainGridBase extends GridControllerBase {
public async formatExcelData(filterVal: any, jsonData: any, codelistColumns?: any[]): Promise<any> {
return super.formatExcelData(filterVal, jsonData, [
{
name: 'updateman',
srfkey: 'SysOperator',
codelistType : 'DYNAMIC',
name: 'category',
srfkey: 'Connectionrole__Category',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'componentstate',
srfkey: 'Connectionrole__ComponentState',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'managed',
srfkey: 'YesNo',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'statecode',
srfkey: 'Connectionrole__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'statuscode',
srfkey: 'Connectionrole__StatusCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
......
......@@ -27,14 +27,34 @@ export default class MainModel {
}else{
return [
{
name: 'updateman',
prop: 'updateman',
name: 'statecode',
prop: 'statecode',
dataType: 'NSCODELIST',
},
{
name: 'managed',
prop: 'managed',
dataType: 'YESNO',
},
{
name: 'category',
prop: 'category',
dataType: 'SSCODELIST',
},
{
name: 'description',
prop: 'description',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
name: 'componentstate',
prop: 'componentstate',
dataType: 'SSCODELIST',
},
{
name: 'statuscode',
prop: 'statuscode',
dataType: 'NSCODELIST',
},
{
name: 'srfmajortext',
......
......@@ -35,29 +35,85 @@
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updateman')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.connectionrole.main_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('category')">
<el-table-column show-overflow-tooltip :prop="'category'" :label="$t('entities.connectionrole.main_grid.columns.category')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.updateman')}}
{{$t('entities.connectionrole.main_grid.columns.category')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist>
<codelist :value="row.category" tag='Connectionrole__Category' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.connectionrole.main_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('componentstate')">
<el-table-column show-overflow-tooltip :prop="'componentstate'" :label="$t('entities.connectionrole.main_grid.columns.componentstate')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.updatedate')}}
{{$t('entities.connectionrole.main_grid.columns.componentstate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.updatedate"></app-format-data>
<template >
<codelist :value="row.componentstate" tag='Connectionrole__ComponentState' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('managed')">
<el-table-column show-overflow-tooltip :prop="'managed'" :label="$t('entities.connectionrole.main_grid.columns.managed')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.managed')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.managed" tag='YesNo' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('statecode')">
<el-table-column show-overflow-tooltip :prop="'statecode'" :label="$t('entities.connectionrole.main_grid.columns.statecode')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.statecode')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statecode" tag='Connectionrole__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('statuscode')">
<el-table-column show-overflow-tooltip :prop="'statuscode'" :label="$t('entities.connectionrole.main_grid.columns.statuscode')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.statuscode')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statuscode" tag='Connectionrole__StatusCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('description')">
<el-table-column show-overflow-tooltip :prop="'description'" :label="$t('entities.connectionrole.main_grid.columns.description')" :min-width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.connectionrole.main_grid.columns.description')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.description}}</span>
</template>
</el-table-column>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册