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

ibiz4j 发布系统代码

上级 eff85059
......@@ -9,50 +9,50 @@ import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
export default {
app: {
commonWords:{
error: 'Error',
success: 'Success',
ok: 'OK',
cancel: 'Cancel',
error: "Error",
success: "Success",
ok: "OK",
cancel: "Cancel",
},
local:{
new: 'New'
new: "New"
},
gridpage: {
choicecolumns: 'Choice columns',
refresh: 'refresh',
show: 'Show',
records: 'records',
totle: 'totle',
choicecolumns: "Choice columns",
refresh: "refresh",
show: "Show",
records: "records",
totle: "totle",
},
tabpage: {
sureclosetip: {
title: 'Close warning',
content: 'Form data Changed, are sure close?',
title: "Close warning",
content: "Form data Changed, are sure close?",
},
closeall: 'Close all',
closeother: 'Close other',
closeall: "Close all",
closeother: "Close other",
},
fileUpload: {
caption: 'Upload',
caption: "Upload",
},
searchButton: {
search: 'Search',
reset: 'Reset',
search: "Search",
reset: "Reset",
},
calendar:{
today: 'today',
month: 'month',
week: 'week',
day: 'day',
list: 'list',
dateSelectModalTitle: 'select the time you wanted',
gotoDate: 'goto',
today: "today",
month: "month",
week: "week",
day: "day",
list: "list",
dateSelectModalTitle: "select the time you wanted",
gotoDate: "goto",
},
// 非实体视图
views: {
taskindexview: {
caption: 'ibizlab-task',
title: 'ibizlab-task',
caption: "ibizlab-task",
title: "ibizlab-task",
},
},
utilview:{
......@@ -62,9 +62,9 @@ export default {
},
menus: {
taskindexview: {
menuitem3: '注册',
menuitem1: '任务',
menuitem2: '日志',
menuitem3: "注册",
menuitem1: "任务",
menuitem2: "日志",
},
},
},
......
......@@ -9,50 +9,50 @@ import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
export default {
app: {
commonWords:{
error: '失败',
success: '成功',
ok: '确认',
cancel: '取消',
error: "失败",
success: "成功",
ok: "确认",
cancel: "取消",
},
local:{
new: '新建'
new: "新建"
},
gridpage: {
choicecolumns: '选择列',
refresh: '刷新',
show: '显示',
records: '条',
totle: '共',
choicecolumns: "选择列",
refresh: "刷新",
show: "显示",
records: "条",
totle: "共",
},
tabpage: {
sureclosetip: {
title: '关闭提醒',
content: '表单数据已经修改,确定要关闭?',
title: "关闭提醒",
content: "表单数据已经修改,确定要关闭?",
},
closeall: '关闭所有',
closeother: '关闭其他',
closeall: "关闭所有",
closeother: "关闭其他",
},
fileUpload: {
caption: '上传',
caption: "上传",
},
searchButton: {
search: '搜索',
reset: '重置',
search: "搜索",
reset: "重置",
},
calendar:{
today: '今天',
month: '月',
week: '周',
day: '天',
list: '列',
dateSelectModalTitle: '选择要跳转的时间',
gotoDate: '跳转',
today: "今天",
month: "月",
week: "周",
day: "天",
list: "列",
dateSelectModalTitle: "选择要跳转的时间",
gotoDate: "跳转",
},
// 非实体视图
views: {
taskindexview: {
caption: 'ibizlab-task',
title: 'ibizlab-task',
caption: "ibizlab-task",
title: "ibizlab-task",
},
},
utilview:{
......@@ -62,9 +62,9 @@ export default {
},
menus: {
taskindexview: {
menuitem3: '注册',
menuitem1: '任务',
menuitem2: '日志',
menuitem3: "注册",
menuitem1: "任务",
menuitem2: "日志",
},
},
},
......
export default {
CodeListJobStatus: {
'0': 'ENABLED',
'1': 'DISABLED',
empty: '',
"0": "ENABLED",
"1": "DISABLED",
"empty": ""
},
};
\ No newline at end of file
export default {
CodeListJobStatus: {
'0': 'ENABLED',
'1': 'DISABLED',
empty: '',
"0": "ENABLED",
"1": "DISABLED",
"empty": "",
},
};
\ No newline at end of file
export default {
fields: {
id: '主键ID',
tenant_id: '租户ID',
app: '服务名',
cron: '任务执行CRON',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
timeout: '任务执行超时时间(秒)',
fail_retry_count: '失败重试次数',
last_time: '上次调度时间',
next_time: '下次调度时间',
author: '所有者',
remark: '备注',
status: '状态',
update_time: '更新时间',
create_time: '创建时间',
id: "主键ID",
tenant_id: "租户ID",
app: "服务名",
cron: "任务执行CRON",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
timeout: "任务执行超时时间(秒)",
fail_retry_count: "失败重试次数",
last_time: "上次调度时间",
next_time: "下次调度时间",
author: "所有者",
remark: "备注",
status: "状态",
update_time: "更新时间",
create_time: "创建时间",
},
views: {
gridview: {
caption: "任务信息",
title: '任务信息表格视图',
title: "任务信息表格视图",
},
editview: {
caption: "任务信息",
title: '任务信息编辑视图',
title: "任务信息编辑视图",
},
},
main_form: {
......
export default {
fields: {
id: '主键ID',
tenant_id: '租户ID',
app: '服务名',
cron: '任务执行CRON',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
timeout: '任务执行超时时间(秒)',
fail_retry_count: '失败重试次数',
last_time: '上次调度时间',
next_time: '下次调度时间',
author: '所有者',
remark: '备注',
status: '状态',
update_time: '更新时间',
create_time: '创建时间',
id: "主键ID",
tenant_id: "租户ID",
app: "服务名",
cron: "任务执行CRON",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
timeout: "任务执行超时时间(秒)",
fail_retry_count: "失败重试次数",
last_time: "上次调度时间",
next_time: "下次调度时间",
author: "所有者",
remark: "备注",
status: "状态",
update_time: "更新时间",
create_time: "创建时间",
},
views: {
gridview: {
caption: '任务信息',
title: '任务信息表格视图',
caption: "任务信息",
title: "任务信息表格视图",
},
editview: {
caption: '任务信息',
title: '任务信息编辑视图',
caption: "任务信息",
title: "任务信息编辑视图",
},
},
main_form: {
details: {
group1: '任务信息基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '执行器任务HANDLER',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
app: '服务名',
handler: '执行器任务HANDLER',
cron: '任务执行CRON',
param: '执行器任务参数',
last_time: '上次调度时间',
next_time: '下次调度时间',
timeout: '任务执行超时时间(秒)',
fail_retry_count: '失败重试次数',
author: '所有者',
remark: '备注',
status: '状态',
tenant_id: '租户ID',
create_time: '创建时间',
update_time: '更新时间',
id: '主键ID',
group1: "任务信息基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "执行器任务HANDLER",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
app: "服务名",
handler: "执行器任务HANDLER",
cron: "任务执行CRON",
param: "执行器任务参数",
last_time: "上次调度时间",
next_time: "下次调度时间",
timeout: "任务执行超时时间(秒)",
fail_retry_count: "失败重试次数",
author: "所有者",
remark: "备注",
status: "状态",
tenant_id: "租户ID",
create_time: "创建时间",
update_time: "更新时间",
id: "主键ID",
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
app: '服务名',
handler: '执行器任务HANDLER',
cron: '任务执行CRON',
last_time: '上次调度时间',
next_time: '下次调度时间',
status: '状态',
timeout: '任务执行超时时间(秒)',
update_time: '更新时间',
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: '状态(等于(=))',
formpage1: "常规条件",
n_app_like: "服务名(文本包含(%))",
n_handler_like: "执行器任务HANDLER(文本包含(%))",
n_status_eq: "状态(等于(=))",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
deuiaction1: {
caption: '启动',
tip: '启动',
caption: "启动",
tip: "启动",
},
deuiaction2: {
caption: '停止',
tip: '停止',
caption: "停止",
tip: "停止",
},
deuiaction3: {
caption: '执行',
tip: '执行',
caption: "执行",
tip: "执行",
},
deuiaction4: {
caption: '新建',
tip: '新建',
caption: "新建",
tip: "新建",
},
deuiaction5: {
caption: '编辑',
tip: '编辑',
caption: "编辑",
tip: "编辑",
},
deuiaction6: {
caption: '删除',
tip: '删除',
caption: "删除",
tip: "删除",
},
deuiaction7: {
caption: '过滤',
tip: '过滤',
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
caption: "保存",
tip: "保存",
},
deuiaction1: {
caption: '关闭',
tip: '关闭',
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
export default {
fields: {
id: '主键ID',
name: '名称',
owner: '持有者',
create_time: '创建时间',
id: "主键ID",
name: "名称",
owner: "持有者",
create_time: "创建时间",
},
};
\ No newline at end of file
export default {
fields: {
id: '主键ID',
name: '名称',
owner: '持有者',
create_time: '创建时间',
id: "主键ID",
name: "名称",
owner: "持有者",
create_time: "创建时间",
},
};
\ No newline at end of file
export default {
fields: {
id: '主键ID',
job_id: '任务ID',
address: '执行地址',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
trigger_msg: '触发器调度信息',
create_time: '创建时间',
id: "主键ID",
job_id: "任务ID",
address: "执行地址",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
fail_retry_count: "失败重试次数",
trigger_code: "触发器调度返回码",
trigger_type: "触发器调度类型",
trigger_msg: "触发器调度信息",
create_time: "创建时间",
},
views: {
editview: {
caption: "任务调度日志",
title: '任务调度日志编辑视图',
title: "任务调度日志编辑视图",
},
gridview: {
caption: "任务调度日志",
title: '任务调度日志表格视图',
title: "任务调度日志表格视图",
},
},
main_form: {
......
export default {
fields: {
id: '主键ID',
job_id: '任务ID',
address: '执行地址',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
trigger_msg: '触发器调度信息',
create_time: '创建时间',
id: "主键ID",
job_id: "任务ID",
address: "执行地址",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
fail_retry_count: "失败重试次数",
trigger_code: "触发器调度返回码",
trigger_type: "触发器调度类型",
trigger_msg: "触发器调度信息",
create_time: "创建时间",
},
views: {
editview: {
caption: '任务调度日志',
title: '任务调度日志编辑视图',
caption: "任务调度日志",
title: "任务调度日志编辑视图",
},
gridview: {
caption: '任务调度日志',
title: '任务调度日志表格视图',
caption: "任务调度日志",
title: "任务调度日志表格视图",
},
},
main_form: {
details: {
group1: '任务调度日志基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '执行器任务HANDLER',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
job_id: '任务ID',
handler: '执行器任务HANDLER',
param: '执行器任务参数',
fail_retry_count: '失败重试次数',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
trigger_msg: '触发器调度信息',
address: '执行地址',
create_time: '创建时间',
id: '主键ID',
group1: "任务调度日志基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "执行器任务HANDLER",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
job_id: "任务ID",
handler: "执行器任务HANDLER",
param: "执行器任务参数",
fail_retry_count: "失败重试次数",
trigger_code: "触发器调度返回码",
trigger_type: "触发器调度类型",
trigger_msg: "触发器调度信息",
address: "执行地址",
create_time: "创建时间",
id: "主键ID",
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
job_id: '任务ID',
handler: '执行器任务HANDLER',
address: '执行地址',
trigger_code: '触发器调度返回码',
trigger_type: '触发器调度类型',
fail_retry_count: '失败重试次数',
create_time: '创建时间',
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: '触发器调度返回码(等于(=))',
formpage1: "常规条件",
n_job_id_eq: "任务ID(等于(=))",
n_handler_like: "执行器任务HANDLER(文本包含(%))",
n_trigger_code_eq: "触发器调度返回码(等于(=))",
},
uiactions: {
},
......
export default {
fields: {
id: '主键ID',
app: '服务名',
address: '执行地址',
status: '状态',
update_time: '更新时间',
id: "主键ID",
app: "服务名",
address: "执行地址",
status: "状态",
update_time: "更新时间",
},
views: {
editview: {
caption: "任务注册信息",
title: '任务注册信息编辑视图',
title: "任务注册信息编辑视图",
},
gridview: {
caption: "任务注册信息",
title: '任务注册信息表格视图',
title: "任务注册信息表格视图",
},
},
main_form: {
......
export default {
fields: {
id: '主键ID',
app: '服务名',
address: '执行地址',
status: '状态',
update_time: '更新时间',
id: "主键ID",
app: "服务名",
address: "执行地址",
status: "状态",
update_time: "更新时间",
},
views: {
editview: {
caption: '任务注册信息',
title: '任务注册信息编辑视图',
caption: "任务注册信息",
title: "任务注册信息编辑视图",
},
gridview: {
caption: '任务注册信息',
title: '任务注册信息表格视图',
caption: "任务注册信息",
title: "任务注册信息表格视图",
},
},
main_form: {
details: {
group1: '任务注册信息基本信息',
formpage1: '基本信息',
srforikey: '',
srfkey: '主键ID',
srfmajortext: '服务名',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
app: '服务名',
address: '执行地址',
status: '状态',
id: '主键ID',
group1: "任务注册信息基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "主键ID",
srfmajortext: "服务名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
app: "服务名",
address: "执行地址",
status: "状态",
id: "主键ID",
},
uiactions: {
},
},
main_grid: {
columns: {
id: '主键ID',
app: '服务名',
address: '执行地址',
status: '状态',
id: "主键ID",
app: "服务名",
address: "执行地址",
status: "状态",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
n_app_like: '服务名(文本包含(%))',
n_status_eq: '状态(等于(=))',
formpage1: "常规条件",
n_app_like: "服务名(文本包含(%))",
n_status_eq: "状态(等于(=))",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
caption: "保存",
tip: "保存",
},
deuiaction1: {
caption: '关闭',
tip: '关闭',
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: '编辑',
tip: '编辑',
caption: "编辑",
tip: "编辑",
},
tbitem8: {
caption: '删除',
tip: '删除',
caption: "删除",
tip: "删除",
},
deuiaction1: {
caption: '过滤',
tip: '过滤',
caption: "过滤",
tip: "过滤",
},
},
};
\ No newline at end of file
......@@ -8,14 +8,14 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status, [
{
srfkey: 'CodeListJobStatus',
emptytext: '未定义',
srfkey: "CodeListJobStatus",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: '0',
label: 'ENABLED',
text: 'ENABLED',
id: "0",
label: "ENABLED",
text: "ENABLED",
"data":"",
"codename":"Item_0",
"color": "rgba(58, 116, 7, 1)",
......@@ -24,9 +24,9 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
disabled: false,
},
{
id: '1',
label: 'DISABLED',
text: 'DISABLED',
id: "1",
label: "DISABLED",
text: "DISABLED",
"data":"",
"codename":"Item_1",
"color": "rgba(67, 65, 65, 1)",
......
......@@ -141,7 +141,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() public name?: string;
......@@ -149,7 +149,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -157,7 +157,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() public context: any;
......@@ -165,7 +165,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() public viewparams: any;
......@@ -174,7 +174,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -182,7 +182,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public getControlType(): string {
return 'APPMENU'
......@@ -194,7 +194,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {TaskIndexViewService}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public service: TaskIndexViewService = new TaskIndexViewService({ $store: this.$store });
......@@ -204,7 +204,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -214,7 +214,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -232,7 +232,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public getDatas(): any[] {
return [];
......@@ -242,7 +242,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public getData(): any {
return null;
......@@ -252,7 +252,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 导航模式(route:面包屑模式、tab:分页导航模式)
*
* @type {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop({default:'tab'}) public navModel?:string;
......@@ -260,7 +260,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 视图标识
*
* @type {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() public viewtag!:string;
......@@ -269,7 +269,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @type {TaskIndexViewModel}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public menuMode: TaskIndexViewModel = new TaskIndexViewModel();
......@@ -277,7 +277,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -286,7 +286,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @type {any[]}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Provide()
public menus: any[] = [];
......@@ -295,7 +295,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 菜单收缩改变
*
* @type {boolean}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Model() public collapsechange?: boolean;
......@@ -304,7 +304,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Watch('collapsechange')
onCollapsechangeChange(newVal: any, oldVal: any) {
......@@ -317,7 +317,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 当前模式,菜单在顶部还是在底部
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() mode: any;
......@@ -325,7 +325,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 当前菜单是否在默认视图上
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop({ default: false }) isDefaultPage?: boolean;
......@@ -333,7 +333,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 默认打开视图
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() defPSAppView: any;
......@@ -341,7 +341,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 默认激活的index
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Provide() defaultActive: any = null;
......@@ -349,7 +349,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 当前选中主题
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Prop() selectTheme: any;
......@@ -357,7 +357,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 默认打开的index数组
*
* @type {any[]}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Provide() public defaultOpeneds: any[] = [];
......@@ -365,7 +365,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 是否展开
*
* @type {boolean}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Provide() public isCollapse: boolean = false;
......@@ -373,7 +373,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 触发方式,默认click
*
* @type {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
@Provide() trigger: string = 'click';
......@@ -381,13 +381,13 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 计数器数据
*
* @type {*}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public counterdata: any = {};
/**
* vue 生命周期
*
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public created() {
this.afterCreated();
......@@ -396,7 +396,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public afterCreated(){
if (Object.is(this.mode, 'horizontal')) {
......@@ -415,7 +415,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public destroyed() {
this.afterDestroy();
......@@ -424,7 +424,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -437,7 +437,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 处理菜单默认选中项
*
* @public
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public doMenuSelect(): void {
if (!this.isDefaultPage) {
......@@ -479,7 +479,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* @param {any[]} items
* @param {string} appfunctag
* @returns {boolean}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public computeMenuSelect(items: any[], appfunctag: string): boolean {
const appFuncs: any[] = this.menuMode.getAppFuncs();
......@@ -515,7 +515,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* @param {any[]} items
* @param {string} name
* @returns
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public compute(items: any[], name: string) {
const item: any = {};
......@@ -542,7 +542,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @param {*} item
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public setHideSideBar(item: any): void {
if (item.hidesidebar) {
......@@ -556,7 +556,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* @param {*} index
* @param {any[]} indexs
* @returns
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public select(index: any, indexs: any[]) {
let item = this.compute(this.menus, index);
......@@ -571,7 +571,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @param {*} item 菜单数据
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public click(item: any) {
if (item) {
......@@ -671,7 +671,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 数据加载
*
* @param {*} data
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public load(data: any) {
this.handleMenusResource(this.menuMode.getAppMenuItems());
......@@ -681,7 +681,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 通过统一资源标识计算菜单
*
* @param {*} data
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public handleMenusResource(inputMenus:Array<any>){
if(Environment.enablePermissionValid){
......@@ -696,7 +696,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
* 计算有效菜单项
*
* @param {*} data
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public computedEffectiveMenus(inputMenus:Array<any>){
inputMenus.forEach((_item:any) =>{
......@@ -714,7 +714,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @public
* @param {any[]} items
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
public dataProcess(items: any[]): void {
items.forEach((_item: any) => {
......@@ -732,7 +732,7 @@ export default class TaskIndexViewBase extends Vue implements ControlInterface {
*
* @readonly
* @type {string}
* @memberof TaskIndexView
* @memberof TaskIndexViewBase
*/
get popperClass(): string {
return 'app-popper-menu ' + this.selectTheme;
......
......@@ -69,7 +69,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public name?: string;
......@@ -77,7 +77,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -85,7 +85,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public context: any;
......@@ -93,7 +93,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewparams: any;
......@@ -102,7 +102,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Default
* @memberof DefaultBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -110,7 +110,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Default
* @memberof DefaultBase
*/
public getControlType(): string {
return 'SEARCHFORM'
......@@ -122,7 +122,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Default
* @memberof DefaultBase
*/
public counterServiceArray:Array<any> = [];
......@@ -130,7 +130,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof Default
* @memberof DefaultBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
......@@ -138,7 +138,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsInfoService}
* @memberof Default
* @memberof DefaultBase
*/
public appEntityService: JobsInfoService = new JobsInfoService({ $store: this.$store });
......@@ -148,7 +148,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Default
* @memberof DefaultBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -158,7 +158,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Default
* @memberof DefaultBase
*/
public counterRefresh(){
const _this:any =this;
......
......@@ -140,7 +140,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -148,7 +148,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -156,7 +156,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -164,7 +164,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -173,7 +173,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -181,7 +181,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'FORM'
......@@ -193,7 +193,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -201,7 +201,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -209,7 +209,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsInfoService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsInfoService = new JobsInfoService({ $store: this.$store });
......@@ -219,7 +219,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -229,7 +229,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -246,7 +246,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 工作流审批意见控件绑定值
*
* @memberof Main
* @memberof MainBase
*/
public srfwfmemo:string = "";
......@@ -254,7 +254,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return [this.data];
......@@ -264,7 +264,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.data;
......@@ -274,7 +274,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认保存
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public autosave?: boolean;
......@@ -282,7 +282,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -290,7 +290,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--submit
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFSubmitAction!: string;
......@@ -298,7 +298,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--start
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFStartAction!: string;
......@@ -306,7 +306,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -314,7 +314,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -322,7 +322,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -330,7 +330,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -338,7 +338,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -346,7 +346,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public searchAction!: string;
......@@ -354,7 +354,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图标识
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewtag!: string;
......@@ -362,7 +362,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单状态
*
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public formState: Subject<any> = new Subject();
......@@ -370,7 +370,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 忽略表单项值变化
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public ignorefieldvaluechange: boolean = false;
......@@ -379,7 +379,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public dataChang: Subject<any> = new Subject();
......@@ -388,7 +388,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public dataChangEvent: Subscription | undefined;
......@@ -397,7 +397,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public oldData: any = {};
......@@ -405,7 +405,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单数据对象
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public data: any = {
srforikey: null,
......@@ -437,7 +437,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前执行的行为逻辑
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public currentAction: string = "";
......@@ -445,7 +445,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面计数器
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drcounter: number = 0;
......@@ -453,7 +453,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 需要等待关系界面保存时,第一次调用save参数的备份
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drsaveopt: any = {};
......@@ -461,7 +461,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单保存回调存储对象
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
public saveState:any ;
......@@ -469,7 +469,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srforikey: [
......@@ -610,7 +610,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 详情模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '任务信息基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.jobsinfo.main_form', extractMode: 'ITEM', details: [] } })
......@@ -668,7 +668,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srforikey')
onSrforikeyChange(newVal: any, oldVal: any) {
......@@ -680,7 +680,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfkey')
onSrfkeyChange(newVal: any, oldVal: any) {
......@@ -692,7 +692,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfmajortext')
onSrfmajortextChange(newVal: any, oldVal: any) {
......@@ -704,7 +704,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srftempmode')
onSrftempmodeChange(newVal: any, oldVal: any) {
......@@ -716,7 +716,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfuf')
onSrfufChange(newVal: any, oldVal: any) {
......@@ -728,7 +728,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfdeid')
onSrfdeidChange(newVal: any, oldVal: any) {
......@@ -740,7 +740,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfsourcekey')
onSrfsourcekeyChange(newVal: any, oldVal: any) {
......@@ -752,7 +752,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.app')
onAppChange(newVal: any, oldVal: any) {
......@@ -764,7 +764,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.handler')
onHandlerChange(newVal: any, oldVal: any) {
......@@ -776,7 +776,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.cron')
onCronChange(newVal: any, oldVal: any) {
......@@ -788,7 +788,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.param')
onParamChange(newVal: any, oldVal: any) {
......@@ -800,7 +800,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.last_time')
onLast_timeChange(newVal: any, oldVal: any) {
......@@ -812,7 +812,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.next_time')
onNext_timeChange(newVal: any, oldVal: any) {
......@@ -824,7 +824,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.timeout')
onTimeoutChange(newVal: any, oldVal: any) {
......@@ -836,7 +836,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.fail_retry_count')
onFail_retry_countChange(newVal: any, oldVal: any) {
......@@ -848,7 +848,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.author')
onAuthorChange(newVal: any, oldVal: any) {
......@@ -860,7 +860,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.remark')
onRemarkChange(newVal: any, oldVal: any) {
......@@ -872,7 +872,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.status')
onStatusChange(newVal: any, oldVal: any) {
......@@ -884,7 +884,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.tenant_id')
onTenant_idChange(newVal: any, oldVal: any) {
......@@ -896,7 +896,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.create_time')
onCreate_timeChange(newVal: any, oldVal: any) {
......@@ -908,7 +908,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.update_time')
onUpdate_timeChange(newVal: any, oldVal: any) {
......@@ -920,7 +920,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.id')
onIdChange(newVal: any, oldVal: any) {
......@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
}
......@@ -942,7 +942,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 置空对象
*
* @param {any[]} args
* @memberof EditForm
* @memberof MainBase
*/
public ResetData(_datas:any){
if(Object.keys(_datas).length >0){
......@@ -959,7 +959,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
......@@ -995,7 +995,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) {
......@@ -1012,7 +1012,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {*} [data={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public onFormLoad(data: any = {},action:string): void {
if(Object.is(action,"save") || Object.is(action,"autoSave") || Object.is(action,"submit"))
......@@ -1033,7 +1033,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [_datas={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public fillForm(_datas: any = {},action:string): void {
this.ignorefieldvaluechange = true;
......@@ -1058,7 +1058,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -1074,7 +1074,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 重置草稿表单状态
*
* @public
* @memberof Main
* @memberof MainBase
*/
public resetDraftFormStates(): void {
const form: any = this.$refs.form;
......@@ -1086,7 +1086,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 重置校验结果
*
* @memberof Main
* @memberof MainBase
*/
public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -1102,7 +1102,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 填充校验结果 (后台)
*
* @param {any[]} fieldErrors
* @memberof Main
* @memberof MainBase
*/
public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => {
......@@ -1120,7 +1120,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单校验状态
*
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.form;
......@@ -1135,7 +1135,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取全部值
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getValues(): any {
return this.data;
......@@ -1146,7 +1146,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) {
......@@ -1164,7 +1164,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string} name
* @param {*} value
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
......@@ -1182,7 +1182,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分组界面行为事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public groupUIActionClick($event: any): void {
if (!$event) {
......@@ -1194,7 +1194,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -1203,7 +1203,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
if (this.viewState) {
......@@ -1260,7 +1260,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -1269,7 +1269,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -1284,7 +1284,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 拷贝内容
*
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof MainBase
*/
public copy(srfkey: string): void {
let copyData = this.$store.getters.getCopyData(srfkey);
......@@ -1302,7 +1302,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
*打印
*@memberof @memberof Main
*@memberof @memberof MainBase
*/
public print(){
let _this:any = this;
......@@ -1313,7 +1313,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
let arg: any = {};
......@@ -1335,7 +1335,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [arg={}]
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) {
......@@ -1356,7 +1356,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}): void {
if(!this.loadAction){
......@@ -1391,7 +1391,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 加载草稿
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
......@@ -1445,7 +1445,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 自动保存
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) {
......@@ -1496,7 +1496,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1566,7 +1566,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof EditForm
* @memberof MainBase
*/
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1600,7 +1600,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1656,7 +1656,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1732,7 +1732,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1777,7 +1777,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 回车事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public onEnter($event: any): void {
}
......@@ -1786,7 +1786,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1811,7 +1811,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并新建
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndNew(data:any[]):Promise<any>{
let _this = this;
......@@ -1834,7 +1834,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 删除并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public removeAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1858,7 +1858,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面数据保存完成
*
* @param {any} $event
* @memberof Main
* @memberof MainBase
*/
public drdatasaved($event:any){
let _this = this;
......@@ -1881,14 +1881,14 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 新建默认值
* @memberof Main
* @memberof MainBase
*/
public createDefault(){
}
/**
* 更新默认值
* @memberof Main
* @memberof MainBase
*/
public updateDefault(){
}
......
......@@ -195,7 +195,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -203,7 +203,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -211,7 +211,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -219,7 +219,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -228,7 +228,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -236,7 +236,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'GRID'
......@@ -248,7 +248,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -256,7 +256,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -264,7 +264,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsInfoService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsInfoService = new JobsInfoService({ $store: this.$store });
......@@ -274,7 +274,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -284,7 +284,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -302,7 +302,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 代码表服务对象
*
* @type {CodeListService}
* @memberof Main
* @memberof MainBase
*/
public codeListService:CodeListService = new CodeListService({ $store: this.$store });
......@@ -310,7 +310,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return this.selections;
......@@ -320,7 +320,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.selections[0];
......@@ -330,14 +330,14 @@ export default class MainBase extends Vue implements ControlInterface {
* 打开新建数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public opendata: any;
......@@ -345,7 +345,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -353,7 +353,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -361,7 +361,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--fetch
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public fetchAction!: string;
......@@ -369,7 +369,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -377,7 +377,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -385,7 +385,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -393,7 +393,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -401,7 +401,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前页
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public curPage: number = 1;
......@@ -409,7 +409,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public items: any[] = [];
......@@ -417,7 +417,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否支持分页
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isEnablePagingBar: boolean = true;
......@@ -425,7 +425,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否禁用排序
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isNoSort: boolean = false;
......@@ -433,7 +433,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序方向
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortDir: string = '';
......@@ -441,7 +441,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序字段
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortPSDEF: string = '';
......@@ -449,7 +449,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分页条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public limit: number = 20;
......@@ -457,7 +457,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否显示标题
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isHideHeader: boolean = false;
......@@ -465,7 +465,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
......@@ -473,7 +473,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否单选
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop() public isSingleSelect?: boolean;
......@@ -481,7 +481,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 选中数据字符串
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public selectedData?: string;
......@@ -490,7 +490,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainTree
* @memberof MainBase
*/
@Watch('selectedData')
public onValueChange(newVal: any, oldVal: any) {
......@@ -518,7 +518,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: 2}) public gridRowActiveMode!: number;
......@@ -526,7 +526,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: false}) public isOpenEdit!: boolean;
......@@ -534,7 +534,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实际是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public actualIsOpenEdit: boolean = this.isOpenEdit;
......@@ -542,7 +542,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 总条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public totalrow: number = 0;
......@@ -569,7 +569,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格是否显示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isDisplay:boolean = true;
......@@ -577,7 +577,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
this.load();
......@@ -603,7 +603,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 所有列成员
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public allColumns: any[] = [
{
......@@ -675,7 +675,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public gridItemsModel: any[] = [];
......@@ -683,7 +683,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取表格行模型
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public getGridRowModel(){
return {
......@@ -695,7 +695,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srfkey: [
......@@ -712,7 +712,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {number} rowIndex 行索引
* @returns Promise<any>
*
* @memberof Main
* @memberof MainBase
*/
public validate(property:string, data:any, rowIndex:number):Promise<any>{
return new Promise((resolve, reject) => {
......@@ -730,7 +730,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 校验所有修改过的编辑项
*
* @returns Promise<any>
* @memberof Main
* @memberof MainBase
*/
public async validateAll(){
let validateState = true;
......@@ -752,7 +752,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格数据加载
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
......@@ -829,7 +829,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {any[]} datas
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
......@@ -935,7 +935,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 批量添加
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
......@@ -952,7 +952,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导入
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public importExcel(data:any ={}):void{
//导入excel
......@@ -981,7 +981,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导出
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public exportExcel(data: any = {}): void {
// 导出Excel
......@@ -1052,7 +1052,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} filterVal
* @param {*} jsonData
* @returns {[]}
* @memberof Main
* @memberof MainBase
*/
public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [
......@@ -1092,7 +1092,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items 代码表数据
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){
......@@ -1145,7 +1145,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getItem(items: any[], value: any, codelist: any): any {
const arr: Array<any> = items.filter(item => {return item.value == value});
......@@ -1162,7 +1162,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -1171,7 +1171,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
this.setColState();
......@@ -1196,7 +1196,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -1205,7 +1205,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -1217,7 +1217,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取选中行胡数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getSelection(): any[] {
return this.selections;
......@@ -1228,7 +1228,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowDBLClick($event: any): void {
if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) {
......@@ -1252,7 +1252,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public select($event: any): void {
if (!$event) {
......@@ -1267,7 +1267,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 复选框数据全部选中
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public selectAll($event: any): void {
if (!$event) {
......@@ -1284,7 +1284,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowClick($event: any, ifAlways: boolean = false): void {
if (!ifAlways && (!$event || this.actualIsOpenEdit)) {
......@@ -1326,7 +1326,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public pageOnChange($event: any): void {
if (!$event) {
......@@ -1344,7 +1344,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onPageSizeChange($event: any): void {
if (!$event) {
......@@ -1362,7 +1362,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 分页刷新
*
* @memberof Main
* @memberof MainBase
*/
public pageRefresh(): void {
this.load({});
......@@ -1372,7 +1372,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序变化
*
* @param {{ column: any, prop: any, order: any }} { column, prop, order }
* @memberof Main
* @memberof MainBase
*/
public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void {
const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : '';
......@@ -1389,7 +1389,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ row: any, rowIndex: any }} { row, rowIndex }
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string {
const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey));
......@@ -1404,7 +1404,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
......@@ -1414,7 +1414,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 设置列状态
*
* @memberof Main
* @memberof MainBase
*/
public setColState() {
const _data: any = localStorage.getItem('jobs_info_main_grid');
......@@ -1432,7 +1432,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 列变化
*
* @memberof Main
* @memberof MainBase
*/
public onColChange() {
localStorage.setItem('jobs_info_main_grid', JSON.stringify(this.allColumns));
......@@ -1443,7 +1443,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {string} name
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public getColumnState(name: string): boolean {
let column = this.allColumns.find((col: any) =>
......@@ -1457,7 +1457,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @readonly
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
get adaptiveState(): boolean {
return !this.allColumns.find((column: any) => column.show && Object.is(column.util, 'STAR'));
......@@ -1468,7 +1468,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this;
......@@ -1524,7 +1524,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
......@@ -1563,7 +1563,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param row 行数据
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onGridItemValueChange(row: any,$event: { name: string, value: any },rowIndex: number): void {
if (!$event) {
......@@ -1584,7 +1584,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param property 列编辑项名
* @param row 列编辑项值
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
......@@ -1599,7 +1599,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1639,7 +1639,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $args row 行数据,rowIndex 行索引
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public getRowClassName(args:{row: any,rowIndex: number}){
let isSelected = this.selections.some((item:any)=>{
......@@ -1648,10 +1648,32 @@ export default class MainBase extends Vue implements ControlInterface {
return isSelected ? "grid-selected-row" : "";
}
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public getCellClassName(args:{row: any, column: any, rowIndex: number, columnIndex:number}){
let hasRowEdit:any = {
'id':false,
'app':false,
'handler':false,
'cron':false,
'last_time':false,
'next_time':false,
'status':false,
'timeout':false,
'update_time':false,
}
return ( hasRowEdit[args.column.property] && this.actualIsOpenEdit ) ? "edit-cell" : "info-cell";
}
/**
* 新建默认值
* @param {*} row 行数据
* @memberof Main
* @memberof MainBase
*/
public createDefault(row: any){
}
......
......@@ -46,11 +46,12 @@
margin-bottom: unset !important;
}
}
.el-table__body td{
.el-table__body .edit-cell{
padding:0;
}
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
}
.grid-pagination {
......
......@@ -57,7 +57,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public name?: string;
......@@ -65,7 +65,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -73,7 +73,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public context: any;
......@@ -81,7 +81,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewparams: any;
......@@ -90,7 +90,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Default
* @memberof DefaultBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -98,7 +98,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Default
* @memberof DefaultBase
*/
public getControlType(): string {
return 'SEARCHFORM'
......@@ -110,7 +110,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Default
* @memberof DefaultBase
*/
public counterServiceArray:Array<any> = [];
......@@ -118,7 +118,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof Default
* @memberof DefaultBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
......@@ -126,7 +126,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsLogService}
* @memberof Default
* @memberof DefaultBase
*/
public appEntityService: JobsLogService = new JobsLogService({ $store: this.$store });
......@@ -136,7 +136,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Default
* @memberof DefaultBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -146,7 +146,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Default
* @memberof DefaultBase
*/
public counterRefresh(){
const _this:any =this;
......
......@@ -96,7 +96,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -104,7 +104,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -112,7 +112,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -120,7 +120,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -129,7 +129,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -137,7 +137,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'FORM'
......@@ -149,7 +149,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -157,7 +157,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -165,7 +165,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsLogService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsLogService = new JobsLogService({ $store: this.$store });
......@@ -175,7 +175,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -185,7 +185,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -202,7 +202,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 工作流审批意见控件绑定值
*
* @memberof Main
* @memberof MainBase
*/
public srfwfmemo:string = "";
......@@ -210,7 +210,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return [this.data];
......@@ -220,7 +220,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.data;
......@@ -230,7 +230,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认保存
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public autosave?: boolean;
......@@ -238,7 +238,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -246,7 +246,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--submit
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFSubmitAction!: string;
......@@ -254,7 +254,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--start
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFStartAction!: string;
......@@ -262,7 +262,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -270,7 +270,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -278,7 +278,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -286,7 +286,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -294,7 +294,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -302,7 +302,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public searchAction!: string;
......@@ -310,7 +310,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图标识
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewtag!: string;
......@@ -318,7 +318,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单状态
*
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public formState: Subject<any> = new Subject();
......@@ -326,7 +326,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 忽略表单项值变化
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public ignorefieldvaluechange: boolean = false;
......@@ -335,7 +335,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public dataChang: Subject<any> = new Subject();
......@@ -344,7 +344,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public dataChangEvent: Subscription | undefined;
......@@ -353,7 +353,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public oldData: any = {};
......@@ -361,7 +361,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单数据对象
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public data: any = {
srforikey: null,
......@@ -388,7 +388,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前执行的行为逻辑
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public currentAction: string = "";
......@@ -396,7 +396,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面计数器
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drcounter: number = 0;
......@@ -404,7 +404,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 需要等待关系界面保存时,第一次调用save参数的备份
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drsaveopt: any = {};
......@@ -412,7 +412,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单保存回调存储对象
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
public saveState:any ;
......@@ -420,7 +420,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srforikey: [
......@@ -531,7 +531,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 详情模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '任务调度日志基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.jobslog.main_form', extractMode: 'ITEM', details: [] } })
......@@ -579,7 +579,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srforikey')
onSrforikeyChange(newVal: any, oldVal: any) {
......@@ -591,7 +591,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfkey')
onSrfkeyChange(newVal: any, oldVal: any) {
......@@ -603,7 +603,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfmajortext')
onSrfmajortextChange(newVal: any, oldVal: any) {
......@@ -615,7 +615,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srftempmode')
onSrftempmodeChange(newVal: any, oldVal: any) {
......@@ -627,7 +627,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfuf')
onSrfufChange(newVal: any, oldVal: any) {
......@@ -639,7 +639,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfdeid')
onSrfdeidChange(newVal: any, oldVal: any) {
......@@ -651,7 +651,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfsourcekey')
onSrfsourcekeyChange(newVal: any, oldVal: any) {
......@@ -663,7 +663,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.job_id')
onJob_idChange(newVal: any, oldVal: any) {
......@@ -675,7 +675,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.handler')
onHandlerChange(newVal: any, oldVal: any) {
......@@ -687,7 +687,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.param')
onParamChange(newVal: any, oldVal: any) {
......@@ -699,7 +699,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.fail_retry_count')
onFail_retry_countChange(newVal: any, oldVal: any) {
......@@ -711,7 +711,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.trigger_code')
onTrigger_codeChange(newVal: any, oldVal: any) {
......@@ -723,7 +723,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.trigger_type')
onTrigger_typeChange(newVal: any, oldVal: any) {
......@@ -735,7 +735,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.trigger_msg')
onTrigger_msgChange(newVal: any, oldVal: any) {
......@@ -747,7 +747,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.address')
onAddressChange(newVal: any, oldVal: any) {
......@@ -759,7 +759,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.create_time')
onCreate_timeChange(newVal: any, oldVal: any) {
......@@ -771,7 +771,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.id')
onIdChange(newVal: any, oldVal: any) {
......@@ -784,7 +784,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
}
......@@ -793,7 +793,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 置空对象
*
* @param {any[]} args
* @memberof EditForm
* @memberof MainBase
*/
public ResetData(_datas:any){
if(Object.keys(_datas).length >0){
......@@ -810,7 +810,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
......@@ -841,7 +841,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) {
......@@ -858,7 +858,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {*} [data={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public onFormLoad(data: any = {},action:string): void {
if(Object.is(action,"save") || Object.is(action,"autoSave") || Object.is(action,"submit"))
......@@ -879,7 +879,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [_datas={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public fillForm(_datas: any = {},action:string): void {
this.ignorefieldvaluechange = true;
......@@ -904,7 +904,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -920,7 +920,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 重置草稿表单状态
*
* @public
* @memberof Main
* @memberof MainBase
*/
public resetDraftFormStates(): void {
const form: any = this.$refs.form;
......@@ -932,7 +932,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 重置校验结果
*
* @memberof Main
* @memberof MainBase
*/
public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -948,7 +948,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 填充校验结果 (后台)
*
* @param {any[]} fieldErrors
* @memberof Main
* @memberof MainBase
*/
public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => {
......@@ -966,7 +966,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单校验状态
*
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.form;
......@@ -981,7 +981,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取全部值
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getValues(): any {
return this.data;
......@@ -992,7 +992,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) {
......@@ -1010,7 +1010,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string} name
* @param {*} value
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
......@@ -1028,7 +1028,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分组界面行为事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public groupUIActionClick($event: any): void {
if (!$event) {
......@@ -1040,7 +1040,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -1049,7 +1049,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
if (this.viewState) {
......@@ -1106,7 +1106,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -1115,7 +1115,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -1130,7 +1130,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 拷贝内容
*
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof MainBase
*/
public copy(srfkey: string): void {
let copyData = this.$store.getters.getCopyData(srfkey);
......@@ -1148,7 +1148,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
*打印
*@memberof @memberof Main
*@memberof @memberof MainBase
*/
public print(){
let _this:any = this;
......@@ -1159,7 +1159,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
let arg: any = {};
......@@ -1181,7 +1181,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [arg={}]
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) {
......@@ -1202,7 +1202,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}): void {
if(!this.loadAction){
......@@ -1237,7 +1237,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 加载草稿
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
......@@ -1291,7 +1291,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 自动保存
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) {
......@@ -1342,7 +1342,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1412,7 +1412,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof EditForm
* @memberof MainBase
*/
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1446,7 +1446,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1502,7 +1502,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1578,7 +1578,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1623,7 +1623,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 回车事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public onEnter($event: any): void {
}
......@@ -1632,7 +1632,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1657,7 +1657,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并新建
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndNew(data:any[]):Promise<any>{
let _this = this;
......@@ -1680,7 +1680,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 删除并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public removeAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1704,7 +1704,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面数据保存完成
*
* @param {any} $event
* @memberof Main
* @memberof MainBase
*/
public drdatasaved($event:any){
let _this = this;
......@@ -1727,14 +1727,14 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 新建默认值
* @memberof Main
* @memberof MainBase
*/
public createDefault(){
}
/**
* 更新默认值
* @memberof Main
* @memberof MainBase
*/
public updateDefault(){
}
......
......@@ -181,7 +181,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -189,7 +189,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -197,7 +197,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -205,7 +205,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -214,7 +214,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -222,7 +222,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'GRID'
......@@ -234,7 +234,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -242,7 +242,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -250,7 +250,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsLogService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsLogService = new JobsLogService({ $store: this.$store });
......@@ -260,7 +260,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -270,7 +270,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -288,7 +288,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 代码表服务对象
*
* @type {CodeListService}
* @memberof Main
* @memberof MainBase
*/
public codeListService:CodeListService = new CodeListService({ $store: this.$store });
......@@ -296,7 +296,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return this.selections;
......@@ -306,7 +306,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.selections[0];
......@@ -316,14 +316,14 @@ export default class MainBase extends Vue implements ControlInterface {
* 打开新建数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public opendata: any;
......@@ -331,7 +331,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -339,7 +339,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -347,7 +347,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--fetch
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public fetchAction!: string;
......@@ -355,7 +355,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -363,7 +363,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -371,7 +371,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -379,7 +379,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -387,7 +387,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前页
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public curPage: number = 1;
......@@ -395,7 +395,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public items: any[] = [];
......@@ -403,7 +403,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否支持分页
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isEnablePagingBar: boolean = true;
......@@ -411,7 +411,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否禁用排序
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isNoSort: boolean = false;
......@@ -419,7 +419,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序方向
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortDir: string = '';
......@@ -427,7 +427,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序字段
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortPSDEF: string = '';
......@@ -435,7 +435,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分页条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public limit: number = 20;
......@@ -443,7 +443,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否显示标题
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isHideHeader: boolean = false;
......@@ -451,7 +451,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
......@@ -459,7 +459,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否单选
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop() public isSingleSelect?: boolean;
......@@ -467,7 +467,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 选中数据字符串
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public selectedData?: string;
......@@ -476,7 +476,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainTree
* @memberof MainBase
*/
@Watch('selectedData')
public onValueChange(newVal: any, oldVal: any) {
......@@ -504,7 +504,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: 2}) public gridRowActiveMode!: number;
......@@ -512,7 +512,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: false}) public isOpenEdit!: boolean;
......@@ -520,7 +520,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实际是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public actualIsOpenEdit: boolean = this.isOpenEdit;
......@@ -528,7 +528,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 总条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public totalrow: number = 0;
......@@ -555,7 +555,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格是否显示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isDisplay:boolean = true;
......@@ -563,7 +563,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
this.load();
......@@ -589,7 +589,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 所有列成员
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public allColumns: any[] = [
{
......@@ -654,7 +654,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public gridItemsModel: any[] = [];
......@@ -662,7 +662,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取表格行模型
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public getGridRowModel(){
return {
......@@ -674,7 +674,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srfkey: [
......@@ -691,7 +691,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {number} rowIndex 行索引
* @returns Promise<any>
*
* @memberof Main
* @memberof MainBase
*/
public validate(property:string, data:any, rowIndex:number):Promise<any>{
return new Promise((resolve, reject) => {
......@@ -709,7 +709,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 校验所有修改过的编辑项
*
* @returns Promise<any>
* @memberof Main
* @memberof MainBase
*/
public async validateAll(){
let validateState = true;
......@@ -731,7 +731,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格数据加载
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
......@@ -808,7 +808,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {any[]} datas
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
......@@ -914,7 +914,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 批量添加
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
......@@ -931,7 +931,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导入
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public importExcel(data:any ={}):void{
//导入excel
......@@ -960,7 +960,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导出
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public exportExcel(data: any = {}): void {
// 导出Excel
......@@ -1031,7 +1031,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} filterVal
* @param {*} jsonData
* @returns {[]}
* @memberof Main
* @memberof MainBase
*/
public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [
......@@ -1063,7 +1063,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items 代码表数据
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){
......@@ -1116,7 +1116,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getItem(items: any[], value: any, codelist: any): any {
const arr: Array<any> = items.filter(item => {return item.value == value});
......@@ -1133,7 +1133,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -1142,7 +1142,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
this.setColState();
......@@ -1167,7 +1167,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -1176,7 +1176,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -1188,7 +1188,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取选中行胡数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getSelection(): any[] {
return this.selections;
......@@ -1199,7 +1199,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowDBLClick($event: any): void {
if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) {
......@@ -1223,7 +1223,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public select($event: any): void {
if (!$event) {
......@@ -1238,7 +1238,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 复选框数据全部选中
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public selectAll($event: any): void {
if (!$event) {
......@@ -1255,7 +1255,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowClick($event: any, ifAlways: boolean = false): void {
if (!ifAlways && (!$event || this.actualIsOpenEdit)) {
......@@ -1297,7 +1297,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public pageOnChange($event: any): void {
if (!$event) {
......@@ -1315,7 +1315,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onPageSizeChange($event: any): void {
if (!$event) {
......@@ -1333,7 +1333,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 分页刷新
*
* @memberof Main
* @memberof MainBase
*/
public pageRefresh(): void {
this.load({});
......@@ -1343,7 +1343,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序变化
*
* @param {{ column: any, prop: any, order: any }} { column, prop, order }
* @memberof Main
* @memberof MainBase
*/
public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void {
const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : '';
......@@ -1360,7 +1360,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ row: any, rowIndex: any }} { row, rowIndex }
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string {
const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey));
......@@ -1375,7 +1375,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
......@@ -1385,7 +1385,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 设置列状态
*
* @memberof Main
* @memberof MainBase
*/
public setColState() {
const _data: any = localStorage.getItem('jobs_log_main_grid');
......@@ -1403,7 +1403,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 列变化
*
* @memberof Main
* @memberof MainBase
*/
public onColChange() {
localStorage.setItem('jobs_log_main_grid', JSON.stringify(this.allColumns));
......@@ -1414,7 +1414,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {string} name
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public getColumnState(name: string): boolean {
let column = this.allColumns.find((col: any) =>
......@@ -1428,7 +1428,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @readonly
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
get adaptiveState(): boolean {
return !this.allColumns.find((column: any) => column.show && Object.is(column.util, 'STAR'));
......@@ -1439,7 +1439,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this;
......@@ -1495,7 +1495,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
......@@ -1534,7 +1534,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param row 行数据
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onGridItemValueChange(row: any,$event: { name: string, value: any },rowIndex: number): void {
if (!$event) {
......@@ -1555,7 +1555,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param property 列编辑项名
* @param row 列编辑项值
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
......@@ -1570,7 +1570,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1610,7 +1610,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $args row 行数据,rowIndex 行索引
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public getRowClassName(args:{row: any,rowIndex: number}){
let isSelected = this.selections.some((item:any)=>{
......@@ -1619,10 +1619,31 @@ export default class MainBase extends Vue implements ControlInterface {
return isSelected ? "grid-selected-row" : "";
}
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public getCellClassName(args:{row: any, column: any, rowIndex: number, columnIndex:number}){
let hasRowEdit:any = {
'id':false,
'job_id':false,
'handler':false,
'address':false,
'trigger_code':false,
'trigger_type':false,
'fail_retry_count':false,
'create_time':false,
}
return ( hasRowEdit[args.column.property] && this.actualIsOpenEdit ) ? "edit-cell" : "info-cell";
}
/**
* 新建默认值
* @param {*} row 行数据
* @memberof Main
* @memberof MainBase
*/
public createDefault(row: any){
}
......
......@@ -46,11 +46,12 @@
margin-bottom: unset !important;
}
}
.el-table__body td{
.el-table__body .edit-cell{
padding:0;
}
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
}
.grid-pagination {
......
......@@ -63,7 +63,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public name?: string;
......@@ -71,7 +71,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -79,7 +79,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public context: any;
......@@ -87,7 +87,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Default
* @memberof DefaultBase
*/
@Prop() public viewparams: any;
......@@ -96,7 +96,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Default
* @memberof DefaultBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -104,7 +104,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Default
* @memberof DefaultBase
*/
public getControlType(): string {
return 'SEARCHFORM'
......@@ -116,7 +116,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Default
* @memberof DefaultBase
*/
public counterServiceArray:Array<any> = [];
......@@ -124,7 +124,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof Default
* @memberof DefaultBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
......@@ -132,7 +132,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsRegistryService}
* @memberof Default
* @memberof DefaultBase
*/
public appEntityService: JobsRegistryService = new JobsRegistryService({ $store: this.$store });
......@@ -142,7 +142,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Default
* @memberof DefaultBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -152,7 +152,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Default
* @memberof DefaultBase
*/
public counterRefresh(){
const _this:any =this;
......
......@@ -71,7 +71,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -79,7 +79,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -87,7 +87,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -95,7 +95,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -104,7 +104,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -112,7 +112,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'FORM'
......@@ -124,7 +124,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -132,7 +132,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -140,7 +140,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsRegistryService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsRegistryService = new JobsRegistryService({ $store: this.$store });
......@@ -150,7 +150,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -160,7 +160,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -177,7 +177,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 工作流审批意见控件绑定值
*
* @memberof Main
* @memberof MainBase
*/
public srfwfmemo:string = "";
......@@ -185,7 +185,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return [this.data];
......@@ -195,7 +195,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.data;
......@@ -205,7 +205,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认保存
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public autosave?: boolean;
......@@ -213,7 +213,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -221,7 +221,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--submit
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFSubmitAction!: string;
......@@ -229,7 +229,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--start
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public WFStartAction!: string;
......@@ -237,7 +237,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -245,7 +245,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -253,7 +253,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -261,7 +261,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -269,7 +269,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -277,7 +277,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public searchAction!: string;
......@@ -285,7 +285,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图标识
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewtag!: string;
......@@ -293,7 +293,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单状态
*
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public formState: Subject<any> = new Subject();
......@@ -301,7 +301,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 忽略表单项值变化
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public ignorefieldvaluechange: boolean = false;
......@@ -310,7 +310,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {Subject<any>}
* @memberof Main
* @memberof MainBase
*/
public dataChang: Subject<any> = new Subject();
......@@ -319,7 +319,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public dataChangEvent: Subscription | undefined;
......@@ -328,7 +328,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public oldData: any = {};
......@@ -336,7 +336,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单数据对象
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public data: any = {
srforikey: null,
......@@ -357,7 +357,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前执行的行为逻辑
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public currentAction: string = "";
......@@ -365,7 +365,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面计数器
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drcounter: number = 0;
......@@ -373,7 +373,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 需要等待关系界面保存时,第一次调用save参数的备份
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public drsaveopt: any = {};
......@@ -381,7 +381,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单保存回调存储对象
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
public saveState:any ;
......@@ -389,7 +389,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srforikey: [
......@@ -464,7 +464,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 详情模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '任务注册信息基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.jobsregistry.main_form', extractMode: 'ITEM', details: [] } })
......@@ -500,7 +500,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srforikey')
onSrforikeyChange(newVal: any, oldVal: any) {
......@@ -512,7 +512,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfkey')
onSrfkeyChange(newVal: any, oldVal: any) {
......@@ -524,7 +524,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfmajortext')
onSrfmajortextChange(newVal: any, oldVal: any) {
......@@ -536,7 +536,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srftempmode')
onSrftempmodeChange(newVal: any, oldVal: any) {
......@@ -548,7 +548,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfuf')
onSrfufChange(newVal: any, oldVal: any) {
......@@ -560,7 +560,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfdeid')
onSrfdeidChange(newVal: any, oldVal: any) {
......@@ -572,7 +572,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.srfsourcekey')
onSrfsourcekeyChange(newVal: any, oldVal: any) {
......@@ -584,7 +584,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.app')
onAppChange(newVal: any, oldVal: any) {
......@@ -596,7 +596,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.address')
onAddressChange(newVal: any, oldVal: any) {
......@@ -608,7 +608,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.status')
onStatusChange(newVal: any, oldVal: any) {
......@@ -620,7 +620,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
* @memberof MainBase
*/
@Watch('data.id')
onIdChange(newVal: any, oldVal: any) {
......@@ -633,7 +633,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
}
......@@ -642,7 +642,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 置空对象
*
* @param {any[]} args
* @memberof EditForm
* @memberof MainBase
*/
public ResetData(_datas:any){
if(Object.keys(_datas).length >0){
......@@ -659,7 +659,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Main
* @memberof MainBase
*/
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
......@@ -684,7 +684,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public formDataChange({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (this.ignorefieldvaluechange) {
......@@ -701,7 +701,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @public
* @param {*} [data={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public onFormLoad(data: any = {},action:string): void {
if(Object.is(action,"save") || Object.is(action,"autoSave") || Object.is(action,"submit"))
......@@ -722,7 +722,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [_datas={}]
* @param {string} [action]
* @memberof Main
* @memberof MainBase
*/
public fillForm(_datas: any = {},action:string): void {
this.ignorefieldvaluechange = true;
......@@ -747,7 +747,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public setFormEnableCond(data: any): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -763,7 +763,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 重置草稿表单状态
*
* @public
* @memberof Main
* @memberof MainBase
*/
public resetDraftFormStates(): void {
const form: any = this.$refs.form;
......@@ -775,7 +775,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 重置校验结果
*
* @memberof Main
* @memberof MainBase
*/
public resetValidates(): void {
Object.values(this.detailsModel).forEach((detail: any) => {
......@@ -791,7 +791,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 填充校验结果 (后台)
*
* @param {any[]} fieldErrors
* @memberof Main
* @memberof MainBase
*/
public fillValidates(fieldErrors: any[]): void {
fieldErrors.forEach((error: any) => {
......@@ -809,7 +809,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表单校验状态
*
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public formValidateStatus(): boolean {
const form: any = this.$refs.form;
......@@ -824,7 +824,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取全部值
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getValues(): any {
return this.data;
......@@ -835,7 +835,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onFormItemValueChange($event: { name: string, value: any }): void {
if (!$event) {
......@@ -853,7 +853,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string} name
* @param {*} value
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public setDataItemValue(name: string, value: any): void {
if (!name || Object.is(name, '') || !this.data.hasOwnProperty(name)) {
......@@ -871,7 +871,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分组界面行为事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public groupUIActionClick($event: any): void {
if (!$event) {
......@@ -883,7 +883,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -892,7 +892,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
if (this.viewState) {
......@@ -949,7 +949,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -958,7 +958,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -973,7 +973,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 拷贝内容
*
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof MainBase
*/
public copy(srfkey: string): void {
let copyData = this.$store.getters.getCopyData(srfkey);
......@@ -991,7 +991,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
*打印
*@memberof @memberof Main
*@memberof @memberof MainBase
*/
public print(){
let _this:any = this;
......@@ -1002,7 +1002,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
let arg: any = {};
......@@ -1024,7 +1024,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} [arg={}]
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public autoLoad(arg: any = {}): void {
if (arg.srfkey && !Object.is(arg.srfkey, '')) {
......@@ -1045,7 +1045,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}): void {
if(!this.loadAction){
......@@ -1080,7 +1080,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 加载草稿
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
......@@ -1134,7 +1134,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 自动保存
*
* @param {*} [opt={}]
* @memberof Main
* @memberof MainBase
*/
public autoSave(opt: any = {}): void {
if (!this.formValidateStatus()) {
......@@ -1185,7 +1185,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(opt: any = {}, showResultInfo?: boolean, ifStateNext: boolean = true): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1255,7 +1255,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @param {*} [opt={}]
* @memberof EditForm
* @memberof MainBase
*/
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1289,7 +1289,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfstart(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1345,7 +1345,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async wfsubmit(data: any,localdata?:any): Promise<any> {
return new Promise((resolve: any, reject: any) => {
......@@ -1421,7 +1421,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateFormItems(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1466,7 +1466,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 回车事件
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public onEnter($event: any): void {
}
......@@ -1475,7 +1475,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1500,7 +1500,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 保存并新建
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public saveAndNew(data:any[]):Promise<any>{
let _this = this;
......@@ -1523,7 +1523,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 删除并退出
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public removeAndExit(data:any[]):Promise<any>{
let _this = this;
......@@ -1547,7 +1547,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关系界面数据保存完成
*
* @param {any} $event
* @memberof Main
* @memberof MainBase
*/
public drdatasaved($event:any){
let _this = this;
......@@ -1570,14 +1570,14 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 新建默认值
* @memberof Main
* @memberof MainBase
*/
public createDefault(){
}
/**
* 更新默认值
* @memberof Main
* @memberof MainBase
*/
public updateDefault(){
}
......
......@@ -135,7 +135,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 名称
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public name?: string;
......@@ -143,7 +143,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewState!: Subject<ViewState>;
......@@ -151,7 +151,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 应用上下文
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public context: any;
......@@ -159,7 +159,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 视图参数
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
@Prop() public viewparams: any;
......@@ -168,7 +168,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @public
* @type {(Subscription | undefined)}
* @memberof Main
* @memberof MainBase
*/
public viewStateEvent: Subscription | undefined;
......@@ -176,7 +176,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取部件类型
*
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public getControlType(): string {
return 'GRID'
......@@ -188,7 +188,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Main
* @memberof MainBase
*/
public counterServiceArray:Array<any> = [];
......@@ -196,7 +196,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 建构部件服务对象
*
* @type {MainService}
* @memberof Main
* @memberof MainBase
*/
public service: MainService = new MainService({ $store: this.$store });
......@@ -204,7 +204,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实体服务对象
*
* @type {JobsRegistryService}
* @memberof Main
* @memberof MainBase
*/
public appEntityService: JobsRegistryService = new JobsRegistryService({ $store: this.$store });
......@@ -214,7 +214,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 关闭视图
*
* @param {any} args
* @memberof Main
* @memberof MainBase
*/
public closeView(args: any): void {
let _this: any = this;
......@@ -224,7 +224,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 计数器刷新
*
* @memberof Main
* @memberof MainBase
*/
public counterRefresh(){
const _this:any =this;
......@@ -242,7 +242,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 代码表服务对象
*
* @type {CodeListService}
* @memberof Main
* @memberof MainBase
*/
public codeListService:CodeListService = new CodeListService({ $store: this.$store });
......@@ -250,7 +250,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取多项数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getDatas(): any[] {
return this.selections;
......@@ -260,7 +260,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取单项树
*
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getData(): any {
return this.selections[0];
......@@ -270,14 +270,14 @@ export default class MainBase extends Vue implements ControlInterface {
* 打开新建数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof Main
* @memberof MainBase
*/
@Prop() public opendata: any;
......@@ -285,7 +285,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 显示处理提示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -293,7 +293,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--update
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public updateAction!: string;
......@@ -301,7 +301,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--fetch
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public fetchAction!: string;
......@@ -309,7 +309,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--remove
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public removeAction!: string;
......@@ -317,7 +317,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--load
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loadAction!: string;
......@@ -325,7 +325,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--loaddraft
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public loaddraftAction!: string;
......@@ -333,7 +333,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件行为--create
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public createAction!: string;
......@@ -341,7 +341,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 当前页
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public curPage: number = 1;
......@@ -349,7 +349,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public items: any[] = [];
......@@ -357,7 +357,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否支持分页
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isEnablePagingBar: boolean = true;
......@@ -365,7 +365,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否禁用排序
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isNoSort: boolean = false;
......@@ -373,7 +373,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序方向
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortDir: string = '';
......@@ -381,7 +381,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序字段
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
public minorSortPSDEF: string = '';
......@@ -389,7 +389,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 分页条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public limit: number = 20;
......@@ -397,7 +397,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否显示标题
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isHideHeader: boolean = false;
......@@ -405,7 +405,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
......@@ -413,7 +413,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否单选
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop() public isSingleSelect?: boolean;
......@@ -421,7 +421,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 选中数据字符串
*
* @type {string}
* @memberof Main
* @memberof MainBase
*/
@Prop() public selectedData?: string;
......@@ -430,7 +430,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainTree
* @memberof MainBase
*/
@Watch('selectedData')
public onValueChange(newVal: any, oldVal: any) {
......@@ -458,7 +458,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: 2}) public gridRowActiveMode!: number;
......@@ -466,7 +466,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
@Prop({default: false}) public isOpenEdit!: boolean;
......@@ -474,7 +474,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 实际是否开启行编辑
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public actualIsOpenEdit: boolean = this.isOpenEdit;
......@@ -482,7 +482,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 总条数
*
* @type {number}
* @memberof Main
* @memberof MainBase
*/
public totalrow: number = 0;
......@@ -509,7 +509,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格是否显示
*
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
public isDisplay:boolean = true;
......@@ -517,7 +517,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 部件刷新
*
* @param {any[]} args
* @memberof Main
* @memberof MainBase
*/
public refresh(args: any[]): void {
this.load();
......@@ -543,7 +543,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 所有列成员
*
* @type {any[]}
* @memberof Main
* @memberof MainBase
*/
public allColumns: any[] = [
{
......@@ -580,7 +580,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格模型集合
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public gridItemsModel: any[] = [];
......@@ -588,7 +588,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取表格行模型
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public getGridRowModel(){
return {
......@@ -600,7 +600,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 属性值规则
*
* @type {*}
* @memberof Main
* @memberof MainBase
*/
public rules: any = {
srfkey: [
......@@ -617,7 +617,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {number} rowIndex 行索引
* @returns Promise<any>
*
* @memberof Main
* @memberof MainBase
*/
public validate(property:string, data:any, rowIndex:number):Promise<any>{
return new Promise((resolve, reject) => {
......@@ -635,7 +635,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 校验所有修改过的编辑项
*
* @returns Promise<any>
* @memberof Main
* @memberof MainBase
*/
public async validateAll(){
let validateState = true;
......@@ -657,7 +657,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 表格数据加载
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
......@@ -734,7 +734,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {any[]} datas
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
......@@ -840,7 +840,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 批量添加
*
* @param {*} [arg={}]
* @memberof Main
* @memberof MainBase
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
......@@ -857,7 +857,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导入
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public importExcel(data:any ={}):void{
//导入excel
......@@ -886,7 +886,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 数据导出
*
* @param {*} data
* @memberof Main
* @memberof MainBase
*/
public exportExcel(data: any = {}): void {
// 导出Excel
......@@ -957,7 +957,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} filterVal
* @param {*} jsonData
* @returns {[]}
* @memberof Main
* @memberof MainBase
*/
public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [
......@@ -997,7 +997,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items 代码表数据
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getCodelistValue(items: any[], value: any, codelist: any,){
if(!value){
......@@ -1050,7 +1050,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {any[]} items
* @param {*} value
* @returns {*}
* @memberof Main
* @memberof MainBase
*/
public getItem(items: any[], value: any, codelist: any): any {
const arr: Array<any> = items.filter(item => {return item.value == value});
......@@ -1067,7 +1067,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public created(): void {
this.afterCreated();
......@@ -1076,7 +1076,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行created后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterCreated(){
this.setColState();
......@@ -1101,7 +1101,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* vue 生命周期
*
* @memberof Main
* @memberof MainBase
*/
public destroyed() {
this.afterDestroy();
......@@ -1110,7 +1110,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 执行destroyed后的逻辑
*
* @memberof Main
* @memberof MainBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -1122,7 +1122,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 获取选中行胡数据
*
* @returns {any[]}
* @memberof Main
* @memberof MainBase
*/
public getSelection(): any[] {
return this.selections;
......@@ -1133,7 +1133,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowDBLClick($event: any): void {
if (!$event || this.actualIsOpenEdit || Object.is(this.gridRowActiveMode,0)) {
......@@ -1157,7 +1157,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public select($event: any): void {
if (!$event) {
......@@ -1172,7 +1172,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 复选框数据全部选中
*
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public selectAll($event: any): void {
if (!$event) {
......@@ -1189,7 +1189,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public rowClick($event: any, ifAlways: boolean = false): void {
if (!ifAlways && (!$event || this.actualIsOpenEdit)) {
......@@ -1231,7 +1231,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public pageOnChange($event: any): void {
if (!$event) {
......@@ -1249,7 +1249,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onPageSizeChange($event: any): void {
if (!$event) {
......@@ -1267,7 +1267,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 分页刷新
*
* @memberof Main
* @memberof MainBase
*/
public pageRefresh(): void {
this.load({});
......@@ -1277,7 +1277,7 @@ export default class MainBase extends Vue implements ControlInterface {
* 排序变化
*
* @param {{ column: any, prop: any, order: any }} { column, prop, order }
* @memberof Main
* @memberof MainBase
*/
public onSortChange({ column, prop, order }: { column: any, prop: any, order: any }): void {
const dir = Object.is(order, 'ascending') ? 'asc' : Object.is(order, 'descending') ? 'desc' : '';
......@@ -1294,7 +1294,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {{ row: any, rowIndex: any }} { row, rowIndex }
* @returns {string}
* @memberof Main
* @memberof MainBase
*/
public onRowClassName({ row, rowIndex }: { row: any, rowIndex: any }): string {
const index = this.selections.findIndex((select: any) => Object.is(select.srfkey, row.srfkey));
......@@ -1309,7 +1309,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof Main
* @memberof MainBase
*/
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
......@@ -1319,7 +1319,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 设置列状态
*
* @memberof Main
* @memberof MainBase
*/
public setColState() {
const _data: any = localStorage.getItem('jobs_registry_main_grid');
......@@ -1337,7 +1337,7 @@ export default class MainBase extends Vue implements ControlInterface {
/**
* 列变化
*
* @memberof Main
* @memberof MainBase
*/
public onColChange() {
localStorage.setItem('jobs_registry_main_grid', JSON.stringify(this.allColumns));
......@@ -1348,7 +1348,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {string} name
* @returns {boolean}
* @memberof Main
* @memberof MainBase
*/
public getColumnState(name: string): boolean {
let column = this.allColumns.find((col: any) =>
......@@ -1362,7 +1362,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @readonly
* @type {boolean}
* @memberof Main
* @memberof MainBase
*/
get adaptiveState(): boolean {
return !this.allColumns.find((column: any) => column.show && Object.is(column.util, 'STAR'));
......@@ -1373,7 +1373,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {Promise<any>}
* @memberof Main
* @memberof MainBase
*/
public async save(args: any[], params?: any, $event?: any, xData?: any){
let _this = this;
......@@ -1429,7 +1429,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
......@@ -1468,7 +1468,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param row 行数据
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public onGridItemValueChange(row: any,$event: { name: string, value: any },rowIndex: number): void {
if (!$event) {
......@@ -1489,7 +1489,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param property 列编辑项名
* @param row 列编辑项值
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
......@@ -1504,7 +1504,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public updateGridEditItem(mode: string, data: any = {}, updateDetails: string[], showloading?: boolean): void {
if (!mode || (mode && Object.is(mode, ''))) {
......@@ -1544,7 +1544,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @param {*} $args row 行数据,rowIndex 行索引
* @returns {void}
* @memberof Main
* @memberof MainBase
*/
public getRowClassName(args:{row: any,rowIndex: number}){
let isSelected = this.selections.some((item:any)=>{
......@@ -1553,10 +1553,27 @@ export default class MainBase extends Vue implements ControlInterface {
return isSelected ? "grid-selected-row" : "";
}
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public getCellClassName(args:{row: any, column: any, rowIndex: number, columnIndex:number}){
let hasRowEdit:any = {
'id':false,
'app':false,
'address':false,
'status':false,
}
return ( hasRowEdit[args.column.property] && this.actualIsOpenEdit ) ? "edit-cell" : "info-cell";
}
/**
* 新建默认值
* @param {*} row 行数据
* @memberof Main
* @memberof MainBase
*/
public createDefault(row: any){
}
......
......@@ -46,11 +46,12 @@
margin-bottom: unset !important;
}
}
.el-table__body td{
.el-table__body .edit-cell{
padding:0;
}
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
}
.grid-pagination {
......
......@@ -50,8 +50,8 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
@Override
@Transactional
public JobsInfo start(JobsInfo et) {
et.set("Status","0");
et.set("Last_time","0");
et.set("Status","0");
update(et);
return et;
}
......
package cn.ibizlab.core.util.config;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Configuration;
@ConditionalOnExpression("!'${jobs.admin-address:NA}'.equals('NA')")
@Configuration
public class XxlJobConfig {
......
......@@ -87,7 +87,7 @@ ibiz:
### jobs
jobs:
admin-address: http://127.0.0.1:40005
#admin-address: http://127.0.0.1:40005
app-name: ibztask
app-port: 9999
#app-ip: 127.0.0.1
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册