Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
f38ab0df
Commit
f38ab0df
authored
Jul 14, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
95400b17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
299 deletions
+52
-299
documentApproval.vue
src/pages/administration/documentApproval.vue
+21
-291
noticeSysSet.vue
src/pages/system/noticeSysSet.vue
+31
-8
No files found.
src/pages/administration/documentApproval.vue
View file @
f38ab0df
This diff is collapsed.
Click to expand it.
src/pages/system/noticeSysSet.vue
View file @
f38ab0df
...
...
@@ -13,8 +13,17 @@
公告审批人:
</div>
<div
class=
"col-3"
>
<q-select
v-model=
"msg.Content"
:options=
"EmployeeListOption"
color=
"primary"
filled
clearable
option-label=
"EmployeeName"
option-value=
"Id"
ref=
"Admin"
emit-value
map-options
:rules=
"[val => !!val|| '请选择公告审批人']"
/>
<q-select
option-value=
"Id"
option-label=
"EmployeeName"
color=
"primary"
filled
:rules=
"[val => !!val|| '请选择公告审批人']"
v-model=
"msg.Content"
use-input
clearable
@
filter=
"filterFn"
:options=
"EmployeeListOption"
emit-value
map-options
ref=
"Admin"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
<div
class=
"col-3"
style=
"padding:18px 0 0 10px;color:gray"
>
</div>
...
...
@@ -50,6 +59,7 @@
Content
:
0
},
EmployeeListOption
:
[],
allEmployeeListOption
:
[],
}
},
created
()
{},
...
...
@@ -67,9 +77,22 @@
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeListOption
=
res
.
Data
;
this
.
allEmployeeListOption
=
res
.
Data
;
}
}).
catch
(()
=>
{})
},
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
EmployeeListOption
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allEmployeeListOption
))
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
EmployeeListOption
=
this
.
allEmployeeListOption
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
})
},
getData
()
{
getConten
({}).
then
(
res
=>
{
if
(
res
.
Code
===
1
)
{
...
...
@@ -81,12 +104,12 @@
this
.
$refs
.
Admin
.
validate
();
if
(
!
this
.
$refs
.
Admin
.
hasError
)
{
setConten
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
===
1
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getConten
();
}
else
{
this
.
$message
.
error
(
res
.
Message
)
}
if
(
res
.
Code
===
1
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getConten
();
}
else
{
this
.
$message
.
error
(
res
.
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