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

lab_qyk 部署微服务应用

上级 5689019a
[ [
{
"srfkey": "CodeListJobStatus",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "0",
"label": "ENABLED",
"text": "ENABLED",
"data":"",
"codename":"Item_0",
"color": "rgba(58, 116, 7, 1)",
"value": "0",
"disabled": false
}
, {
"id": "1",
"label": "DISABLED",
"text": "DISABLED",
"data":"",
"codename":"Item_1",
"color": "rgba(67, 65, 65, 1)",
"value": "1",
"disabled": false
}
] ]
}
]
\ No newline at end of file
{ {
"jobsinfogridview": {
"title": "任务信息表格视图",
"caption": "任务信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsInfoGridView",
"viewtag": "33e6e9dda70646c9fc4674606152894b"
},
"jobsinfoeditview": {
"title": "任务信息编辑视图",
"caption": "任务信息",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsInfoEditView",
"viewtag": "3b16681a0aca643f5830e15d768c1ab1"
},
"jobsregistryeditview": {
"title": "任务注册信息编辑视图",
"caption": "任务注册信息",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsRegistryEditView",
"viewtag": "433753123a4269a61a7a13d22cf567de"
},
"taskindexview": {
"title": "ibizlab-task",
"caption": "ibizlab-task",
"viewtype": "APPINDEXVIEW",
"viewmodule": "task",
"viewname": "TaskIndexView",
"viewtag": "49432823-363C-43AB-AA9A-8F0BB0445335"
},
"jobslogeditview": {
"title": "任务调度日志编辑视图",
"caption": "任务调度日志",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsLogEditView",
"viewtag": "8be420cc327846b003dc0a97dda81ceb"
},
"jobsregistrygridview": {
"title": "任务注册信息表格视图",
"caption": "任务注册信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsRegistryGridView",
"viewtag": "b10fda534ad827548d6902807e8dc8cf"
},
"jobsloggridview": {
"title": "任务调度日志表格视图",
"caption": "任务调度日志",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsLogGridView",
"viewtag": "d55df600239abf11fb0df2bded105b5d"
}
} }
...@@ -31,7 +31,7 @@ export default class Breadcrumb extends Vue { ...@@ -31,7 +31,7 @@ export default class Breadcrumb extends Vue {
* *
* @memberof Breadcrumb * @memberof Breadcrumb
*/ */
private navDataService = NavDataService.getInstance(); private navDataService = NavDataService.getInstance(this.$store);
/** /**
* 默认视图标识 * 默认视图标识
......
...@@ -50,6 +50,10 @@ export default { ...@@ -50,6 +50,10 @@ export default {
}, },
// 非实体视图 // 非实体视图
views: { views: {
taskindexview: {
caption: 'ibizlab-task',
title: 'ibizlab-task',
},
}, },
utilview:{ utilview:{
importview:"Import Data", importview:"Import Data",
...@@ -57,6 +61,11 @@ export default { ...@@ -57,6 +61,11 @@ export default {
info:"Please configure the data import item" info:"Please configure the data import item"
}, },
menus: { menus: {
taskindexview: {
menuitem1: '任务',
menuitem2: '任务调度日志',
menuitem3: '任务注册',
},
}, },
}, },
entities: { entities: {
......
...@@ -50,6 +50,10 @@ export default { ...@@ -50,6 +50,10 @@ export default {
}, },
// 非实体视图 // 非实体视图
views: { views: {
taskindexview: {
caption: 'ibizlab-task',
title: 'ibizlab-task',
},
}, },
utilview:{ utilview:{
importview:"导入数据", importview:"导入数据",
...@@ -57,6 +61,11 @@ export default { ...@@ -57,6 +61,11 @@ export default {
info:"请配置数据导入项" info:"请配置数据导入项"
}, },
menus: { menus: {
taskindexview: {
menuitem1: '任务',
menuitem2: '任务调度日志',
menuitem3: '任务注册',
},
}, },
}, },
entities: { entities: {
......
export default { export default {
CodeListJobStatus: {
'0': 'ENABLED',
'1': 'DISABLED',
empty: '',
},
}; };
\ No newline at end of file
export default { export default {
CodeListJobStatus: {
'0': 'ENABLED',
'1': 'DISABLED',
empty: '',
},
}; };
\ No newline at end of file
...@@ -17,4 +17,149 @@ export default { ...@@ -17,4 +17,149 @@ export default {
update_time: '更新时间', update_time: '更新时间',
create_time: '创建时间', create_time: '创建时间',
}, },
views: {
gridview: {
caption: "任务信息",
title: '任务信息表格视图',
},
editview: {
caption: "任务信息",
title: '任务信息编辑视图',
},
},
main_form: {
details: {
group1: "任务信息基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "执行器任务HANDLER",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
id: "主键ID",
app: "服务名",
handler: "执行器任务HANDLER",
cron: "任务执行CRON",
param: "执行器任务参数",
last_time: "上次调度时间",
next_time: "下次调度时间",
timeout: "任务执行超时时间(秒)",
fail_retry_count: "失败重试次数",
author: "所有者",
remark: "备注",
status: "状态",
tenant_id: "租户ID",
create_time: "创建时间",
update_time: "更新时间",
},
uiactions: {
},
},
main_grid: {
columns: {
id: "主键ID",
app: "服务名",
handler: "执行器任务HANDLER",
cron: "任务执行CRON",
last_time: "上次调度时间",
next_time: "下次调度时间",
status: "状态",
timeout: "任务执行超时时间(秒)",
update_time: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_app_like: "服务名(文本包含(%))",
n_handler_like: "执行器任务HANDLER(文本包含(%))",
n_status_eq: "状态(等于(=))",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
deuiaction1: {
caption: "启动",
tip: "启动",
},
deuiaction2: {
caption: "停止",
tip: "停止",
},
deuiaction3: {
caption: "执行",
tip: "执行",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem23: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem24: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem25: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem26: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
}; };
\ No newline at end of file
...@@ -16,4 +16,149 @@ export default { ...@@ -16,4 +16,149 @@ export default {
update_time: '更新时间', update_time: '更新时间',
create_time: '创建时间', create_time: '创建时间',
}, },
views: {
gridview: {
caption: '任务信息',
title: '任务信息表格视图',
},
editview: {
caption: '任务信息',
title: '任务信息编辑视图',
},
},
main_form: {
details: {
group1: '任务信息基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '执行器任务HANDLER',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
id: '主键ID',
app: '服务名',
handler: '执行器任务HANDLER',
cron: '任务执行CRON',
param: '执行器任务参数',
last_time: '上次调度时间',
next_time: '下次调度时间',
timeout: '任务执行超时时间(秒)',
fail_retry_count: '失败重试次数',
author: '所有者',
remark: '备注',
status: '状态',
tenant_id: '租户ID',
create_time: '创建时间',
update_time: '更新时间',
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
app: '服务名',
handler: '执行器任务HANDLER',
cron: '任务执行CRON',
last_time: '上次调度时间',
next_time: '下次调度时间',
status: '状态',
timeout: '任务执行超时时间(秒)',
update_time: '更新时间',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_app_like: '服务名(文本包含(%))',
n_handler_like: '执行器任务HANDLER(文本包含(%))',
n_status_eq: '状态(等于(=))',
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
deuiaction1: {
caption: '启动',
tip: '启动',
},
deuiaction2: {
caption: '停止',
tip: '停止',
},
deuiaction3: {
caption: '执行',
tip: '执行',
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
tbitem16: {
caption: '-',
tip: '',
},
tbitem23: {
caption: '第一个记录',
tip: '第一个记录',
},
tbitem24: {
caption: '上一个记录',
tip: '上一个记录',
},
tbitem25: {
caption: '下一个记录',
tip: '下一个记录',
},
tbitem26: {
caption: '最后一个记录',
tip: '最后一个记录',
},
tbitem21: {
caption: '-',
tip: '',
},
tbitem22: {
caption: '帮助',
tip: '帮助',
},
},
}; };
\ No newline at end of file
...@@ -9,7 +9,132 @@ export default { ...@@ -9,7 +9,132 @@ export default {
fail_retry_count: '失败重试次数', fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码', trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型', trigger_type: '触发器调度类型',
trigger_msg: '触发器调度类型', trigger_msg: '触发器调度信息',
create_time: '创建时间', create_time: '创建时间',
}, },
views: {
editview: {
caption: "任务调度日志",
title: '任务调度日志编辑视图',
},
gridview: {
caption: "任务调度日志",
title: '任务调度日志表格视图',
},
},
main_form: {
details: {
group1: "任务调度日志基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "执行器任务HANDLER",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
id: "主键ID",
job_id: "任务ID",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
fail_retry_count: "失败重试次数",
trigger_code: "触发器调度返回码",
trigger_type: "触发器调度类型",
trigger_msg: "触发器调度信息",
address: "执行地址",
create_time: "创建时间",
},
uiactions: {
},
},
main_grid: {
columns: {
id: "主键ID",
job_id: "任务ID",
handler: "执行器任务HANDLER",
address: "执行地址",
trigger_code: "触发器调度返回码",
trigger_type: "触发器调度类型",
fail_retry_count: "失败重试次数",
create_time: "创建时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_job_id_eq: "任务ID(等于(=))",
n_handler_like: "执行器任务HANDLER(文本包含(%))",
n_trigger_code_eq: "触发器调度返回码(等于(=))",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem23: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem24: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem25: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem26: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
}; };
\ No newline at end of file
...@@ -8,7 +8,132 @@ export default { ...@@ -8,7 +8,132 @@ export default {
fail_retry_count: '失败重试次数', fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码', trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型', trigger_type: '触发器调度类型',
trigger_msg: '触发器调度类型', trigger_msg: '触发器调度信息',
create_time: '创建时间', create_time: '创建时间',
}, },
views: {
editview: {
caption: '任务调度日志',
title: '任务调度日志编辑视图',
},
gridview: {
caption: '任务调度日志',
title: '任务调度日志表格视图',
},
},
main_form: {
details: {
group1: '任务调度日志基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '执行器任务HANDLER',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
id: '主键ID',
job_id: '任务ID',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
trigger_msg: '触发器调度信息',
address: '执行地址',
create_time: '创建时间',
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
job_id: '任务ID',
handler: '执行器任务HANDLER',
address: '执行地址',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
fail_retry_count: '失败重试次数',
create_time: '创建时间',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_job_id_eq: '任务ID(等于(=))',
n_handler_like: '执行器任务HANDLER(文本包含(%))',
n_trigger_code_eq: '触发器调度返回码(等于(=))',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
tbitem16: {
caption: '-',
tip: '',
},
tbitem23: {
caption: '第一个记录',
tip: '第一个记录',
},
tbitem24: {
caption: '上一个记录',
tip: '上一个记录',
},
tbitem25: {
caption: '下一个记录',
tip: '下一个记录',
},
tbitem26: {
caption: '最后一个记录',
tip: '最后一个记录',
},
tbitem21: {
caption: '-',
tip: '',
},
tbitem22: {
caption: '帮助',
tip: '帮助',
},
},
}; };
\ No newline at end of file
...@@ -7,4 +7,118 @@ export default { ...@@ -7,4 +7,118 @@ export default {
status: '状态', status: '状态',
update_time: '更新时间', update_time: '更新时间',
}, },
views: {
editview: {
caption: "任务注册信息",
title: '任务注册信息编辑视图',
},
gridview: {
caption: "任务注册信息",
title: '任务注册信息表格视图',
},
},
main_form: {
details: {
group1: "任务注册信息基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "服务名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
id: "主键ID",
app: "服务名",
address: "执行地址",
status: "状态",
},
uiactions: {
},
},
main_grid: {
columns: {
id: "主键ID",
app: "服务名",
address: "执行地址",
status: "状态",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_app_like: "服务名(文本包含(%))",
n_status_eq: "状态(等于(=))",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem23: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem24: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem25: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem26: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
}; };
\ No newline at end of file
...@@ -6,4 +6,118 @@ export default { ...@@ -6,4 +6,118 @@ export default {
status: '状态', status: '状态',
update_time: '更新时间', update_time: '更新时间',
}, },
views: {
editview: {
caption: '任务注册信息',
title: '任务注册信息编辑视图',
},
gridview: {
caption: '任务注册信息',
title: '任务注册信息表格视图',
},
},
main_form: {
details: {
group1: '任务注册信息基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '服务名',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
id: '主键ID',
app: '服务名',
address: '执行地址',
status: '状态',
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
app: '服务名',
address: '执行地址',
status: '状态',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_app_like: '服务名(文本包含(%))',
n_status_eq: '状态(等于(=))',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
tbitem16: {
caption: '-',
tip: '',
},
tbitem23: {
caption: '第一个记录',
tip: '第一个记录',
},
tbitem24: {
caption: '上一个记录',
tip: '上一个记录',
},
tbitem25: {
caption: '下一个记录',
tip: '下一个记录',
},
tbitem26: {
caption: '最后一个记录',
tip: '最后一个记录',
},
tbitem21: {
caption: '-',
tip: '',
},
tbitem22: {
caption: '帮助',
tip: '帮助',
},
},
}; };
\ No newline at end of file
import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();
import Mock from 'mockjs'
const Random = Mock.Random;
// 获取应用数据
mock.onGet('v7/task-index-viewappmenu').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, {
name: 'appmenu',
items: [
{
id: 'B1156652-77DE-48DA-8E60-86D3D70685BE',
name: 'menuitem1',
text: '任务',
type: 'MENUITEM',
counterid: '',
tooltip: '任务',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '_4',
resourcetag: '',
},
{
id: '0A22F1FE-2628-45EE-B1BD-EA50A4E87157',
name: 'menuitem2',
text: '任务调度日志',
type: 'MENUITEM',
counterid: '',
tooltip: '任务调度日志',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '_3',
resourcetag: '',
},
{
id: '535929B8-1901-4DD5-8402-6C4156AFBBC8',
name: 'menuitem3',
text: '任务注册',
type: 'MENUITEM',
counterid: '',
tooltip: '任务注册',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
],
}];
});
...@@ -7,6 +7,35 @@ import Mock from 'mockjs' ...@@ -7,6 +7,35 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
return [status, [ return [status, [
{
srfkey: 'CodeListJobStatus',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '0',
label: 'ENABLED',
text: 'ENABLED',
"data":"",
"codename":"Item_0",
"color": "rgba(58, 116, 7, 1)",
value: '0',
disabled: false,
},
{
id: '1',
label: 'DISABLED',
text: 'DISABLED',
"data":"",
"codename":"Item_1",
"color": "rgba(67, 65, 65, 1)",
value: '1',
disabled: false,
},
]
}
]]; ]];
}); });
...@@ -7,5 +7,61 @@ import Mock from 'mockjs' ...@@ -7,5 +7,61 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/view-config.json').reply((config: any) => { mock.onGet('./assets/json/view-config.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
return [status,{ return [status,{
"jobsinfogridview": {
"title": "任务信息表格视图",
"caption": "任务信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsInfoGridView",
"viewtag": "33e6e9dda70646c9fc4674606152894b"
},
"jobsinfoeditview": {
"title": "任务信息编辑视图",
"caption": "任务信息",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsInfoEditView",
"viewtag": "3b16681a0aca643f5830e15d768c1ab1"
},
"jobsregistryeditview": {
"title": "任务注册信息编辑视图",
"caption": "任务注册信息",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsRegistryEditView",
"viewtag": "433753123a4269a61a7a13d22cf567de"
},
"taskindexview": {
"title": "ibizlab-task",
"caption": "ibizlab-task",
"viewtype": "APPINDEXVIEW",
"viewmodule": "task",
"viewname": "TaskIndexView",
"viewtag": "49432823-363C-43AB-AA9A-8F0BB0445335"
},
"jobslogeditview": {
"title": "任务调度日志编辑视图",
"caption": "任务调度日志",
"viewtype": "DEEDITVIEW",
"viewmodule": "task",
"viewname": "JobsLogEditView",
"viewtag": "8be420cc327846b003dc0a97dda81ceb"
},
"jobsregistrygridview": {
"title": "任务注册信息表格视图",
"caption": "任务注册信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsRegistryGridView",
"viewtag": "b10fda534ad827548d6902807e8dc8cf"
},
"jobsloggridview": {
"title": "任务调度日志表格视图",
"caption": "任务调度日志",
"viewtype": "DEGRIDVIEW",
"viewmodule": "task",
"viewname": "JobsLogGridView",
"viewtag": "d55df600239abf11fb0df2bded105b5d"
}
}]; }];
}); });
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.jobs-info-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsInfoEditViewBase from './jobs-info-edit-view-base.vue';
import view_form from '@widgets/jobs-info/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsInfoEditView extends JobsInfoEditViewBase {
}
</script>
\ No newline at end of file
.jobs-info-grid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsInfoGridViewBase from './jobs-info-grid-view-base.vue';
import view_grid from '@widgets/jobs-info/main-grid/main-grid.vue';
import view_searchform from '@widgets/jobs-info/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsInfoGridView extends JobsInfoGridViewBase {
}
</script>
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.jobs-log-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsLogEditViewBase from './jobs-log-edit-view-base.vue';
import view_form from '@widgets/jobs-log/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsLogEditView extends JobsLogEditViewBase {
}
</script>
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsLogGridViewBase from './jobs-log-grid-view-base.vue';
import view_grid from '@widgets/jobs-log/main-grid/main-grid.vue';
import view_searchform from '@widgets/jobs-log/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsLogGridView extends JobsLogGridViewBase {
}
</script>
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.jobs-registry-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsRegistryEditViewBase from './jobs-registry-edit-view-base.vue';
import view_form from '@widgets/jobs-registry/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsRegistryEditView extends JobsRegistryEditViewBase {
}
</script>
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import JobsRegistryGridViewBase from './jobs-registry-grid-view-base.vue';
import view_grid from '@widgets/jobs-registry/main-grid/main-grid.vue';
import view_searchform from '@widgets/jobs-registry/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class JobsRegistryGridView extends JobsRegistryGridViewBase {
}
</script>
\ No newline at end of file
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import App from '@/App.vue';
import ElementUi from 'element-ui';
import ViewUI from 'view-design';
import ibizLab from 'ibiz-vue-lib';
import { Interceptors } from '@/utils';
import {Print} from '@/utils/print';
import i18n from '@/locale'
import 'element-ui/lib/theme-chalk/index.css';
import 'view-design/dist/styles/iview.css';
import 'ibiz-vue-lib/lib/ibiz-vue-lib.css';
import '@/styles/default.less';
// 模拟数据
if (process.env.NODE_ENV === 'development') {
require('@/mock');
}
const pathToRegExp = require('path-to-regexp');
import { AppComponents } from '@/app-register';
import { PageComponents } from './page-register';
import { UserComponent } from '@/user-register';
import { PortletComponent } from '@/portlet-register';
import store from '@/store';
import router from './router';
Vue.config.errorHandler = function (err: any, vm: any, info: any) {
console.log(err);
}
Vue.config.productionTip = false;
Vue.use(Print);
Vue.use(ibizLab);
Vue.use(Vuex);
Vue.use(VueRouter);;
Vue.use(ElementUi, {
i18n: (key: any, value: any) => i18n.t(key, value)
});
Vue.use(ViewUI, {
i18n: (key: any, value: any) => i18n.t(key, value)
});
// Vue.use(utils);
Vue.prototype.$pathToRegExp = pathToRegExp;
Vue.use(AppComponents);
Vue.use(PageComponents);
Vue.use(UserComponent);
Vue.use(PortletComponent);
router.beforeEach((to: any, from: any, next: any) => {
if (to.meta && !to.meta.ignoreAddPage) {
router.app.$store.commit('addPage', to);
}
next();
});
Interceptors.getInstance(router,store);
const init = async () => {
new Vue({
i18n,
store,
router,
render: (h: any) => h(App),
}).$mount('#app');
};
init();
\ No newline at end of file
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('jobs-log-grid-view', () => import('@pages/task/jobs-log-grid-view/jobs-log-grid-view.vue'));
Vue.component('jobs-registry-edit-view', () => import('@pages/task/jobs-registry-edit-view/jobs-registry-edit-view.vue'));
Vue.component('jobs-registry-grid-view', () => import('@pages/task/jobs-registry-grid-view/jobs-registry-grid-view.vue'));
Vue.component('jobs-log-edit-view', () => import('@pages/task/jobs-log-edit-view/jobs-log-edit-view.vue'));
Vue.component('jobs-info-edit-view', () => import('@pages/task/jobs-info-edit-view/jobs-info-edit-view.vue'));
Vue.component('jobs-info-grid-view', () => import('@pages/task/jobs-info-grid-view/jobs-info-grid-view.vue'));
}
};
\ No newline at end of file
import Vue from 'vue';
import Router from 'vue-router';
import { AuthGuard } from '@/utils';
import qs from 'qs';
import { globalRoutes, indexRoutes} from '@/router'
Vue.use(Router);
const router = new Router({
routes: [
{
path: '/taskindexview/:taskindexview?',
beforeEnter: (to: any, from: any, next: any) => {
const routerParamsName = 'taskindexview';
const params: any = {};
if (to.params && to.params[routerParamsName]) {
Object.assign(params, qs.parse(to.params[routerParamsName], { delimiter: ';' }));
}
const url: string = '/appdata';
const auth: Promise<any> = AuthGuard.getInstance().authGuard(url, params, router);
auth.then(() => {
next();
}).catch(() => {
next();
});
},
meta: {
caption: 'app.views.taskindexview.title',
info:'',
viewType: 'APPINDEX',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
],
requireAuth: true,
},
component: () => import('@pages/task/task-index-view/task-index-view.vue'),
children: [
{
path: 'jobslogs/:jobslog?/gridview/:gridview?',
meta: {
caption: 'entities.jobslog.views.gridview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobslogs', parameterName: 'jobslog' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-log-grid-view/jobs-log-grid-view.vue'),
},
{
path: 'jobsregistries/:jobsregistry?/editview/:editview?',
meta: {
caption: 'entities.jobsregistry.views.editview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobsregistries', parameterName: 'jobsregistry' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-registry-edit-view/jobs-registry-edit-view.vue'),
},
{
path: 'jobsregistries/:jobsregistry?/gridview/:gridview?',
meta: {
caption: 'entities.jobsregistry.views.gridview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobsregistries', parameterName: 'jobsregistry' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-registry-grid-view/jobs-registry-grid-view.vue'),
},
{
path: 'jobslogs/:jobslog?/editview/:editview?',
meta: {
caption: 'entities.jobslog.views.editview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobslogs', parameterName: 'jobslog' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-log-edit-view/jobs-log-edit-view.vue'),
},
{
path: 'jobsinfos/:jobsinfo?/editview/:editview?',
meta: {
caption: 'entities.jobsinfo.views.editview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-info-edit-view/jobs-info-edit-view.vue'),
},
{
path: 'jobsinfos/:jobsinfo?/gridview/:gridview?',
meta: {
caption: 'entities.jobsinfo.views.gridview.title',
info:'',
parameters: [
{ pathName: 'taskindexview', parameterName: 'taskindexview' },
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-info-grid-view/jobs-info-grid-view.vue'),
},
...indexRoutes,
],
},
{
path: '/jobsinfos/:jobsinfo?/gridview/:gridview?',
meta: {
caption: 'entities.jobsinfo.views.gridview.title',
info:'',
parameters: [
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-info-grid-view/jobs-info-grid-view.vue'),
},
{
path: '/jobsinfos/:jobsinfo?/editview/:editview?',
meta: {
caption: 'entities.jobsinfo.views.editview.title',
info:'',
parameters: [
{ pathName: 'jobsinfos', parameterName: 'jobsinfo' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-info-edit-view/jobs-info-edit-view.vue'),
},
{
path: '/jobsregistries/:jobsregistry?/editview/:editview?',
meta: {
caption: 'entities.jobsregistry.views.editview.title',
info:'',
parameters: [
{ pathName: 'jobsregistries', parameterName: 'jobsregistry' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-registry-edit-view/jobs-registry-edit-view.vue'),
},
{
path: '/jobslogs/:jobslog?/editview/:editview?',
meta: {
caption: 'entities.jobslog.views.editview.title',
info:'',
parameters: [
{ pathName: 'jobslogs', parameterName: 'jobslog' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-log-edit-view/jobs-log-edit-view.vue'),
},
{
path: '/jobsregistries/:jobsregistry?/gridview/:gridview?',
meta: {
caption: 'entities.jobsregistry.views.gridview.title',
info:'',
parameters: [
{ pathName: 'jobsregistries', parameterName: 'jobsregistry' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-registry-grid-view/jobs-registry-grid-view.vue'),
},
{
path: '/jobslogs/:jobslog?/gridview/:gridview?',
meta: {
caption: 'entities.jobslog.views.gridview.title',
info:'',
parameters: [
{ pathName: 'jobslogs', parameterName: 'jobslog' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/task/jobs-log-grid-view/jobs-log-grid-view.vue'),
},
...globalRoutes,
{
path: '/login/:login?',
name: 'login',
meta: {
caption: '登录',
viewType: 'login',
requireAuth: false,
ignoreAddPage: true,
},
beforeEnter: (to: any, from: any, next: any) => {
router.app.$store.commit('resetRootStateData');
next();
},
component: () => import('@components/login/login.vue'),
},
{
path: '/404',
component: () => import('@components/404/404.vue')
},
{
path: '/500',
component: () => import('@components/500/500.vue')
},
{
path: '*',
redirect: 'taskindexview'
},
],
});
export default router;
...@@ -31,7 +31,7 @@ export default class JobsInfoServiceBase extends EntityService { ...@@ -31,7 +31,7 @@ export default class JobsInfoServiceBase extends EntityService {
this.APPLYDEKEY ='jobsinfo'; this.APPLYDEKEY ='jobsinfo';
this.APPDEKEY = 'id'; this.APPDEKEY = 'id';
this.APPDENAME = 'jobsinfos'; this.APPDENAME = 'jobsinfos';
this.APPDETEXT = 'app'; this.APPDETEXT = 'handler';
this.APPNAME = 'web'; this.APPNAME = 'web';
this.SYSTEMNAME = 'ibztask'; this.SYSTEMNAME = 'ibztask';
} }
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册