Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
8fda06df
Commit
8fda06df
authored
Nov 08, 2024
by
baiyinhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提出的问题
parent
e468e745
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
344 additions
and
130 deletions
+344
-130
audi.data.ts
src/views/auditLog/audi.data.ts
+1
-1
index.vue
src/views/auditLog/index.vue
+72
-31
index.vue
src/views/notifications/noticeManage/index.vue
+36
-22
mock.ts
src/views/notifications/noticeManage/mock.ts
+20
-0
noti.data.ts
src/views/notifications/noticeManage/noti.data.ts
+36
-14
notiModalEmail.data.ts
src/views/notifications/noticeManage/notiModalEmail.data.ts
+106
-9
index.vue
src/views/processCenter/index.vue
+73
-53
No files found.
src/views/auditLog/audi.data.ts
View file @
8fda06df
...
...
@@ -223,7 +223,7 @@ export const searchFormSchema: FormSchema[] = [
export
const
searchFormSchematab2
:
FormSchema
[]
=
[
{
field
:
'search'
,
label
:
'
'
,
label
:
''
,
component
:
'Input'
,
componentProps
:
{
placeholder
:
'搜索'
,
...
...
src/views/auditLog/index.vue
View file @
8fda06df
<
template
>
<div>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
style=
"margin-left: 2%"
>
<Tabs
.
TabPane
key=
"1"
tab=
" 用户操作记录"
>
<BasicTable
@
register=
"registerTable"
class=
"p-2"
>
<template
#
toolbar
>
<!--
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增角色
</a-button>
-->
<a-button
type=
"primary"
@
click=
"handleExport"
>
日志下载
</a-button>
<a-button
type=
"primary"
>
日志清理配置
</a-button>
<a-button
type=
"primary"
@
click=
"handleExportClear"
>
日志清理配置
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
:actions=
"[
//
{
// icon: 'clarity:note-edit-line',
// // label: '编22222222222辑',
// onClick: handleEdit.bind(null, record),
// },
{
icon: 'clarity:
note-edit
-line',
// label: '编22222222222辑
',
onClick: handle
Edit
.bind(null, record),
icon: 'clarity:
search
-line',
label: '查看详情
',
onClick: handle
View
.bind(null, record),
},
{
icon: 'ant-design:delete-outlined',
...
...
@@ -94,7 +99,7 @@
import
AudiModalEmail
from
'./audiModalEmail.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
getMenuListByPage
}
from
'@/api/system/menu/menu'
;
import
{
Tabs
,
Descriptions
,
Alert
}
from
'ant-design-vue'
;
import
{
Tabs
,
Descriptions
,
Alert
,
Modal
,
message
}
from
'ant-design-vue'
;
import
{
tableListtab1
,
tableListtab2
}
from
'./mock'
;
defineOptions
({
name
:
'RoleManagement'
});
...
...
@@ -135,7 +140,7 @@
bordered
:
true
,
showIndexColumn
:
false
,
actionColumn
:
{
width
:
5
0
,
width
:
10
0
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
...
...
@@ -166,7 +171,7 @@
},
formConfig
:
{
labelWidth
:
80
,
schemas
:
searchFormSchema
,
schemas
:
searchFormSchema
tab2
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
...
...
@@ -201,7 +206,19 @@
const
data
=
await
exportRoleList
(
params
);
downloadByData
(
data
,
'操作记录'
+
'.xlsx'
);
}
/** 日志清理配置按钮*/
async
function
handleExportClear
()
{
Modal
.
confirm
({
title
:
'日志清理'
,
content
:
'是否清理日志?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
:
()
=>
{
console
.
log
(
'日志清理'
);
message
.
success
(
'清理成功'
);
},
});
}
/** tab2导出按钮*/
async
function
handleExporttab2
()
{
console
.
log
(
'导出----'
);
...
...
@@ -217,6 +234,20 @@
});
}
/**查看详情按钮*/
function
handleView
()
{
Modal
.
confirm
({
title
:
'跳转到详情页面'
,
content
:
'是否查看详情?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
:
()
=>
{
console
.
log
(
'查看详情'
);
message
.
success
(
'查看成功'
);
},
});
}
/**数据权限按钮*/
function
dataPermiss
(
record
:
Recordable
)
{
openModal
(
true
,
{
...
...
@@ -247,32 +278,42 @@
}
/**批量删除*/
function
handleDeleteBatch
()
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
rowSelection
.
length
=
0
;
createMessage
.
success
(
'删除成功!'
);
reload
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
rowSelection
.
length
=
0
;
createMessage
.
success
(
'删除成功!'
);
reload
();
},
});
}
/**批量删除tab2*/
function
handleDeleteBatch2
()
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
rowSelection
.
length
=
0
;
reload2
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
rowSelection
.
length
=
0
;
reload2
();
},
});
}
function
handleSuccess
()
{
reload
();
}
...
...
src/views/notifications/noticeManage/index.vue
View file @
8fda06df
<
template
>
<div>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
style=
"margin-left: 2%"
>
<Tabs
.
TabPane
key=
"1"
tab=
" 通知记录"
>
<BasicTable
@
register=
"registerTable"
class=
"p-2"
>
<template
#
toolbar
>
...
...
@@ -35,7 +35,7 @@
<!--
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增角色
</a-button>
<a-button
type=
"primary"
@
click=
"handleExport"
>
导出
</a-button>
-->
<Alert
message=
"请先配置用于发送告警通知的邮箱/短信"
show-icon
type=
"warning"
/>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新建通知规则
(配置完成后显示)
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新建通知规则
</a-button>
<a-button
type=
"primary"
@
click=
"handleEmail"
>
邮箱/短信配置
</a-button>
<a-button
type=
"error"
@
click=
"handleDeleteBatch2"
>
删除选中的规则
</a-button>
</
template
>
...
...
@@ -91,7 +91,7 @@
import
notiModalEmail
from
'./notiModalEmail.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
getMenuListByPage
}
from
'@/api/system/menu/menu'
;
import
{
Tabs
,
Descriptions
,
Alert
}
from
'ant-design-vue'
;
import
{
Tabs
,
Descriptions
,
Alert
,
Popconfirm
,
message
,
Modal
}
from
'ant-design-vue'
;
import
{
tableListtab1
,
tableListtab2
}
from
'./mock'
;
import
page
from
'@/router/routes/modules/demo/page'
;
...
...
@@ -164,7 +164,7 @@
},
formConfig
:
{
labelWidth
:
10
,
schemas
:
searchFormSchema
,
schemas
:
searchFormSchema
tab2
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
...
...
@@ -225,28 +225,42 @@
/**批量删除*/
function
handleDeleteBatch
()
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
reload
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
rowSelection
.
length
=
0
;
createMessage
.
success
(
'删除成功!'
);
reload
();
},
});
}
/**批量删除tab2*/
function
handleDeleteBatch2
()
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
reload2
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
rowSelection
.
length
=
0
;
createMessage
.
success
(
'删除成功!'
);
reload2
();
},
});
}
/** 删除按钮*/
...
...
src/views/notifications/noticeManage/mock.ts
View file @
8fda06df
...
...
@@ -5,6 +5,8 @@ export const tableListtab1: any[] = [
alarmLevel
:
'紧急'
,
resourceType
:
'资源类型1'
,
triggerType
:
'触发方式1'
,
businessId
:
401
,
institutionId
:
null
,
},
{
createDate
:
'2024-10-24 10:04:04'
,
...
...
@@ -12,6 +14,8 @@ export const tableListtab1: any[] = [
alarmLevel
:
'紧急'
,
resourceType
:
'资源类型1'
,
triggerType
:
'触发方式1'
,
businessId
:
402
,
institutionId
:
null
,
},
{
createDate
:
'2024-10-24 10:04:04'
,
...
...
@@ -19,6 +23,8 @@ export const tableListtab1: any[] = [
alarmLevel
:
'紧急'
,
resourceType
:
'资源类型2'
,
triggerType
:
'触发方式1'
,
businessId
:
403
,
institutionId
:
null
,
},
{
createDate
:
'2024-10-24 10:04:04'
,
...
...
@@ -26,6 +32,8 @@ export const tableListtab1: any[] = [
alarmLevel
:
'紧急'
,
resourceType
:
'资源类型2'
,
triggerType
:
'触发方式1'
,
businessId
:
404
,
institutionId
:
null
,
},
{
createDate
:
'2024-10-24 10:04:04'
,
...
...
@@ -33,6 +41,8 @@ export const tableListtab1: any[] = [
alarmLevel
:
'紧急'
,
resourceType
:
'资源类型1'
,
triggerType
:
'触发方式3'
,
businessId
:
405
,
institutionId
:
null
,
},
];
export
const
tableListtab2
:
any
[]
=
[
...
...
@@ -41,29 +51,39 @@ export const tableListtab2: any[] = [
resourceType
:
'资源类型1'
,
alarmLevel
:
'紧急'
,
status
:
'状态1'
,
businessId
:
401
,
institutionId
:
null
,
},
{
alarmRuleName
:
'元数据变更'
,
resourceType
:
'资源类型1'
,
alarmLevel
:
'紧急'
,
status
:
'状态2'
,
businessId
:
402
,
institutionId
:
null
,
},
{
alarmRuleName
:
'元数据变更'
,
resourceType
:
'资源类型1'
,
alarmLevel
:
'紧急'
,
status
:
'状态3'
,
businessId
:
403
,
institutionId
:
null
,
},
{
alarmRuleName
:
'元数据变更'
,
resourceType
:
'资源类型1'
,
alarmLevel
:
'紧急'
,
status
:
'状态4'
,
businessId
:
404
,
institutionId
:
null
,
},
{
alarmRuleName
:
'元数据变更'
,
resourceType
:
'资源类型1'
,
alarmLevel
:
'紧急'
,
status
:
'状态5'
,
businessId
:
405
,
institutionId
:
null
,
},
];
src/views/notifications/noticeManage/noti.data.ts
View file @
8fda06df
...
...
@@ -67,11 +67,15 @@ export const searchFormSchema: FormSchema[] = [
colProps
:
{
span
:
4
},
},
{
field
:
'alarm
Rule1
'
,
field
:
'alarm
Scope
'
,
label
:
' '
,
component
:
'Select'
,
componentProps
:
{
options
:
[{
label
:
'全部通知规则'
,
value
:
'1'
}],
options
:
[
{
label
:
'全部通知'
,
value
:
'1'
},
{
label
:
'通知范围1'
,
value
:
'2'
},
{
label
:
'通知范围2'
,
value
:
'3'
},
],
placeholder
:
'请选择通知规则范围'
,
defaultValue
:
'1'
,
},
...
...
@@ -128,41 +132,41 @@ export const searchFormSchematab2: FormSchema[] = [
colProps
:
{
span
:
4
},
},
{
field
:
'
alarmRul
e'
,
field
:
'
resourceTyp
e'
,
label
:
' '
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'
元数据变更'
,
value
:
'元数据变更
'
},
{
label
:
'
元数据处理'
,
value
:
'元数据处理
'
},
{
label
:
'
资源类型1'
,
value
:
'资源类型1
'
},
{
label
:
'
资源类型2'
,
value
:
'资源类型2
'
},
],
placeholder
:
'请选择
通知规则
'
,
placeholder
:
'请选择
资源类型
'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'
resourceType
'
,
field
:
'
alarmLevel
'
,
label
:
' '
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'
资源类型1'
,
value
:
'资源类型1
'
},
{
label
:
'
资源类型2'
,
value
:
'资源类型2
'
},
{
label
:
'
紧急'
,
value
:
'紧急
'
},
{
label
:
'
不紧急'
,
value
:
'不紧急
'
},
],
placeholder
:
'请选择
资源类型
'
,
placeholder
:
'请选择
紧急程度
'
,
},
colProps
:
{
span
:
4
},
},
{
field
:
'
alarmLevel
'
,
field
:
'
status
'
,
label
:
' '
,
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'
紧急'
,
value
:
'紧急
'
},
{
label
:
'
不紧急'
,
value
:
'不紧急
'
},
{
label
:
'
状态1'
,
value
:
'状态1
'
},
{
label
:
'
状态2'
,
value
:
'状态2
'
},
],
placeholder
:
'请选择
紧急程度
'
,
placeholder
:
'请选择
状态
'
,
},
colProps
:
{
span
:
4
},
},
...
...
@@ -230,6 +234,12 @@ export const formSchema: FormSchema[] = [
{
label
:
'元数据处理'
,
value
:
'2'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择触发方式'
,
},
],
},
{
field
:
'alarmType'
,
...
...
@@ -241,6 +251,12 @@ export const formSchema: FormSchema[] = [
{
label
:
'元数据处理'
,
value
:
'2'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择通知方式'
,
},
],
},
{
field
:
'alarmLevel'
,
...
...
@@ -252,5 +268,11 @@ export const formSchema: FormSchema[] = [
{
label
:
'不紧急'
,
value
:
'2'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择紧急程度'
,
},
],
},
];
src/views/notifications/noticeManage/notiModalEmail.data.ts
View file @
8fda06df
...
...
@@ -134,15 +134,16 @@ export const ModelFormSchema: FormSchema[] = [
disabled
:
false
,
},
},
{
field
:
'testLink'
,
label
:
'测试链接'
,
component
:
'Button'
,
componentProps
:
{
type
:
'primary'
,
title
:
'测试链接'
,
},
},
// 未解决问题:无法把按钮添加到表单已有的按钮中
// {
// field: 'testLink',
// label: '测试链接',
// component: 'Button',
// componentProps: {
// type: 'primary',
// title: '测试链接',
// },
// },
];
export
const
ModelFormSchema2
:
FormSchema
[]
=
[
// 未解决问题:原型文件没有短信配置页面截图!!
...
...
@@ -163,6 +164,92 @@ export const ModelFormSchema2: FormSchema[] = [
},
],
},
{
field
:
'hostName'
,
label
:
'主机名'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入主机名'
,
},
],
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'port'
,
label
:
'端口'
,
component
:
'InputNumber'
,
rules
:
[
{
required
:
true
,
message
:
'请输入端口号'
,
},
],
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'Username'
,
label
:
'用户名'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入用户名'
,
},
],
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'password'
,
label
:
'密码'
,
component
:
'InputPassword'
,
rules
:
[
{
required
:
true
,
message
:
'请输入密码'
,
},
],
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'url'
,
label
:
'url地址'
,
component
:
'Input'
,
componentProps
:
{
disabled
:
false
,
},
rules
:
[
{
required
:
true
,
message
:
'请输入url地址'
,
},
],
},
{
field
:
'linkTimeOut'
,
label
:
'链接超时'
,
component
:
'Input'
,
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'TLS'
,
label
:
'TLS'
,
component
:
'Checkbox'
,
componentProps
:
{
disabled
:
false
,
},
},
{
field
:
'textContent'
,
label
:
'短信内容'
,
...
...
@@ -177,4 +264,14 @@ export const ModelFormSchema2: FormSchema[] = [
},
],
},
// 未解决问题:无法把按钮添加到表单已有的按钮中
// {
// field: 'testLink',
// label: '测试链接',
// component: 'Button',
// componentProps: {
// type: 'primary',
// title: '测试链接',
// },
// },
];
src/views/processCenter/index.vue
View file @
8fda06df
<
template
>
<div>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
>
<tabs
v-model:value=
"activeKey"
@
change=
"handleTabChange"
style=
"margin-left: 2%"
>
<Tabs
.
TabPane
key=
"1"
tab=
"我的待办事项"
>
<BasicTable
@
register=
"registerTable"
class=
"p-2"
>
<!--
<template
#
toolbar
>
...
...
@@ -12,14 +12,9 @@
<TableAction
:actions=
"[
{
// icon: 'ant-design:delete-outlined',
label: '删除',
color: 'error',
popConfirm: {
title: '是否确认删除',
placement: 'left',
confirm: handleDelete.bind(null, record),
},
icon: 'clarity:note-edit-line',
label: '审批',
onClick: handleEdit.bind(null, record),
},
]"
/>
...
...
@@ -42,9 +37,9 @@
<TableAction
:actions=
"[
{
icon: 'clarity:
note-edit
-line',
// label: '编辑
',
onClick: handle
Edit
.bind(null, record),
icon: 'clarity:
search
-line',
label: '查看详情
',
onClick: handle
View
.bind(null, record),
},
// {
// // icon: 'clarity:note-edit-line',
...
...
@@ -82,9 +77,9 @@
<TableAction
:actions=
"[
{
icon: 'clarity:
note-edit
-line',
// label: '编辑
',
onClick: handle
Edit
.bind(null, record),
icon: 'clarity:
search
-line',
label: '查看详情
',
onClick: handle
View
.bind(null, record),
},
// {
// // icon: 'clarity:note-edit-line',
...
...
@@ -136,7 +131,7 @@
import
ProcenterModalEmail
from
'./processCenterModalEmail.vue'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
{
getMenuListByPage
}
from
'@/api/system/menu/menu'
;
import
{
Tabs
,
Descriptions
,
Alert
}
from
'ant-design-vue'
;
import
{
Tabs
,
Descriptions
,
Alert
,
Modal
}
from
'ant-design-vue'
;
import
{
tableListtab1
,
tableListtab2
,
tableListtab3
}
from
'./mock'
;
defineOptions
({
name
:
'RoleManagement'
});
...
...
@@ -178,7 +173,7 @@
bordered
:
true
,
showIndexColumn
:
false
,
actionColumn
:
{
width
:
5
0
,
width
:
7
0
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
...
...
@@ -216,13 +211,13 @@
showTableSetting
:
true
,
bordered
:
true
,
showIndexColumn
:
false
,
//
actionColumn: {
// width: 5
0,
//
title: '操作',
//
dataIndex: 'action',
//
// slots: { customRender: 'action' },
//
fixed: undefined,
//
},
actionColumn
:
{
width
:
7
0
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
fixed
:
undefined
,
},
});
const
[
registerTable3
,
...
...
@@ -255,13 +250,13 @@
showTableSetting
:
true
,
bordered
:
true
,
showIndexColumn
:
false
,
//
actionColumn: {
// width: 5
0,
//
title: '操作',
//
dataIndex: 'action',
//
// slots: { customRender: 'action' },
//
fixed: undefined,
//
},
actionColumn
:
{
width
:
7
0
,
title
:
'操作'
,
dataIndex
:
'action'
,
// slots: { customRender: 'action' },
fixed
:
undefined
,
},
});
/***新增规则按钮*/
function
handleCreate
()
{
...
...
@@ -298,14 +293,26 @@
const
data
=
await
exportRoleList
(
params
);
downloadByData
(
data
,
'角色列表'
+
'.xlsx'
);
}
/**
编辑
按钮*/
/**
审批
按钮*/
function
handleEdit
(
record
:
Recordable
)
{
openDrawer
(
true
,
{
record
,
isUpdate
:
true
,
Modal
.
confirm
({
title
:
'确认审批内容'
,
content
:
`
${
record
.
title
}
审批通过`
,
okText
:
'确认'
,
cancelText
:
'取消'
,
});
}
/**查看详情按钮*/
function
handleView
()
{
Modal
.
confirm
({
title
:
'跳转到详情页面'
,
content
:
'是否查看详情?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
:
()
=>
{},
});
}
/**数据权限按钮*/
function
dataPermiss
(
record
:
Recordable
)
{
openModal
(
true
,
{
...
...
@@ -346,28 +353,41 @@
}
/**批量删除*/
function
handleDeleteBatch
()
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
reload
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableData
.
value
.
splice
(
tableData
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
rowSelection
.
length
=
0
;
createMessage
.
success
(
'删除成功!'
);
reload
();
},
});
}
/**批量删除tab2*/
function
handleDeleteBatch2
()
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
reload2
();
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'是否删除选中的记录?'
,
onOk
:
()
=>
{
const
rowSelection
=
getRowSelection2
().
selectedRowKeys
;
for
(
let
i
=
0
;
i
<
rowSelection
.
length
;
i
++
)
{
tableDatatab2
.
value
.
splice
(
tableDatatab2
.
value
.
findIndex
((
item
)
=>
item
.
businessId
===
rowSelection
[
i
]),
1
,
);
}
createMessage
.
success
(
'删除成功!'
);
reload2
();
},
});
}
/**批量删除tab3*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment