Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
126a7a3c
authored
2023-04-24 16:26:15 +0800
by
赵千
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
通知公告
1 parent
665825f3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
src/api/config.js
src/views/system/xttz/components/addDialog.vue
src/views/system/xttz/xttz.vue
src/views/system/xttz/xttzdata.js
src/api/config.js
View file @
126a7a3
...
...
@@ -7,5 +7,5 @@
// SERVERAPI: 'service-bdcdj-th'
// }
export
default
{
SERVERAPI
:
'/bdcdj'
SERVERAPI
:
'/bdcdj
-zq
'
}
\ No newline at end of file
...
...
src/views/system/xttz/components/addDialog.vue
View file @
126a7a3
...
...
@@ -15,6 +15,13 @@
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"有效时长:"
>
<el-input
v-model=
"ruleForm.validDays"
class=
"width100"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"通知内容:"
prop=
"noticeContent"
>
<quill-editor
v-model=
"ruleForm.noticeContent"
class=
"editor ql-editor"
ref=
"myQuillEditor"
:options=
"editorOption"
@
blur=
"onEditorBlur($event)"
@
focus=
"onEditorFocus($event)"
...
...
@@ -65,6 +72,7 @@ export default {
noticeContent
:
""
,
noticeFileUrl
:
""
,
noticeSource
:
""
,
validDays
:
14
,
noticeType
:
"1"
},
rules
:
{
...
...
@@ -140,7 +148,10 @@ export default {
false
)
})
if
(
this
.
formData
)
{
if
(
!
this
.
formData
.
isButtonFlag
)
{
this
.
getDetailInfo
(
this
.
formData
)
}
if
(
this
.
formData
.
edit
)
{
this
.
getDetailInfo
(
this
.
formData
)
}
},
...
...
@@ -166,6 +177,8 @@ export default {
},
//新增通知
addNotice
()
{
// 解决报错
// this.ruleForm.noticeType = "1"
addSysNotice
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
...
...
@@ -197,6 +210,7 @@ export default {
noticeContent
:
""
,
noticeFileUrl
:
""
,
noticeSource
:
""
,
validDays
:
14
,
noticeType
:
"1"
}
},
...
...
src/views/system/xttz/xttz.vue
View file @
126a7a3
...
...
@@ -164,7 +164,7 @@ export default {
},
//编辑通知
editNotice
(
item
)
{
this
.
$popupDialog
(
"系统通知详情"
,
"system/xttz/components/addDialog"
,
{
...
item
,
"isButtonFlag"
:
true
},
"50%"
)
this
.
$popupDialog
(
"系统通知详情"
,
"system/xttz/components/addDialog"
,
{
...
item
,
"isButtonFlag"
:
true
,
"edit"
:
true
},
"50%"
)
},
downloadFile
(
item
)
{
const
href
=
item
.
noticeFileUrl
...
...
src/views/system/xttz/xttzdata.js
View file @
126a7a3
...
...
@@ -55,6 +55,11 @@ class data extends filter {
width
:
'140'
},
{
prop
:
"failureTime"
,
label
:
"失效时间"
,
width
:
'140'
},
{
prop
:
"creater"
,
width
:
'120'
,
label
:
"创建人"
,
...
...
Please
register
or
sign in
to post a comment