Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1cde03fb
authored
Mar 07, 2023
by
puhui999
Committed by
Gitee
Mar 07, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitee.com:yudaocode/yudao-ui-admin-vue3 into master
Signed-off-by: puhui999 <puhui999@163.com>
parents
01837ad5
19de304f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
22 deletions
+38
-22
src/views/bpm/processInstance/detail.vue
+3
-3
src/views/bpm/processInstance/index.vue
+5
-0
src/views/bpm/processInstance/process.data.ts
+6
-1
src/views/system/role/index.vue
+20
-15
src/views/system/user/index.vue
+3
-3
src/views/system/user/user.data.ts
+1
-0
No files found.
src/views/bpm/processInstance/detail.vue
View file @
1cde03fb
...
@@ -404,9 +404,9 @@ const getDetail = () => {
...
@@ -404,9 +404,9 @@ const getDetail = () => {
data
.
formVariables
data
.
formVariables
)
)
nextTick
().
then
(()
=>
{
nextTick
().
then
(()
=>
{
fApi
.
value
?.
btn
.
show
(
false
)
fApi
.
value
?.
fapi
?.
btn
.
show
(
false
)
fApi
.
value
?.
resetBtn
.
show
(
false
)
fApi
.
value
?.
fapi
?.
resetBtn
.
show
(
false
)
fApi
.
value
?.
btn
.
disabled
(
true
)
fApi
.
value
?.
fapi
?
.
disabled
(
true
)
})
})
}
}
...
...
src/views/bpm/processInstance/index.vue
View file @
1cde03fb
...
@@ -12,6 +12,10 @@
...
@@ -12,6 +12,10 @@
@
click=
"handleCreate"
@
click=
"handleCreate"
/>
/>
</
template
>
</
template
>
<!-- 流程分类 -->
<
template
#
category_default=
"{ row }"
>
<DictTag
:type=
"DICT_TYPE.BPM_MODEL_CATEGORY"
:value=
"Number(row?.category)"
/>
</
template
>
<!-- 当前审批任务 -->
<!-- 当前审批任务 -->
<
template
#
tasks_default=
"{ row }"
>
<
template
#
tasks_default=
"{ row }"
>
<el-button
v-for=
"task in row.tasks"
:key=
"task.id"
link
>
<el-button
v-for=
"task in row.tasks"
:key=
"task.id"
link
>
...
@@ -40,6 +44,7 @@
...
@@ -40,6 +44,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
// 全局相关的 import
// 全局相关的 import
import
{
ElMessageBox
}
from
'element-plus'
import
{
ElMessageBox
}
from
'element-plus'
import
{
DICT_TYPE
}
from
'@/utils/dict'
// 业务相关的 import
// 业务相关的 import
import
*
as
ProcessInstanceApi
from
'@/api/bpm/processInstance'
import
*
as
ProcessInstanceApi
from
'@/api/bpm/processInstance'
...
...
src/views/bpm/processInstance/process.data.ts
View file @
1cde03fb
...
@@ -33,7 +33,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -33,7 +33,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
field
:
'category'
,
field
:
'category'
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictClass
:
'number'
,
dictClass
:
'number'
,
isSearch
:
true
isSearch
:
true
,
table
:
{
slots
:
{
default
:
'category_default'
}
}
},
},
{
{
title
:
'当前审批任务'
,
title
:
'当前审批任务'
,
...
...
src/views/system/role/index.vue
View file @
1cde03fb
...
@@ -111,16 +111,21 @@
...
@@ -111,16 +111,21 @@
>
>
<el-card
class=
"card"
shadow=
"never"
>
<el-card
class=
"card"
shadow=
"never"
>
<
template
#
header
>
<
template
#
header
>
<!--父子联动(选中父节点,自动选择子节点):-->
父子联动(选中父节点,自动选择子节点):
<!--
<el-switch
v-model=
"checkStrictly"
inline-prompt
active-text=
"是"
inactive-text=
"否"
/>
-->
<el-switch
<!--全选/全不选:-->
v-model=
"checkStrictly"
<!--
<el-switch-->
inline-prompt
<!-- v-model="treeNodeAll"-->
active-text=
"是"
<!-- inline-prompt-->
inactive-text=
"否"
<!-- active-text="是"-->
/>
<!-- inactive-text="否"-->
全选/全不选:
<!-- @change="handleCheckedTreeNodeAll()"-->
<el-switch
<!--/>-->
v-model=
"treeNodeAll"
inline-prompt
active-text=
"是"
inactive-text=
"否"
@
change=
"handleCheckedTreeNodeAll()"
/>
</
template
>
</
template
>
<el-tree
<el-tree
ref=
"treeRef"
ref=
"treeRef"
...
@@ -250,12 +255,12 @@ const dialogScopeTitle = ref('数据权限')
...
@@ -250,12 +255,12 @@ const dialogScopeTitle = ref('数据权限')
const
actionScopeType
=
ref
(
''
)
const
actionScopeType
=
ref
(
''
)
const
dataScopeDictDatas
=
ref
()
const
dataScopeDictDatas
=
ref
()
// 选项
// 选项
const
checkStrictly
=
ref
(
fals
e
)
const
checkStrictly
=
ref
(
tru
e
)
//
const treeNodeAll = ref(false)
const
treeNodeAll
=
ref
(
false
)
// 全选/全不选
// 全选/全不选
//
const handleCheckedTreeNodeAll = () => {
const
handleCheckedTreeNodeAll
=
()
=>
{
//
treeRef.value!.setCheckedNodes(treeNodeAll.value ? treeOptions.value : [])
treeRef
.
value
!
.
setCheckedNodes
(
treeNodeAll
.
value
?
treeOptions
.
value
:
[])
//
}
}
// 权限操作
// 权限操作
const
handleScope
=
async
(
type
:
string
,
row
:
RoleApi
.
RoleVO
)
=>
{
const
handleScope
=
async
(
type
:
string
,
row
:
RoleApi
.
RoleVO
)
=>
{
dataScopeForm
.
id
=
row
.
id
dataScopeForm
.
id
=
row
.
id
...
...
src/views/system/user/index.vue
View file @
1cde03fb
...
@@ -408,20 +408,20 @@ const handleDetail = async (rowId: number) => {
...
@@ -408,20 +408,20 @@ const handleDetail = async (rowId: number) => {
// 提交按钮
// 提交按钮
const
submitForm
=
async
()
=>
{
const
submitForm
=
async
()
=>
{
// 提交请求
const
elForm
=
unref
(
formRef
)?.
getElFormRef
()
const
elForm
=
unref
(
formRef
)?.
getElFormRef
()
if
(
!
elForm
)
return
if
(
!
elForm
)
return
elForm
.
validate
(
async
(
valid
)
=>
{
elForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
// 提交请求
try
{
try
{
const
data
=
unref
(
formRef
)?.
formModel
as
UserApi
.
UserVO
const
data
=
unref
(
formRef
)?.
formModel
as
UserApi
.
UserVO
if
(
actionType
.
value
===
'create'
)
{
if
(
actionType
.
value
===
'create'
)
{
await
UserApi
.
createUserApi
(
data
)
loading
.
value
=
true
loading
.
value
=
true
await
UserApi
.
createUserApi
(
data
)
message
.
success
(
t
(
'common.createSuccess'
))
message
.
success
(
t
(
'common.createSuccess'
))
}
else
{
}
else
{
await
UserApi
.
updateUserApi
(
data
)
loading
.
value
=
true
loading
.
value
=
true
await
UserApi
.
updateUserApi
(
data
)
message
.
success
(
t
(
'common.updateSuccess'
))
message
.
success
(
t
(
'common.updateSuccess'
))
}
}
dialogVisible
.
value
=
false
dialogVisible
.
value
=
false
...
...
src/views/system/user/user.data.ts
View file @
1cde03fb
...
@@ -18,6 +18,7 @@ export const rules = reactive({
...
@@ -18,6 +18,7 @@ export const rules = reactive({
status
:
[
required
],
status
:
[
required
],
mobile
:
[
mobile
:
[
{
{
required
:
true
,
len
:
11
,
len
:
11
,
trigger
:
'blur'
,
trigger
:
'blur'
,
message
:
'请输入正确的手机号码'
message
:
'请输入正确的手机号码'
...
...
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