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
7e3f6190
authored
Apr 09, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REVIEW OA 请假
parent
47b5ce2f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
src/types/auto-components.d.ts
+4
-0
src/views/bpm/oa/leave/create.vue
+5
-5
src/views/mp/autoReply/index.vue
+2
-4
src/views/mp/material/index.vue
+2
-4
No files found.
src/types/auto-components.d.ts
View file @
7e3f6190
...
...
@@ -25,6 +25,8 @@ declare module '@vue/runtime-core' {
Echart
:
typeof
import
(
'./../components/Echart/src/Echart.vue'
)[
'default'
]
Editor
:
typeof
import
(
'./../components/Editor/src/Editor.vue'
)[
'default'
]
ElAlert
:
typeof
import
(
'element-plus/es'
)[
'ElAlert'
]
ElAutoResizer
:
typeof
import
(
'element-plus/es'
)[
'ElAutoResizer'
]
ElAvatar
:
typeof
import
(
'element-plus/es'
)[
'ElAvatar'
]
ElBadge
:
typeof
import
(
'element-plus/es'
)[
'ElBadge'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElButtonGroup
:
typeof
import
(
'element-plus/es'
)[
'ElButtonGroup'
]
...
...
@@ -70,9 +72,11 @@ declare module '@vue/runtime-core' {
ElScrollbar
:
typeof
import
(
'element-plus/es'
)[
'ElScrollbar'
]
ElSelect
:
typeof
import
(
'element-plus/es'
)[
'ElSelect'
]
ElSkeleton
:
typeof
import
(
'element-plus/es'
)[
'ElSkeleton'
]
ElSpace
:
typeof
import
(
'element-plus/es'
)[
'ElSpace'
]
ElSwitch
:
typeof
import
(
'element-plus/es'
)[
'ElSwitch'
]
ElTable
:
typeof
import
(
'element-plus/es'
)[
'ElTable'
]
ElTableColumn
:
typeof
import
(
'element-plus/es'
)[
'ElTableColumn'
]
ElTableV2
:
typeof
import
(
'element-plus/es'
)[
'ElTableV2'
]
ElTabPane
:
typeof
import
(
'element-plus/es'
)[
'ElTabPane'
]
ElTabs
:
typeof
import
(
'element-plus/es'
)[
'ElTabs'
]
ElTag
:
typeof
import
(
'element-plus/es'
)[
'ElTag'
]
...
...
src/views/bpm/oa/leave/create.vue
View file @
7e3f6190
<
template
>
<Dialog
title=
"发起 OA 请假流程"
v-model=
"
model
Visible"
>
<Dialog
title=
"发起 OA 请假流程"
v-model=
"
dialog
Visible"
>
<el-form
ref=
"formRef"
:model=
"formData"
...
...
@@ -41,7 +41,7 @@
</el-form>
<template
#
footer
>
<el-button
@
click=
"submitForm"
type=
"primary"
:disabled=
"formLoading"
>
确 定
</el-button>
<el-button
@
click=
"
model
Visible = false"
>
取 消
</el-button>
<el-button
@
click=
"
dialog
Visible = false"
>
取 消
</el-button>
</
template
>
</Dialog>
</template>
...
...
@@ -50,7 +50,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import
*
as
LeaveApi
from
'@/api/bpm/leave'
const
message
=
useMessage
()
// 消息弹窗
const
model
Visible
=
ref
(
false
)
// 弹窗的是否展示
const
dialog
Visible
=
ref
(
false
)
// 弹窗的是否展示
const
formLoading
=
ref
(
false
)
// 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const
formData
=
ref
({
type
:
undefined
,
...
...
@@ -68,7 +68,7 @@ const formRef = ref() // 表单 Ref
/** 打开弹窗 */
const
open
=
async
()
=>
{
model
Visible
.
value
=
true
dialog
Visible
.
value
=
true
resetForm
()
}
defineExpose
({
open
})
// 提供 open 方法,用于打开弹窗
...
...
@@ -86,7 +86,7 @@ const submitForm = async () => {
const
data
=
formData
.
value
as
unknown
as
LeaveApi
.
LeaveVO
await
LeaveApi
.
createLeave
(
data
)
message
.
success
(
'新增成功'
)
model
Visible
.
value
=
false
dialog
Visible
.
value
=
false
// 发送操作成功的事件
emit
(
'success'
)
}
finally
{
...
...
src/views/mp/autoReply/index.vue
View file @
7e3f6190
...
...
@@ -174,10 +174,8 @@
</el-form-item>
</el-form>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确 定
</el-button>
</span>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确 定
</el-button>
</
template
>
</el-dialog>
</ContentWrap>
...
...
src/views/mp/material/index.vue
View file @
7e3f6190
...
...
@@ -197,10 +197,8 @@
</el-row>
</el-form>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<el-button
@
click=
"cancelVideo"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitVideo"
>
提 交
</el-button>
</div>
<el-button
@
click=
"cancelVideo"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitVideo"
>
提 交
</el-button>
</
template
>
</el-dialog>
...
...
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