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
bcba1fb6
Commit
bcba1fb6
authored
Apr 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b43a2942
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
document.vue
src/pages/administration/document.vue
+19
-7
No files found.
src/pages/administration/document.vue
View file @
bcba1fb6
...
...
@@ -136,9 +136,15 @@
<div
class=
"row wrap"
>
<q-input
clearable
filled
class=
"col-6 q-pb-lg q-pr-lg"
standout=
"bg-primary text-white"
v-model=
"addMsg.From"
ref=
"From"
label=
"公文来源(FR)"
:rules=
"[val => !!val || '公文来源(FR)']"
/>
<selectTree
class=
"col-6 q-pb-lg q-pr-lg"
:treeData=
'DeptList'
:defaultArray=
"returnString"
nodeKey=
"DeptId"
:multiple=
"true"
:defaultExpandAll=
"true"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"To"
@
getChild=
"getChild"
classStr=
"col-6 q-pr-lg q-pb-lg"
></selectTree>
<div
class=
"col-6 q-pb-lg q-pr-lg"
>
<q-radio
v-model=
"addMsg.SendType"
:val=
"1"
label=
"全公司"
/>
<q-radio
v-model=
"addMsg.SendType"
:val=
"2"
label=
"指定部门"
/>
</div>
<selectTree
v-if=
"addMsg.SendType==2"
class=
"col-6 q-pb-lg q-pr-lg"
:treeData=
'DeptList'
:defaultArray=
"returnString"
nodeKey=
"DeptId"
:multiple=
"true"
:defaultExpandAll=
"true"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"To"
@
getChild=
"getChild"
classStr=
"col-6 q-pr-lg q-pb-lg"
></selectTree>
<q-select
class=
"col-6 q-pb-lg q-pr-lg"
multiple
clearable
filled
stack-label
use-input
use-chips
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"tempManager2"
ref=
"ManagerId"
...
...
@@ -347,7 +353,7 @@
NoticeState
:
1
,
//状态 1发布 2草稿
Is_Top
:
2
,
//是否置顶 1是 2否
FileList
:
[],
//附件列表
SendType
:
1
,
//1-全公司,2-指定部门
},
fileList
:
[],
//上传列表
DeptList
:
[],
// 部门下拉
...
...
@@ -356,7 +362,6 @@
drawer
:
false
,
//显示右侧抽屉
NInfo
:
{},
//详情内容
persistent2
:
false
}
},
mounted
()
{
...
...
@@ -368,7 +373,6 @@
this
.
getNoticeRule
()
//获取编号规则 枚举列表
},
methods
:
{
//获取编辑器值
getEditValue
(
obj
)
{
this
.
addMsg
.
Content
=
obj
;
...
...
@@ -566,6 +570,11 @@
this
.
addMsg
.
Content
=
res
.
Data
.
Content
;
this
.
addMsg
.
NoticeState
=
res
.
Data
.
NoticeState
;
this
.
addMsg
.
Is_Top
=
res
.
Data
.
Is_Top
;
if
(
res
.
Data
.
To
==
"0"
||
res
.
Data
.
To
==
"-1"
)
{
this
.
addMsg
.
SendType
=
1
;
}
else
{
this
.
addMsg
.
SendType
=
2
;
}
this
.
fileList
=
[];
res
.
Data
.
FileList
.
forEach
((
x
)
=>
{
let
obj
=
{
...
...
@@ -581,7 +590,6 @@
addDoc
(
id
)
{
this
.
nNumber
=
null
if
(
id
)
{
this
.
getNInfo
(
id
)
}
else
{
this
.
tempManager2
=
this
.
tempManager
?
this
.
tempManager
:
[]
...
...
@@ -615,6 +623,7 @@
//去掉第一个字符
tempStr
=
tempStr
.
substr
(
1
);
}
this
.
addMsg
.
CopyPeople
=
tempStr
;
this
.
addMsg
.
FileList
=
[]
this
.
fileList
.
forEach
((
x
)
=>
{
...
...
@@ -631,6 +640,9 @@
if
(
data
.
To
==
''
)
{
data
.
To
=
-
1
}
if
(
data
.
SendType
==
1
)
{
data
.
To
=
-
1
;
}
setNoticeInfo
(
data
).
then
(
res
=>
{
this
.
saveLoading
=
false
if
(
res
.
Code
==
1
)
{
...
...
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