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
23be16ad
Commit
23be16ad
authored
Jan 28, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证修改
parent
8baf9fc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
56 deletions
+55
-56
post-form.vue
src/components/system/post-form.vue
+4
-10
document.vue
src/pages/administration/document.vue
+51
-46
No files found.
src/components/system/post-form.vue
View file @
23be16ad
...
...
@@ -159,16 +159,9 @@
//保存岗位
savePost
()
{
var
tempRole
=
[];
if
(
this
.
objOption
.
PostName
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
'top'
,
message
:
`请填写岗位名称`
})
return
}
if
(
this
.
RoleList
&&
this
.
RoleList
.
length
>
0
)
{
this
.
$refs
.
PostName
.
validate
()
if
(
!
this
.
$refs
.
PostName
.
hasError
){
if
(
this
.
RoleList
&&
this
.
RoleList
.
length
>
0
)
{
this
.
RoleList
.
forEach
(
x
=>
{
this
.
value
.
forEach
(
j
=>
{
if
(
x
.
RoleId
==
j
)
{
...
...
@@ -210,6 +203,7 @@
}).
catch
(()
=>
{
this
.
saveLoading
=
false
})
}
}
},
}
...
...
src/pages/administration/document.vue
View file @
23be16ad
...
...
@@ -135,7 +135,7 @@
<q-card-section
class=
"q-pt-none"
>
<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"
label=
"公文来源(FR)"
:rules=
"[val => !!val || '公文来源(FR)']"
/>
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>
...
...
@@ -154,7 +154,7 @@
<q-input
clearable
class=
"col-6 q-pb-lg q-pr-lg"
standout=
"bg-primary text-white"
disable
v-model=
"nNumber"
label=
"编号"
v-if=
"nNumber!=null "
/>
<q-input
clearable
filled
class=
"col-12 q-pb-lg q-pr-lg"
standout=
"bg-primary text-white"
v-model=
"addMsg.Title"
label=
"标题"
:rules=
"[val => !!val || '标题']"
/>
v-model=
"addMsg.Title"
ref=
"Title"
label=
"标题"
:rules=
"[val => !!val || '标题']"
/>
<div
class=
"text-caption q-my-md q-px-xs text-grey-6"
>
公告内容
</div>
<ext-editor
:defaultMsg=
"addMsg.Content"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
<el-upload
style=
"margin-top: 20px"
:http-request=
"uploadFile2"
:file-list=
"fileList"
...
...
@@ -591,52 +591,57 @@
this
.
persistent
=
false
},
save_t
(
val
)
{
this
.
addMsg
.
NoticeState
=
val
//发布状态
this
.
saveLoading
=
true
;
var
tempStr
=
""
;
if
(
this
.
tempManager2
&&
this
.
tempManager2
.
length
>
0
)
{
this
.
tempManager2
.
forEach
(
item
=>
{
tempStr
+=
","
+
item
;
});
}
if
(
tempStr
&&
tempStr
!=
''
)
{
//去掉第一个字符
tempStr
=
tempStr
.
substr
(
1
);
}
this
.
addMsg
.
CopyPeople
=
tempStr
;
this
.
addMsg
.
FileList
=
[]
this
.
fileList
.
forEach
((
x
)
=>
{
let
obj
=
{
FileName
:
x
.
name
,
FileUrl
:
x
.
url
this
.
$refs
.
From
.
validate
()
this
.
$refs
.
Title
.
validate
()
if
(
!
this
.
$refs
.
From
.
hasError
&&
!
this
.
$refs
.
Title
.
hasError
){
this
.
addMsg
.
NoticeState
=
val
//发布状态
this
.
saveLoading
=
true
;
var
tempStr
=
""
;
if
(
this
.
tempManager2
&&
this
.
tempManager2
.
length
>
0
)
{
this
.
tempManager2
.
forEach
(
item
=>
{
tempStr
+=
","
+
item
;
});
}
this
.
addMsg
.
FileList
.
push
(
obj
)
})
let
data
=
this
.
addMsg
if
(
data
.
CopyPeople
==
''
)
{
data
.
CopyPeople
=
-
1
}
if
(
data
.
To
==
''
)
{
data
.
To
=
-
1
}
setNoticeInfo
(
data
).
then
(
res
=>
{
this
.
saveLoading
=
false
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
$emit
(
"success"
)
this
.
persistent
=
false
this
.
getList
();
if
(
tempStr
&&
tempStr
!=
''
)
{
//去掉第一个字符
tempStr
=
tempStr
.
substr
(
1
);
}
}).
catch
(()
=>
{
this
.
saveLoading
=
false
})
this
.
addMsg
.
CopyPeople
=
tempStr
;
this
.
addMsg
.
FileList
=
[]
this
.
fileList
.
forEach
((
x
)
=>
{
let
obj
=
{
FileName
:
x
.
name
,
FileUrl
:
x
.
url
}
this
.
addMsg
.
FileList
.
push
(
obj
)
})
let
data
=
this
.
addMsg
if
(
data
.
CopyPeople
==
''
)
{
data
.
CopyPeople
=
-
1
}
if
(
data
.
To
==
''
)
{
data
.
To
=
-
1
}
setNoticeInfo
(
data
).
then
(
res
=>
{
this
.
saveLoading
=
false
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
$emit
(
"success"
)
this
.
persistent
=
false
this
.
getList
();
}
}).
catch
(()
=>
{
this
.
saveLoading
=
false
})
}
},
EditConfig
(
id
)
{
this
.
drawer
=
true
;
...
...
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